Managing Serviceguard A.11.20, March 2013
cmcheckconf: Verification completed with no errors found.
Use the cmapplyconf command to apply the configuration
4. When verification has completed without errors, apply the package configuration file. This
adds the package configuration information (along with generic resources) to the binary cluster
configuration file in the $SGCONF directory (usually /etc/cmcluster directory) and distributes
it to all the cluster nodes.
cmapplyconf -P $SGCONF/pkg1/pkg1.conf
Modify the package configuration ([y]/n)? y
Completed the cluster update
5. Verify that the generic resources parameters are configured.
cmviewcl -v -p pkg1
UNOWNED_PACKAGES
PACKAGE STATUS STATE AUTO_RUN NODE
pkg1 down halted disabled unowned
Policy_Parameters:
POLICY_NAME CONFIGURED_VALUE
Failover configured_node
Failback manual
Script_Parameters:
ITEM STATUS NODE_NAME NAME
Generic Resource unknown node1 sfm_disk
Generic Resource unknown node2 sfm_disk
Node_Switching_Parameters:
NODE_TYPE STATUS SWITCHING NAME
Primary up enabled node1
Alternate up enabled node2
Other_Attributes:
ATTRIBUTE_NAME ATTRIBUTE_VALUE
Style modular
Priority no_priority
The cmviewcl -v -f line output will be as follows:
cmviewcl -v -f line -p pkg1 | grep generic_resource
generic_resource:sfm_disk|name=sfm_disk
generic_resource:sfm_disk|evaluation_type=during_package_start
generic_resource:sfm_disk|up_criteria=”N/A”
generic_resource:sfm_disk|node:node1|status=unknown
generic_resource:sfm_disk|node:node1|current_value=0
generic_resource:sfm_disk|node:node2|status=unknown
generic_resource:sfm_disk|node:node2|current_value=0
NOTE: The default status of a generic resource is UNKNOWN and the default current_value
is "0" unless the status/value of a simple/extended generic resource is set using the
cmsetresource command.
6. Start the package. As part of the package start, the monitoring script will start the monitoring
of the generic resource and set the status accordingly.
cmrunpkg pkg1
NOTE:
140 Planning and Documenting an HA Cluster