== sanityn test 119b: ltrash_purge: space-based purging with --auto-ost ========================================================== 21:39:12 (1779068352) mdd.lustre-MDT0000.trash_can_enable=1 mdd.lustre-MDT0000.trash_can_type=plain Trash Can Type: plain Waiting for orphan cleanup... osp.lustre-OST0000-osc-MDT0000.old_sync_processed osp.lustre-OST0001-osc-MDT0000.old_sync_processed wait 40 secs maximumly for oleg121-server mds-ost sync done. Waiting for MDT destroys to complete OST0 has highest usage: 1% Increase OST0 space usage by creating 74 MB /mnt/lustre/d119b.sanityn/f1 74+0 records in 74+0 records out 77594624 bytes (78 MB, 74 MiB) copied, 2.83137 s, 27.4 MB/s Waiting for orphan cleanup... osp.lustre-OST0000-osc-MDT0000.old_sync_processed osp.lustre-OST0001-osc-MDT0000.old_sync_processed wait 40 secs maximumly for oleg121-server mds-ost sync done. Stripe /mnt/lustre/d119b.sanityn/f2 across all OSTs f2 Test --auto-ost with high threshold (no OSTs selected) ltrash_purge configuration for /mnt/lustre: - MDT_usage=0.0%, OST_usage=99.0%, max_age=0(s) - scan_interval=60(s), threads=4, del_count=10000 - enable_stats=off, auto_ost=on, auto_mdt=off - mode=dry-run trash projid is 4294967294 Trash can usage on projid 4294967294: blocks 0 inodes 1 MDT0000 stats - blocks=353529, free=353102, avail=317399, files=1024000, ffree=1023718 - usage=0.1%, i_usage=0.0% OST0000 stats - blocks=958279, free=938980, avail=882456, files=262144, ffree=261843 - usage=2.1%, i_usage=0.1% OST0001 stats - blocks=958279, free=957926, avail=901402, files=262144, ffree=261843 - usage=0.0%, i_usage=0.1% Current space usage in lustre: - Max MDT usage: 0.1%, Max OST usage: 2.1% OST0000 (lustre-OST0000_UUID): usage=2.1%, i_usage=0.1%, max=2.1% OST0001 (lustre-OST0001_UUID): usage=0.0%, i_usage=0.1%, max=0.1% No OSTs exceed threshold 99.0% Start scanning and purging at 1779068384: Skip: /mnt/lustre/.ltrash is not a trash file Purging object: /mnt/lustre/.ltrash/MDT0000/0x200000401:0x5:0x0/f2 dry-run: would purge /mnt/lustre/.ltrash/MDT0000/0x200000401:0x5:0x0/f2 (size=0) Cannot read unrm xattr for '/mnt/lustre/.ltrash/MDT0000/0x200000007:0x1:0x0' Cannot read unrm xattr for '/mnt/lustre/.ltrash/MDT0000/0x200000401:0x5:0x0' Cannot read unrm xattr for '/mnt/lustre/.ltrash/MDT0000' Skip: /mnt/lustre/.ltrash is not a trash directory ltrash_purge ended with exit code: 0 f2 Test --auto-ost with low threshold (Only this OST selected) ltrash_purge configuration for /mnt/lustre: - MDT_usage=0.0%, OST_usage=1.0%, max_age=0(s) - scan_interval=60(s), threads=4, del_count=10000 - enable_stats=off, auto_ost=on, auto_mdt=off - mode=dry-run trash projid is 4294967294 Trash can usage on projid 4294967294: blocks 0 inodes 1 MDT0000 stats - blocks=353529, free=353102, avail=317399, files=1024000, ffree=1023718 - usage=0.1%, i_usage=0.0% OST0000 stats - blocks=958279, free=938980, avail=882456, files=262144, ffree=261843 - usage=2.1%, i_usage=0.1% OST0001 stats - blocks=958279, free=957926, avail=901402, files=262144, ffree=261843 - usage=0.0%, i_usage=0.1% Current space usage in lustre: - Max MDT usage: 0.1%, Max OST usage: 2.1% OST0000 (lustre-OST0000_UUID): usage=2.1%, i_usage=0.1%, max=2.1% OST0001 (lustre-OST0001_UUID): usage=0.0%, i_usage=0.1%, max=0.1% - OST0000 (lustre-OST0000_UUID) with usage 2.1% Auto-selected 1 OST(s) for purging Start scanning and purging at 1779068384: Skip: /mnt/lustre/.ltrash is not a trash file File '/mnt/lustre/.ltrash/MDT0000/0x200000401:0x5:0x0/f2' matches OST filter Purging object: /mnt/lustre/.ltrash/MDT0000/0x200000401:0x5:0x0/f2 dry-run: would purge /mnt/lustre/.ltrash/MDT0000/0x200000401:0x5:0x0/f2 (size=0) Cannot read unrm xattr for '/mnt/lustre/.ltrash/MDT0000/0x200000007:0x1:0x0' Cannot read unrm xattr for '/mnt/lustre/.ltrash/MDT0000/0x200000401:0x5:0x0' Cannot read unrm xattr for '/mnt/lustre/.ltrash/MDT0000' Skip: /mnt/lustre/.ltrash is not a trash directory ltrash_purge ended with exit code: 0 f2 Purging files with --auto-ost (threshold: 1%) ltrash_purge configuration for /mnt/lustre: - MDT_usage=0.0%, OST_usage=1.0%, max_age=0(s) - scan_interval=60(s), threads=4, del_count=10000 - enable_stats=on, auto_ost=on, auto_mdt=off - mode=daemon Waiting 90s for '0' Current space usage in lustre: - Max MDT usage: 0.1%, Max OST usage: 2.1% Start scanning and purging at 1779068385: Purged: /mnt/lustre/.ltrash/MDT0000/0x200000401:0x5:0x0/f2 (size=0 bytes) Scan and purge completed successfully at 1779068385: - scanned 9 objs, purged 1 objs, failed 0 objs, freed 0 bytes - work rate 32.95 objs/sec Exit due to signal: Terminated Dump stats to file '/tmp/ltrash_purge_stats_7440' exiting: Terminated Statistics dump verified: purged objects # ltrash_purge statistics dump snapshot_time_secs: 1779068386 current mdt_usage: 0.13 current ost_usage: 2.14 Config: mount: /mnt/lustre auto_mdt: off mdt_usage: 0.00 auto_ost: on ost_usage: 1.00 max_age: 0 scan_interval: 60 scan_threads: 4 del_count: 10000 mode: daemon Current scan stats: scanned_objs: 9 purged_objs: 1 failed_objs: 0 freed_bytes: 0 start_time_secs: 1779068385 start_usage_mdt_pct: 0.13 start_usage_ost_pct: 2.14 end_time_secs: 1779068385 Total stats: scan_times: 1 total_scanned_objs: 9 total_purged_objs: 1 total_failed_objs: 0 total_freed_bytes: 0 Empty mode is enabled, all the filters are ignored ltrash_purge configuration for /mnt/lustre: - MDT_usage=90.0%, OST_usage=90.0%, max_age=604800(s) - scan_interval=60(s), threads=4, del_count=10000 - enable_stats=off, auto_ost=off, auto_mdt=off - mode=empty Start scanning and purging at 1779068387: ltrash_purge ended with exit code: 0 mdd.lustre-MDT0000.trash_can_enable=0 mdd.lustre-MDT0000.trash_can_type=uid