From: bugzilla-daemon@bugzilla.kernel.org
To: linux-ext4@vger.kernel.org
Subject: [Bug 15576] New: Data Loss (flex_bg and ext4_mb_generate_buddy errors)
Date: Fri, 19 Mar 2010 01:05:23 GMT [thread overview]
Message-ID: <bug-15576-13602@http.bugzilla.kernel.org/> (raw)
http://bugzilla.kernel.org/show_bug.cgi?id=15576
Summary: Data Loss (flex_bg and ext4_mb_generate_buddy errors)
Product: File System
Version: 2.5
Kernel Version: Linux elitemx-desktop 2.6.31-20-generic #58-Ubuntu SMP
Fri Mar 12 05:23:09 UTC 2010 i686 GNU/Linux
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: ext4
AssignedTo: fs_ext4@kernel-bugs.osdl.org
ReportedBy: xpenev@gmail.com
Regression: No
# create a 484 cylinder disk [3.7 GB]
dd of=disk.bin bs=512 count=0 seek=$((484*255*63))
# associate with loop device
losetup /dev/loop0 disk.bin
# generate bad blocks file [600 MB]
for((i=360491;i<=497992;i++)); do echo $i; done > omit
# format disk with ext4
mkfs.ext4 -l omit /dev/loop0
# mount disk
mkdir foobar; mount /dev/loop0 foobar
# create a 2 GB file
cd foobar; dd if=/dev/zero bs=1024 count=$((1024 * 1024 * 2))
# check dmesg
[ 9200.006021] EXT4-fs error (device loop0): ext4_mb_generate_buddy: EXT4-fs:
group 12: 0 blocks in bitmap, 2 in gd
[ 9200.010311] EXT4-fs error (device loop0): ext4_mb_generate_buddy: EXT4-fs:
group 13: 0 blocks in bitmap, 2 in gd
[ 9200.010359] EXT4-fs error (device loop0): ext4_mb_generate_buddy: EXT4-fs:
group 14: 0 blocks in bitmap, 2 in gd
[ 9200.010683] EXT4-fs error (device loop0): ext4_mb_generate_buddy: EXT4-fs:
group 15: 9911 blocks in bitmap, 9913 in gd
Worse off, however, if rather than creating a 2 GB file, you use this partition
as the target root partition for installation using the latest [32-bit] Ubuntu
installer ... consistently at 57 percent of the install ext4 reports data loss.
[ 1129.344600] EXT4-fs error (device sda1): ext4_mb_generate_buddy: EXT4-fs:
group 12: 0 blocks in bitmap, 2 in gd
[ 1129.344626] Aborting journal on device sda1:8.
[ 1129.380671] EXT4-fs error (device sda1): ext4_journal_start_sb: Detected
aborted journal
[ 1129.380697] EXT4-fs (sda1): Remounting filesystem read-only
[ 1129.492154] EXT4-fs (sda1): Remounting filesystem read-only
[ 1129.542049] EXT4-fs error (device sda1): ext4_mb_generate_buddy: EXT4-fs:
group 13: 0 blocks in bitmap, 2 in gd
[ 1129.554043] EXT4-fs error (device sda1): ext4_mb_generate_buddy: EXT4-fs:
group 14: 0 blocks in bitmap, 2 in gd
[ 1129.574283] EXT4-fs error (device sda1): ext4_mb_generate_buddy: EXT4-fs:
group 15: 9911 blocks in bitmap, 9913 in gd
[ 1129.574343] mpage_da_map_blocks block allocation failed for inode 41510 at
logical offset 0 with max blocks 6 with error -30
[ 1129.574352] This should not happen.!! Data will be lost
[ 1129.574393] ext4_da_writepages: jbd2_start: 1000 pages, ino 41510; err -30
[ 1129.574406] Pid: 11796, comm: pdflush Not tainted 2.6.31-14-generic
#48-Ubuntu
[ 1129.574414] Call Trace:
[ 1129.574440] [<c056e41c>] ? printk+0x18/0x1c
[ 1129.574456] [<c0266162>] ext4_da_writepages+0x452/0x490
[ 1129.574474] [<c01ba551>] do_writepages+0x21/0x40
[ 1129.574489] [<c02033fe>] writeback_single_inode+0x16e/0x3d0
[ 1129.574503] [<c0150510>] ? process_timeout+0x0/0x10
[ 1129.574515] [<c0203afd>] generic_sync_sb_inodes+0x38d/0x4a0
[ 1129.574528] [<c0203ced>] writeback_inodes+0x4d/0xe0
[ 1129.574539] [<c01b9432>] wb_kupdate+0xa2/0x110
[ 1129.574551] [<c01bac27>] __pdflush+0xf7/0x1f0
[ 1129.574562] [<c01bad20>] ? pdflush+0x0/0x40
[ 1129.574573] [<c01bad20>] ? pdflush+0x0/0x40
[ 1129.574583] [<c01bad59>] pdflush+0x39/0x40
[ 1129.574594] [<c01b9390>] ? wb_kupdate+0x0/0x110
[ 1129.574606] [<c015bf8c>] kthread+0x7c/0x90
[ 1129.574616] [<c015bf10>] ? kthread+0x0/0x90
[ 1129.574630] [<c0104007>] kernel_thread_helper+0x7/0x10
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
next reply other threads:[~2010-03-19 1:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-19 1:05 bugzilla-daemon [this message]
2010-03-21 23:43 ` [Bug 15576] New: Data Loss (flex_bg and ext4_mb_generate_buddy errors) tytso
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=bug-15576-13602@http.bugzilla.kernel.org/ \
--to=bugzilla-daemon@bugzilla.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.