== sanity-lfsck test 31b: The LFSCK can find/repair the name entry with bad name hash (2) ========================================================== 11:15:42 (1713280542) ##### For the name entry under a striped directory, if the name hash does not match the shard, then the LFSCK will repair the bad name entry ##### Inject failure stub on client to simulate the case that some name entry should be inserted into other non-second shard, but inserted into the secod shard by wrong fail_loc=0x1628 fail_val=1 total: 10 mkdir in 0.07 seconds: 147.41 ops/second fail_loc=0 fail_val=0 Trigger namespace LFSCK to repair bad name hash Started LFSCK on the device lustre-MDT0000: scrub namespace repaired 1 name entries with bad hash 192.168.201.122@tcp:/lustre /mnt/lustre lustre rw,checksum,flock,user_xattr,lruresize,lazystatfs,nouser_fid2path,verbose,noencrypt,statfs_project 0 0 Stopping client oleg122-client.virtnet /mnt/lustre (opts:) Starting client: oleg122-client.virtnet: -o user_xattr,flock oleg122-server@tcp:/lustre /mnt/lustre File: '/mnt/lustre/d31b.sanity-lfsck/striped_dir/d0' Size: 4096 Blocks: 8 IO Block: 1048576 directory Device: 2c54f966h/743766374d Inode: 144115339507007491 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2024-04-16 11:15:43.000000000 -0400 Modify: 2024-04-16 11:15:43.000000000 -0400 Change: 2024-04-16 11:15:43.000000000 -0400 Birth: - File: '/mnt/lustre/d31b.sanity-lfsck/striped_dir/d1' Size: 4096 Blocks: 8 IO Block: 1048576 directory Device: 2c54f966h/743766374d Inode: 144115339507007492 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2024-04-16 11:15:43.000000000 -0400 Modify: 2024-04-16 11:15:43.000000000 -0400 Change: 2024-04-16 11:15:43.000000000 -0400 Birth: - File: '/mnt/lustre/d31b.sanity-lfsck/striped_dir/d2' Size: 4096 Blocks: 8 IO Block: 1048576 directory Device: 2c54f966h/743766374d Inode: 144115339507007493 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2024-04-16 11:15:43.000000000 -0400 Modify: 2024-04-16 11:15:43.000000000 -0400 Change: 2024-04-16 11:15:43.000000000 -0400 Birth: - File: '/mnt/lustre/d31b.sanity-lfsck/striped_dir/d3' Size: 4096 Blocks: 8 IO Block: 1048576 directory Device: 2c54f966h/743766374d Inode: 144115339507007494 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2024-04-16 11:15:43.000000000 -0400 Modify: 2024-04-16 11:15:43.000000000 -0400 Change: 2024-04-16 11:15:43.000000000 -0400 Birth: - File: '/mnt/lustre/d31b.sanity-lfsck/striped_dir/d4' Size: 4096 Blocks: 8 IO Block: 1048576 directory Device: 2c54f966h/743766374d Inode: 144115339507007495 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2024-04-16 11:15:43.000000000 -0400 Modify: 2024-04-16 11:15:43.000000000 -0400 Change: 2024-04-16 11:15:43.000000000 -0400 Birth: - File: '/mnt/lustre/d31b.sanity-lfsck/striped_dir/d5' Size: 4096 Blocks: 8 IO Block: 1048576 directory Device: 2c54f966h/743766374d Inode: 144115339507007496 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2024-04-16 11:15:43.000000000 -0400 Modify: 2024-04-16 11:15:43.000000000 -0400 Change: 2024-04-16 11:15:43.000000000 -0400 Birth: - File: '/mnt/lustre/d31b.sanity-lfsck/striped_dir/d6' Size: 4096 Blocks: 8 IO Block: 1048576 directory Device: 2c54f966h/743766374d Inode: 144115339507007497 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2024-04-16 11:15:43.000000000 -0400 Modify: 2024-04-16 11:15:43.000000000 -0400 Change: 2024-04-16 11:15:43.000000000 -0400 Birth: - File: '/mnt/lustre/d31b.sanity-lfsck/striped_dir/d7' Size: 4096 Blocks: 8 IO Block: 1048576 directory Device: 2c54f966h/743766374d Inode: 144115339507007498 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2024-04-16 11:15:43.000000000 -0400 Modify: 2024-04-16 11:15:43.000000000 -0400 Change: 2024-04-16 11:15:43.000000000 -0400 Birth: - File: '/mnt/lustre/d31b.sanity-lfsck/striped_dir/d8' Size: 4096 Blocks: 8 IO Block: 1048576 directory Device: 2c54f966h/743766374d Inode: 144115339507007499 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2024-04-16 11:15:43.000000000 -0400 Modify: 2024-04-16 11:15:43.000000000 -0400 Change: 2024-04-16 11:15:43.000000000 -0400 Birth: - File: '/mnt/lustre/d31b.sanity-lfsck/striped_dir/d9' Size: 4096 Blocks: 8 IO Block: 1048576 directory Device: 2c54f966h/743766374d Inode: 144115339507007500 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2024-04-16 11:15:43.000000000 -0400 Modify: 2024-04-16 11:15:43.000000000 -0400 Change: 2024-04-16 11:15:43.000000000 -0400 Birth: -