<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Doh! Sorry to hear about your dead mdt. I'm no expert but something along the lines of the following may work-</div><div><br></div><div><span class="Apple-style-span" style="font-family: courier; white-space: pre; ">1. mke2fs -j -J size=400 -I {inode_size} -i 4096 {new mdt dev}</span></div><div><font class="Apple-style-span" face="courier"><span class="Apple-style-span" style="white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="courier"><span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="font-family: Times; white-space: normal; ">where <kbd class="Command" style="font-family: courier; font-weight: normal; white-space: pre; ">{inode_size}</kbd> is at least 512 and possibly larger if the default stripe count is <strong>> 10 (inode_size = power_of_2_>=_than(384 + stripe_count * 24))</strong></span></span></font></div><div><font class="Apple-style-span" face="Times"><b><br></b></font></div><div><font class="Apple-style-span" face="courier"><span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="font-family: Times; white-space: normal; "><strong><span class="Apple-style-span" style="font-family: courier; font-weight: normal; white-space: pre; "><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="Times"><b>     </b></font></span>tune2fs -O dir_index {new mdt dev}</span></strong></span></span></font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">2. Mount the new mdt as ldiskfs (mount -o ldiskfs) at say /mnt/mdt</font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">3. Restore ROOT and your eas.  (unmount the mdt)</font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">4. Run tunefs.lustre --fsname={fsname} --mdt --mgs --writeconf {new mdt dev } on the new mdt</font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">5. Shutdown all your osts</font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">6. Run tunefs.lustre --writeconf on your osts</font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">7. Pray to the lustre gods for mercy</font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">8. Mount your mdt as lustre (mount -o lustre)</font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">9. Re-mount your osts and hope for the best</font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">Hopefully one of the lustre experts on this list will comment on the above with a "yep that'll work" or "you gotta be crazy to do that"</font></div><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">-Aaron</font></div><br><div><div>On Sep 28, 2009, at 1:32 PM, Matt Franks wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br>Ok, here's a good one...<br><br>I have a lustre set up with version 1.8. Its has a combo mdt/mgs on one machine and three OSSs with a couple of OSTs on each. <br><br>The array that the mdt/mgs was on died and decided to stay dead, taking its data with it. But, I thought, no problem I have my file level backup that I did a couple of days ago. But owing to a typo in the script I ran, I only got the tar and getfattr of the ROOT directory, rather than the whole volume.<br>
<br>My question to the lustre public is.. is it possible to recover the data on the OSTs using this? If so, can anyone lend any pointers? (If, in theory its not possible, I'll stop banging my head against the wall and move on)<br>
<br>Any advice appreciated!<br>
_______________________________________________<br>Lustre-discuss mailing list<br><a href="mailto:Lustre-discuss@lists.lustre.org">Lustre-discuss@lists.lustre.org</a><br>http://lists.lustre.org/mailman/listinfo/lustre-discuss<br></blockquote></div><br></body></html>