From: NeilBrown <neilb@suse.de>
To: gary <gary.mdjiang@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: mdadm failed to remove internal bitmap
Date: Mon, 16 Feb 2015 14:34:19 +1100 [thread overview]
Message-ID: <20150216143419.553cf93e@notabene.brown> (raw)
In-Reply-To: <54DDC806.5010803@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1717 bytes --]
On Fri, 13 Feb 2015 17:46:46 +0800 gary <gary.mdjiang@gmail.com> wrote:
> Hi,
>
> I used v3.3.1 mdadm to do some test for bitmap, but when switch bitmap from
> internal to none, the output shows fail info about remove internal
> bitmap, is it
> just a warning? Since the bitmap seems to be cleared, and it doesn't
> show with
> v3.2.6 mdadm with the same steps.
>
> linux:~ # mdadm --create md0 --raid-devices=2 --level=mirror
> --assume-clean /dev/vdb /dev/vdc
> mdadm: Note: this array has metadata at the start and
> may not be suitable as a boot device. If you plan to
> store '/boot' on this device please ensure that
> your boot-loader understands md/v1.x metadata, or use
> --metadata=0.90
> Continue creating array? y
> mdadm: Defaulting to version 1.2 metadata
> mdadm: array /dev/md/md0 started.
> linux:~ # cat /proc/mdstat
> Personalities : [raid1]
> md127 : active raid1 vdc[1] vdb[0]
> 523712 blocks super 1.2 [2/2] [UU]
>
> unused devices: <none>
> linux:~ # mdadm --grow --bitmap=internal /dev/md127
> linux:~ # cat /proc/mdstat
> Personalities : [raid1]
> md127 : active raid1 vdc[1] vdb[0]
> 523712 blocks super 1.2 [2/2] [UU]
> bitmap: 1/1 pages [4KB], 65536KB chunk
>
> unused devices: <none>
> linux:~ # mdadm --grow --bitmap=none /dev/md127
> mdadm: failed to remove internal bitmap.
> linux:~ # cat /proc/mdstat
> Personalities : [raid1]
> md127 : active raid1 vdc[1] vdb[0]
> 523712 blocks super 1.2 [2/2] [UU]
>
> unused devices: <none>
>
I cannot reproduce this.
What kernel are you running?
Please use "strace" on mdadm in a case where it fails, and post the result.
NeilBrown
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
next prev parent reply other threads:[~2015-02-16 3:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-13 9:46 mdadm failed to remove internal bitmap gary
2015-02-16 3:34 ` NeilBrown [this message]
2015-02-16 6:42 ` gary
2015-02-16 6:48 ` NeilBrown
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=20150216143419.553cf93e@notabene.brown \
--to=neilb@suse.de \
--cc=gary.mdjiang@gmail.com \
--cc=linux-raid@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).