<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">[ cc'd the XFS list again - please keep problem triage on the public</span><br style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">lists so that more than one person can help you. ]</span></blockquote><div><br></div><div>My bad, I am sorry, sometimes I forget to press the reply to all button. </div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">It's still possible to recover, but more info is needed first.<br>
</span><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">Can you get xfs_db to dump the primary and a couple of secondary<br></span><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">superblocks?</span></blockquote>
<div><br></div><div>I am glad to hear that, I have actually already extracted the files that I needed using <span style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-family:verdana,arial,sans-serif;font-size:11px">UFS explorer, but I still would like to restore the filesystem if it is possible.</span> </div>
<div><br></div><div>Output of "<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">xfs_db -c "sb 0" -c p -c "sb 2" -c p -c "sb 7" -c p <dev>"</span></div>
<div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
xfs_db: cannot init perag data (117)<br>magicnum = 0x58465342<br>blocksize = 4096<br>dblocks = 131072000<br>rblocks = 0<br>rextents = 0<br>uuid = 430d1253-0d52-401b-b6bd-42e23bb56bc3<br>logstart = 67108868<br>rootino = 128<br>
rbmino = 129<br>rsumino = 130<br>rextsize = 1<br>agblocks = 32768000<br>agcount = 4<br>rbmblocks = 0<br>logblocks = 64000<br>versionnum = 0xb4a4<br>sectsize = 512<br>inodesize = 256<br>inopblock = 16<br>fname = "\000\000\000\000\000\000\000\000\000\000\000\000"<br>
blocklog = 12<br>sectlog = 9<br>inodelog = 8<br>inopblog = 4<br>agblklog = 25<br>rextslog = 0<br>inprogress = 0<br>imax_pct = 25<br>icount = 256<br>ifree = 200<br>fdblocks = 127617831<br>frextents = 0<br>uquotino = 0<br>gquotino = 0<br>
qflags = 0<br>flags = 0<br>shared_vn = 0<br>inoalignmt = 2<br>unit = 0<br>width = 0<br>dirblklog = 0<br>logsectlog = 0<br>logsectsize = 0<br>logsunit = 1<br>features2 = 0xa<br>bad_features2 = 0xa<br>magicnum = 0x58465350<br>
blocksize = 4096<br>dblocks = 7566328849834176030<br>rblocks = 70481084416<br>rextents = 5638878729879945216<br>uuid = 5de3e560-0f52-401b-854a-acfc3bb56bfb<br>logstart = 7566047375040578052<br>rootino = 18374686479671613439<br>
rbmino = 18446744071377518559<br>rsumino = null<br>rextsize = 1<br>agblocks = 32768000<br>agcount = 4<br>rbmblocks = 1073782799<br>logblocks = 64000<br>versionnum = 0xa4a4<br>sectsize = 512<br>inodesize = 267<br>inopblock = 16<br>
fname = "3\367\356\036\000\000\000`i\000\000\000"<br>blocklog = 66<br>sectlog = 64<br>inodelog = 190<br>inopblog = 133<br>agblklog = 27<br>rextslog = 3<br>inprogress = 1<br>imax_pct = 25<br>icount = 0<br>ifree = 72057594037927936<br>
fdblocks = 131054064<br>frextents = 5891388165771235349<br>uquotino = 13746228866238942976<br>gquotino = 13746228866238942976<br>qflags = 0xd0de<br>flags = 0x17<br>shared_vn = 97<br>inoalignmt = 33554434<br>unit = 418391552<br>
width = 0<br>dirblklog = 0<br>logsectlog = 0<br>logsectsize = 0<br>logsunit = 506003457<br>features2 = 0x8<br>bad_features2 = 0xa<br>bad allocation group number 7<br>magicnum = 0x58465350<br>blocksize = 4096<br>dblocks = 7566328849834176030<br>
rblocks = 70481084416<br>rextents = 5638878729879945216<br>uuid = 5de3e560-0f52-401b-854a-acfc3bb56bfb<br>logstart = 7566047375040578052<br>rootino = 18374686479671613439<br>rbmino = 18446744071377518559<br>rsumino = null<br>
rextsize = 1<br>agblocks = 32768000<br>agcount = 4<br>rbmblocks = 1073782799<br>logblocks = 64000<br>versionnum = 0xa4a4<br>sectsize = 512<br>inodesize = 267<br>inopblock = 16<br>fname = "3\367\356\036\000\000\000`i\000\000\000"<br>
blocklog = 66<br>sectlog = 64<br>inodelog = 190<br>inopblog = 133<br>agblklog = 27<br>rextslog = 3<br>inprogress = 1<br>imax_pct = 25<br>icount = 0<br>ifree = 72057594037927936<br>fdblocks = 131054064<br>frextents = 5891388165771235349<br>
uquotino = 13746228866238942976<br>gquotino = 13746228866238942976<br>qflags = 0xd0de<br>flags = 0x17<br>shared_vn = 97<br>inoalignmt = 33554434<br>unit = 418391552<br>width = 0<br>dirblklog = 0<br>logsectlog = 0<br>logsectsize = 0<br>
logsunit = 506003457<br>features2 = 0x8<br>bad_features2 = 0xa</blockquote></span></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 18, 2013 at 7:34 PM, Dave Chinner <span dir="ltr"><<a href="mailto:david@fromorbit.com" target="_blank">david@fromorbit.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">[ cc'd the XFS list again - please keep problem triage on the public<br>
lists so that more than one person can help you. ]<br>
<div class="im"><br>
On Mon, Dec 16, 2013 at 02:53:03PM -0200, Rafael Weingartner wrote:<br>
> Today, I let the command xfs_repair /dev/... ran till it finished, I got<br>
> the following messages:<br>
><br>
> Phase 1 - Find and verify superblock ....<br>
> > Could not verify primary superblock - not enough secondary superblocks<br>
> > with matching geometry!!<br>
<br>
</div>The primary superblock dump looked valid, but it it couldn't find<br>
matching secondary superblocks from the contents of the primary that<br>
it found.<br>
<div class="im"><br>
> > attempting to find a secondary superblock.....<br>
> > ...<br>
> > ..<br>
> > ...<br>
> > ...<br>
> > found candidate secondary superblock....<br>
> > unable to verify superblock, continuing....<br>
<br>
</div>And it found blocks with the correct superbloc magic numbers, but<br>
they don't match the primary superblock that was found.<br>
<div class="im"><br>
> > found candidate secondary superblock....<br>
> > unable to verify superblock, continuing...<br>
> > ...<br>
> > ...<br>
> > ..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Sorry,<br>

> > could not find valid secondary superblock<br>
> > Exiting now.<br>
><br>
><br>
> Should I upgrade the xfsprogs and try to run the xfs_repair again?<br>
> Or does that message mean that there is no way of recovering the filesystem?<br>
<br>
</div>It's still possible to recover, but more info is needed first.<br>
Can you get xfs_db to dump the primary and a couple of secondary<br>
superblocks?<br>
<br>
# xfs_db -c "sb 0" -c p -c "sb 2" -c p -c "sb 7" -c p <dev><br>
<br>
And post the output?<br>
<div class="HOEnZb"><div class="h5"><br>
Cheers,<br>
<br>
Dave.<br>
--<br>
Dave Chinner<br>
<a href="mailto:david@fromorbit.com">david@fromorbit.com</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Rafael Weingärtner</div>
</div>