== sanity-lfsck test 31d: Set broken striped directory (modified after broken) as read-only ========================================================== 06:18:26 (1713521906) ##### For some reason, the master MDT-object of the striped directory may lost its master LMV EA. If somebody created files under the master directly after the master LMV EA lost, then the LFSCK should NOT re-generate the master LMV EA, instead, it should change the broken striped dirctory as read-only to prevent further damage ##### Inject failure stub on MDT0 to simulate the case that the master MDT-object of the striped directory lost the LMV EA. fail_loc=0x1629 fail_loc=0x0 192.168.202.102@tcp:/lustre /mnt/lustre lustre rw,checksum,flock,user_xattr,lruresize,lazystatfs,nouser_fid2path,verbose,noencrypt,statfs_project 0 0 Stopping client oleg202-client.virtnet /mnt/lustre (opts:) Stopping /mnt/lustre-mds1 (opts:) on oleg202-server Starting mds1: -o localrecov /dev/mapper/mds1_flakey /mnt/lustre-mds1 oleg202-server: oleg202-server.virtnet: executing set_default_debug vfstrace rpctrace dlmtrace neterror ha config ioctl super lfsck all pdsh@oleg202-client: oleg202-server: ssh exited with exit code 1 Started lustre-MDT0000 Starting client: oleg202-client.virtnet: -o user_xattr,flock oleg202-server@tcp:/lustre /mnt/lustre Trigger namespace LFSCK to find out the inconsistency Started LFSCK on the device lustre-MDT0000: scrub namespace File: '/mnt/lustre/d31d.sanity-lfsck/striped_dir/dummy' Size: 0 Blocks: 0 IO Block: 4194304 regular empty file Device: 2c54f966h/743766374d Inode: 144115373044662273 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2024-04-19 06:18:42.000000000 -0400 Modify: 2024-04-19 06:18:42.000000000 -0400 Change: 2024-04-19 06:18:42.000000000 -0400 Birth: - touch: cannot touch '/mnt/lustre/d31d.sanity-lfsck/striped_dir/foo': Permission denied Trigger namespace LFSCK to find out the inconsistency Started LFSCK on the device lustre-MDT0000: scrub namespace Stopping /mnt/lustre-mds1 (opts:) on oleg202-server Starting mds1: -o localrecov /dev/mapper/mds1_flakey /mnt/lustre-mds1 oleg202-server: oleg202-server.virtnet: executing set_default_debug vfstrace rpctrace dlmtrace neterror ha config ioctl super lfsck all pdsh@oleg202-client: oleg202-server: ssh exited with exit code 1 Started lustre-MDT0000