== sanity-lfsck test 18b: Find out orphan OST-object and repair it (2) ========================================================== 06:13:10 (1713521590) ##### The target MDT-object is lost. The LFSCK should re-create the MDT-object under .lustre/lost+found/MDTxxxx. The admin should can move it back to normal namespace manually. ##### 2+0 records in 2+0 records out 2097152 bytes (2.1 MB) copied, 0.0252639 s, 83.0 MB/s [0x200000402:0x75:0x0] /mnt/lustre/d18b.sanity-lfsck/a1/f1 lmm_stripe_count: 1 lmm_stripe_size: 4194304 lmm_pattern: raid0 lmm_layout_gen: 0 lmm_stripe_offset: 0 obdidx objid objid group 0 110 0x6e 0x280000401 2+0 records in 2+0 records out 2097152 bytes (2.1 MB) copied, 0.0270149 s, 77.6 MB/s [0x240000402:0x4:0x0] /mnt/lustre/d18b.sanity-lfsck/a2/f2 lmm_stripe_count: 2 lmm_stripe_size: 1048576 lmm_pattern: raid0 lmm_layout_gen: 0 lmm_stripe_offset: 1 obdidx objid objid group 1 3 0x3 0x2c0000400 0 3 0x3 0x280000400 2+0 records in 2+0 records out 2097152 bytes (2.1 MB) copied, 0.0370265 s, 56.6 MB/s [0x200000402:0x76:0x0] /mnt/lustre/d18b.sanity-lfsck/f3 lcm_layout_gen: 3 lcm_mirror_count: 1 lcm_entry_count: 2 lcme_id: 1 lcme_mirror_id: 0 lcme_flags: init lcme_extent.e_start: 0 lcme_extent.e_end: 1048576 lmm_stripe_count: 1 lmm_stripe_size: 1048576 lmm_pattern: raid0 lmm_layout_gen: 0 lmm_stripe_offset: 0 lmm_objects: - 0: { l_ost_idx: 0, l_fid: [0x280000401:0x6f:0x0] } lcme_id: 2 lcme_mirror_id: 0 lcme_flags: init lcme_extent.e_start: 1048576 lcme_extent.e_end: EOF lmm_stripe_count: 1 lmm_stripe_size: 1048576 lmm_pattern: raid0 lmm_layout_gen: 0 lmm_stripe_offset: 1 lmm_objects: - 0: { l_ost_idx: 1, l_fid: [0x2c0000401:0x3:0x0] } Inject failure, to simulate the case of missing the MDT-object fail_loc=0x1616 fail_loc=0x1616 fail_loc=0 fail_loc=0 Trigger layout LFSCK --dryrun to find out orphan OST-object Started LFSCK on the device lustre-MDT0000: scrub layout Trigger layout LFSCK on all devices to find out orphan OST-object Started LFSCK on the device lustre-MDT0000: scrub layout Move the files from ./lustre/lost+found/MDTxxxx to namespace [0x200000402:0x75:0x0] /mnt/lustre/d18b.sanity-lfsck/a1/f1 lmm_stripe_count: 1 lmm_stripe_size: 4194304 lmm_pattern: raid0 lmm_layout_gen: 1 lmm_stripe_offset: 0 obdidx objid objid group 0 110 0x6e 0x280000401 [0x240000402:0x4:0x0] /mnt/lustre/d18b.sanity-lfsck/a2/f2 lmm_stripe_count: 2 lmm_stripe_size: 1048576 lmm_pattern: raid0 lmm_layout_gen: 2 lmm_stripe_offset: 1 obdidx objid objid group 1 3 0x3 0x2c0000400 0 3 0x3 0x280000400 [0x200000402:0x76:0x0] /mnt/lustre/d18b.sanity-lfsck/f3 lcm_layout_gen: 1 lcm_mirror_count: 1 lcm_entry_count: 2 lcme_id: 1 lcme_mirror_id: 0 lcme_flags: init lcme_extent.e_start: 0 lcme_extent.e_end: 1048576 lmm_stripe_count: 1 lmm_stripe_size: 1048576 lmm_pattern: raid0 lmm_layout_gen: 1 lmm_stripe_offset: 0 lmm_objects: - 0: { l_ost_idx: 0, l_fid: [0x280000401:0x6f:0x0] } lcme_id: 2 lcme_mirror_id: 0 lcme_flags: init lcme_extent.e_start: 1048576 lcme_extent.e_end: EOF lmm_stripe_count: 1 lmm_stripe_size: 1048576 lmm_pattern: raid0 lmm_layout_gen: 1 lmm_stripe_offset: 1 lmm_objects: - 0: { l_ost_idx: 1, l_fid: [0x2c0000401:0x3:0x0] } The file size should be correct after layout LFSCK scanning