leofs icon indicating copy to clipboard operation
leofs copied to clipboard

Object size not reducing after delete files from bucket

Open gauravrishi168 opened this issue 5 years ago • 3 comments

Hi I am using Leofd version 1.3.3. using S3cmd command, i removed all most of the heavy file from the bucket but while doing df -HT, the size of the partition is showing the same. Compaction was also enable.

active number of objects: 114459 total number of objects: 314918 active size of objects: 560646011442 total size of objects: 1428424558539 ratio of active size: 39.25% last compaction start: 2019-11-08 21:35:33 +0550 last compaction end: 2019-11-08 21:51:11 +0550

Can you please help how we can reduce the size of the object.

gauravrishi168 avatar Nov 08 '19 16:11 gauravrishi168

I delayed to reply. Do you know that errors have occurred in the LeoStorage node? The error log of LeoStorage is output to the following location:

Destination of log file(s) of LeoStorage
Default: ./log/app

yosukehara avatar Nov 12 '19 01:11 yosukehara

not getting any serious error: However, i have restarted the gateway, storage but no luck. Can you please confirm if we can delete the object like .avs

[root@pgp-leofs1 app]# tail -100 error.20191108.23.1 [W] [email protected] 2019-11-08 23:02:58.612885 +0550 1573234378 leo_compact_fsm_worker:execute_1/4 1082 [{obj_container_path,"/home_leofs/avs/object/6.avs_63662924913"},{error_pos_start,118253588384},{error_pos_end,118253588480},{errors,[{invalid_format,unexpected_time_format},{976,"invalid data"}]}] [W] [email protected] 2019-11-08 23:17:51.837719 +0550 1573235271 leo_compact_fsm_worker:execute_1/4 1082 [{obj_container_path,"/home_leofs/avs/object/7.avs_63662924913"},{error_pos_start,120516298304},{error_pos_end,120516435968},{errors,[{invalid_format,unexpected_time_format},{invalid_format,over_limit},{976,"invalid data"}]}] [root@pgp-leofs1 app]# tail -1000 error.20191108.23.1 [W] [email protected] 2019-11-08 23:02:58.612885 +0550 1573234378 leo_compact_fsm_worker:execute_1/4 1082 [{obj_container_path,"/home_leofs/avs/object/6.avs_63662924913"},{error_pos_start,118253588384},{error_pos_end,118253588480},{errors,[{invalid_format,unexpected_time_format},{976,"invalid data"}]}] [W] [email protected] 2019-11-08 23:17:51.837719 +0550 1573235271 leo_compact_fsm_worker:execute_1/4 1082 [{obj_container_path,"/home_leofs/avs/object/7.avs_63662924913"},{error_pos_start,120516298304},{error_pos_end,120516435968},{errors,[{invalid_format,unexpected_time_format},{invalid_format,over_limit},{976,"invalid data"}]}]

Output of MQ


root@pgp-leofs1 app]# leofs-adm mq-stats [email protected] id | state | number of msgs | batch of msgs | interval | description --------------------------------+-------------+----------------|----------------|----------------|--------------------------------------------- leo_delete_dir_queue | idling | 0 | 1600 | 500 | remove directories leo_comp_meta_with_dc_queue | idling | 0 | 1600 | 500 | compare metadata w/remote-node leo_sync_obj_with_dc_queue | idling | 0 | 1600 | 500 | sync objs w/remote-node leo_recovery_node_queue | idling | 0 | 1600 | 500 | recovery objs of node leo_async_deletion_queue | idling | 0 | 1600 | 500 | async deletion of objs leo_rebalance_queue | idling | 0 | 1600 | 500 | rebalance objs leo_sync_by_vnode_id_queue | idling | 0 | 1600 | 500 | sync objs by vnode-id leo_per_object_queue | idling | 0 | 1600 | 500 | recover inconsistent objs


*********************** DIsk Space************************ /dev/mapper/VolGroup-lv_home ext4 2.1T 603G 1.4T 31% /home


****************************Du detail output **************** root@pgp-leofs1 app]# leofs-adm du detail [email protected] [du(storage stats)] file path: /home_leofs/avs/object/0.avs active number of objects: 14477 total number of objects: 14616 active size of objects: 70897287668 total size of objects: 71597082156 ratio of active size: 99.02% last compaction start: 2019-11-11 11:36:00 +0550 last compaction end: 2019-11-11 12:12:46 +0550 duration: 2206s result: success

            file path: /home_leofs/avs/object/1.avs

active number of objects: 14465 total number of objects: 14602 active size of objects: 70832495438 total size of objects: 71528678462 ratio of active size: 99.03% last compaction start: 2019-11-11 11:36:00 +0550 last compaction end: 2019-11-11 12:11:57 +0550 duration: 2157s result: success

            file path: /home_leofs/avs/object/2.avs

active number of objects: 14529 total number of objects: 14655 active size of objects: 71285231513 total size of objects: 71915537550 ratio of active size: 99.12% last compaction start: 2019-11-11 11:36:00 +0550 last compaction end: 2019-11-11 12:07:25 +0550 duration: 1885s result: success

            file path: /home_leofs/avs/object/3.avs

active number of objects: 14495 total number of objects: 14590 active size of objects: 70824125928 total size of objects: 71311732780 ratio of active size: 99.32% last compaction start: 2019-11-11 12:07:25 +0550 last compaction end: 2019-11-11 12:39:25 +0550 duration: 1920s result: success

            file path: /home_leofs/avs/object/4.avs

active number of objects: 14603 total number of objects: 14722 active size of objects: 71789658917 total size of objects: 72397567781 ratio of active size: 99.16% last compaction start: 2019-11-11 12:11:57 +0550 last compaction end: 2019-11-11 12:49:21 +0550 duration: 2244s result: success

            file path: /home_leofs/avs/object/5.avs

active number of objects: 14629 total number of objects: 14735 active size of objects: 71654188492 total size of objects: 72192465024 ratio of active size: 99.25% last compaction start: 2019-11-11 12:12:46 +0550 last compaction end: 2019-11-11 12:50:07 +0550 duration: 2241s result: success

            file path: /home_leofs/avs/object/6.avs

active number of objects: 14583 total number of objects: 14696 active size of objects: 71302827203 total size of objects: 71889676315 ratio of active size: 99.18% last compaction start: 2019-11-11 12:39:25 +0550 last compaction end: 2019-11-11 13:06:35 +0550 duration: 1630s result: success

            file path: /home_leofs/avs/object/7.avs

active number of objects: 14523 total number of objects: 14646 active size of objects: 71387603268 total size of objects: 72027259495 ratio of active size: 99.11% last compaction start: 2019-11-11 12:49:21 +0550 last compaction end: 2019-11-11 13:12:53 +0550 duration: 1412s result: success


gauravrishi168 avatar Nov 12 '19 04:11 gauravrishi168

I am using LeoFS version 1.3.3. using S3cmd command

We fixed some data-compaction issues to this day:

If you'd like to fix this problem, you need to consider migrating your LeoFS to the latest version.

yosukehara avatar Nov 20 '19 07:11 yosukehara