Installation guide
To print a list of the options you can specify for a particular service type, execute the following
command:
ccs -h host --lsserviceopts service_type
For example, the following command lists the service options for the vm service.
[root@ ask-03 ~]# ccs -f no d e1 --l sserviceo pts vm
vm - Defines a Virtual Machine
Required Options:
name: Name
Optional Options:
domain: Cluster failover Domain
autostart: Automatic start after quorum formation
exclusive: Exclusive resource group
recovery: Failure recovery policy
migration_mapping: memberhost:targethost,memberhost:targethost ..
use_virsh: If set to 1, vm.sh will use the virsh command to manage
virtual machines instead of xm. This is required when using non-Xen
virtual machines (e.g. qemu / KVM).
xmlfile: Full path to libvirt XML file describing the domain.
migrate: Migration type (live or pause, default = live).
path: Path to virtual machine configuration files.
snapshot: Path to the snapshot directory where the virtual machine
image will be stored.
depend: Top-level service this depends on, in service:name format.
depend_mode: Service dependency mode (soft or hard).
max_restarts: Maximum restarts for this service.
restart_expire_time: Restart expiration time; amount of time before a
restart is forgotten.
status_program: Additional status check program
hypervisor: Hypervisor
hypervisor_uri: Hypervisor URI (normally automatic).
migration_uri: Migration URI (normally automatic).
__independent_subtree: Treat this and all children as an independent
subtree.
__enforce_timeouts: Consider a timeout for operations as fatal.
__max_failures: Maximum number of failures before returning a failure
to a status check.
__failure_expire_time: Amount of time before a failure is forgotten.
__max_restarts: Maximum number restarts for an independent subtree
before giving up.
__restart_expire_time: Amount of time before a failure is forgotten
for an independent subtree.
5.12. Virt ual Machine Resources
Virtual machine resources are configured differently than other cluster resources. In particular, they
are not grouped into service definitions. As of the Red Hat Enterprise Linux 6.2 release, when you
configure a virtual machine in a cluster with the ccs command you can use the --ad d vm (rather
than the ad d servi ce option). This ensures that the vm resource is defined directly under the rm
configuration node in the cluster configuration file.
Red Hat Ent erprise Linux 6 Clust er Administ rat ion
94