xfs
[Top] [All Lists]

Re: Segfault of xfs_repair during repair of a xfs filesystem

To: linux-xfs@xxxxxxxxxxx
Subject: Re: Segfault of xfs_repair during repair of a xfs filesystem
From: Rainer Krienke <krienke@xxxxxxxxxxxxxx>
Date: Tue, 6 Jan 2004 09:49:48 +0100
Cc: Glen Overby <overby@xxxxxxx>
In-reply-to: <200401060536.i065ahX43080272@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Organization: Uni Koblenz
References: <200401050850.03928.krienke@xxxxxxxxxxxxxx> <Pine.LNX.4.44.0401050900160.12604-100000@xxxxxxxxxxxxxxxxxxxxxx> <200401060536.i065ahX43080272@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: KMail/1.5.4
On Dienstag, 6. Januar 2004 06:36, Glen Overby wrote:
> On January 5, Eric Sandeen wrote:
> > On Mon, 5 Jan 2004, Rainer Krienke wrote:
> > > For one filesystem (~150GB) this worked. xfs_repair reported some
> > > errors in the filesystem but finished its work. Next I tired to mount
> > > this filesystem but mount complained that it could not find a valid
> > > superblock. So I ran xfs_repair once again. It still found some errors
> > > (but less than before). Next I rebootet the machine and the filesystem
> > > was mounted.
> >
> > Unable to find a superblock immediately after repair?  I have never
> > seen this before, sounds very odd.  BTW running repair twice in
>
> If this still happens, It might be useful to see how much was
> overwritten, and if you recognise the data.  You can use xfs_db to
> read and print the superblock.
>
> xfs_db -r /dev/diskxyz
>
> sb 0
> print         - a formatted superblock.
> type data
> print         - a hex dump of the superblock
>

Here is the output of the commands you gave me above for the the corrupted 
filesystem that causes xfs_repair to segfault. The core dump of xfs_repair is 
available by http here: 

http://www.uni-koblenz.de/~krienke/core-xfs_repair.gz

xfs_db> print
magicnum = 0x58465342
blocksize = 4096
dblocks = 10485760
rblocks = 0
rextents = 0
uuid = aa892a25-142d-4d69-85a8-64a693561479
logstart = 5242884
rootino = 128
rbmino = 129
rsumino = 130
rextsize = 16
agblocks = 262144
agcount = 40
rbmblocks = 0
logblocks = 1280
versionnum = 0x20d4
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 = 18
rextslog = 0
inprogress = 0
imax_pct = 25
icount = 1378304
ifree = 24887
fdblocks = 536064
frextents = 0
uquotino = 131
gquotino = 132
qflags = 0x77
flags = 0
shared_vn = 0
inoalignmt = 2
unit = 0
width = 0
dirblklog = 0
logsectlog = 0
logsectsize = 0
logsunit = 0

xfs_db> type data
xfs_db> print
000: 58465342 00001000 00000000 00a00000 00000000 00000000 00000000 00000000
020: aa892a25 142d4d69 85a864a6 93561479 00000000 00500004 00000000 00000080
040: 00000000 00000081 00000000 00000082 00000010 00040000 00000028 00000000
060: 00000500 20d40200 01000010 00000000 00000000 00000000 0c090804 12000019
080: 00000000 00150800 00000000 00006137 00000000 00082e00 00000000 00000000
0a0: 00000000 00000083 00000000 00000084 00770000 00000002 00000000 00000000
0c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
100: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
120: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
140: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
180: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


Thanks
Rainer
-- 
---------------------------------------------------------------------------
Rainer Krienke, Universitaet Koblenz, Rechenzentrum, Raum A022
Universitaetsstrasse 1, 56070 Koblenz, Tel: +49 261287 -1312, Fax: -1001312
Mail: krienke@xxxxxxxxxxxxxx, Web: http://www.uni-koblenz.de/~krienke
Get my public PGP key: http://www.uni-koblenz.de/~krienke/mypgp.html
---------------------------------------------------------------------------

Attachment: pgpoeNslY1xzb.pgp
Description: signature

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