== sanity-lfsck test 45: LFSCK should fix UID/GID/PROJID of OST object ========================================================== 17:12:34 (1787605954) UUID 1K-blocks Used Available Use% Mounted on lustre-MDT0000_UUID 283520 2176 279296 1% /mnt/lustre[MDT:0] lustre-OST0000_UUID 282624 4096 263168 2% /mnt/lustre[OST:0] lustre-OST0001_UUID 282624 7168 260096 3% /mnt/lustre[OST:1] filesystem_summary: 565248 11264 523264 3% /mnt/lustre sleep 5 for ZFS MDS sleep 5 for ZFS OST Waiting for MDT destroys to complete UUID 1K-blocks Used Available Use% Mounted on lustre-MDT0000_UUID 283520 2048 279424 1% /mnt/lustre[MDT:0] lustre-OST0000_UUID 282624 2048 265216 1% /mnt/lustre[OST:0] lustre-OST0001_UUID 282624 2048 265216 1% /mnt/lustre[OST:1] filesystem_summary: 565248 4096 530432 1% /mnt/lustre lustre-OST0000 can grant 229888KB lustre-OST0001 can grant 243712KB using SAVE_PROJECT_SUPPORTED=0 /home/green/git/lustre-release/lustre/utils/lfs project -p 1000 /mnt/lustre/d45.sanity-lfsck/f45.sanity-lfsck-0 running as uid/gid/euid/egid 500/500/500/500, groups: 500 [dd] [if=/dev/urandom] [bs=1M] [of=/mnt/lustre/d45.sanity-lfsck/f45.sanity-lfsck-0] [count=10] 10+0 records in 10+0 records out 10485760 bytes (10 MB, 10 MiB) copied, 1.03182 s, 10.2 MB/s check the quota usage after initial write -u 500 space:10245 -g 500 space:10245 -p 1000 space:10245 Stopping /mnt/lustre-ost2 (opts:) on oleg441-server clear the UID/GID/PROJID of the test file -rw-rw-rw- 1 root root 10485760 Aug 24 17:13 /mnt/lustre-ost2/O/280000400/d2/3074 0 ---------------------- /mnt/lustre-ost2/O/280000400/d2/3074 Start ost2: mount -t lustre -o localrecov lustre-ost2/ost2 /mnt/lustre-ost2 seq.cli-lustre-OST0001-super.width=65536 oleg441-server: oleg441-server.virtnet: executing set_default_debug vfstrace rpctrace dlmtrace neterror ha config ioctl super lfsck all pdsh@oleg441-client: oleg441-server: ssh exited with exit code 1 Started lustre-OST0001 UUID 1K-blocks Used Available Use% Mounted on lustre-MDT0000_UUID 283520 2048 279424 1% /mnt/lustre[MDT:0] lustre-OST0000_UUID 282624 2048 278528 1% /mnt/lustre[OST:0] lustre-OST0001_UUID 282624 12288 268288 5% /mnt/lustre[OST:1] filesystem_summary: 565248 14336 546816 3% /mnt/lustre oleg441-server: oleg441-server.virtnet: executing wait_import_state (FULL|IDLE) os[cp].lustre-OST0000-osc-MDT0000.ost_server_uuid 50 oleg441-server: os[cp].lustre-OST0000-osc-MDT0000.ost_server_uuid in FULL state after 0 sec oleg441-client.virtnet: executing wait_import_state (FULL|IDLE) osc.lustre-OST0000-osc-ffff9d5f50f21000.ost_server_uuid 50 osc.lustre-OST0000-osc-ffff9d5f50f21000.ost_server_uuid in FULL state after 0 sec check the quota usage after UID/GID/PROJID is cleared -u 500 space:2 -g 500 space:2 -p 1000 space:2 the quota usage should be transferred to root -u root space:17214 -g root space:17214 -p 0 space:17214 fix the UID/GID/PROJID by LFSCK Started LFSCK on the device lustre-MDT0000: scrub layout the quota usage should be fixed -u 500 space:10245 -g 500 space:10245 -p 1000 space:10245