== sanity-lfsck test 20a: Handle the orphan with dummy LOV EA slot properly ========================================================== 11:13:20 (1713280400) ##### The target MDT-object and some of its OST-object are lost. The LFSCK should find out the left OST-objects and re-create the MDT-object under the direcotry .lustre/lost+found/MDTxxxx/ with the partial OST-objects (LOV EA hole). New client can access the file with LOV EA hole via normal system tools or commands without crash the system. For old client, even though it cannot access the file with LOV EA hole, it should not cause the system crash. ##### 257+0 records in 257+0 records out 1052672 bytes (1.1 MB) copied, 0.0429505 s, 24.5 MB/s 257+0 records in 257+0 records out 1052672 bytes (1.1 MB) copied, 0.039858 s, 26.4 MB/s 257+0 records in 257+0 records out 1052672 bytes (1.1 MB) copied, 0.0447667 s, 23.5 MB/s [0x2000013a1:0x1c:0x0] /mnt/lustre/d20a.sanity-lfsck/a1/f0 lmm_stripe_count: 2 lmm_stripe_size: 1048576 lmm_pattern: raid0 lmm_layout_gen: 0 lmm_stripe_offset: 0 obdidx objid objid group 0 205 0xcd 0x280000401 1 70 0x46 0x2c0000401 [0x2000013a1:0x1d:0x0] /mnt/lustre/d20a.sanity-lfsck/a1/f1 lmm_stripe_count: 2 lmm_stripe_size: 1048576 lmm_pattern: raid0 lmm_layout_gen: 0 lmm_stripe_offset: 0 obdidx objid objid group 0 206 0xce 0x280000401 1 71 0x47 0x2c0000401 [0x2000013a1:0x1e:0x0] /mnt/lustre/d20a.sanity-lfsck/a1/f2 lmm_stripe_count: 2 lmm_stripe_size: 1048576 lmm_pattern: raid0 lmm_layout_gen: 0 lmm_stripe_offset: 0 obdidx objid objid group 0 207 0xcf 0x280000401 1 72 0x48 0x2c0000401 Inject failure... To simulate f0 lost MDT-object fail_loc=0x1616 To simulate f1 lost MDT-object and OST-object0 fail_loc=0x161a To simulate f2 lost MDT-object and OST-object1 fail_val=1 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:) fail_loc=0 fail_val=0 Trigger layout LFSCK on all devices to find out orphan OST-object Started LFSCK on the device lustre-MDT0000: scrub layout Starting client: oleg122-client.virtnet: -o user_xattr,flock oleg122-server@tcp:/lustre /mnt/lustre Check /mnt/lustre/.lustre/lost+found/MDT0000/[0x2000013a1:0x1c:0x0]-R-0, which is the old f0 /mnt/lustre/.lustre/lost+found/MDT0000/[0x2000013a1:0x1c:0x0]-R-0 lmm_magic: 0x0BD10BD0 lmm_seq: 0x2000013a1 lmm_object_id: 0x1c lmm_fid: [0x2000013a1:0x1c:0x0] lmm_stripe_count: 2 lmm_stripe_size: 1048576 lmm_pattern: raid0 lmm_layout_gen: 2 lmm_stripe_offset: 0 obdidx objid objid group 0 205 0xcd 0x280000401 1 70 0x46 0x2c0000401 Check /mnt/lustre/.lustre/lost+found/MDT0000/[0x2000013a1:0x1d:0x0]-R-0, it contains the old f1's stripe1 /mnt/lustre/.lustre/lost+found/MDT0000/[0x2000013a1:0x1d:0x0]-R-0 lmm_magic: 0x0BD10BD0 lmm_seq: 0x2000013a1 lmm_object_id: 0x1d lmm_fid: [0x2000013a1:0x1d:0x0] lmm_stripe_count: 2 lmm_stripe_size: 1048576 lmm_pattern: 40000001 lmm_layout_gen: 1 lmm_stripe_offset: 0 obdidx objid objid group 0 0 0 0 1 71 0x47 0x2c0000401 cat: /mnt/lustre/.lustre/lost+found/MDT0000/[0x2000013a1:0x1d:0x0]-R-0: Input/output error dd: error writing '/mnt/lustre/.lustre/lost+found/MDT0000/[0x2000013a1:0x1d:0x0]-R-0': Input/output error 1+0 records in 0+0 records out 0 bytes (0 B) copied, 0.000266908 s, 0.0 kB/s 1+0 records in 1+0 records out 4096 bytes (4.1 kB) copied, 0.00374334 s, 1.1 MB/s /home/green/git/lustre-release/lustre/tests/sanity-lfsck.sh: line 3371: echo: write error: Input/output error Check /mnt/lustre/.lustre/lost+found/MDT0000/[0x2000013a1:0x1e:0x0]-R-0, it contains the old f2's stripe0 /mnt/lustre/.lustre/lost+found/MDT0000/[0x2000013a1:0x1e:0x0]-R-0 lmm_magic: 0x0BD10BD0 lmm_seq: 0x2000013a1 lmm_object_id: 0x1e lmm_fid: [0x2000013a1:0x1e:0x0] lmm_stripe_count: 2 lmm_stripe_size: 1048576 lmm_pattern: 40000001 lmm_layout_gen: 1 lmm_stripe_offset: 0 obdidx objid objid group 0 207 0xcf 0x280000401 0 0 0 0 cat: /mnt/lustre/.lustre/lost+found/MDT0000/[0x2000013a1:0x1e:0x0]-R-0: Input/output error dd: error writing '/mnt/lustre/.lustre/lost+found/MDT0000/[0x2000013a1:0x1e:0x0]-R-0': Input/output error 1+0 records in 0+0 records out 0 bytes (0 B) copied, 0.00039507 s, 0.0 kB/s