Building Disaster Recovery Serviceguard Solutions Using Metrocluster with EMC SRDF

5. Start the logical volume in the disk group.
# vxvol -g logdata startall
6. Create a directory to mount the volume.
# mkdir /logs
7. Mount the volume.
# mount /dev/vx/dsk/logdata/logfile /logs
8. Verify and ensure that the file system is present, then unmount the file system and deport the
disk group.
# umount /logs
# vxdg deport logdata
Repeat steps 4 through 8 on all the nodes that will access the disk group.
9. Establish the SRDF link.
# symrdf -g devgrpA establish
IMPORTANT: VxVM 4.1 does not support the agile DSF naming convention with HP-UX 11i v3.
NOTE: In a Metrocluster/SRDF environment, VxVM commands must not be run against
write-disabled disks. This is because VxVM might turn the write-disabled disks into offline state.
When the disks are write-enabled, activation of a VxVM disk group might fail. Hence, run the
vxdisk scandisks before activating the disk group.
Easy storage preparation
Starting with Serviceguard version A.11.20 Patch PHSS_41628, you can use the cmpreparestg
command to create LVM volume groups and VxVM/CVM diskgroups with logical volumes,
filesystem, and mount points in a Metrocluster environment. If the command is run from the nodes
where the replicated disks are in destination mode, then Metrocluster throws an error. Also, if the
disks are not in CONSISTENT/SYNCHRONIZED state, then Metrocluster throws an error indicating
the same.
The cmpreparestg command and its Using command line
options are described below:
cmpreparestg {-l vgname | -g dgname} [{-p pv_path... |-P pvs_file}]{-L
[lvname] |-c lv_counts} [-m mountpoint] [-o " option string " ... ] [-n
node_name]... [-t]
For example, to create an lvm volume group with name newvg and logical volume with name
newlv in the cluster, run the following command:
# cmpreparestg -l newvg -p /dev/disk/disk12 -L newlv -o lv_opts="-l 64"
For further information, see the cmpreparestg(1m) manpage. All restrictions imposed by Serviceguard
are applicable when using cmpreparestg in a Metrocluster. The restrictions and prerequisite
mentioned in this section apply to cmpreparestg as well.
Installing and configuring an application
The disks where the application binaries and configuration files reside must not be replicated. Only
the disks where application data resides must be replicated. The following section describes how
to configure a package for the application.
30 Configuring an application in a Metrocluster solution