public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Kevin Richter <xfs@pzystorm.de>
To: xfs@oss.sgi.com
Subject: Re: Problem with XFS on USB 2TB HD
Date: Mon, 20 Dec 2010 03:56:05 +0100	[thread overview]
Message-ID: <4D0EC5C5.2070407@pzystorm.de> (raw)
In-Reply-To: <20101220001024.GH5193@dastard>

Thanks a lot for your responses.

> I don't have a solution to your problem unfortunately.  Keep in mind you
> posted this problem on a weekend, and one week before Christmas no less.
>  Your timing is not optimal for receiving a prompt response.  It's
> possible you may have to wait until Monday for help. :(

No problem at all. It can wait. My backup drive has indeed no real
important stuff on it - just 100% backups from other disks.
I'd just use this issue as an opportunity to try out the xfs repair
functionality.


>> It is a problem with the interaction of LUKS, XFS and USB?
>
> You are encrypting the external drive? That would explain the
> garbage then - a single bit error in a sector will render it
> completely incorrect....

Yes, I do.
aes-cbc-essiv:sha256
If the connection breaks while writing a block, only this block should
be garbled? This should be 256 bit in this case, shouldn't it?


>> ERROR: The filesystem has valuable metadata changes in a log which
>> > needs to be replayed.
> Given this message, you'll have to run xfs_repair with the zero log
> option ( -L ). This is dangerous, but it can't get much worse anyway.
> 
> Run xfs_repair -L /device , you should be able to mount your filesystem
> afterwards, however any data under change at the time of failure will
> most probably be lost.

OK, if there is no way around...

xfs_repair -L /dev/mapper/backup has run a few minutes and has printed a
lot of screens. After lines like

disconnected inode 4083355215, moving to lost+found
disconnected dir inode 4083355216, moving to lost+found

or

Phase 7 - verify and correct link counts...
resetting inode 128 nlinks from 2 to 3
...
b767c6f0: Badness in key lookup (length)
bp=(bno 0, len 4096 bytes) key=(bno 0, len 512 bytes)
done

it has succeeded in this way, that it is now at least possible to mount
the volume. But there is only the lost+found folder in there which
contains again a lot of folders and files named with numbers. Looking
deeper in these directories all the names of further files or
directories are preserved. Phew! Only the fs structure in the first
level seems to be garbled.

Checking the size of the lost+found folder, (nearly) everything seems to
be there.

Now I am asking myself: If only one 256 bit block is garbled (f. ex.
because of a terminated usb connection) all the directory and file names
in the first level gets garbled? Wicked!



Cheers,
Kevin

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2010-12-20  2:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-18 11:26 Problem with XFS on USB 2TB HD Kevin Richter
2010-12-19  2:04 ` Kevin Richter
2010-12-19  2:37   ` Stan Hoeppner
2010-12-19 14:57   ` Emmanuel Florac
2010-12-19 17:30     ` Eric Sandeen
2010-12-20  0:10 ` Dave Chinner
2010-12-20  2:56   ` Kevin Richter [this message]
2010-12-20  4:51     ` Dave Chinner
2010-12-20  9:55       ` Emmanuel Florac
2011-01-12 23:37         ` Kevin Richter
2011-01-13 13:15           ` Extreme fragmentation when backing up via NFS Phil Karn
2011-01-14  4:51             ` Dave Chinner
2011-01-13 21:52           ` Problem with XFS on USB 2TB HD Geoffrey Wehrman
2010-12-20  8:59 ` Michael Monnerie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D0EC5C5.2070407@pzystorm.de \
    --to=xfs@pzystorm.de \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox