Managing Serviceguard Seventeenth Edition, First Reprint December 2009

Using PV Strict Mirroring Use the following steps to build a volume group on the
configuration node (ftsys9). Later, the same volume group will be created on other
nodes.
1. First, create the group directory; for example, vgdatabase:
mkdir /dev/vgdatabase
2. Next, 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).
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 this procedure for additional volume groups.
Creating Logical Volumes Use the following command to create logical volumes (the
example is for /dev/vgdatabase):
lvcreate -L 120 -m 1 -s g /dev/vgdatabase
This command creates a 120 MB mirrored volume named lvol1. The name is supplied
by default, since no name is specified in the command. The -s g option means that
mirroring is PVG-strict, that is, the mirror copies of data will be in different physical
volume groups.
212 Building an HA Cluster Configuration