Re: [opensuse] Recover md RAID-1.



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.


On Sat, Aug 30, 2008 at 5:44 AM, Per Jessen <per@xxxxxxxxxxxx> wrote:
Andrew Joakimsen wrote:

How do I recover a broken MD RAID-1.... Since there is no way to make
a backup with easy restore? I boot the system and it says:


Boot up a rescue system, and tell us what "cat /proc/mdstat" says.

A broken RAID1 usually means one broken disk, and that the array is
running degraded. It is typically fixed by hot-removing the failed
drive, then hot-adding a new one.



/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.
    ... md: md0 stopped. ... Then try booting the array with just /dev/sdb1 as a member. ... A ball hitting a tree shall be deemed not to have hit the tree. ...
    (SuSE)
  • Re: [opensuse] Recover md RAID-1.
    ... md: md0 stopped. ... Then try booting the array with just /dev/sdb1 as a member. ... A ball hitting a tree shall be deemed not to have hit the tree. ...
    (SuSE)
  • Re: create raid1 on a installed system
    ... Create the raid on sda1 with the other disk 'missing' ... Copy sdb1 to md0, remove sdb altogether and reboot to md0, and test to ... the raid array and after a long wait, ...
    (Ubuntu)
  • Re: create raid1 on a installed system
    ... software raid disk md0? ... Create the raid on sda1 with the other disk 'missing' ... Copy sdb1 to md0, remove sdb altogether and reboot to md0, and test to ... the raid array and after a long wait, ...
    (Ubuntu)
  • degraded array - former device is unavailable
    ... I've problem with software RAID 1. ... removing from array! ... I can see that only one disk is active. ... Do you have any idea why is md0 not created correctly? ...
    (Debian-User)