linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Shanahan <kmshanah@ucwb.org.au>
To: Andreas Dilger <adilger@sun.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: ext4 bug and/or e2fsck hole
Date: Wed, 8 Apr 2009 09:09:55 +0930	[thread overview]
Message-ID: <20090407233955.GA4328@kulgan> (raw)
In-Reply-To: <20090407231324.GF3204@webber.adilger.int>

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

On Tue, Apr 07, 2009 at 04:13:24PM -0700, Andreas Dilger wrote:
> On Apr 08, 2009  06:18 +0930, Kevin Shanahan wrote:
> > I have a problem where my ext4 filesystem has been corrupted
> > previously[1], but after being repaired by e2fsck problems still
> > remain.
> > 
> > Previously, some corruption occured with the directory entries in this
> > directory which e2fsck "fixed" and was happy that the fs was
> > consistent, but things didn't quite get back to normal:
> > 
> > hermes:/srv/samba/local/apps/CIM8/Release-Notes# ls -l
> > total 3120
> > -rw-rw----+ 1 root          WUM3\it - dataadm   6320 2007-11-12 11:35 rb_200711_02.pdf
> > sr-S-----x  1     167085146        3064914020      0 1988-03-09 06:02 rc_200705_01.pdf
> > 
> > Everything looks okay there except the one file with weird
> > permissions, group and owner numbers. Look what happens when I try to
> > delete the files from this directory:
> > 
> > hermes:/srv/samba/local/apps/CIM8/Release-Notes# rm *
> > 
> > The filesystem was read-write beforehand. Here's what showed up in syslog:
> > 
> > Apr  8 05:48:58 hermes kernel: attempt to access beyond end of device
> > Apr  8 05:48:58 hermes kernel: dm-0: rw=0, want=824255763709960, limit=2147483648
> > Apr  8 05:48:58 hermes kernel: EXT4-fs error (device dm-0): ext4_xattr_delete_inode: inode 383: block 103031970463744 read error
> > Apr  8 05:48:58 hermes kernel: Aborting journal on device dm-0:8.
> > Apr  8 05:48:58 hermes kernel: Remounting filesystem read-only
> > Apr  8 05:48:58 hermes kernel: EXT4-fs error (device dm-0) in ext4_free_inode: Journal has aborted
> > 
> > So now I unmount and run fsck again:
> > 
> > hermes:~# e2fsck -p -f -v /dev/dm-0
> > /dev/dm-0: recovering journal
> 
> What version of e2fsprogs is this?  It definitely appears that the
> inode is corrupted (bad i_file_acl field), and e2fsck isn't fixing it.

Using current Debian stable release:

hermes:~# e2fsck -V
e2fsck 1.41.3 (12-Oct-2008)
        Using EXT2FS Library version 1.41.3, 12-Oct-2008

> Can you please dump this inode using "debugfs -c -R 'imap 383' /dev/dm-0"
> and "dd if=/dev/dm-0 of=/tmp/bad_inode.383.bin bs=4k count=1 skip={blocknr}".

hermes:~# debugfs -c -R 'imap 383' /dev/dm-0
debugfs 1.41.3 (12-Oct-2008)
/dev/dm-0: catastrophic mode - not reading inode or group bitmaps
383: File not found by ext2_lookup 
hermes:~# debugfs -c -R 'imap <383>' /dev/dm-0
debugfs 1.41.3 (12-Oct-2008)
/dev/dm-0: catastrophic mode - not reading inode or group bitmaps
Inode 383 is part of block group 0
        located at block 312, offset 0x0e00

hermes:~# dd if=/dev/dm-0 of=bad_inode.383.bin bs=4k count=1 skip=312
1+0 records in
1+0 records out
4096 bytes (4.1 kB) copied, 3.9273e-05 s, 104 MB/s

Cheers,
Kevin.

[-- Attachment #2: bad_inode.383.bin --]
[-- Type: application/octet-stream, Size: 4096 bytes --]

  reply	other threads:[~2009-04-07 23:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-07 20:48 ext4 bug and/or e2fsck hole Kevin Shanahan
2009-04-07 23:13 ` Andreas Dilger
2009-04-07 23:39   ` Kevin Shanahan [this message]
2009-04-07 23:51     ` Andreas Dilger
2009-04-07 23:58     ` Andreas Dilger
2009-04-08  4:43       ` Kevin Shanahan

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=20090407233955.GA4328@kulgan \
    --to=kmshanah@ucwb.org.au \
    --cc=adilger@sun.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).