From: Nicolas Stransky <nico@stransky.cx>
To: linux-xfs@oss.sgi.com
Subject: Re: Filesystem corrupted: "Sorry, could not find valid secondary superblock"
Date: Fri, 29 Jan 2010 12:41:53 -0500 [thread overview]
Message-ID: <hjv6l0$j2g$1@ger.gmane.org> (raw)
In-Reply-To: <4B631704.8080902@sandeen.net>
OK here is a bunch of new stuff:
# xfs_repair /dev/sda1
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
ERROR: The filesystem has valuable metadata changes in a log which needs
to be replayed. Mount the filesystem to replay the log, and unmount it
before re-running xfs_repair. If you are unable to mount the
filesystem, then use the -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption -- please attempt a
mount of the filesystem before doing this.
# mount/ dev/sda1
mount: Structure needs cleaning
Is the use of -L the only way to go? I wonder, since it will cause data
loss...
Also here is the output of xfs_db:
# xfs_db /dev/sda1
xfs_db> sb 0
xfs_db> p
magicnum = 0x58465342
blocksize = 4096
dblocks = 366197650
rblocks = 0
rextents = 0
uuid = dab73302-1744-4fc0-89db-5c6670a02aa0
logstart = 134217732
rootino = 128
rbmino = 129
rsumino = 130
rextsize = 16
agblocks = 6866155
agcount = 54
rbmblocks = 0
logblocks = 32768
versionnum = 0x3484
sectsize = 512
inodesize = 256
inopblock = 16
fname = "\000\000\000\000\000\000\000\000\000\000\000\000"
blocklog = 12
sectlog = 9
inodelog = 8
inopblog = 4
agblklog = 23
rextslog = 0
inprogress = 0
imax_pct = 25
icount = 4115008
ifree = 954636
fdblocks = 85242778
frextents = 0
uquotino = 0
gquotino = 0
qflags = 0
flags = 0
shared_vn = 0
inoalignmt = 2
unit = 0
width = 0
dirblklog = 0
logsectlog = 0
logsectsize = 0
logsunit = 1
features2 = 0
bad_features2 = 0
Thanks!
On 1/29/10 12:12 PM, Eric Sandeen wrote:
> Nicolas Stransky wrote:
>> On 1/29/10 10:38 AM, Eric Sandeen wrote:
>>> xfs_repair needs to be smarter about this; I at least wish it'd say
>>> -why- the candidate was not valid.
>>>
>>> Can you include the whole repair output? Then maybe we can direct
>>> you to some xfs_db jujitsu to examine the fs.
>>>
>>> Trying newer xfsprogs would not be a -bad- idea...
>>>
>>> -Eric
>>
>> The output is as follows:
>>
>> # xfs_repair /dev/sda
>> Phase 1 - find and verify superblock...
>> bad primary superblock - bad magic number !!!
>
> xfs_db /dev/sda
> xfs_db> sb 0
> xfs_db> p
>
> might be interesting to see what's there.
>
> -Eric
>
>> attempting to find secondary superblock...
>> ......................
>> found candidate secondary superblock...
>> unable to verify superblock, continuing...
>> ......................
>> found candidate secondary superblock...
>> unable to verify superblock, continuing...
>> ......................
>> [The previous one repeats hundreds of times over many hours]
>> ......................
>> Sorry, could not find valid secondary superblock
>> Exiting now.
>>
>>
>> I am trying right now xfsprogs 3.1.0 from Debian testing, will see what
>> it gives...
>>
>> Thanks!
>> NS
>>
>> _______________________________________________
>> xfs mailing list
>> xfs@oss.sgi.com
>> http://oss.sgi.com/mailman/listinfo/xfs
>>
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2010-01-29 17:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-29 14:42 Filesystem corrupted: "Sorry, could not find valid secondary superblock" Nicolas STRANSKY
2010-01-29 15:38 ` Eric Sandeen
2010-01-29 16:06 ` Nicolas Stransky
2010-01-29 17:12 ` Eric Sandeen
2010-01-29 17:41 ` Nicolas Stransky [this message]
2010-01-29 18:16 ` Eric Sandeen
2010-01-29 19:58 ` Nicolas Stransky
2010-02-01 17:29 ` Nicolas Stransky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='hjv6l0$j2g$1@ger.gmane.org' \
--to=nico@stransky.cx \
--cc=linux-xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox