xfs
[Top] [All Lists]

Re: Filesystem corrupted: "Sorry, could not find valid secondary superbl

To: linux-xfs@xxxxxxxxxxx
Subject: Re: Filesystem corrupted: "Sorry, could not find valid secondary superblock"
From: Nicolas Stransky <nico@xxxxxxxxxxx>
Date: Fri, 29 Jan 2010 12:41:53 -0500
In-reply-to: <4B631704.8080902@xxxxxxxxxxx>
References: <hjus58$6oi$1@xxxxxxxxxxxxx> <4B63010D.1080608@xxxxxxxxxxx> <hjv12n$r2o$1@xxxxxxxxxxxxx> <4B631704.8080902@xxxxxxxxxxx>
Sender: news <news@xxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.7) Gecko/20100128 Shredder/3.0.2pre
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@xxxxxxxxxxx
>> http://oss.sgi.com/mailman/listinfo/xfs
>>
> 
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs
> 


<Prev in Thread] Current Thread [Next in Thread>