Re: [opensuse] Recover md RAID-1.



On Sat, 30 Aug 2008 08:30:52 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:


md: radi5 personality registered
md: raid4 personality registered
md: md0 stopped.
md: bind<sdb1>
md: bind<sda1>
md: md0: raid array is not clean -- starting background reconstruction
raid1: 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: peers -> run() failed...
mdadm: failed to RUN_ARRAY /dev/md0: Input/output error
mdadm: device /dev/md0 already active - cannot assemble it
Trying manual resume from /dev/sdb2
Invoking userspace resume from /dev/sdb2
boot/82-resume.userspace.sh: line 48: /proc/splash: No such file or
directory resume: libgcrypt version: 1.4.0
Trying manual resume from /dev/sdb2
Invoking in-kernel resume from /dev/sdb2
PM: starting manual resum from disk
Waiting for device /dev/md0 to appear: ok
/dev/md0: unknown volume type
invalid root filesystem -- exiting to /bin/sh
$

Before this system was working fine. I shut it down correctly with the
'halt' command. I plugged in a USB KVM that makes the system hang at
boottime (to provide needed info for Bug # 412476) after the system
hung I powered it off, unplugged the kVM and then booted it back, only
to get the above messages.

First thing I would do is to mark /dev/sdb2 as failed and remove it from the
array. Then try booting the array with just /dev/sdb1 as a member. Once the
array is started, reassemble the array and let it rebuild the mirror. I am
assuming that /dev/sdb2 is the partition with the problem - it may in fact
be /dev/sdb1 (in which case do the above for /dev/sdb1).

Reading man mdadm may be useful.

--
===================================================
Rodney Baker VK5ZTV
rodney.baker@xxxxxxxxxxxx
===================================================

A [golf] ball hitting a tree shall be deemed not to have hit the tree.
Hitting a tree is simply bad luck and has no place in a scientific
game. The player should estimate the distance the ball would have
traveled if it had not hit the tree and play the ball from there,
preferably atop a nice firm tuft of grass.
-- Donald A. Metz

Attachment: signature.asc
Description: This is a digitally signed message part.



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: Easy balanced tree
    ... The tree can hold between 4 and 7 values, if it was lower than 4 ... then the array would be smaller so we ignore those cases. ... Secondly there is wasted space in the middle of the array (with ... rdrop nip nip; ...
    (comp.lang.forth)
  • Re: Is it possible to have mutable-in-place (associative-)array objects in PHP?
    ... This is the way all languages work. ... just that array variables aren't objects ... and for each I must find the appropriate path in the tree I'm ... treeptr <- rootOfTree ...
    (comp.lang.php)
  • Re: data structure for network protocol
    ... As a first thought, I was considering linked lists, but they are probably ... The second option is tree. ... hash tables. ... in an ordinary array (the main cost is that, if the number of items gets ...
    (comp.programming)
  • Re: array moving left
    ... I have an array in which elements are present. ... Instead maintain a binary tree of deletion points. ... The left child weight of a node is the number of nodes under it on the ... deletions have occurred to the left of the element. ...
    (comp.programming)