Building Disaster Recovery Serviceguard Solutions Using Metrocluster with 3PAR Remote Copy for Linux B.12.00.00
Creating VxVM disk groups
If you are using VERITAS storage, use the following procedure to create disk groups. The following
section explains how to set up the VERITAS disk groups. On one node in the source disk site do
the following:
1. Run the vxdisksetup command on the primary system to initialize the disks to be used with
VxVM.
# /etc/vx/bin/vxdisksetup -i <disk_name>
2. Create a disk group to be used with the vxdg command on the primary system.
# vxdg init <diskgroup_name><disk_name>
3. Verify the configuration of the created disk group.
# vxprint –g <diskgroup_name>
4. Run the vxassist command to create the logical volume.
# vxassist -g <diskgroup_name>make logfile 2048m
5. Verify the configuration of the created volume.
# vxprint -g <diskgroup_name>
6. Create a filesystem running the following command.
# mkfs -t vxfs /dev/vx/rdsk/<diskgroup_name>/logfile
7. Create a directory to mount the created volume.
# mkdir /<mountpoint_name>
8. Mount the created volume.
# mount /dev/vx/dsk/<diskgroup_name>/logfile /<mountpoint_name>
9. Verify if file system exits, and then unmount the file system.
# umount /<mountpoint_name>
10. Deport the disk group.
# vxdg deport <diskgroup_name>
11. If the Remote Copy Volume Group is configured in asynchronous periodic mode, then to reflect
disk group configuration done at the source disk site, you must synchronize the Remote Copy
Volume Group from the 3PAR storage system of the source disk site.
# cli% syncrcopy <rc_volume_group_name>
To validate the VERITAS disk groups on nodes in the target disk site:
1. Login to the target disk site's 3PAR storage system. Stop the Remote Copy Volume Group and
reverse the direction of replication.
cli% setrcopygroup reverse -stopgroups <rc_volume_group_name>
2. Import the disk group on a node in the target disk site.
# vxdg -tfC import <diskgroup_name>
3. Start the logical volume in the disk group.
# vxvol -g <diskgroup_name>startall
4. Create a directory to mount the volume.
# mkdir /<mountpoint_name>
5. Mount the volume.
# mount /dev/vx/dsk/<diskgroup_name>/logfile /<mountpoint_name>
Configuring LVM volume group 17