Building Disaster Recovery Serviceguard Solutions Using Metrocluster with Continuous Access XP P9000 for Linux B.12.00.00

Virtual command device configuration
Virtual command device is used to issue RAID manager commands through LAN by the host server
to the array. To configure virtual command device, you must specify the following in the HORCM_CMD
parameter:
HORCM_CMD
\\.\IPCMD-<ip_address><port_number>
Where, <ip_address> is the address of the service processor (SVP) and the <port_number>
is the UDP communication port number.
For example,
HORCM_CMD
\\.\IPCMD-10.0.0.1-31001
NOTE: When you are using the virtual command device, ensure that the array login credentials
must be saved by the respective RAID manager in all the nodes of a Metrocluster package. Run
any one of the RAID manager command to save the array login credentials. When prompted for
the details, enter the login credentials of the array.
For example,
ls /dev/sd* | raidscan -find -fx
User for Serial#[310055] : <username>
Password :
Before configuring the Metrocluster packages using virtual command devices, you must ensure no
login credentials are prompted when executing the RAID manager commands. For more information,
see HP XP P9000 RAID Manager User Guide available at http://www.hp.com/support/manuals.
Configuring LVM volume group
LVM storage can be used in disaster recovery Metrocluster. The following section shows how to
set up LVM volume group. Before you create volume groups, you must enable activation protection
for logical volume groups, preventing the volume group from being activated by more than one
node at the same time. For more information on enabling activation protection for logical volume
groups, see Managing HP Serviceguard A.12.00.00 for Linux available at http://www.hp.com/
go/linux-serviceguard-docs.
Creating LVM volume groups
To create volume groups, do the following:
1. Create LVM physical volumes on each LUN.
# pvcreate -f /dev/sda
2. Create the volume group on the source volume.
# vgcreate --addtag $(uname -n) /dev/<vgname> /dev/sda
3. Create the logical volume. (XXXX indicates size in MB).
# lvcreate -L XXXX /dev/<vgname>
4. Create a file system on the logical volume.
# mke2fs -j /dev/<vgname>/lvol1
5. If required, deactivate the Volume Groups on the primary system and remove the tag.
# vgchange -a n <vgname>
# vgchange --deltag $(uname -n) <vgname>
20 Configuring an application in a Metrocluster environment