[DRBD-user] Xen and the art of DRBD

Trevor Hemsley trevor.hemsley at ntlworld.com
Fri Jun 24 23:41:30 CEST 2011

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi

I've just been attempting to use DRBD with Xen on CentOS 5.6 and Ubuntu 
8.04 LTS using the drbd:resourcename syntax for disks and I've run into 
some problems. First, if I try to use that syntax the pygrub complains 
about it as Redhat (I've been debugging this on the CentOS side) haven't 
backported the drbd: syntax changes to pygrub. I found a pair of patches 
to /usr/bin/pygrub and a blkif file on the xensource bugzilla entry 
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1438 but it would 
appear to me that the patches are broken. They work and allow a guest 
using disk [ 'drbd:resourcename ...' ] to be used but starting the one 
VM puts *all* DRBD resources on that xen host into primary state. I've 
created a working version of the script but the original patch is so 
badly broken that I'm sure that anyone who tried to use it would have 
noticed so I can't believe that it's still broken 2 years after that 
bugzilla!

Is anyone else using drbd: syntax for Xen VM's? Does /usr/bin/pygrub use 
'drbdadm sh-resources ' + file around line 682? Or has it already been 
fixed in a different way?

Thanks.

Trevor Hemsley



More information about the drbd-user mailing list