Managing Serviceguard Nineteenth Edition, Reprinted June 2011
lssf /dev/d*/*
In the following examples, we use /dev/rdsk/c1t2d0 and /dev/rdsk/c0t2d0, which happen
to be the device names for the same disks on both ftsys9 and ftsys10. In the event that the
device file names are different on the different nodes, make a careful note of the correspondences.
NOTE: Under agile addressing, the physical devices in these examples would have names such
as /dev/rdisk/disk1 and /dev/rdisk/disk2. See “About Device File Names (Device
Special Files)” (page 77).
If you are using cDSFs, the device files would have names such as /dev/rcdisk/disk1 and
/dev/rcdisk/disk2. See “About Cluster-wide Device Special Files (cDSFs)” (page 99).
On the configuration node (ftsys9), use the pvcreate(1m) command to define disks as physical
volumes. This only needs to be done on the configuration node. Use the following commands to
create two physical volumes for the sample configuration:
pvcreate -f /dev/rdsk/c1t2d0
pvcreate -f /dev/rdsk/c0t2d0
Use the following procedure to build a volume group on the configuration node (ftsys9). Later,
you will create the same volume group on other nodes; see “Distributing Volume Groups to Other
Nodes” (page 172).
NOTE: If you are using the March 2008 version or later of HP-UX 11i v3, you can skip steps 1
and 2; vgcreate (1m) will create the device file for you.
1. Create the group directory; for example, vgdatabase:
mkdir /dev/vgdatabase
2. Create a control file named group in the directory /dev/vgdatabase, as follows:
mknod /dev/vgdatabase/group c 64 0xhh0000
The major number is always 64, and the hexadecimal minor number has the form
0xhh0000
where hh must be unique to the volume group you are creating. Use a unique minor number
that is available across all the nodes for the mknod command above. (This will avoid further
reconfiguration later, when NFS-mounted logical volumes are created in the volume group.)
Use the following command to display a list of existing volume groups:
ls -l /dev/*/group
3. Create the volume group and add physical volumes to it with the following commands:
vgcreate -g bus0 /dev/vgdatabase /dev/dsk/c1t2d0
vgextend -g bus1 /dev/vgdatabase /dev/dsk/c0t2d0
CAUTION: Volume groups used by Serviceguard must have names no longer than 35
characters (that is, the name that follows /dev/, in this example vgdatabase, must be at
most 35 characters long).
NOTE: If you are using cDSFs, you should be using them exclusively.
The first command creates the volume group and adds a physical volume to it in a physical
volume group called bus0. The second command adds the second drive to the volume group,
locating it in a different physical volume group named bus1. The use of physical volume
groups allows the use of PVG-strict mirroring of disks.
4. Repeat steps 1–3 for additional volume groups.
170 Building an HA Cluster Configuration