[DRBD-user] DRBD with KVM for live migrations

Iustin Pop iustin at google.com
Mon Oct 31 10:33:12 CET 2011

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.

On Sun, Oct 30, 2011 at 01:35:53PM -0500, Trey Dockendorf wrote:
> Hello, I'm looking to use DRBD for the first time with my existing KVM
> servers to facilitate live migrations, and had a few questions.  I've seen
> lots of documentation on using DRBD with LVM based virtual machine disks,
> but I prefer to use qcow2 images.  Is it possible to have DRBD replicate
> the volume all the images are stored on rather than each individual VM LVM
> block device?  What would be used to ensure that only one KVM node is
> accessing the disks at a time until migration is needed?  If anyone has any
> advice or suggestions please let me know.  This is my  first time using
> anything for file system replication.

If you can accept using LVM (and not qcow), then Ganeti
(code.google.com/p/ganeti) does the following:

- run in single-master mode except during migration (it changes protocol
  from single to dual and back automatically)
- manage drbd and kvm for you

Hope this helps.


More information about the drbd-user mailing list