Designing Disaster Tolerant High Availability Clusters, 10th Edition, March 2003 (B7660-90013)

Physical Data Replication for ContinentalClusters Using Continuous Access XP
Creating and Exporting LVM Volume Groups
Chapter 6294
Creating and Exporting LVM Volume Groups
Use the following procedure to create and export volume groups.
1. Define the appropriate Volume Groups on each host system that
might run the application package. Use the commands:
# mkdir /dev/vgxx
# mknod /dev/vgxx/group c 64 0xnn0000
where the name /dev/vgxx and the number nn are unique within the
entire cluster.
2. Create the Volume Group only on the primary system on the primary
cluster. Use the vgcreate and perhaps the vgextend command,
specifying the appropriate special device file names. See the sample
script /opt/cmcluster/toolkit/SGCA/Samples-CC/mk1VGs.
3. Create the logical volume(s) for the volume group.
4. Export the VGs on the primary system without removing the special
device files. Use the commands:
# vgchange -a n <vgname>
Make sure that you copy the mapfiles to all of the host systems:
# vgexport -s -p -m <mapfilename> <vgname>
5. On the primary cluster import the VGs on all of the other systems
that might run the MC/ServiceGuard package and backup the LVM
configuration. Use the commands:
# vgimport -s -m <mapfilename> <vgname>
# vgchange -a y <vgname>
# vgcfgbackup <vgname>
# vgchange -a n <vgname>
See the sample script
/opt/cmcluster/toolkit/SGCA/Samples-CC/mk2imports.
6. On the recovery cluster import the VGs on all of the systems that
might run the MC/ServiceGuard recovery package and backup the
LVM configuration. Use the commands: