Skip to contentSkip to conversation

External bitmap disappears

DISCUSSION Jon Nelson 3 participants 4 messages Jun 20, 2008 – Jun 21, 2008 MD RAID

lore
Share & tools
lore

Jon Nelson

author
#0 lore raw

I've configured a raid10,f2 with an external bitmap:

mdadm --grow --bitmap=/md0.bitmap /dev/md0

The root ('/') filesystem is NOT on the raid. It's a normal partition (/dev/sdb1, the boot device actually).
After reboot, cat /proc/mdstat does not show a bitmap. What's up with that? That sure doesn't seem right.

Signature · 1 line
Jon
#1 lore raw
Quoted 8 lines · Jon Nelson

I've configured a raid10,f2 with an external bitmap:

mdadm --grow --bitmap=/md0.bitmap /dev/md0

The root ('/') filesystem is NOT on the raid. It's a normal partition (/dev/sdb1, the boot device actually).
After reboot, cat /proc/mdstat does not show a bitmap. What's up with that? That sure doesn't seem right.

If a bitmap isn't stored inside a superblock, you have to specify the same filename when ASSEMBLING the array.

Add it to mdadm.conf file.

/mjt

author
#2 lore raw

I'd like to offer a suggestion, then:

perhaps mdadm --detail --scan
could add bitmap= to it's output as appropriate?

Quoted 18 lines · Michael Tokarev
Quoted 8 lines · Jon Nelson

I've configured a raid10,f2 with an external bitmap:

mdadm --grow --bitmap=/md0.bitmap /dev/md0

The root ('/') filesystem is NOT on the raid. It's a normal partition (/dev/sdb1, the boot device actually).
After reboot, cat /proc/mdstat does not show a bitmap. What's up with that? That sure doesn't seem right.

If a bitmap isn't stored inside a superblock, you have to specify the same filename when ASSEMBLING the array.

Add it to mdadm.conf file.

/mjt

Signature · 1 line
Jon
#3 lore raw
Quoted 4 lines · Jon Nelson

I'd like to offer a suggestion, then:

perhaps mdadm --detail --scan
could add bitmap= to it's output as appropriate?

That's an excellent suggestion.

(makes note in ever-growing TODO list)

Thanks.

NeilBrown