linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* assemble/hot add problem with bitmap raid1
@ 2005-07-19 13:41 Maxim Kozover
  0 siblings, 0 replies; only message in thread
From: Maxim Kozover @ 2005-07-19 13:41 UTC (permalink / raw)
  To: linux-raid

Hi Neil!
I have the problem with the following scenario if using raid1 with
bitmap on 2.6.12.2 (with drivers/md and include/linux/raid taken from
2.6.13) with pached mdadm-2.0-devel-2.
1. create raid1 from /dev/sdb and /dev/sdc, wait for resync to finish,
make /dev/sdc not ready, use the array so it feels /dev/sdc is Faulty,
stop the array, make /dev/sdc available again, assemble the array.
At this point both with bitmap and without the bitmap I get messages
about md: kicking non-fresh sdc from array! - is it OK?
2. If I'm not using bitmap, I can hot-add /dev/sdc and the resync starts.
However, if I'm using bitmap this /dev/sdc remains in Faulty state in
/proc/mdstat.

# mdadm -A /dev/md0 --bitmap /bitmap /dev/sdb /dev/sdc
mdadm: /dev/md0 has been started with 1 drive (out of 2).
# more /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdb[0]
      16777208 blocks [2/1] [U_]
      bitmap: 0/2048 pages [0KB], 4KB chunk, file: /bitmap

unused devices: <none>
# mdadm --manage /dev/md0 -a /dev/sdc
mdadm: added /dev/sdc
# more /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdc[1](F) sdb[0]
      16777208 blocks [2/1] [U_]
      bitmap: 0/2048 pages [0KB], 4KB chunk, file: /bitmap

unused devices: <none>

------------------------------------------------------

Now without bitmap:

# mdadm -S /dev/md0
# mdadm -A /dev/md0 /dev/sdb /dev/sdc
mdadm: /dev/md0 has been started with 1 drive (out of 2).
# more /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdb[0]
      16777208 blocks [2/1] [U_]

unused devices: <none>
# mdadm --manage /dev/md0 -a /dev/sdc
mdadm: added /dev/sdc
# more /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdc[2] sdb[0]
      16777208 blocks [2/1] [U_]
      [>....................]  recovery =  0.6% (101568/16777208) finish=8.2min
speed=33856K/sec

unused devices: <none>

Why is it, Neil?

Thanks,

Maxim Kozover.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-19 13:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-19 13:41 assemble/hot add problem with bitmap raid1 Maxim Kozover

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).