Integrating Xen with Heartbeat

In order to fully capitalize on the benefits provided by having a DRBD-backed Xen VBD's, it is recommended to have Heartbeat manage the associated domU's as Heartbeat resources.

CRM configuration mode. If you are using the Heartbeat cluster manager (in CRM configuration mode), you may configure a Xen domU as a Heartbeat resource, and automate resource failover. To do so, use the Xen OCF resource agent. If you are using the drbd Xen device type described in this chapter, you will not need to configure any separate drbd resource for use by the Xen cluster resource. Instead, the block-drbd helper script will do all the necessary resource transitions for you.

R1-compatible configuration mode. If you are using Heartbeat in R1-compatible mode, you cannot use OCF resource agents. You may, however, configure Heartbeat to use the xendomains LSB service as a cluster resource. Again, if you are using the drbd Xen VBD type, you will not need to create separate drbddisk resources for your Xen domains.