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
> make km-rpm
> make rpm
RPM file are created in /usr/src/redhat/RPMS/i386/
Thats it enjoy!
Here is the latest RPM for Xen Server 6 – I haven’t had a chance to test XenServer 6.0 with DRBD local storage.
I’m hopeful it will work without having to patch the Kernel – same as 5.6 FP2
If you have a chance let me know if it works.
Here is the RPM for the latest Kernel drbd-km-126.96.36.199_0.7.1.xs188.8.131.529.170661xen-8.4.1-1.i386
Download here: http://bit.ly/zV9jVI
The wait is over so to speak, XenServer 5.6 FP1 was released over a month ago but DRBD wouldn’t work due to a bug in blktap2,
The issue was highlighted by Tomoe Sugihara on the Xen-Api mailing list prior to FP1 being released – http://lists.xensource.com/archives/html/xen-api/2010-12/msg00001.html
There is mention of a couple of patches but neither of them fixed the issue – it was necessary to download the latest Soruce from the Xen Cloud Project release 1 RC1 and use the blktap2 source files.
The steps to make it work, Very simple,
1. Download the patched Kernel RPM (Link below)
2. Use WinSCP or similar to load it onto your XenServer
3. Login as root on the console
4. Run # rpm -ivh kernel-184.108.40.206.7.1.xs220.127.116.117.170586xen-1.i386.rpm –force
This will replace the current kernel with the patched one.
That’s it DRBD is working now
Enjoy and let me know how it goes.
If you already have DRBD installed and setup before installing the Kernel – you will need to reinstall the DRBD RPM, modprobe & start DRBD
# rpm -ivh drbd-km-18.104.22.168_0.7.1.xs22.214.171.1247.170586xen-8.3.10-1.i386.rpm –force
# /etc/init.d/drbd start
# modprobe drbd
Direct link download Kernel + Utilities: http://tinyurl.com/6xr4g6h
For installing DRBD with XenServer including the latest release 8.3.10 please see http://joekane.eu/xenserver-drbd-update-4-the-guide
Testing 5.1 today – excellent product, some great features added to 5.1 such as,
Flexible Backup Storage Options: New in 5.1
Backup virtual machines to locally attached storage or external storage locations via NFS or SMB/CIFS share.
Set It and Forget It Job Scheduling: New in 5.1
Backup jobs can be assigned to defined containers (representing hosts, resource pools, folders…). Any VM in a container or later added to a container will automatically be backed up based on job settings. For flexibility, specific VM’s in a container can be set to be excluded from backups.
File Level Restore (FLR) Any OS, Any File System: New in 5.1
Quickly restore individual files and folders without the need to restore the entire virtual machine image.
Application Object Recovery: New in 5.1
Use your existing recovery tools to quickly restore application objects (database object, mailbox, mail message, etc.) directly from backup storage.
Supports Tape Backup Solutions: New in 5.1
Backup Data Connector enables quick and easy integration with tape backup solutions.
Backup Retention & Archiving – Meet DR and Retention Policies: New in 5.1
Define and configure flexible retention policies for storing VM backups. Flexible trim options can automatically remove old backups based on customizable policies. Archiving provides the ability to mark specific backups for archive to exclude them from being deleted by the retention policy. Archive can be set at the job level for increased flexibility.
Get the full run down here: http://www.phdvirtual.com/overview_citrix
One area I would like improved and it’s a small request is the initial login screen, it’s terrible – please add some basic functionality e.g. Save different hostnames, usernames etc…
or get rid of it and integrate into the main app – He is what im thinking.