A few quick notes on compiling your own DRBD RPM for XenServer 6.0

1. Download the latest XenServer DDK ISO – Available from Citrix.com

2. Mount or Extract the ISO – Import into XenServer as a VM

3. Make sure you add a network connection

4. SSH onto the VM

You need to install gcc and libxslt to compile DRBD

> yum –enablerepo=base -y install gcc libxml2.i386 libxslt.i386

> mkdir drbd

> cd drbd

> wget http://oss.linbit.com/drbd/8.4/drbd-8.4.1.tar.gz

> tar -xvf drbd-8.4.1.tar.gz

> cd drbd-8.4.1.tar.gz

> ./configure

> make km-rpm

> make rpm

RPM file are created in /usr/src/redhat/RPMS/i386/

You need,

drbd-km-2.6.32.12_0.7.1.xs6.0.0.529.170661xen-8.4.1-1.i386.rpm
drbd-utils-8.4.1-1.i386.rpm

Thats it enjoy!

Tags: ,