public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Unexpected XFS SB number 0x00000000
@ 2007-12-10 21:33 Chris
  2007-12-10 22:40 ` Eric Sandeen
  2007-12-10 22:55 ` Justin Piszcz
  0 siblings, 2 replies; 7+ messages in thread
From: Chris @ 2007-12-10 21:33 UTC (permalink / raw)
  To: linux-xfs

Hello!

I'm running a home file server with Debian GNU/Linux 4.0 4.0r1 etch
(2.6.18-5-amd64 Kernel) and an Areca ARC-1220 hardware RAID controller.
I used to have 4 750GB HDDs connected and set up as RAID 5 array, single
volume, single XFS partition (set up during the installation of Debian). No
problems so far.

Now I added another 750GB HDD to the array, online capacity/volume expansion
by the controller finished just fine.
My plan was to add the extra space to the above mentioned XFS partition. So
I unmounted the partition, started cfdisk, removed the partition table and
wrote a new one that included the new free space. 
After rebooting the partition wasn't mounted, so I couldn't use xfs_growth
to expand the filesystem.  

xfs_check: unexpected XFS SB magic number 0x00000000

xfs_repair -n:
Phase 1 - find and verify superblock...
bad primary superblock - bad magic number !!!
attempting to find secondary superblock.......[...].............found
candidate secondary superblock...unable to verify superblock,
continuing..........[...]................
.......Sorry, could not find valid secondary superblock
Exciting now.

I realize the magic number 0x00000000 is probably not a good thing and maybe
using fdisk to write a new table was not the way to do it?
Any suggestions on restoring the old partition table / magic number or how
to proceed? Is there an easy fix or is this a serious problem?

Kind Regards,
Chris

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unexpected XFS SB number 0x00000000
  2007-12-10 21:33 Unexpected XFS SB number 0x00000000 Chris
@ 2007-12-10 22:40 ` Eric Sandeen
  2007-12-11  0:41   ` AW: " Chris
  2007-12-11  1:06   ` Chris
  2007-12-10 22:55 ` Justin Piszcz
  1 sibling, 2 replies; 7+ messages in thread
From: Eric Sandeen @ 2007-12-10 22:40 UTC (permalink / raw)
  To: Chris; +Cc: linux-xfs

Chris wrote:
> Hello!
> 
> I'm running a home file server with Debian GNU/Linux 4.0 4.0r1 etch
> (2.6.18-5-amd64 Kernel) and an Areca ARC-1220 hardware RAID controller.
> I used to have 4 750GB HDDs connected and set up as RAID 5 array, single
> volume, single XFS partition (set up during the installation of Debian). No
> problems so far.
> 
> Now I added another 750GB HDD to the array, online capacity/volume expansion
> by the controller finished just fine.
> My plan was to add the extra space to the above mentioned XFS partition. So
> I unmounted the partition, started cfdisk, removed the partition table and
> wrote a new one that included the new free space. 
> After rebooting the partition wasn't mounted, so I couldn't use xfs_growth
> to expand the filesystem.  
> 
> xfs_check: unexpected XFS SB magic number 0x00000000

Did your new partition table start in exactly the same place?

Can you find the string "XFSB" anywhere near where your old partition
started?

-Eric

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unexpected XFS SB number 0x00000000
  2007-12-10 21:33 Unexpected XFS SB number 0x00000000 Chris
  2007-12-10 22:40 ` Eric Sandeen
@ 2007-12-10 22:55 ` Justin Piszcz
  1 sibling, 0 replies; 7+ messages in thread
From: Justin Piszcz @ 2007-12-10 22:55 UTC (permalink / raw)
  To: Chris; +Cc: linux-xfs



On Mon, 10 Dec 2007, Chris wrote:

> Hello!
>
> I'm running a home file server with Debian GNU/Linux 4.0 4.0r1 etch
> (2.6.18-5-amd64 Kernel) and an Areca ARC-1220 hardware RAID controller.
> I used to have 4 750GB HDDs connected and set up as RAID 5 array, single
> volume, single XFS partition (set up during the installation of Debian). No
> problems so far.
>
> Now I added another 750GB HDD to the array, online capacity/volume expansion
> by the controller finished just fine.
> My plan was to add the extra space to the above mentioned XFS partition. So
> I unmounted the partition, started cfdisk, removed the partition table and
> wrote a new one that included the new free space.
> After rebooting the partition wasn't mounted, so I couldn't use xfs_growth
> to expand the filesystem.
>
> xfs_check: unexpected XFS SB magic number 0x00000000
>
> xfs_repair -n:
> Phase 1 - find and verify superblock...
> bad primary superblock - bad magic number !!!
> attempting to find secondary superblock.......[...].............found
> candidate secondary superblock...unable to verify superblock,
> continuing..........[...]................
> .......Sorry, could not find valid secondary superblock
> Exciting now.
>
> I realize the magic number 0x00000000 is probably not a good thing and maybe
> using fdisk to write a new table was not the way to do it?
> Any suggestions on restoring the old partition table / magic number or how
> to proceed? Is there an easy fix or is this a serious problem?
>
> Kind Regards,
> Chris
>
>

When I grew mine, I used mdadm/raid5, expanded the array and then you run 
xfs_growfs on the mounted filesystem and it worked.

Wiping out the partition is not the way to do it.

Justin.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* AW: Unexpected XFS SB number 0x00000000
  2007-12-10 22:40 ` Eric Sandeen
@ 2007-12-11  0:41   ` Chris
  2007-12-11  1:26     ` Eric Sandeen
  2007-12-11  1:06   ` Chris
  1 sibling, 1 reply; 7+ messages in thread
From: Chris @ 2007-12-11  0:41 UTC (permalink / raw)
  To: 'Eric Sandeen'; +Cc: linux-xfs

> Did your new partition table start in exactly the same place?
> 

I assumed it would be in the same place...
I guess there is no way to find out what the old one looked like?

> Can you find the string "XFSB" anywhere near where your old partition
> started?
> 

I can try to do so...how? :)
When I look into the partition with cfdisk, I can see what
cylinders/heads/sectors it uses. But I'm sure there are other tools?

Interestingly, after a reboot cfdisk shows me a 801575.31 MB partition and
2199023.26 MB free space, although I wrote a single partition of 3000598.57
MB into the table before rebooting.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unexpected XFS SB number 0x00000000
  2007-12-10 22:40 ` Eric Sandeen
  2007-12-11  0:41   ` AW: " Chris
@ 2007-12-11  1:06   ` Chris
  2007-12-11  2:12     ` Eric Sandeen
  1 sibling, 1 reply; 7+ messages in thread
From: Chris @ 2007-12-11  1:06 UTC (permalink / raw)
  To: 'Eric Sandeen'; +Cc: linux-xfs

> > Did your new partition table start in exactly the same place?
> >
>
> I assumed it would be in the same place...
> I guess there is no way to find out what the old one looked like?
>
> > Can you find the string "XFSB" anywhere near where your old partition
> > started?
> >
>
> I can try to do so...how? :)
> When I look into the partition with cfdisk, I can see what
cylinders/heads/sectors it uses. But I'm > sure there are other tools?
>
> Interestingly, after a reboot cfdisk shows me a 801575.31 MB partition and
2199023.26 MB free space, > although I wrote a single partition of
3000598.57 MB into the table before rebooting.

I just tested some more and using parted found out the following:

(parted) print
Warning: /dev/sdb contains GPT signatures, indicating that is has a GPT
table. However, it does not have a valid fake msdos partition table, as it
should. Perhaps it was corrupted --  possibly by a program that doesn't
understand GPT  partition tables. Or perhaps you deleted the GPT table, and
are now using an msdos partition table. Is this a GPT partition table?
Yes/No? y

Disk /dev/sdb: 3001GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number	Start		End		Size		File system	Name
Flags
1		17.4kB 	22250GB 	22250GB 	xfs


So it seems that parted can still "see" the old table. But it doesn't have
support for resizing xfs partitions...

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: AW: Unexpected XFS SB number 0x00000000
  2007-12-11  0:41   ` AW: " Chris
@ 2007-12-11  1:26     ` Eric Sandeen
  0 siblings, 0 replies; 7+ messages in thread
From: Eric Sandeen @ 2007-12-11  1:26 UTC (permalink / raw)
  To: Chris; +Cc: linux-xfs

Chris wrote:
>> Did your new partition table start in exactly the same place?
>>
> 
> I assumed it would be in the same place...
> I guess there is no way to find out what the old one looked like?
> 
>> Can you find the string "XFSB" anywhere near where your old partition
>> started?
>>
> 
> I can try to do so...how? :)
> When I look into the partition with cfdisk, I can see what
> cylinders/heads/sectors it uses. But I'm sure there are other tools?
> 
> Interestingly, after a reboot cfdisk shows me a 801575.31 MB partition and
> 2199023.26 MB free space, although I wrote a single partition of 3000598.57
> MB into the table before rebooting.

fat partitions can't be > 2T

-Eric

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unexpected XFS SB number 0x00000000
  2007-12-11  1:06   ` Chris
@ 2007-12-11  2:12     ` Eric Sandeen
  0 siblings, 0 replies; 7+ messages in thread
From: Eric Sandeen @ 2007-12-11  2:12 UTC (permalink / raw)
  To: Chris; +Cc: linux-xfs

Chris wrote:

> I just tested some more and using parted found out the following:
> 
> (parted) print
> Warning: /dev/sdb contains GPT signatures, indicating that is has a GPT
> table. However, it does not have a valid fake msdos partition table, as it
> should. Perhaps it was corrupted --  possibly by a program that doesn't
> understand GPT  partition tables. Or perhaps you deleted the GPT table, and
> are now using an msdos partition table. Is this a GPT partition table?
> Yes/No? y
> 
> Disk /dev/sdb: 3001GB
> Sector size (logical/physical): 512B/512B
> Partition Table: gpt
> 
> Number	Start		End		Size		File system	Name
> Flags
> 1		17.4kB 	22250GB 	22250GB 	xfs
> 
> 
> So it seems that parted can still "see" the old table. But it doesn't have
> support for resizing xfs partitions...

So, did you originally have a gpt or an msdos partition table?

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-12-11  2:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-10 21:33 Unexpected XFS SB number 0x00000000 Chris
2007-12-10 22:40 ` Eric Sandeen
2007-12-11  0:41   ` AW: " Chris
2007-12-11  1:26     ` Eric Sandeen
2007-12-11  1:06   ` Chris
2007-12-11  2:12     ` Eric Sandeen
2007-12-10 22:55 ` Justin Piszcz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox