From: tytso@thunk.org (Theodore Ts'o)
To: Andreas Dilger <adilger@dilger.ca>
Cc: "kaefert@gmail.com" <kaefert@gmail.com>, linux-ext4@vger.kernel.org
Subject: Re: e2fsck extremly slow after: EXT4-fs.. ext4_check_descriptors: Checksum for group .. failed
Date: Tue, 13 Nov 2012 16:24:00 -0500 [thread overview]
Message-ID: <20121113212400.GA13850@thunk.org> (raw)
In-Reply-To: <7CDB2F8F-6316-424C-8F37-5E5CEEF8F29D@dilger.ca>
To follow up on the list since Thomas and I have had a number of
e-mail exchanges that were off-list, and he has sent me an compressed,
raw e2image dump of his file system which I have investigated
The proximate cause of the fs corruption seems to be a few inode table
blocks written offset by a 1024 bytes --- there were 3 pairs of inodes
of the form (N, N+4) which had the exact same contents in the inode
structure (same generation number, same mtime/ctime/atimes, same
extents). This pattern of corruption is quite odd given that the file
system has a 4k block size. The best bet is that the corruption
happened at the USB device layer, since the mis-written inodes were
offset by a 2 512 byte sectors, as opposed to by an incorrect block
number. Thomas tells me this particular device has had a flaky USB
controller and this is the not the first such failure.
There also seems to be a bug in e2fsck which caused it not to be able
to repair the corrupted file system. I have not had a chance to track
down the bug yet. It may have been caused by how we handle extent
tree blocks getting cached while trying to clone the data block.
Something which we should fix, but ultimately, the use of metadata
checksums is going to be the best way to deal with cases of the inode
table block getting written to the wrong place on disk, since we will
then know which inode not to trust, and just have e2fsck zap it.
Speaking of zapping, I've given Thomas instructions on how to clri
three of the duplicated inodes using debugfs, and that allowed e2fsck
to be able to repair his file system. He will have suffered some data
loss due to the corrupted inode table, but at least this way he'll be
able to gain access to most of the files on the disk.
- Ted
next prev parent reply other threads:[~2012-11-13 21:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-07 8:23 e2fsck extremly slow after: EXT4-fs.. ext4_check_descriptors: Checksum for group .. failed kaefert
2012-11-09 0:01 ` Theodore Ts'o
2012-11-09 6:05 ` kaefert
2012-11-11 18:14 ` kaefert
2012-11-12 16:16 ` Theodore Ts'o
2012-11-12 16:29 ` kaefert
2012-11-13 21:09 ` Andreas Dilger
2012-11-13 21:24 ` Theodore Ts'o [this message]
2012-11-15 11:51 ` kaefert
2012-11-16 18:14 ` Theodore Ts'o
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=20121113212400.GA13850@thunk.org \
--to=tytso@thunk.org \
--cc=adilger@dilger.ca \
--cc=kaefert@gmail.com \
--cc=linux-ext4@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).