From: NeilBrown <neilb@suse.de>
To: Larkin Lowrey <llowrey@nuclearwinter.com>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: Kernel oops adding bitmap
Date: Tue, 20 Mar 2012 08:32:10 +1100 [thread overview]
Message-ID: <20120320083210.4a272426@notabene.brown> (raw)
In-Reply-To: <4F67627D.8050205@nuclearwinter.com>
[-- Attachment #1: Type: text/plain, Size: 4027 bytes --]
On Mon, 19 Mar 2012 11:44:45 -0500 Larkin Lowrey <llowrey@nuclearwinter.com>
wrote:
> The following command oopsed.
>
> mdadm -G --bitmap=internal /dev/md0
>
> The array is a two disk raid1 and hosts the root filesystem.
>
> Is it not possible/allowed to add a bitmap to an active/mounted array?
It is. But it is busted.
Either use an older mdadm (3.2.2 or earlier), or apply this patch
http://neil.brown.name/git?p=md;a=commitdiff;h=4474ca42e2577563a919fd3ed782e2ec55bf11a2
which has been sent to Linus already and should appear in -stable kernels in
a couple of weeks.
NeilBrown
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
index cdf36b1..239af9a 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/bitmap.c
@@ -1904,6 +1904,8 @@ location_store(struct mddev *mddev, const char *buf, size_t len)
if (mddev->pers) {
mddev->pers->quiesce(mddev, 1);
rv = bitmap_create(mddev);
+ if (!rv)
+ rv = bitmap_load(mddev);
if (rv) {
bitmap_destroy(mddev);
mddev->bitmap_info.offset = 0;
> [ 339.521575] scsi_verify_blk_ioctl: 662 callbacks suppressed
> [ 339.531128] mdadm: sending ioctl 1261 to a partition!
> [ 339.539999] mdadm: sending ioctl 1261 to a partition!
> [ 339.549504] mdadm: sending ioctl 1261 to a partition!
> [ 339.558273] mdadm: sending ioctl 1261 to a partition!
> [ 339.570764] md0: bitmap file is out of date (0 < 47) -- forcing full
> recovery
> [ 339.574628] mdadm: sending ioctl 800c0910 to a partition!
> [ 339.574635] mdadm: sending ioctl 800c0910 to a partition!
> [ 339.574646] mdadm: sending ioctl 1261 to a partition!
> [ 339.574650] mdadm: sending ioctl 1261 to a partition!
> [ 339.580825] mdadm: sending ioctl 800c0910 to a partition!
> [ 339.580832] mdadm: sending ioctl 800c0910 to a partition!
> [ 339.634433] created bitmap (1 pages) for device md0
> [ 341.719752] BUG: unable to handle kernel NULL pointer dereference at
> 0000000000000010
> [ 341.720673] IP: [<ffffffff81473cc0>] bitmap_endwrite+0x130/0x250
> [ 341.720673] PGD 0
> [ 341.720673] Oops: 0000 [#1] SMP
> [ 341.720673] CPU 1
> [ 341.720673] Modules linked in: lockd it87 hwmon_vid ip6t_REJECT
> nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter nf_conntrack_ipv4
> nf_defrag_ipv4 xt_state ip6_tables nf_conntrack keyspan
> snd_hda_codec_hdmi snd_hda_intel snd_hda_codec snd_hwdep snd_seq
> snd_seq_device microcode edac_core sp5100_tco snd_pcm edac_mce_amd
> i2c_piix4 r8169 k10temp mii serio_raw snd_timer snd soundcore
> snd_page_alloc shpchp uinput sunrpc raid456 async_raid6_recov async_pq
> raid6_pq async_xor xor async_memcpy async_tx pata_acpi ata_generic raid0
> raid1 firewire_ohci firewire_core crc_itu_t pata_atiixp mvsas libsas
> scsi_transport_sas wmi radeon ttm drm_kms_helper drm i2c_algo_bit
> i2c_core [last unloaded: scsi_wait_scan]
> [ 341.720673]
> [ 341.720673] Pid: 0, comm: swapper/1 Not tainted 3.2.9-1.fc16.x86_64
> #1 Gigabyte Technology Co., Ltd. GA-MA790GPT-UD3H/GA-MA790GPT-UD3H
> [ 341.720673] RIP: 0010:[<ffffffff81473cc0>] [<ffffffff81473cc0>]
> bitmap_endwrite+0x130/0x250
> [ 341.867091] RSP: 0018:ffff880227c43b90 EFLAGS: 00010046
> [ 341.867091] RAX: 0000000000000000 RBX: ffff8802110edd00 RCX:
> 0000000000000000
> [ 341.867091] RDX: 00000000000000a4 RSI: 00000000000008a4 RDI:
> 0000000000000000
> [ 341.867091] RBP: ffff880227c43bf0 R08: 0000000000000000 R09:
> 000000000000000b
> [ 341.867091] R10: 0000000000000000 R11: 0000000000000001 R12:
> 0000000001485d40
> [ 341.867091] R13: ffff8802110edd3c R14: 0000000000000202 R15:
> 0000000000000008
> [ 341.867091] FS: 00007fa3e76bd7c0(0000) GS:ffff880227c40000(0000)
> knlGS:0000000000000000
>
> This is all I got over the serial console.
>
> --Larkin
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2012-03-19 21:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-19 16:44 Kernel oops adding bitmap Larkin Lowrey
2012-03-19 21:32 ` NeilBrown [this message]
2012-03-19 21:40 ` Larkin Lowrey
2012-03-21 13:21 ` CoolCold
2012-03-21 13:52 ` John Robinson
2012-03-21 20:03 ` NeilBrown
2012-03-22 19:54 ` CoolCold
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=20120320083210.4a272426@notabene.brown \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=llowrey@nuclearwinter.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;
as well as URLs for NNTP newsgroup(s).