Managing Serviceguard Eighteenth Edition, September 2010
This command also builds a VxFS file system on the logical volume, and mounts
it to /newdir. If the logical volume will be used for raw storage (for example for
a database) omit the fsopts and –m options; for example:
cmpreparestg –l /dev/vgdatabase –L –o lv_opts=”-L 120 –s g”
–n node1 –n node2
The volume group can now be used by packages; see Chapter 6 (page 279).
NOTE: cmpreparestg requires -l <vgname> in all cases. The command must
be run on one of the specified nodes (ftsys9 or ftsys10 in this example).
Other forms of cmpreparestg allow you to import a volume group that already exists,
and to create logical volumes, or a single logical volume and create and mount a
filesystem on it. You can use the -o vg_opts option to specify options for newly
created volume groups; this is particularly useful if you need to create an LVM version
2.<x> volume group. See the manpage for more information.
Configuring Root-Level Access
The subsections that follow explain how to set up HP-UX root access between the nodes
in the prospective cluster. (When you proceed to configuring the cluster, you will define
various levels of non-root access as well; see “Controlling Access to the Cluster”
(page 251).)
As of Serviceguard A.11.20, much of this configuration can be done by means of the
Serviceguard command cmpreparecl (1m) (or cmpdeploycl (1m), which calls
cmpreparecl). See thecmpreparecl manpage for more information. See also “Using
Easy Deployment Commands to Configure the Cluster” (page 211).
NOTE: For more information and advice, see the white paper Securing Serviceguard
at www.hp.com/go/hpux-serviceguard-docs.
Allowing Root Access to an Unconfigured Node
To enable a system to be included in a cluster, you must enable HP-UX root access to
the system by the root user of every other potential cluster node. The Serviceguard
mechanism for doing this is the file $SGCONF/cmclnodelist. This is sometimes
referred to as a “bootstrap” file because Serviceguard consults it only when configuring
a node into a cluster for the first time; it is ignored after that. It does not exist by default,
but you will need to create it.
216 Building an HA Cluster Configuration