Managing HP Serviceguard A.12.00.00 for Linux, June 2014

Examples
Create a new LVM volume group “lvmvg” and import it to nodes node1, node2, node3, and
node4:
cmpreparestg -l lvmvg -n node1 -n node2 -n node3 -n node4 -p /dev/sdz
Create a new VxVM disk group cvmdg” and import it to nodes node1, node2, node3, and node4:
cmpreparestg -g cvmdg -n node1 -n node2 -n node3 -n node4 -p /dev/sdz
4.8.1.3 cmdeploycl
The cmdeploycl creates the cluster with the previously generated network and storage
configuration. For more information, see cmdeploycl (1m) manpage.
Example
cmdeploycl -n node1 -n node2 -c node_cluster -L /dev/sdz N
network_template_file
4.8.1.4 cmpreparecl
The cmpreparecl script allows you to ease the process of setting up the servers participating in
the cluster. It also checks for the availability of ports used by Serviceguard Linux, starts the xinetd
services, updates specific files, and sets up the firewall. As of Serviceguard A.11.20.10, the
cmpreparecl script is supported.
NOTE: After you run the cmpreparecl script, you can start the cluster configuration.
Advantages
Simple ways to configure the system before you create a cluster.
Configuration for all the nodes can be done from one of the nodes in the cluster.
Limitations
All the nodes that are part of the cluster must be known before hand.
NOTE: After the configuration is complete, you cannot add the nodes.
Does not set up lock LUN or quorum server.
Does not ensure that all other network connections between the servers are valid.
Before You Start
IMPORTANT: The nodes which are given as inputs should not have cluster configured in them.
Before you start, you should have done the planning and preparation as described in previous
sections. You must also do the following:
Install Serviceguard on each node that is to be configured into the cluster; see “Installing and
Updating Serviceguard ” (page 143).
You must have superuser capability on each node.
Make sure all the nodes have access to at least one fully configured network.
Make sure all the subnets used by the prospective nodes are accessible to all the nodes.
Using cmpreparecl to Configure the System
The following example illustrates how to prepare two nodes using the cmpreparecl command:
4.8 Cluster Configuration Planning 85