Re: How to automatically add a nbd to a raid1?
"Peter T. Breuer" <[email protected]> Thu, 11 Dec 2008 12:37:44 +0100 (MET)
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
"Also sprach Michael Rendell:" > I'd like to set up a raid1 disk that has a local disk and a remote (enbd) > disk. Was wondering how to set things up so that, on/after reboot, the enbd > device gets added to the raid when the connection to the enbd-server is made? There are scripts to handle that in the distribution package. I'm travelling today but I'll put up a complete answer later (about midnight CET). > The raid may already have started in degraded mode (especially likely > if the network or server is down when the client machine boots). > Running "mdadm --re-add /dev/mdNN /dev/ndA" works, but would like this to be > done automatically when the connection is made: is there a way to run > a program/script when a connection is made (like mdadm --monitor)? mdadm --monitor works fine. As I recall that's what is used. ENBD signals udev when conditions change. Peter