xfs
[Top] [All Lists]

Re: how to decode metadump info produced by xfs_db, and superblock error

To: lord worm <cryptopsy@xxxxxxxx>
Subject: Re: how to decode metadump info produced by xfs_db, and superblock error
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Mon, 31 Jan 2011 14:51:31 +1100
Cc: xfs@xxxxxxxxxxx
In-reply-to: <SNT130-w32CA503F4940DD51CBE1A3DAE20@xxxxxxx>
References: <SNT130-w5507ED619ADEE5A0761FA4DAE30@xxxxxxx> <20110130071630.GE21311@dastard> <SNT130-w23319C8BC652352929903ADAE30@xxxxxxx> <20110130214026.GF21311@dastard> <SNT130-w32CA503F4940DD51CBE1A3DAE20@xxxxxxx>
User-agent: Mutt/1.5.20 (2009-06-14)
On Sun, Jan 30, 2011 at 08:21:19PM -0500, lord worm wrote:
> > Date: Mon, 31 Jan 2011 08:40:26 +1100
> > From: david@xxxxxxxxxxxxx
> > To: cryptopsy@xxxxxxxx
> > Subject: Re: how to decode metadump info produced by xfs_db, and superblock 
> > error
> > 
> > On Sun, Jan 30, 2011 at 11:33:53AM -0500, lord worm wrote:
> > > > Date: Sun, 30 Jan 2011 18:16:30 +1100
> > > > From: david@xxxxxxxxxxxxx
> > > > To: cryptopsy@xxxxxxxx
> > > > CC: xfs@xxxxxxxxxxx
> > > > Subject: Re: how to decode metadump info produced by xfs_db, and 
> > > > superblock error
> > > > 
> > > > On Sat, Jan 29, 2011 at 07:25:10PM -0500, lord worm wrote:
> > > > > 
> > > > > What kind of information is in this file produced by metadump, is it 
> > > > > worth reading it somehow?
> > > > > 
> > > > > I'm trying to first understand what's causing a 'superblock cannot
> > > > > be read' error in my XFS after a succesfully dd of the partition
> > > > > (dd succeeds in copying to a file, and also restoring, but after
> > > > > restoring it cannot mount).
> > > > 
> > > > dmesg output when the mount fails?
> > > 
> > > Could you email the mailing list next time as well, so that my
> > > forwards are directed towards everyone, please?
> > 
> > I did:
> > 
> > http://oss.sgi.com/archives/xfs/2011-01/msg00486.html
> > 
> > As for list ettiquette - please don't top post and wrap all you text
> > except for code and pasted log messages at 72 columns.....

Fixed that for you again.

> > > Here's dmesg from the backup file, but I don't have it from the original 
> > > disk after restoring it:
> > > 
> > > [  362.685464] attempt to access beyond end of device
> > > [  362.685468] loop5: rw=0, want=15662872, limit=15661056
> > > [  362.685473] I/O error in filesystem ("loop5") meta-data dev loop5 
> > > block 0xeeff17       ("xfs_read_buf") error 5 buf count 512
> > > [  362.685478] XFS: size check 2 failed
> > 
> > Simple problem - you copied the filesystem back onto a device that
> > is too small for the filesystem.
> 
> When I reply to this email, it defaults to david@xxxxxxxxxxxxx, so
> how will the others see it?

Reply to all. It's common courtesy to reply to everyone on the
cc-list for mailing list traffic as it often contains people not
subscribed to the mailing list (e.g. a person reporting a bug).

I've added the xfs list back onto the cc-list.

> I can't mount the direct dd image of the drive as a loop device
> either by the same error.

Which means you probably didn't copy the entire drive in the first
place.

> The error persists even when its not
> the filesystem that was copied back onto the device. Additionally,
> its the exact same device with the exact same partition type
> created by the exact same version of disk.

partition type doesn't matter - the size does. The above error
indicates that the loop device is 1816 sectors (908kiB) shorter than
it needs to be, so maybe you aren't recreating the partition as
large as it needs to be, too....

As it is, the question I have at this point is why are you trying to
copy the filesystem via dd? if all you want is an image, xfs_copy is
probably what you want....

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

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