- Provision identically sized LVM logical volumes on both physical hosts.lvm lvcreate ....
- Add another stanza to the drbd configuration on both physical hosts, creating a new DRBD device./etc/drbd.conf.
- Force one physical host to be the primary DRBD host for this new device.drbdadm -- --do-what-I-say primary device name.
- Wait for the devices to become consistant (check /proc/drbd).
- Make a filesystem.mkfs -t ext3 /dev/drbdx.
- Make a mountpoint and mount the drbdx device onto it.
- Create the virtual machine using Xen or VMware, ensuring all the configuration and virtual disk files and located within the new drbd device.
- Install the virtual machine operating system.
- Shutdown the virtual machine.
- Unmount the drbdx device and remove the forced DRBD primary status. drbdadm -- --do-what-I-say secondary device name.
- Add another stanza to the heartbeat configuration on both physical hosts./etc/heartbeat/haresources.
6 March 2006.