Bug 810877 - VMs started on more than one host
VMs started on more than one host
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rgmanager (Show other bugs)
6.3
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Ryan McCabe
Cluster QE
: Documentation
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-09 10:01 EDT by Lon Hohberger
Modified: 2012-04-09 10:43 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-04-09 10:19:21 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 96543 None None None Never

  None (edit)
Comment 2 Lon Hohberger 2012-04-09 10:01:59 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
be necessary.

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.

Note You need to log in before you can comment on or make changes to this bug.