xfs
[Top] [All Lists]

Re: How to fix bad superblock or xfs_repair: error - read only 0 of 512

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: How to fix bad superblock or xfs_repair: error - read only 0 of 512 bytes
From: Christian Kildau <lists@xxxxxxxxxxxxx>
Date: Mon, 23 Jan 2012 11:43:55 +0100
Cc: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unixhosts.org; s=google; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; bh=ek3OCkIwC1hpReOopdtE3XS4VqCwYI3gTCVK1OI8sr0=; b=rpraXF6/5Vf95QCpsJJWFBx4O9MPlCOA40g9f3+JyB3zF3U+71ronFpd+Z8WPTX9/a uTjobhTWH7mtcOF+ET4EJ6YpxeW/y4UywOAZtHI9JTIsp4/i6NN4Owt/lwStiz5j/M2W +2O52xlSF71KNNPAnOXoBuKrC9Ud6mU4cAZec=
In-reply-to: <20120123043117.GH15102@dastard>
References: <CALx8gnT9tdPRGfVR0puoSVYz_MDDs4FtWtodST5x29GDnL3A_w@xxxxxxxxxxxxxx> <20120123043117.GH15102@dastard>
Sorry, heres the right strace:

Attachment: xfs_check.strace
Description: Binary data

Attachment: xfs_repair.strace
Description: Binary data


All other output was correct!



On Jan 23, 2012, at 5:31 AM, Dave Chinner wrote:

> On Sat, Jan 21, 2012 at 11:29:15AM +0100, Christian Kildau wrote:
>> Sorry if this message appears twice!
>> 
>> 
>> 
>> Hello,
>> 
>> I'm having some very serious issues with XFS after upgrading from a
>> Linux Distro running Ubuntu 2.6.32 to 3.2.
>> 
>> It seems like my filesystems are damaged after attaching them to a
>> Linux 3.2 server. I am also no longer able to mount the hdd on the old
>> server that is still running 2.6.32!
> 
> I take it that you are using external storage of some kind? Can you
> describe it?
> 
>> (I created the xfs filesystem on the entire hdd, not on a partition,
>> so /dev/sdd is not a typo)
>> 
>> $ sudo mount -t xfs /dev/sdd /media/
>> mount: /dev/sdd: can't read superblock
>> (dmesg)
>> [236659.912663] attempt to access beyond end of device
>> [236659.912667] sdd: rw=32, want=2930277168, limit=2930275055
>> [236659.912670] XFS (sdd): last sector read failed
> 
> So XFS has asked to read 2113 sectors beyond the size of the device
> that the kernel is reporting. What is the output of
> /proc/partitions?
> 
>> $ sudo xfs_check /dev/sdd
>> xfs_check: error - read only 0 of 512 bytes
>> 
>> $ sudo xfs_repair /dev/sdd
>> Phase 1 - find and verify superblock...
>> xfs_repair: error - read only 0 of 512 bytes
> 
> So both buffered and direct IO to the first block in the block
> device are failing. I'd say your problems have nothing to do with
> XFS. However, can you strace them and find out what the error that
> is occuring actually is?
> 
> Cheers,
> 
> Dave.
> -- 
> Dave Chinner
> david@xxxxxxxxxxxxx

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