|
|
|
|
|
|
|
|
|
|
xen-users
RE: [Xen-users] Xen and drbd after reboot
>
> Hi,
>
> sometimes, especially after a kernel upgrade, I need to reboot the xen
> host.
> All the VM's are mirrored to another machine by using drbd.
> If the machine comes back after a reboot, the drbd devices are all in
> secondary mode, and therefore, the VM's cannot start. I have to issue
a
> "drbdadm primary" for every VM first. (I cannot use "drdadm primary
> all")
> Of course , I could write a little script that does the job for me,
but
> I wonder if there is a more generic way to work around my little
> "problem"?
> Or should I better ask on the drbd mailing list?
>
The drbd: disk config option handles this (assuming you have the xen
drbd script installed). Eg if you have a resource named virt-win2003r2-0
you could use drbd:virt-win2003r2-0 instead of
phy:/dev/drbd/by-res/virt-win2003r2-0.
As per my post about a few hours before yours to the -devel list, it
doesn't work properly under HVM though, although with the patch I posted
it would work in multiple primary mode (qemu tries to access the device
before it is made primary by the looks of it...). I want the protection
of not allowing a device to be primary on more than one node though.
James
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|