public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Theodore Tso <tytso@mit.edu>
To: Roc Valles <vallesroc@gmail.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: EXT4-fs error (device sda3): ext4_mb_generate_buddy: EXT4-fs: group 923: 18046 blocks in bitmap, 32768 in gd
Date: Sat, 8 Nov 2008 11:43:00 -0500	[thread overview]
Message-ID: <20081108164300.GA8458@mit.edu> (raw)
In-Reply-To: <3d3ce57e0811080637k3de96b09q28abeb4ebea0463c@mail.gmail.com>

On Sat, Nov 08, 2008 at 02:37:03PM +0000, Roc Valles wrote:
> I get the following soon after booting, each time I boot:
> [  245.033381] EXT4-fs error (device sda3): ext4_mb_generate_buddy:
> EXT4-fs: group 923: 18046 blocks in bitmap, 32768 in gd
> [  245.033411]
> [  245.036258] EXT4-fs error (device sda3): ext4_mb_generate_buddy:
> EXT4-fs: group 924: 18113 blocks in bitmap, 32768 in gd
> [  245.036275]
> [  245.038909] EXT4-fs error (device sda3): ext4_mb_generate_buddy:
> EXT4-fs: group 925: 18000 blocks in bitmap, 32768 in gd
> [  245.038926]
> [  245.041258] EXT4-fs error (device sda3): ext4_mb_generate_buddy:
> EXT4-fs: group 926: 18142 blocks in bitmap, 32768 in gd
> [  245.041274]
> [  245.043624] EXT4-fs error (device sda3): ext4_mb_generate_buddy:
> EXT4-fs: group 927: 18026 blocks in bitmap, 32768 in gd

If there were subsequent boots, it's *very* interesting that that the
group numbers are sequentially increasing.  It's also interesting that
the number in the group descriptor is 32768 each time.  Andit's always
only one such error for each boot, right?

In addition to the data collection exercises we discussed over IRC,
could you try putting something which runs:

      logsave /var/cache/dumpe2fs.pre-boot dumpe2fs /dev/sda3

*before* the filesystem is mounted read-write.  (Logsave will save the
output of dumpe2fs and wait until /var/cache is writable, and then
dump the results out to the file).

Hmm... is there any chance that a rtorrent was in the middle of
downloading a file at the time when you shutdown the system?  If so,
try killing all processes which might be writing to the filesystem
(especially any rtorrent processes) before shutting down the
filesystem.  

Another question is whether mounting -o nodelalloc (on the previous
boot session) makes the problem go away.  These last two tries are
based on the assumption that the filesystem is somehow really getting
corrupted on shutdown, and since you have errors=continue, it's
getting silently fixed up in mballoc.c, and so it doesn't show up when
you unmount the filesystem and run e2fsck.  If this assumption is
true, that bogus free blocks in the superblock should show up in the
dumpe2fs, and it should also show up when you reboot via a rescue disk
and run "e2fsck -nfv /dev/sda3".

							- Ted

  reply	other threads:[~2008-11-08 16:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-08 14:37 EXT4-fs error (device sda3): ext4_mb_generate_buddy: EXT4-fs: group 923: 18046 blocks in bitmap, 32768 in gd Roc Valles
2008-11-08 16:43 ` Theodore Tso [this message]
2008-11-08 19:30   ` Roc Valles

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=20081108164300.GA8458@mit.edu \
    --to=tytso@mit.edu \
    --cc=linux-ext4@vger.kernel.org \
    --cc=vallesroc@gmail.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