Sample configurations
The following sample configurations are for HP Integrity virtual machine service groups:
Creating an Integrity virtual machine service group
The following is a high-level overview of creating an Integrity virtual machine service group.
Configuring the failover service group
Configure a failover service group. Perform the following steps:
-
Name the service group IVM.
-
Make sure that the SystemList attribute contains all the cluster nodes where the VMGuest can failover.
Creating an HP virtual switch resource
Create and configure an HPVSwitch resource. Perform the following steps:
-
Configure an HPVSwitch resource vswitch inside the IVM service group.
-
Assign the virtual switch name that you want to monitor in the VSwitchName attribute.
-
Create a NIC resource nic inside the IVM service group.
-
Make sure that the Device attribute contains the virtual switch's backing physical NIC.
-
Create a dependency between the parent HPVSwitch resource vswitch and its child NIC resource nic.
Creating the VMGuest resource
Create and configure the VMGuest resource. Perform the following steps:
-
Configure a HPVirtualMachine resource hpvm inside the IVM service group.
-
Add the name of the VMGuest that you want to monitor in the VMName attribute.
-
Create a dependency between the parent HPVirtualMachine resource hpvm and its child resource vswitch.
Creating backing storage resources for the VMGuest resource
Create and configure the backing storage resources. Perform the following steps:
-
If you intend to use a disk group as the backing store for the VMGuest, configure a DiskGroup resource dg with the disk group's name in the DiskGroup attribute. If you are use LVMs, raw disks, or CVM, use the corresponding storage resources.
-
If the VMGuest is installed on a VxVM volume, create a Volume resource vol. Use the volume name for the backing storage for the VMGuest. Refer to the
hpvm
commands to learn more about backing storage for VMGuests.
-
Create a dependency between the parent HPVirtualMachine resource vm and the child Volume resource vol.
-
Ensure that all resources are enabled before bringing them online.
Service group with disk group as the backing store
include "types.cf"
cluster ivmclus (
)
system sysA (
system sysB (
)
group IVM (
SystemList = { sysA = 0, sysB = 1 }
)
DiskGroup dg (
DiskGroup = dg1
)
HPVSwitch pub0 (
VswitchName = pub0
)
HPVirtualMachine hpvm (
VMName = vcsivm1
)
NIC nic (
Device = lan0
)
Volume vol (
Volume = vol1
DiskGroup = dg1
)
pub0 requires nic
vm requires pub0
vm requires vol
vol requires dg
// resource dependency tree
//
// group IVM_OS
// {
// HPVirtualMachine hpvm
// {
// Volume vol
// {
// DiskGroup dg
// }
// HPVSwitch pub0
// {
// NIC nic
// }
// }
// }
Service group with raw disk as the backing store
include "types.cf"
cluster Test (
)
system SysA (
)
system SysB (
)
group g1 (
SystemList = { SysA = 0, SysB = 1 }
)
HPVSwitch vswitch (
VSwitchName = public0
)
HPVirtualMachine hpvm (
VMName = vmsharedhp
)
hpvm requires vswitch
Service group with an online VM guest migration feature
include "types.cf"
cluster ivmclus (
)
system sysA (
)
system sysB (
)
group IVM (
SystemList = { sysA = 0, sysB = 1 }
)
HPVirtualMachine hpvm (
VMName = vcsivm1
)