Pygrub with DRBD on Xen 3.2
Posted
by
Joril
on Server Fault
See other posts from Server Fault
or by Joril
Published on 2010-03-09T16:11:25Z
Indexed on
2011/01/10
16:55 UTC
Read the original article
Hit count: 268
Hi all,
we have a two-node cluster using DRBD 8.2 on CentOS 5.2 64bit. The cluster runs a few VMs on top of Xen 3.2.1, here's the configuration for an Ubuntu Jaunty VM:
name = 'dev'
bootloader = '/usr/bin/pygrub'
memory = '512'
vif = [ 'ip=192.168.1.217,mac=00:16:3E:CD:60:80' ]
disk = [ 'phy:/dev/drbd24,xvda1,w',
'phy:/dev/drbd25,xvda2,w' ]
As you can see, the disks are specified like "phy:", and as such pygrub doesn't know a thing about the underlying drbd device...
So my problem is that even though the VM boots just fine, it doesn't handle the state of the drbd device. As a result, when for some reason the device gets to a secondary/secondary state, the VM won't boot, and I have to manually specify which node is primary.
I read that starting with Xen 3.3 pygrub understands the "drbd:" specification, and I think that it would fix my problem, but I can't upgrade Xen at the moment... Is there a workaround? For example, could I use the 3.3 version of pygrub?
Thanks!
© Server Fault or respective owner