On Fri, 13 Feb 2015 17:46:46 +0800 gary <gary.mdjiang@xxxxxxxxx> 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:
pgpVzI3Wq5EBq.pgp
Description: OpenPGP digital signature