| United States-English |
|
|
|
![]() |
Managing Serviceguard Version A.11.16, Eleventh EditionSecond Printing > Chapter 5 Building
an HA Cluster ConfigurationCreating a Storage Infrastructure with CVM |
|
In addition to configuring the cluster, you create the appropriate logical volume infrastructure to provide access to data from different nodes. This is done with Logical Volume Manager (LVM), VERITAS Volume Manager (VxVM), or VERITAS Cluster Volume Manager (CVM). You can also use a mixture of volume types, depending on your needs. LVM and VxVM configuration are done before cluster configuration, and CVM configuration is done after cluster configuration. For a discussion of migration from LVM to VxVM or CVM storage, refer to Appendix H. This section shows how to configure storage using the command set of the VERITAS Cluster Volume Manager (CVM). Before starting, make sure the directory in which VxVM commands are stored (/usr/lib/vxvm/bin) is in your path. Once you have created the root disk group with vxinstall, you can use VxVM commands or the VERITAS Storage Administrator GUI, vmsa, to carry out configuration tasks. If you are using vmsa, be sure the storage administrator server is running before you launch the GUI. Detailed instructions for running vxinstall are given in the VERITAS Volume Manager 3.5 Release Notes. For more information, refer to the VERITAS Volume Manager 3.5 Administrator’s Guide. Separate procedures are given below for:
For more information, including details about configuration of plexes (mirrors), multipathing, and RAID, refer to the HP-UX documentation for the VERITAS Volume Manager. If you are about to create disk groups for the first time, you need to initialize the Volume Manager. This is done by creating a disk group known as rootdg that contains at least one disk. Use the following command after installing VxVM/CVM on each node: # vxinstall This displays a menu-driven program that steps you through the VxVM/CVM initialization sequence. From the main menu, choose the “Custom” option, and specify the disk you wish to include in rootdg.
In order to use the VERITAS Cluster Volume Manager (CVM), you need a cluster that is running with a special CVM package, called a System Multi-node Package (SMP). This means that the cluster must already be configured and running before you create disk groups. You cannot configure SMP packages through Serviceguard Manager. Once the SMP is configured, however, you can modify its cluster’s configuration if you have root login on one of the cluster nodes. You can view the SMP packages if you have monitor access role. You can halt or start the SMP packages in Serviceguard Manager if you have full-admin access role.
To prepare the cluster for CVM disk group configuration, you need to set MAX_CONFIGURED_PACKAGES to 1 or greater in the cluster ASCII configuration file, and ensure that only one heartbeat subnet is configured. Then use the following command, which creates the special package that communicates cluster information to CVM: # cmapplyconf -P /etc/cmcluster/cvm/VxVM-CVM-pkg.conf
After this command completes successfully, you can create disk groups for shared use as described in the following sections. The cluster is now running with a special system multi-node package named VxVM-CVM-pkg, which is on all nodes. This package is shown in the following output of the cmviewcl command:
If it is not already running, start the cluster, which will activate the special CVM package: # cmruncl When CVM starts up, it selects a master node, and this is the node from which you must issue the disk group configuration commands. To determine the master node, issue the following command from each node in the cluster: # vxdctl -c mode One node will identify itself as the master. Create disk groups from this node. You need to initialize the physical disks that will be employed in CVM disk groups. If a physical disk has been previously used with LVM, you should use the pvremove command to delete the LVM header data from all the disks in the volume group (this is not necessary if you have not previously used the disk with LVM). To initialize a disk for CVM, log on to the master node, then use the vxdiskadm program to initialize multiple disks, or use the vxdisksetup command to initialize one disk at a time, as in the following example: # /usr/lib/vxvm/bin/vxdisksetup -i c0t3d2 The following steps should be used to create disk groups.
Use the vxassist command to create logical volumes, as in the following example: # vxassist -g logdata make log_files 1024m This command creates a 1024 MB volume named log_files in a disk group named logdata. The volume can be referenced with the block device file /dev/vx/dsk/logdata/log_files or the raw (character) device file /dev/vx/rdsk/logdata/log_files. Verify the configuration with the following command: # vxdg list The default CVM disk mirror detachment policy is ‘global’, which means that as soon as one node cannot see a specific mirror copy (plex), all nodes cannot see it as well. The alternate policy is ‘local’, which means that if one node cannot see a specific mirror copy, then CVM will deactivate access to the volume for that node only. This policy can be re-set on a disk group basis by using the vxedit command, as follows: # vxedit set diskdetpolicy=[global|local] <DiskGroupName>
If your installation uses file systems, create them next. Use the following commands to create a file system for mounting on the logical volume just created:
After creating units of storage with VxVM commands, you need to specify the CVM disk groups in each package configuration ASCII file. Use one DISK_GROUP parameter for each disk group the package will use. You also need to identify the CVM disk groups, file systems, logical volumes, and mount options in the package control script. The package configuration process is described in detail in Chapter 6.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||