Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
7.  Administering the Cluster Administering the Cluster Overview How to Bring a Node Out of Maintenance State  Previous   Contents   Next 
   
 

Example--Bringing a Cluster Node Out of Maintenance State and Resetting the Quorum Vote Count

The following example resets the quorum count for a cluster node and its quorum devices to their defaults and verifies the result. The scstat -q output shows the Node votes for phys-schost-1 to be 1 and the status to be online. The Quorum Summary should also show an increase in vote counts.

phys-schost-2# scconf -c -q node=phys-schost-1,reset

[On phys-schost-1:]
ok> boot

phys-schost-1# scstat -q

-- Quorum Summary --

  Quorum votes possible:      6
  Quorum votes needed:        4
  Quorum votes present:       6

-- Quorum Votes by Node --

                    Node Name           Present Possible Status
                    ---------           ------- -------- ------
  Node votes:       phys-schost-1       1        1       Online
  Node votes:       phys-schost-2       1        1       Online
  Node votes:       phys-schost-3       1        1       Online

-- Quorum Votes by Device --

                    Device Name         Present Possible Status
                    -----------         ------- -------- ------
  Device votes:     /dev/did/rdsk/d3s2  1        1       Online
  Device votes:     /dev/did/rdsk/d17s2 1        1       Online
  Device votes:     /dev/did/rdsk/d31s2 1        1       Online

Adding and Removing a Cluster Node

The following table lists the tasks to perform when adding a node to an existing cluster. To complete the procedure correctly, these tasks must be performed in the order shown.

Table 7-2 Task Map: Adding a Cluster Node to an Existing Cluster

Task

For Instructions, Go To

Install the host adapter on the node and verify that the existing cluster interconnects can support the new node

Sun Cluster 3.x Hardware Administration Manual

Add shared storage

Sun Cluster 3.x Hardware Administration Manual

Add the node to the authorized node list

   - Use scsetup.

How to Add a Node to the Authorized Node List

Install and configure the software on the new cluster node

   - Install the Solaris Operating Environment and Sun Cluster software

   - Configure the node as part of the cluster

"Installing and Configuring Sun Cluster Software" in Sun Cluster 3.1 10/03 Software Installation Guide

The following table lists the tasks to perform when removing a node from an existing cluster. To complete the procedure correctly, the tasks must be performed in the order shown.


Caution! Caution - Do not use this procedure if your cluster is running an OPS configuration. At this time, removing a node in an OPS configuration might cause nodes to panic at reboot.


Table 7-3 Task Map: Removing a Cluster Node (5/02)

Task

For Instructions, Go To

Move all resource groups and disk device groups off of the node to be removed.

   - Use scswitch(1M)

# scswitch -S -h from-node

Remove the node from all resource groups.

   - Use scrgadm(1M)

Sun Cluster 3.1 Data Service Planning and Administration Guide

Remove node from all disk device groups

   - Use scconf(1M), metaset(1M), and scsetup(1M)

How to Remove a Node From a Disk Device Group (Solstice DiskSuite/Solaris Volume Manager)

How to Remove a Node From a Disk Device Group (VERITAS Volume Manager)

How to Remove a Node From a Raw Disk Device Group

Remove all quorum devices.

   - Use scsetup.

Caution: Do not remove the quorum device if you are removing a node from a two-node cluster.

 

How to Remove a Quorum Device

 

Note that although you must remove the quorum device before you remove the storage device in the next step, you can add the quorum device back immediately afterward.

Remove the storage device from the node. 

  - Use devfsadm(1M), scdidadm(1M).

Caution: Do not remove the quorum device if you are removing a node from a two-node cluster.How to Remove Connectivity Between an Array and a Single Node, in a Cluster With Greater Than Two-Node Connectivity

Add the new quorum device (to only the nodes that are intended to remain in the cluster).

  - Use scconf -a -q globaldev=d[n],node=node1,node=node2

scconf(1M)

Place the node being removed into maintenance state.

   - Use scswitch(1M), shutdown(1M), and scconf(1M).

How to Put a Node Into Maintenance State

Remove all logical transport connections to the node being removed.

   - Use scsetup.

How to Remove Cluster Transport Cables, Transport Adapters, and Transport Junctions

Remove the last quorum device.

How to Remove the Last Quorum Device From a Cluster

Remove node from the cluster software configuration.

   - Use scconf.

How to Remove a Node From the Cluster Software Configuration

ProcedureHow to Add a Node to the Authorized Node List

Before adding a machine to an existing cluster, be sure the node has all of the necessary hardware correctly installed and configured, including a good physical connection to the private cluster interconnect.

For hardware installation information, refer to the Sun Cluster 3.x Hardware Administration Manual or the hardware documentation that shipped with your server.

This procedure permits a machine to install itself into a cluster by adding its node name to the list of authorized nodes for that cluster.

You must be superuser on a current cluster member to complete this procedure.

  1. Be sure you have correctly completed all prerequisite hardware installation and configuration tasks listed in the task map for Adding and Removing a Cluster Node.

  2. Execute the scsetup(1M) utility.
    # scsetup

    The Main Menu is displayed.

  3. To access the New Nodes Menu, type 6 at the Main Menu.

  4. To modify the authorized list, type 3 at the New Nodes Menu, Specify the name of a machine which may add itself.

    Follow the prompts to add the node's name to the cluster. You will be asked for the name of the node to be added.

  5. Verify that the task has been performed successfully.

    The scsetup utility prints a "Command completed successfully" message if it completes the task without error.

  6. To prevent any new machines from being added to the cluster, type 1 at the New Nodes Menu.

    Follow the scsetup prompts. This option tells the cluster to ignore all requests coming in over the public network from any new machine trying to add itself to the cluster.

  7. Quit the scsetup utility.

  8. Install and configure the software on the new cluster node.

    Use either scinstall or JumpStart™ to complete the installation and configuration of the new node, as described in theSun Cluster 3.1 10/03 Software Installation Guide .

Example--Adding a Cluster Node to the Authorized Node List

The following example shows how to add a node named phys-schost-3 to the authorized node list in an existing cluster.

[Become superuser and execute the scsetup utility.]
# scsetup
Select New nodes>Specify the name of a machine which may add itself.
Answer the questions when prompted.
Verify that the scconf command completed successfully.
 
scconf -a -T node=phys-schost-3
 
    Command completed successfully.
Select Prevent any new machines from being added to the cluster.
Quit the scsetup New Nodes Menu and Main Menu.
[Install the cluster software.]
 
 
 
  Previous   Contents   Next