Managing Serviceguard Eighteenth Edition, September 2010

5. Create shared storage with PVG-strict mirroring for use by cluster packages.
cmpreparestg l <vgname> p <pv_path> ... n <node1> n
<node2>
<vgname> is the path name of the volume group that is to be created and imported
to each specified node, and each <pv_path> is the name of a physical volume on
the local node from which the volume group specified by <vgname> is to be
created.
For example, suppose that/dev/cdisk/disk12 and /dev/cdisk/disk13 are
two physical devices on the primary SCSI bus or adapter, and /dev/cdisk/
disk14 and /dev/cdisk/disk15 are two physical devices on a secondary bus
or adapter, and you want the devices on the secondary bus to contain PVG-strict
mirror copies. Proceed as follows.
1. cmpreparestg l /dev/vgdatabase p /dev/cdisk/disk12 p
/dev/cdisk/disk13 p /dev/cdisk/disk14 p /dev/cdisk/
disk15 n ftsys9 n ftsys10
This configures physical devices /dev/cdisk/disk12 and /dev/cdisk/
disk13 on the primary bus, and /dev/cdisk/disk14 and /dev/cdisk/
disk15 on the secondary bus, into the volume group /dev/vgdatabase,
and imports the volume group on the non-local node in the cluster created in
step 2.
2. Edit /etc/lvmpvg on node1 and node2 so the relevant portion now reads
as follows:
VG /dev/vgdatabase
PVG bus0
/dev/cdisk/disk12
/dev/disk/cdisk13
PVG bus1
/dev/disk/cdisk14
/dev/disk/cdisk15
NOTE: If you are not using cDSFs, you may need to change the DSF names
to make sure that the DSF names point to the same physical storage on each
node. If you are using cDSFs, the names are guaranteed to be the same.
3. cmpreparestg l /dev/vgdatabase L o lv_opts=-L 120 m
1 s g o fs_opts=-F vxfs m /newdir n node1 n node2
This configures the logical volume /dev/vgdatabase/lvol<n> with PVG-strict
mirroring from the disks on the primary bus (bus0, disks /dev/cdisk/disk12
and /dev/cdisk/disk13) to those on the secondary bus (bus1, disks /dev/
cdisk/disk14 and /dev/cdisk/disk15). LVM supplies the logical volume
number (<n>).
Preparing Your Systems 215