User's Guide
Verifying the EMC Symmetrix Configuration
When finished with all these steps, use the symrdf list command to get a listing of all devices
and their states.
Back up the EMC Solutions Enabler database on each node, so that these configuration steps do
not have to be repeated if a failure corrupts the database. The EMC Solutions Enabler database
is a binary file located in the directory /var/symapi/db.
Creating and Exporting Volume Groups
Use the following procedure to create volume groups and export them for access by other nodes.
The sample script mk1VGsin the /opt/cmcluster/toolkit/SGSRDF/Samples directory can
be modified to automate these steps.
1. Define the appropriate Volume Groups (VGs) on each node that run the application package.
# mkdir /dev/vgname
# mknod /dev/vgname/group c 64 0xnn0000
where the name /dev/vgname and the number nn are unique within the cluster.
2. Create volume groups only on the primary system. Use the vgcreate and vgextend
commands, specifying the appropriate HP-UX device file names.
# vgcreate vgname /dev/dsk/cxtydz
# vgextend vgname /dev/dsk/cxtydz
3. Create the logical volumes. (XXXX indicates size in MB)
# lvcreate -L XXXX /dev/vgname
4. Use the vgchangecommand to de-activate the volume group and use the vgexport command
with the -p option to export the VGs on the primary system without removing the HP-UX device
files:
# vgchange -a n vgname
# vgexport -v -s -p -m mapfilename vgname
Copy the map files to all of the nodes. The sample script Samples/ftpit shows a
semi-automated way (using ftp) to copy the files. Enter the password interactively.
Importing Volume Groups on Other Nodes
Use the following procedure to import volume groups. The sample script mk2imports can be
modified to automate these steps:
1. Import the VGs on all of the other systems that might run the Serviceguard package and backup
the LVM configuration. Make sure that you split the logical SRDF links before importing the
VGs, especially if you are importing the VGs on the R2 side.
# symrdf -g devgrpname split -v
# vgimport -v -s -m mapfilename vgname
2. Back up the configuration.
# vgchange -a y vgname
# vgcfgbackup vgname
# vgchange -a n vgname
# symrdf -g devgrpname establish -v
See the sample script Samples/mk2imports.
264 Building Disaster Recovery Serviceguard Solutions Using Metrocluster with EMC SRDF