Re: [opensuse] Recover md RAID-1.



Andrew Joakimsen wrote:

I can't get the array to rebuild


# mdadm -s /dev/md0
md0 stopped
unbind < sda2 >
export_rdev(sda2)
unbind < sdb1 >
export_rdev(sdb1)
stopped /dev/md0

# mdadm -A /dev/md0 /dev/sda2 /dev/sdb1
RAID array is not clean -- starting background reconstruction
RAID 1: RAID set md0 active with 2 out of 2 mirrors
md0: bitmap file is out of date (8 < 9) -- forcing full recovery
md0: bitmap file is out of date, doing full recovery
md0: bitmap initialisation failed: -5
md0: failed to create bitmap (-5)
md: perf->run() failed ...
mdadm: failed to RUN_ARRAY /dev/md0: input/output error

I can force mount /dev/sda2 or /dev /sdb1 to mount as ext3 and I can
read the data just fine.

If the data is fine, I would assemble the array in degraded mode using
just one of the two drives, then hot-add the 2nd one later.


/Per Jessen, Zürich

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [opensuse] Recover md RAID-1.
    ... unbind ... RAID array is not clean -- starting background reconstruction ... md0: bitmap file is out of date, ...
    (SuSE)
  • [opensuse] Recover md RAID-1.
    ... How do I recover a broken MD RAID-1.... ... md: md0 stopped. ... bitmap file is out of date, ... I plugged in a USB KVM that makes the system hang at ...
    (SuSE)