| United States-English |
|
|
|
![]() |
VERITAS Volume Manager 3.1 Administrator's Guide: for HP-UX 11i and HP-UX 11i Version 1.5 > Chapter 7 Cluster FunctionalityCluster-related Volume Manager Utilities and Daemons |
|
The following utilities and/or daemons have been created or modified for use with the Volume Manager in a cluster environment: The following sections contain information about how each of these utilities is used in a cluster environment. For further details on any of these utilities, see their manual pages.
The vxclustd daemon is the Volume Manager cluster reconfiguration daemon. The vxclustd daemon provides communication between the cluster manager and VxVM and initiates cluster reconfigurations. Every node currently in the cluster runs an instance of the vxclustd daemon. Whenever cluster membership changes, the cluster manager notifies the vxclustd daemon, which then initiates a reconfiguration within VxVM. The vxclustd daemon is started up by the cluster manager when the node initially attempts to join the cluster. The vxclustd daemon first registers with the cluster manager and obtains the following information from the cluster manager:
Registration also provides a callback mechanism for the cluster manager to notify the vxclustd daemon when cluster membership changes. After initializing kernel cluster variables, the vxclustd daemon waits for a callback from the cluster manager. When the vxclustd daemon obtains membership information from the cluster manager, it validates the membership change, and provides the new membership to the kernel. The reconfiguration process continues within the kernel and the vxconfigd daemon. This includes selection of a new master node if necessary, initiation of communication between vxconfigd daemons on the master and slave nodes, and a join protocol at the vxconfigd and kernel levels that validates VxVM objects and distributes VxVM configuration information across the cluster. If reconfiguration completes successfully, the vxclustd daemon does not take any further action; it waits for the next membership change from the cluster manager. If reconfiguration within the kernel or within the vxconfigd daemon fails, the node must leave the cluster. The kernel fails I/Os in progress to shared disks, and stops access to shared disks and the vxclustd daemon. The vxclustd daemon invokes the cluster manager command to halt the cluster on this node. When a clean node shutdown is performed, the vxclustd daemon waits until kernel cluster reconfiguration completes and then exits.
The vxconfigd daemon is the Volume Manager configuration daemon. The vxconfigd daemon maintains configurations of VxVM objects. The vxconfigd daemon receives cluster-related instructions from the kernel. A separate copy of the vxconfigd daemon resides on each node; these copies communicate with each other through networking facilities. For each node in a cluster, Volume Manager utilities communicate with the vxconfigd daemon running on that particular node; utilities do not attempt to connect with vxconfigd daemons on other nodes. During startup of the cluster, kernel tells the vxconfigd daemon to begin cluster operation and tells it whether it is a master or slave node. When a node is initialized for cluster operation, the kernel tells the vxconfigd daemon that the node is about to join the cluster and provides the vxconfigd daemon with the following information (from the cluster manager configuration database):
On the master node, the vxconfigd daemon sets up the shared configuration (i.e., imports the shared disk groups) and informs the vxclustd daemon when it is ready for slaves to join. On slave nodes, the kernel tells the vxconfigd daemon when the slave node can join the cluster. When the slave node joins the cluster, the vxconfigd daemon and the Volume Manager kernel communicate with their counterparts on the master in order to set up the shared configuration. When a node leaves the cluster, the vxconfigd daemon notifies the kernel on all the other nodes. The master node then performs any necessary cleanup. If the master node leaves the cluster, the kernels choose a new master node and the vxconfigd daemons on all nodes are notified of the choice. The vxconfigd daemon also participates in volume reconfiguration. See “Volume Reconfiguration” for information on the role of the vxconfigd daemon in volume reconfiguration. The Volume Manager vxconfigd daemon can be stopped and/or restarted at any time. While the vxconfigd daemon is stopped, volume reconfigurations cannot take place and other nodes cannot join the cluster until the vxconfigd daemon is restarted. In the cluster, the vxconfigd daemons on the slaves are always connected to the vxconfigd daemon on the master. It is therefore not advisable to stop the vxconfigd daemon on any clustered node. If the vxconfigd daemon is stopped, different actions are taken depending on which node has a stopped daemon:
When the vxclustd daemon notices that the vxconfigd daemon is stopped on a node, the vxclustd daemon restarts the vxconfigd daemon.
When the vxdctl utility is executed as "vxdctlenable", if DMP identifies a DISABLED primary path of a shared disk in an active/passive type disk array as physically accessible, this path is marked as ENABLED. However, I/Os continue to use the current path and are not routed through the path that has been marked ENABLED. This is a deviation from single host behavior of this command where I/Os automatically failback to the primary path. The vxdctl utility manages some aspects of the vxconfigd volume configuration daemon.The -c option can be used to request cluster information. To use the vxdctl utility to determine whether the vxconfigd daemon is enabled and/or running, use the following command:
Depending on the circumstances, this produces output similar to the following:
The vxdctl utility lists the cluster protocol version and cluster protocol range. After all the nodes in the cluster are updated with the new cluster protocol, update the entire cluster using the following command:
Check the existing cluster protocol version using the following command:
Display the maximum and minimum cluster protocol version supported by the current VxVM release using the following command:
The vxdctl list command displays the cluster protocol version running on a node. The vxdctl list command produces the following output:
The vxdctl support command displays the maximum and minimum protocol version supported by the node and the current protocol version. The following is the output of the vxdctl support command:
The vxdg utility manages Volume Manager disk groups. The vxdg utility can be used to specify that a disk group is cluster-shareable. The -s option to the vxdg utility is provided to initialize or import a disk group as "shared." If the cluster software has been run to set up the cluster, a shared disk group can be created using the following command:
where:
Disk groups can be imported as shared using the vxdg -s import command. If the disk groups were set up before the cluster software was run, the disk groups can be imported into the cluster arrangement using the following command:
where diskgroup is the disk group name or ID. On subsequent cluster restarts, the disk group is automatically imported as shared. Note that it can be necessary to deport the disk group (using the vxdg deport diskgroup command) before invoking this command. A disk group can be converted from shared to private by deporting it via vxdg deport and then importing it with the vxdg import diskgroup command.
The vxdg command has a force option (-f) that can be used to force-import a disk group or force-add a disk to a disk group.
When a cluster is restarted, VxVM may refuse to auto-import a disk group for one of the following reasons:
If VxVM does not add a disk to an existing disk group (because that disk is not attached to the same node(s) as the other disks in the disk group), the system administrator can force-add the disk using the following command:
A shared disk group can be activated using the following command:
where mode is one of the following:
vxdg can also be used to list shared disk groups. To display one line of information for each disk group, use the following command:
The output from this command is as follows:
Shared disk groups are designated with the flag shared. To display one line of information for each shared disk group, use the following command:
The output for this command is as follows:
To display information about one specific disk group, including whether it is shared or not, use the following command:
where diskgroup is the disk group name. For example, the output for vxdg list group1 on the master (for the disk group group1) is as follows:
Note that the flags: field is set to shared. The output for the same command is slightly different on a slave. The vxdisk utility manages Volume Manager disks. To use the vxdisk utility to determine whether a disk is part of a cluster-shareable disk group, use the following command:
where accessname is the disk access name (or device name). The output from this command (for the device c4t1d0) is as follows:
Note that the clusterid: field is set to cvm (the name of the cluster) and the flags: field includes an entry for shared. When a node is not joined, the flags: field contains the autoimport flag instead of imported. The vxdmpadm utility is a command line administrative interface for the Dynamic Multipathing feature of VxVM. This utility can be used to list DMP database information and perform other system administration related tasks. For more information, see the manual page vxdmpadm(1M) and “Disabling and Enabling Controllers”. Volume Manager does not allow enabling or disabling of controllers connected to a disk that is part of a shared VxVM disk group. For example, consider a Galaxy disk array that is connected through controller c0 to a host. This controller has a disk that is part of a shared disk group. In such a situation, following operations fail on that host:
The following error message is displayed:
The DMP restore daemon does not automatically failback I/Os for a disk in an Active/Passive disk array if that disk is a part of a shared disk group. When a restore daemon revives a DISABLED primary path to a shared disk in an Active/Passive disk array, DMP does not route the I/Os automatically through the primary path, but continues routing them through the secondary path. This behavior of the restore daemon is a deviation from that on a single host environment. A shared disk here means a disk which is a part of a shared disk group. In a clustered environment, failback of I/Os to the primary path happens only when the secondary path becomes physically inaccessible tot he host. The vxrecover utility recovers plexes and volumes after disk replacement. When a node leaves the cluster, it can leave some mirrors in an inconsistent state. The vxrecover utility performs recovery on all volumes in this state. The -c option causes the vxrecover utility to perform recovery for all volumes in cluster-shareable disk groups.The vxclustd daemon automatically calls the vxrecover -c utility, when necessary.
The vxstat utility returns statistics for specified objects. In a cluster environment, the vxstat utility gathers statistics from all of the nodes in the cluster. The statistics give the total usage, by all nodes, for the requested objects. If a local object is specified, its local usage is returned. The caller can optionally specify a subset of nodes using the following command:
where node is an integer. If a comma-separated list of nodes is supplied, the vxstat utility displays the sum of the statistics for the nodes in the list. For example, to obtain statistics for node 2, volume vol1,use the following command:
This command produces output similar to the following:
To obtain and display statistics for the entire cluster, use the following command:
The statistics for all nodes are added together. For example, if node 1 did 100 I/Os and node 2 did 200 I/Os, the vxstat -b command returns 300 I/Os. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||