Package template is created.

This file must be edited before it can be used.

2.Edit the following package parameters in the cfspkg1.ascii package configuration file:

package_namecfspkg1

node_name

node1

node_name

node2

node_name

node3

node_name

node4

cvm_disk_group

cvm_dg1_node1

cvm_activation_mode

"node1=sw node2=sw node3=sw node4=sw"

cfs_mount_point

/mnt2

cfs_volume

cvm_dg1_node1/lvol1

cfs_mount_options

"node1=cluster node2=cluster node3=cluster node4=cluster"

cfs_primary_policy

""

NOTE: By default, the package parameters are commented. You must uncomment them and specify the values.

If you wish to run the disk group and mount point packages on all nodes that the package can run, you can specify “all=cluster” as the value for the cfs_mount_options and “all=sw” for cvm_activation_mode in the cfspkg1.ascii file, instead of specifying the values for individual nodes. Note that “all=cluster” does not configure the packages to run on all nodes in the cluster, but only on the nodes configured in the package.

The dependencies of the mount point on the disk group must be specified if the disk groups and mount points are in separate packages.

cvm_disk_group

cvm_activation_mode

cfs_mount_point cfs_volume cfs_mount_options

cfs_primary_policy

name of the shared disk group

activation mode for the shared disk group. Legal values are "sw", "sr", "ew", and "ro", which expands to shared write, shared read, exclusive write, and read only.

unique mount point name; supports nested mount points

Diskgroups/Logical volume pair used by the CFS mount point.

the CFS mount options for the mount point. Legal values are “cluster”, “tmplog”, “delaylog”, etc. For detailed information about the mount options, see the mount_vxfs (1m) manpage.

sets the primary migration policy for the mount point. This option sets up the order in which hosts assume the cluster file system primary ownership if the primary node fails. If no host specified in the list is active when the primary node fails, a node is chosen at random to be the new primary. When the policy is set, if the first host name specified in the list is not the current primary, a primary migration is triggered to the first host in the list. For details, see the fsclustadm (1m) manpage.

3.Check the package configuration file:

cmcheckconf -P /etc/cmcluster/cfspkg1.ascii

cmcheckconf: Verification completed with no errors found. Use the cmapplyconf command to apply the configuration

4.Apply the package configuration file:

cmapplyconf -P /etc/cmcluster/cfspkg1.ascii

206 Building an HA Cluster Configuration

Page 206
Image 206
HP Serviceguard manual Cmcheckconf -P /etc/cmcluster/cfspkg1.ascii, Apply the package configuration file