This guide describes DRBD version 8.4 and above. For 8.3 please look here.


Chapter 13. Using Xen with DRBD

Table of Contents

13.1. Xen primer
13.2. Setting DRBD module parameters for use with Xen
13.3. Creating a DRBD resource suitable to act as a Xen VBD
13.4. Using DRBD VBDs
13.5. Starting, stopping, and migrating DRBD-backed domU’s
13.6. Internals of DRBD/Xen integration
13.7. Integrating Xen with Pacemaker

This chapter outlines the use of DRBD as a Virtual Block Device (VBD) for virtualization environments using the Xen hypervisor.

13.1. Xen primer

Xen is a virtualization framework originally developed at the University of Cambridge (UK), and later being maintained by XenSource, Inc. (now a part of Citrix). It is included in reasonably recent releases of most Linux distributions, such as Debian GNU/Linux (since version 4.0), SUSE Linux Enterprise Server (since release 10), Red Hat Enterprise Linux (since release 5), and many others.

Xen uses paravirtualization — a virtualization method involving a high degree of cooperation between the virtualization host and guest virtual machines — with selected guest operating systems for improved performance in comparison to conventional virtualization solutions (which are typically based on hardware emulation). Xen also supports full hardware emulation on CPUs that support the appropriate virtualization extensions, in Xen parlance, this is known as HVM ( "hardware-assisted virtual machine").

[Note]Note

At the time of writing, CPU extensions supported by Xen for HVM are Intel’s Virtualization Technology (VT, formerly codenamed "Vanderpool"), and AMD’s Secure Virtual Machine (SVM, formerly known as "Pacifica").

Xen supports live migration, which refers to the capability of transferring a running guest operating system from one physical host to another, without interruption.

When a DRBD resource is used as a replicated Virtual Block Device (VBD) for Xen, it serves to make the entire contents of a domU’s virtual disk available on two servers, which can then be configured for automatic fail-over. That way, DRBD does not only provide redundancy for Linux servers (as in non-virtualized DRBD deployment scenarios), but also for any other operating system that can be virtualized under Xen — which, in essence, includes any operating system available on 32- or 64-bit Intel compatible architectures.


This guide describes DRBD version 8.4 and above. For 8.3 please look here.