== sanity-lfsck test 20a: Handle the orphan with dummy LOV EA slot properly ========================================================== 05:06:06 (1713344766) ##### 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.0531518 s, 19.8 MB/s 257+0 records in 257+0 records out 1052672 bytes (1.1 MB) copied, 0.049304 s, 21.4 MB/s 257+0 records in 257+0 records out 1052672 bytes (1.1 MB) copied, 0.0440249 s, 23.9 MB/s [0x200004a51:0x24: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 3853 0xf0d 0 1 3398 0xd46 0 [0x200004a51:0x25: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 3854 0xf0e 0 1 3399 0xd47 0 [0x200004a51:0x26: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 3855 0xf0f 0 1 3400 0xd48 0 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.103@tcp:/lustre /mnt/lustre lustre rw,checksum,flock,user_xattr,lruresize,lazystatfs,nouser_fid2path,verbose,noencrypt 0 0 Stopping client oleg103-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: oleg103-client.virtnet: -o user_xattr,flock oleg103-server@tcp:/lustre /mnt/lustre Check /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x24:0x0]-R-0, which is the old f0 /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x24:0x0]-R-0 lmm_magic: 0x0BD10BD0 lmm_seq: 0x200004a51 lmm_object_id: 0x24 lmm_fid: [0x200004a51:0x24: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 3853 0xf0d 0 1 3398 0xd46 0 Check /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x25:0x0]-R-0, it contains the old f1's stripe1 /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x25:0x0]-R-0 lmm_magic: 0x0BD10BD0 lmm_seq: 0x200004a51 lmm_object_id: 0x25 lmm_fid: [0x200004a51:0x25: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 3399 0xd47 0 cat: /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x25:0x0]-R-0: Input/output error dd: error writing '/mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x25:0x0]-R-0': Input/output error 1+0 records in 0+0 records out 0 bytes (0 B) copied, 0.00308678 s, 0.0 kB/s 1+0 records in 1+0 records out 4096 bytes (4.1 kB) copied, 0.0108096 s, 379 kB/s /home/green/git/lustre-release/lustre/tests/sanity-lfsck.sh: line 3365: echo: write error: Input/output error Check /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x26:0x0]-R-0, it contains the old f2's stripe0 /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x26:0x0]-R-0 lmm_magic: 0x0BD10BD0 lmm_seq: 0x200004a51 lmm_object_id: 0x26 lmm_fid: [0x200004a51:0x26: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 3855 0xf0f 0 0 0 0 0 cat: /mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x26:0x0]-R-0: Input/output error dd: error writing '/mnt/lustre/.lustre/lost+found/MDT0000/[0x200004a51:0x26:0x0]-R-0': Input/output error 1+0 records in 0+0 records out 0 bytes (0 B) copied, 0.000893228 s, 0.0 kB/s