Managing clusters with commands
You can use commands to manage a set of cluster nodes.
Use the following commands to manage clusters:
- mkcluster
- Use this command to create a cluster. The following example creates
a multinode cluster:
mkcluster -n mycluster -m nodeA,nodeB,nodeC -r hdisk7 -d hdisk20,hdisk21,hdisk22 - chcluster
- Use this command to change the cluster configuration. The following
example adds a node to the cluster configuration:
chcluster -n mycluster -m +nodeD - rmcluster
- Use this command to remove the cluster configuration. The following
example removes the cluster configuration:
rmcluster -n mycluster - lscluster
- Use this command to list cluster configuration information. The
following example lists the cluster configuration for all nodes:
lscluster -m - clcmd
- Use this command to distribute a command to a set of nodes that
are members of a cluster. The following example lists the date for
all the nodes in the cluster:
clcmd date