Building Disaster Recovery Serviceguard Solutions Using Metrocluster with 3PAR Remote Copy

# cmdeploycl -s siteA -n node1 -n node2 -s siteB -n node3 -n node4 -c
site_cluster -q quorum.server.com -cfs
This creates a cluster with two sites with the CVM infrastructure configured via the SG-CFS-pkg
System Multi-node (SMNP) package. For additional information on cmdeploycl, see man page,
cmdeploycl (1m).
Setting up replication
In SADTA, the data of the complex workload must be replicated between the disk arrays at each
site. The Site Controller package uses the Metrocluster package attributes to prepare the storage
during its start up. For more information on configuring replication for HP 3PAR storage systems
in your environment, see “Setting up the replication using 3PAR Remote Copy” (page 14).
Setting up the complex workload redundantly in Metrocluster
For SADTA, the complex workload is configured redundantly in the cluster. A separate set of
packages must be used to configure the complex workload at each site. The data of the complex
workload must be replicated between the disk arrays at each site.
The storage device for a complex workload must first be configured at the site with the source disk
of the replication disk group. Then, a complex workload package stack must be created at this
site. It is only at this stage that an identical complex workload using the target replicated disk must
be configured with the complex workload stack at the other site.
The site from where the data is replicated is referred as Source Disk Site and the site to which the
data is replicated is referred as Target Disk Site in this section.
Configuring the storage device for the complex workload at the source disk site
The shared storage device for storing the data of a complex workload can be configured using
CFS, CVM, or SLVM. When using CFS, appropriate Cluster File Systems must be created over the
replicated disks. When using SLVM or CVM, appropriate SLVM volume groups or CVM disk groups
must be created with required raw volumes over the replicated disks. The procedures to create the
storage device differ when using CFS, CVM, or SLVM.
Configuring the storage device using SG SMS CFS or CVM
Serviceguard enables you to manage all the CVM diskgroups and the CFS mountpoints required
by an application within a single package.
To set up the CVM disk group volumes, do the following on the CVM cluster master node in the
primary sub-cluster volumes:
1. Initalize the source disks of the replication pair.
# /etc/vx/bin/vxdisksetup -i <replicated_disk_1>
# /etc/vx/bin/vxdisksetup -i <replicated_disk_2>
2. Create a disk group for the complex workload data.
# vxdg s init <cvm_dg_name> <replicated_disk_1> <replicated_disk_2>
3. Activate the CVM disk group in the primary sub-cluster.
# vxdg -g <cvm_dg_name> set activation=sw
4. Create a volume from the disk group.
# vxassist -g <cvm_dg_name> make <cvm_dg_vol_name> XXXX
where XXXX is the size of the volume.
5. Optional: Create a filesystem.
# newfs -F vxfs /dev/vx/rdsk/<cvm_dg_name>/<cvm_dg_vol_name>
30 Configuring complex workloads using SADTA