Red Hat Bugzilla – Bug 810877
VMs started on more than one host
Last modified: 2012-04-09 10:43:52 EDT
Description of problem:
* If the libvirt-guests initscript is enabled while rgmanager is managing the
-same- virtual machines, the initscript, being not cluster-aware, will start
VMs already under rgmanager control on other hosts in the cluster.
* If the guests are configured to autostart using 'virsh autostart', the
libvirt tools will automatically start the virtual machines already under
rgmanager control on other hosts in the cluster.
These situations can end up with data loss in the virtual machines.
When running the cluster software to manage virtual machines, it is very
important to adhere to the following:
1) The libvirt-guests init script must be disabled.
2) All guests configured for cluster control must be disabled from an
auto-start perspective (e.g. virsh autostart --disable myvm1).
3) It is a best practice to use a non-default path for storing virtual machine
configuration files. For example, use /mnt/guests (the default is
/etc/libvirt/qemu). NOTE: If this is correctly done, steps (1) and (2) may not
4) Cluster-managed virtual machines must be managed using the cluster software.
Do not mix usage of virt-manager, virsh, or other tools with rgmanager / luci.
The combination of these provide the following benefits:
a) Deterministic virtual machine behavior
b) Prevention of accidental management by other, non-cluster tools.