[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] XCP 1.5 DRBD Build



Hey guys,

I wanted to give DRBD a shot on XCP 1.5.. so I followed the nice instructions here for configuration: http://joekane.eu/xenserver-drbd-update-4-the-guide

But he's building for XenServer, so the pre-built rpms he has supplied wouldn't work.

So I re-built them myself on the XCP 1.5 dom0.

For anyone who is interested, this is how I built DRBD on a XCP dom0 (an experimental one that I didn't mind messing up a bit with installing this stuff)
sed -i -e "s/enabled=0/enabled=1/" /etc/yum.repos.d/CentOS-Base.repo
sed -i -e "s/enabled=1/enabled=0/" /etc/yum.repos.d/Citrix.repo
yum install gcc flex rpm-build redhat-rpm-config make libxslt

rpm -i kernel-xen-devel-2.6.32.12-0.7.1.xs1.4.90.530.170661.i686.rpm
#might need to put this somewhere else and remote mount it via nfs
mount -o loop binpkg.iso /mnt
cd /mnt/domain0/RPMS/i686
rpm -i kernel-xen-devel-2.6.32.12-0.7.1.xs1.4.90.530.170661.i686.rpm

mkdir /drbd/
cd /drbd/
tar zxvf drbd-8.4.1.tar.gz
cd drbd-8.4.1
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-km
make tgz
cp drbd*.tar.gz `rpm -E _sourcedir`
rpmbuild -bb drbd.spec
rpmbuild -bb drbd-km.spec

You now have RPMs in /usr/src/redhat/RPMS/i386/drbd

You can install the 2 important RPMs like this:
rpm -i drbd-km-2.6.32.12_0.7.1.xs1.4.90.530.170661xen-8.4.1-1.i386.rpm
rpm -i drbd-utils-8.4.1-1.i386.rpm

Then follow the instructions per joe kane.

For those who'd like to give it a try with pre-built RPMs.. we've made them available:
http://download.locatrix.com/drbd/

The two mentioned above for the config instructions could be grabbed down like:


Cheers,
Andrew


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.