Building Disaster Recovery Serviceguard Solutions Using Metrocluster with Continuous Access EVA A.05.01

3. Create a Metrocluster Modular package configuration file using the package configuration
file created in step 1.
When using HP Serviceguard A.11.19, run the following command to include the Metrocluster
modules in the new modular package configuration file:
# cmmakepkg i <modular_sg_ecm.conf> -m dts/mccaeva -t\
<path_to_env_file><modular_sg_ecm_mc.conf>
4. Halt the package.
# cmhaltpkg <package_name>
5. Validate the package configuration file.
# cmcheckconf -P <modular_sg_ecm_mc.conf>
6. Apply the package configuration with the modular configuration file created in step 3.
# cmapplyconf -P <modular_sg_ecm_mc.conf>
7. Run the package on a node in the Serviceguard cluster.
# cmrunpkg -n <node_name><package_name>
8. Enable global switching for the package.
# cmmodpkg -e <package_name>
Configuring storage devices for complex workload
The following sections describes the procedure to configure storage devices managed by SG SMS
CFS or CVM as a legacy package on both the source disk site and the target site.
Configuring the storage device for the complex workload at the source disk site using
SG SMS CFS or CVM
To configure a storage device using SG SMS CFS or CVM in a legacy style package:
1. Initialize 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. Create Serviceguard Disk Group MNP packages for the disk groups with a unique name in
the cluster:
# cfsdgadm add <cvm_dg_name><cvm_dg_pkg_name> all=sw\
<node1><node2>
where node1 and node2 are the nodes in the Source Disk Site.
4. Activate the CVM disk group in the Source Disk Site CFS sub-cluster.
# cfsdgadm activate <cvm_dg_name>
5. Create a volume from the disk group
# vxassist -g <cvm_dg_name> make <cvm_dg_vol_name> 4500m
6. To configure the storage devices using CFS:
Create a file system using the created volume
# newfs -F vxfs \
/dev/vx/rdsk/<cvm_dg_name>/<cvm_dg_vol_name>
NOTE: Skip the following steps if you want to use the storage devices as raw CVM volumes.
Configuring storage devices for complex workload 95