I've seen a lot of posts on the internet which talk about various combinations of DRBD and VMware, but I haven't managed to find a straight answer on this one:

Can I use DRBD in a VMware guest?

I'm not interested in performance; I am interested in using virtualisation to streamline the testing of a product, so I care more about whether it works the same as the physical hardware than about how fast it is.

2 Answers
2

You can use DRBD, but using virtual guests there is an issue of having multiple redundant paths between the machines for heartbeat. Without these, we found, the servers would occasionally get into a situation where they could not see each other, each server thought the other one had died and became "primary", and a "split-brain" condition resulted - which was difficult to resolve.

This could possibly be mitigated by running a physical serial cable between 2 VMWare hosts, and binding the DRBD clients to these physical interfaces - although that removes the ability to live migrate the guest machines, so ultimately we never tried this.

In a testing environment, this is probably acceptable. We ran DRBD in production (and still do in a limited way) on VMWare virtual machines for a couple of years, and these split-brain issues, along with poor performance, were our ultimate reasons for moving away. However, I still feel that DRBD is a great solution, when run on physical machines.

It's not as though STONITH on a VM is hard or anything...
–
wombleDec 7 '09 at 20:26

1

Umm, why can't you just run two network cables between your VMware hosts, create 2 vSwitches and connect the VMs to both vSwitches. Oh, and running any sort of DRBD system without STONITH is just asking for trouble.
–
rodjekDec 7 '09 at 21:03