Adding a virtual machine to rgmanger to be used with migration
This page describes the in RHEL5 U1 newly introduced concept of specifying virtual machines for the rgmanager when the clusvcadm command is used with the new -M switch.
Background
With RHEL5 U1 there was a new concept of integrating virtual machines into the rgmanager introduced. You can now even migrate them from one machine to the other. This does the clusvcadm -M commandswitch.
Let's say you'll have a virtual machine configured in /etc/xen with the configuration file xen-test.
/etc/cluster/cluster.conf
<rm>
<failoverdomain name="all" restricted="1" ordered="1">
<failoverdomainnode name="axqa01_1" priority="1"/>
<failoverdomainnode name="axqa01_2" priority="1"/>
</failoverdomain>
<resources/>
<vm name="xen-test" domain="all" path="/etc/xen"/>
</rm>
Apply the cluster.conf and this machine is services from the rgmanager.