xfs
[Top] [All Lists]

Re: XFS: SB validate failed

To: Spam Magnet <spam.wax@xxxxxxxxx>
Subject: Re: XFS: SB validate failed
From: Stefan Smietanowski <stesmi@xxxxxxxxxx>
Date: Tue, 03 Jun 2008 22:23:51 +0200
Cc: Timothy Shimmin <tes@xxxxxxx>, Eric Sandeen <sandeen@xxxxxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <3607657a0806031239l6d788868u2f5654efcabf4abc@mail.gmail.com>
References: <3607657a0805291005k457791cej1c5f867da0f95965@mail.gmail.com> <3607657a0805301019h4a49dc86ne8f1f019629a1c41@mail.gmail.com> <4840406F.50402@stesmi.com> <48408D3E.3090401@gmail.com> <48409981.1050405@stesmi.com> <48425148.1080105@gmail.com> <48427DEE.40400@stesmi.com> <3607657a0806031036r702ab6a5w7ca6517c19395b9b@mail.gmail.com> <3607657a0806031056w24efa917q625f13bfe9eaa706@mail.gmail.com> <4845949F.7080209@stesmi.com> <3607657a0806031239l6d788868u2f5654efcabf4abc@mail.gmail.com>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)
Spam Magnet wrote:
On Tue, Jun 3, 2008 at 2:59 PM, Stefan Smietanowski <stesmi@xxxxxxxxxx> wrote:
Spam Magnet wrote:
(The healthy disk image also doesn't have any XFS but it has: 'S f x'
(capital s))
Correcting my mistake:

The healthy image file does have the X F S B at 10000000  (octal) as
fdisk had reported:
Pt#          Device  Info     Start       End   Sectors  Id  System
 8: 2gb-ubuntu.img1            4096   3915599   3911504   a  SGI xfs

4096*512=2097152 (10000000 octal):
$ od -t c 2gb-ubuntu.img | grep 10000000
10000000   X   F   S   B  \0  \0 020  \0  \0  \0  \0  \0  \0  \a   u 350

I tried to see if I can find do the same thing for jaz7.img:
Pt#    Device  Info     Start       End   Sectors  Id  System
 8: jaz7.img1            3072   2091007   2087936   a  SGI xfs

$ od -t c jaz7.img | grep 6000000
6000000  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0

I guess all those zeros are not good signs.
Wait a moment. Aren't jaz sectors 2k each?

Try at 3072*2048 instead.

// Stefan


I think they are but I used -u option of fdisk: $ fdisk -ul jaz7.img Disk jaz7.img (SGI disk label): 255 heads, 63 sectors, 0 cylinders Units = sectors of 1 * 512 bytes ----- partitions ----- Pt# Device Info Start End Sectors Id System 8: jaz7.img1 3072 2091007 2087936 a SGI xfs 9: jaz7.img2 0 3071 3072 0 SGI volhdr 11: jaz7.img3 0 2091007 2091008 6 SGI volume

which lists partitions in sector units. As oppose to:

$ fdisk -l jaz7.img

Disk jaz7.img (SGI disk label): 255 heads, 63 sectors, 0 cylinders
Units = cylinders of 16065 * 512 bytes

----- partitions -----
Pt#    Device  Info     Start       End   Sectors  Id  System
 8: jaz7.img1               1       130   2087936   a  SGI xfs
 9: jaz7.img2               0         0      3072   0  SGI volhdr
11: jaz7.img3               0       130   2091008   6  SGI volume

I'd give it a shot regardless as I don't remember if the sector size is actually IN the partition table and if it's NOT then it'll show the native blocksize of the device, which is 512bytes!

Just try it, what do you have to lose? I mean do the od ..
Worst case you get garbage or zeroes.

// Stefan


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