== sanity-lfsck test 20a: Handle the orphan with dummy LOV EA slot properly ========================================================== 05:11:30 (1713345090) ##### 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.0449445 s, 23.4 MB/s 257+0 records in 257+0 records out 1052672 bytes (1.1 MB) copied, 0.0438647 s, 24.0 MB/s 257+0 records in 257+0 records out 1052672 bytes (1.1 MB) copied, 0.0415538 s, 25.3 MB/s [0x200004a51: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 3309 0xced 0x240000400 1 2854 0xb26 0x280000400 [0x200004a51: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 3310 0xcee 0x240000400 1 2855 0xb27 0x280000400 [0x200004a51: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 3311 0xcef 0x240000400 1 2856 0xb28 0x280000400 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.202.104@tcp:/lustre /mnt/lustre lustre rw,checksum,flock,user_xattr,lruresize,lazystatfs,nouser_fid2path,verbose,noencrypt,statfs_project 0 0 Stopping client oleg204-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: oleg204-client.virtnet: -o user_xattr,flock oleg204-server@tcp:/lustre /mnt/lustre Check /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x1c:0x0]-R-0, which is the old f0 /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x1c:0x0]-R-0 lmm_magic: 0x0BD10BD0 lmm_seq: 0x200004a51 lmm_object_id: 0x1c lmm_fid: [0x200004a51: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 3309 0xced 0x240000400 1 2854 0xb26 0x280000400 Check /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x1d:0x0]-R-0, it contains the old f1's stripe1 /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x1d:0x0]-R-0 lmm_magic: 0x0BD10BD0 lmm_seq: 0x200004a51 lmm_object_id: 0x1d lmm_fid: [0x200004a51: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 2855 0xb27 0x280000400 cat: /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x1d:0x0]-R-0: Input/output error dd: error writing '/mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x1d:0x0]-R-0': Input/output error 1+0 records in 0+0 records out 0 bytes (0 B) copied, 0.000443476 s, 0.0 kB/s 1+0 records in 1+0 records out 4096 bytes (4.1 kB) copied, 0.0194615 s, 210 kB/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/[0x200004a51:0x1e:0x0]-R-0, it contains the old f2's stripe0 /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x1e:0x0]-R-0 lmm_magic: 0x0BD10BD0 lmm_seq: 0x200004a51 lmm_object_id: 0x1e lmm_fid: [0x200004a51: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 3311 0xcef 0x240000400 0 0 0 0 cat: /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x1e:0x0]-R-0: Input/output error dd: error writing '/mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x1e:0x0]-R-0': Input/output error 1+0 records in 0+0 records out 0 bytes (0 B) copied, 0.000520904 s, 0.0 kB/s