On 2010-05-26, at 13:18, Mervini, Joseph A wrote: > I have migrated all the files that were on a damaged OST and have recreated > the software raid array and put a lustre file system on it. > > I am now at the point where I want to re-introduce it to the scratch file > system as if it was never gone. I used: > > tunefs.lustre --index=27 /dev/md4 to get the right index for the file system > (the information is below). I just want to make sure there is nothing else I > need to do before I pull the trigger will mounting it. (The things that have > me concerned are the differences in the flags, and less so the "OST > first_time update.)
The use of tunefs.lustre is not sufficient to make the new OST identical to the previous one. You should also copy the O/0/LAST_ID file, last_rcvd, and mountdata files over, at which point you don't need tunefs.lustre at all. > <pre rebuild> > > [r...@oss-scratch obdfilter]# tunefs.lustre /dev/md4 > checking for existing Lustre data: found CONFIGS/mountdata > Reading CONFIGS/mountdata > > Read previous values: > Target: scratch1-OST001b > Index: 27 > Lustre FS: scratch1 > Mount type: ldiskfs > Flags: 0x2 > (OST ) > Persistent mount opts: errors=remount-ro,extents,mballoc > Parameters: mgsnode=10.10.1...@o2ib mgsnode=10.10.1...@o2ib > failover.node=10.10.10...@o2ib > > > Permanent disk data: > Target: scratch1-OST001b > Index: 27 > Lustre FS: scratch1 > Mount type: ldiskfs > Flags: 0x2 > (OST ) > Persistent mount opts: errors=remount-ro,extents,mballoc > Parameters: mgsnode=10.10.1...@o2ib mgsnode=10.10.1...@o2ib > failover.node=10.10.10...@o2ib > > exiting before disk write. > > > <after reformat and tunefs> > > [r...@oss-scratch obdfilter]# tunefs.lustre --dryrun /dev/md4 > checking for existing Lustre data: found CONFIGS/mountdata > Reading CONFIGS/mountdata > > Read previous values: > Target: scratch1-OST001b > Index: 27 > Lustre FS: scratch1 > Mount type: ldiskfs > Flags: 0x62 > (OST first_time update ) > Persistent mount opts: errors=remount-ro,extents,mballoc > Parameters: mgsnode=10.10.1...@o2ib mgsnode=10.10.1...@o2ib > failover.node=10.10.10...@o2ib > > > Permanent disk data: > Target: scratch1-OST001b > Index: 27 > Lustre FS: scratch1 > Mount type: ldiskfs > Flags: 0x62 > (OST first_time update ) > Persistent mount opts: errors=remount-ro,extents,mballoc > Parameters: mgsnode=10.10.1...@o2ib mgsnode=10.10.1...@o2ib > failover.node=10.10.10...@o2ib > > exiting before disk write. > > > _______________________________________________ > Lustre-discuss mailing list > [email protected] > http://lists.lustre.org/mailman/listinfo/lustre-discuss Cheers, Andreas -- Andreas Dilger Lustre Technical Lead Oracle Corporation Canada Inc. _______________________________________________ Lustre-discuss mailing list [email protected] http://lists.lustre.org/mailman/listinfo/lustre-discuss
