public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Unexpected XFS SB number 0x00000000
@ 2007-04-26 19:46 Martin Eisenhardt
  2007-04-26 22:57 ` Nathan Scott
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Eisenhardt @ 2007-04-26 19:46 UTC (permalink / raw)
  To: linux-xfs

[-- Attachment #1: Type: text/plain, Size: 878 bytes --]

Hello list(s),

I run XFS on a software raid on Linux 2.6.19. When I invoke xfs_db in 
read-only mode, I get:

# xfs_db -r /dev/md0
xfs_db: unexpected XFS SB magic number 0x00000000
xfs_db: read failed: Invalid argument
xfs_db: data size check failed
Segmentation fault

The system is still running, the filesystem seems to be fine (except for the 
above): files are created, written, and deleted without any problem.

So, I have two questions:

* Is there a real problem, or might a quick reboot solve this?
* If there is a real problem with the file system: What steps do you recommend 
to overcome this problem?
* How safe is it to run xfs_check and xfs_repair?

Thanks in advance!

Kind regards
Martin Eisenhardt

P.S.: Sorry for cross-posting, I just figure that maybe the XFS users on 
non-linux systems might have a hint or two for me ... ;-)

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* 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; 8+ 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] 8+ messages in thread
* Re: Unexpected XFS SB number 0x00000000
@ 2007-12-11 12:47 Chris
  0 siblings, 0 replies; 8+ messages in thread
From: Chris @ 2007-12-11 12:47 UTC (permalink / raw)
  To: 'Chris'; +Cc: linux-xfs

Seems like using parted to write a new partition table did the job for me.
Used 17.4kB as start and 3000GB as end.
Now being able to mount the partition successfully I ran xfs_growfs.
Afterwards, I still had to do an xfs_repair though, because there were a lot
of (seemingly) random errors when accessing certain files.
Everthing normal now... 

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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-26 19:46 Unexpected XFS SB number 0x00000000 Martin Eisenhardt
2007-04-26 22:57 ` Nathan Scott
  -- strict thread matches above, loose matches on Subject: below --
2007-12-10 21:33 Chris
2007-12-10 22:40 ` Eric Sandeen
2007-12-11  1:06   ` Chris
2007-12-11  2:12     ` Eric Sandeen
2007-12-10 22:55 ` Justin Piszcz
2007-12-11 12:47 Chris

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