== sanity-lfsck test 45: LFSCK should fix UID/GID/PROJID of OST object ========================================================== 02:25:03 (1788848703) UUID 1K-blocks Used Available Use% Mounted on lustre-MDT0000_UUID 43504 1932 35584 6% /mnt/lustre[MDT:0] lustre-MDT0001_UUID 43504 1788 35728 5% /mnt/lustre[MDT:1] lustre-OST0000_UUID 71076 3132 59284 6% /mnt/lustre[OST:0] lustre-OST0001_UUID 71076 3044 57504 6% /mnt/lustre[OST:1] filesystem_summary: 142152 6176 116788 6% /mnt/lustre Waiting for MDT destroys to complete UUID 1K-blocks Used Available Use% Mounted on lustre-MDT0000_UUID 43504 1908 35608 6% /mnt/lustre[MDT:0] lustre-MDT0001_UUID 43504 1788 35728 5% /mnt/lustre[MDT:1] lustre-OST0000_UUID 71076 1692 61540 3% /mnt/lustre[OST:0] lustre-OST0001_UUID 71076 1560 61180 3% /mnt/lustre[OST:1] filesystem_summary: 142152 3252 122720 3% /mnt/lustre lustre-OST0000 can grant 57175KB lustre-OST0001 can grant 58151KB 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/zero] [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, 0.367495 s, 28.5 MB/s check the quota usage after initial write -u 500 space:10240 -g 500 space:10240 -p 1000 space:10240 /home/green/git/lustre-release/lustre/tests/test-framework.sh: line 12936: ((: 2c0000401: value too great for base (error token is "2c0000401") Stopping /mnt/lustre-ost2 (opts:) on oleg625-server clear the UID/GID/PROJID of the test file -rw-rw-rw- 1 root root 10485760 Sep 8 02:25 /mnt/lustre-ost2/O/2c0000401/d2/202 0 --------------e------- /mnt/lustre-ost2/O/2c0000401/d2/202 Start ost2: mount -t lustre -o localrecov /dev/mapper/ost2_flakey /mnt/lustre-ost2 seq.cli-lustre-OST0001-super.width=65536 oleg625-server: oleg625-server.virtnet: executing set_default_debug vfstrace rpctrace dlmtrace neterror ha config ioctl super lfsck all pdsh@oleg625-client: oleg625-server: ssh exited with exit code 1 Started lustre-OST0001 UUID 1K-blocks Used Available Use% Mounted on lustre-MDT0000_UUID 43504 1908 35608 6% /mnt/lustre[MDT:0] lustre-MDT0001_UUID 43504 1788 35728 5% /mnt/lustre[MDT:1] lustre-OST0000_UUID 71076 1692 62384 3% /mnt/lustre[OST:0] lustre-OST0001_UUID 71076 11800 52276 19% /mnt/lustre[OST:1] filesystem_summary: 142152 13492 114660 11% /mnt/lustre oleg625-server: oleg625-server.virtnet: executing wait_import_state (FULL|IDLE) os[cp].lustre-OST0000-osc-MDT0000.ost_server_uuid 50 oleg625-server: os[cp].lustre-OST0000-osc-MDT0000.ost_server_uuid in FULL state after 0 sec oleg625-server: oleg625-server.virtnet: executing wait_import_state (FULL|IDLE) os[cp].lustre-OST0000-osc-MDT0001.ost_server_uuid 50 oleg625-server: os[cp].lustre-OST0000-osc-MDT0001.ost_server_uuid in FULL state after 0 sec oleg625-client.virtnet: executing wait_import_state (FULL|IDLE) osc.lustre-OST0000-osc-ffff9845c4a7d000.ost_server_uuid 50 osc.lustre-OST0000-osc-ffff9845c4a7d000.ost_server_uuid in FULL state after 0 sec check the quota usage after UID/GID/PROJID is cleared -u 500 space:0 -g 500 space:0 -p 1000 space:0 the quota usage should be transferred to root -u root space:17076 -g root space:17076 -p 0 space:17076 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:10240 -g 500 space:10240 -p 1000 space:10240