Home > Veritas Storage Foundation™ Volume Manager Manual Pages
vxclustadm [-v] nodestate
vxclustadm -m vcs reinit
vxclustadm -m vcs -t gab startnode
Caution: Use of the clustering functionality of VxVM without a cluster monitor is not supported. Cluster reconfiguration problems may occur if there is no cluster monitor or if GAB is used as the cluster monitor. Ensure that you completely understand the functionality of this command before using it.
- Stops clustering activity on a node and abandons all uncompleted I/O on shared volumes. This command is for emergency shutdown.
- Prints a table showing the mapping between node IDs in VxVM's cluster-support subsystem and node IDs in the cluster monitor.
- Displays the state of a node in the cluster and the reason for last abort of the node on the standard output. Valid states are:
- \f(CWcluster aborting
- The node is being aborted from the cluster.
- \f(CWcluster member
- The node is a member of the cluster. All shared volumes in the cluster are accessible.
- The node is in the process of joining a cluster. It has been initialized but is not yet completely in the cluster. The node goes into this state after vxclustadm is executed with the startnode keyword.
- \f(CWout of cluster
- The node is not joined to the cluster.
Refer to the Veritas Volume Manager Administrator's Guide for more information about reasons why a node may leave a cluster.
For debugging purposes the -v option can be specified to display the node ID, master ID, neighbor ID, current state, and reason for a node leaving the cluster (if appropriate).
- The reinit keyword allows nodes to be added to or removed from a cluster dynamically without stopping the cluster. The command causes vxclustadm to re-read the cluster configuration file, and implement any required changes to the membership of the cluster.
The -m vcs option specifies the VCS cluster monitor, which implies the existence of the cluster configuration file, /etc/VRTSvcs/conf/config/main.cf.
- The startnode keyword initiates cluster functionality on a node using the information supplied in the cluster configuration file. This is the first command that must be issued on a node to bring it into the cluster.
The argument to the -m option specifies the cluster monitor, which implies the existence of a cluster configuration file:
- The cluster is running in the VCS environment. The cluster configuration file is /etc/VRTSvcs/conf/config/main.cf.
Caution: Use VCS commands to edit the main.cf file. Do not edit this file by hand.
startnode passes the information in the cluster configuration file to the VxVM kernel. In response to this command, the kernel and the VxVM configuration daemon, vxconfigd, perform the initialization.
The argument to the -t option specifies the protocol to be used for messaging:
- Use GAB as the transport agent for messaging in addition to using GAB as a cluster monitor. If you try to use GAB as a transport agent with a cluster monitor other than GAB (or outside the VCS or HP Serviceguard environment), the kernel changes the transport agent to UDP.
When the cluster is running in the VCS environment, the clustering functionality of VxVM should use GAB as the transport agent for messaging.
- Stops cluster functionality on a node, and waits for all outstanding I/O to complete and for all applications to close shared volumes or devices.
clusternamecluster_nameport vxconfigdport_numberport vxkmsgdport_numbernodenode_ID name name_on_local_nettimeouttimeout_value ...
The recommended port numbers for the vxconfigd and vxkmsgd daemons are 4500 and 4501, but any available port numbers greater than 1024 are also acceptable.
name_on_local_net is the node's IP address or resolvable host name on the cluster's private network.
timeout_value is the timeout value in seconds. The clustering functionality of VxVM uses this value during cluster reconfiguration. The appropriate value to use depends on the number of nodes in the cluster and on the size of the shared disk group configuration. In most cases the value of 200 seconds is sufficient but this may need to be increased for larger configurations.
Comment lines in the file start with a #.
If GAB is being used as the transport agent for messaging, fields relating to port numbers and local network names are not required:
clusternamecluster_namenodenode_ID nametimeouttimeout_value ...
For a cluster running in the VCS environment, VxVM obtains information about the cluster from the VCS cluster configuration file (/etc/VRTSvcs/conf/config/main.cf). Cluster-specific information may be appended to this file by running the vxcvmconfig command. For more information refer to the Veritas Cluster File System Installation and Configuration Guide.
# ClusterName clustername CVM1 # Daemon port numbers port vxconfigd 4500 port vxkmsgd 4501 # NodeID Nodename Localname node 0 node0 node0_p node 1 node1 node1_p node 2 node2 node2_p node 3 node3 node3_p # Timeout value timeout 200
If GAB is used as the transport agent for messaging, the cvmtab file only needs to contain the following information:
# ClusterName clustername CVM1 # NodeID Nodename node 0 node0 node 1 node1 node 2 node2 node 3 node3 # Timeout value timeout 200
If node1 is the first node to join the cluster, it becomes the master node. The following command confirms that node1 is the master node:
vxdctl -c mode
To determine if reconfiguration of node3 is complete, examine the value returned from running the following command on node3:
vxclustadm -v nodestate
To confirm that node3 is a slave node, the following command is run on node3:
vxdctl -c mode
node1 remains as the master node for its lifetime in the cluster. To remove node1 from the cluster, the following command is run on node1:
Veritas Volume Manager Administrator's Guide
Veritas Cluster File System Installation and Configuration Guide
Last updated: 17 Mar 2005
Copyright ©2009 Symantec Corporation
All rights reserved.