linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Double mdadm --monitor == hang
@ 2007-11-04 21:10 Robin Lee Powell
  0 siblings, 0 replies; only message in thread
From: Robin Lee Powell @ 2007-11-04 21:10 UTC (permalink / raw)
  To: linux-raid


Please cc me on replies; I'm not on the list.

I don't know if this is fixable, or even if it *should* be fixed,
but: summary: shortly after the state of the machine is "2
independent mdadm --monitor instances, resyncing", the
machine totally locks up.  Details follow.

I boot my machine from a USB stick, because the hard drive is
encrypted.  The start up goes something like this:

    mdadm --assemble /dev/md_d0 /dev/sda /dev/sdb /dev/sdc /dev/sdd

    losetup ... /dev/loop0 /dev/md_d0p2

    /bin/mount -o rw -n /dev/loop0 /mnt

    cd /mnt

    /sbin/pivot_root . usb_boot

    exec chroot . /sbin/init $* </dev/console >/dev/console 2>&1

Before it does all that, though, it starts up mdadm --monitor,
because it's got the Debian mdadm package installed, and that's how
that works.

Then in re-runs init after the pivot_root.  The OS on /dev/md_d0p2
also has the Debian mdadm package install, so it also starts mdadm
--monitor.  The two instances have no real way to see each other.

This works fine until a resync is needed; shortly after the state of
the machine is "2 mdadm --monitor instances, resyncing", the machine
totally locks up.

Solved by not starting mdadm --monitor on the USB stick, obviously,
but it took quite a while to figure out.  :(

-Robin

-- 
Lojban Reason #17: http://en.wikipedia.org/wiki/Buffalo_buffalo
Proud Supporter of the Singularity Institute - http://singinst.org/
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/

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

only message in thread, other threads:[~2007-11-04 21:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-04 21:10 Double mdadm --monitor == hang Robin Lee Powell

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