C H A P T E R  11

Adding a Node to a Cluster

For a description of the options for adding a diskless node or dataless node to a cluster, see the following sections:


Deciding How to Add a Node to a Cluster

Before adding a node to a cluster, ask the following questions:

For information about how to add a node to a cluster installed by the nhinstall tool or manually, see the Netra High Availability Suite 3.0 1/08 Foundation Services Manual Installation Guide for the Solaris OS.

To use the CMM API to add or remove a node from a cluster, see the cmm_config_reload3CMM man page.


Determining Whether a Cluster Has Predefined Nodes

To determine whether a cluster has predefined nodes, perform the following procedure.

procedure icon  To Determine Whether the Cluster Has Predefined Nodes

  1. Log in to the master node as superuser.

  2. Determine how many nodes are up and running in the cluster:


    # nhcmmstat –c all
    

    This command returns information about the nodes that are up and running in the cluster, but does not return information about nodes that are physically present but down.

  3. Determine how many nodes are defined in the cluster configuration.

    1. Look at the cluster_nodes_table file.

      The file contains a line for each node in the cluster definition. Count the number of nodes configured in this file. On Solaris systems, the file is located at /etc/opt/SUNWcgha/cluster_nodes_table. On Linux systems, the file is located at /etc/opt/sun/nhas/cluster_nodes_table.

    2. If there is an /export/root directory on the master node, examine its contents.

      There is one /diskless-node-name directory for each diskless node in the cluster.

  4. Count the number of nodes physically present in the cluster.

    Use the output of the nhcmmstat command and your knowledge of any nodes that are physically present but down. If a cluster has predefined nodes that are not diskless nodes, they are dataless nodes.