Sun Cluster System Administration Guide for Solaris OS

Chapter 8 Administering the Cluster

This chapter provides the procedures for administering items that affect the entire cluster.

This is a list of the sections in this chapter.

Overview of Administering the Cluster

This section describes how to perform administrative tasks for the entire cluster. The following table lists all these administrative tasks and the associated procedures. For Solaris 10 OS, unless other indicated perform cluster administrative tasks in the global zone.

Table 8–1 Task List: Administering the Cluster

Task 

Instructions 

Change the name of the cluster 

How to Change the Cluster Name

List node IDs and their corresponding node names 

How to Map Node ID to Node Name

Permit or deny new nodes to add themselves to the cluster 

How to Work With New Cluster Node Authentication

Change the time for a cluster by using the Network Time Protocol (NTP) 

How to Reset the Time of Day in a Cluster

Shut down a node to the OpenBoot PROM ok prompt on a SPARC based system or to the Press any key to continue message in a GRUB menu on an x86 based system

SPARC: How to Display the OpenBoot PROM (OBP) on a Node

Change the private host name 

How to Change the Node Private Host Name

Put a cluster node in maintenance state 

How to Put a Node Into Maintenance State

Bring a cluster node out of maintenance state 

How to Remove Node From Maintenance State

Add a node to a cluster 

Adding a Cluster Node

Remove a node from a cluster 

Removing a Cluster Node

Uninstall Sun Cluster software from a node 

How to Uninstall Sun Cluster Software From a Cluster Node

Correct error messages 

How to Correct Error Messages

ProcedureHow to Change the Cluster Name

If necessary, you can change the cluster name after initial installation.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Become superuser on any node in the cluster.

  2. Start the clsetup utility.


    # clsetup
    

    The Main Menu is displayed.

  3. To change the cluster name, type the number that corresponds to the option for Other Cluster Properties.

    The Other Cluster Properties menu is displayed.

  4. Make your selection from the menu and follow the onscreen instructions.


Example 8–1 Changing the Cluster Name

The following example shows the cluster(1CL) command generated from the clsetup(1CL) utility to change to the new cluster name, dromedary.


# cluster -c dromedary

ProcedureHow to Map Node ID to Node Name

During Sun Cluster installation, each node is automatically assigned a unique node ID number. The node ID number is assigned to a node in the order in which it joins the cluster for the first time. After the node ID number is assigned, the number cannot be changed. The node ID number is often used in error messages to identify which cluster node the message concerns. Use this procedure to determine the mapping between node IDs and node names.

You do not need to be superuser to list configuration information.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Use the clnode(1CL) command to list the cluster configuration information.


    % clnode show | grep Node
    

Example 8–2 Mapping the Node ID to the Node Name

The following example shows the node ID assignments.


% clnode show | grep Node
=== Cluster Nodes ===
Node Name:				phys-schost1
  Node ID:				1
Node Name: 				phys-schost2
  Node ID:				2
Node Name:				phys-schost3
  Node ID:				3

ProcedureHow to Work With New Cluster Node Authentication

Sun Cluster enables you to determine if new nodes can add themselves to the cluster and with what type of authentication. You can permit any new node to join the cluster over the public network, deny new nodes from joining the cluster, or indicate a specific node that can join the cluster. New nodes can be authenticated by using either standard UNIX or Diffie-Hellman (DES) authentication. If you select DES authentication, you must also configure all necessary encryption keys before a node can join. See the keyserv(1M) and publickey(4) man pages for more information.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Become superuser on any node in the cluster.

  2. Start the clsetup(1CL) utility.


    # clsetup
    

    The Main Menu is displayed.

  3. To work with cluster authentication, type the number that corresponds to the option for new nodes.

    The New Nodes menu is displayed.

  4. Make your selection from the menu and follow the onscreen instructions.


Example 8–3 Preventing a New Machine From Being Added to the Cluster

The following example shows the claccess command generated from the clsetup utility that would prevent new machines from being added to the cluster.


# claccess deny -h hostname


Example 8–4 Permitting All New Machines to Be Added to the Cluster

The following example shows the claccess command generated from the clsetup utility that would enable all new machines to be added to the cluster.


# claccess allow-all


Example 8–5 Specifying a New Machine to Be Added to the Cluster

The following example shows the claccess command generated from the clsetup utility to enable a single new machine to be added to the cluster.


# claccess allow -h hostname


Example 8–6 Setting the Authentication to Standard UNIX

The following example shows the claccess command generated from the clsetup utility to reset to standard UNIX authentication for new nodes that are joining the cluster.


# claccess set -p protocol=sys


Example 8–7 Setting the Authentication to DES

The following example shows the claccess command generated from the clsetup utility to use DES authentication for new nodes that are joining the cluster.


# claccess set -p protocol=des

When using DES authentication, you must also configure all necessary encryption keys before a node can join the cluster. See the keyserv(1M) and publickey(4) man pages for more information.


ProcedureHow to Reset the Time of Day in a Cluster

Sun Cluster uses the Network Time Protocol (NTP) to maintain time synchronization between cluster nodes. Adjustments in the cluster occur automatically as needed when nodes synchronize their time. See the Sun Cluster Concepts Guide for Solaris OS and the Network Time Protocol User's Guide for more information.


Caution – Caution –

When using NTP, do not attempt to adjust the cluster time while the cluster is up and running. Do not adjust the time by using the date(1), rdate(1M), xntpd(1M), or svcadm(1M) commands interactively or within cron(1M) scripts.


This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Become superuser on any node in the cluster.

  2. Shut down the cluster.


    # cluster shutdown -g0 -y -i 0
    
  3. Verify that the node is showing the ok prompt on a SPARC-based system or the Press any key to continue message on GRUB menu on an x86 based system.

  4. Boot the node in noncluster mode.

    • On SPARC based systems, perform the following command:


      ok boot -x
      
    • On x86 based system, perform the following commands:


      phys-schost# shutdown -g -y -i0
      
      Press any key to continue
    1. In the GRUB menu, use the arrow keys to select the appropriate Solaris entry and type e to edit its commands.

      The GRUB menu appears similar to the following:


      GNU GRUB version 0.95 (631K lower / 2095488K upper memory)
      +-------------------------------------------------------------------------+
      | Solaris 10 /sol_10_x86                                                  |
      | Solaris failsafe                                                        |
      |                                                                         |
      +-------------------------------------------------------------------------+
      Use the ^ and v keys to select which entry is highlighted.
      Press enter to boot the selected OS, 'e' to edit the
      commands before booting, or 'c' for a command-line.

      For more information about GRUB based booting, see Chapter 11, GRUB Based Booting (Tasks), in System Administration Guide: Basic Administration.

    2. In the boot parameters screen, use the arrow keys to select the kernel entry and type e to edit the entry.

      The GRUB boot parameters screen appears similar to the following:


      GNU GRUB version 0.95 (615K lower / 2095552K upper memory)
      +----------------------------------------------------------------------+
      | root (hd0,0,a)                                                       |
      | kernel /platform/i86pc/multiboot                                     |
      | module /platform/i86pc/boot_archive                                  |
      +----------------------------------------------------------------------+
      Use the ^ and v keys to select which entry is highlighted.
      Press 'b' to boot, 'e' to edit the selected command in the
      boot sequence, 'c' for a command-line, 'o' to open a new line
      after ('O' for before) the selected line, 'd' to remove the
      selected line, or escape to go back to the main menu.
    3. Add -x to the command to specify that the system boot into noncluster mode.


      [ Minimal BASH-like line editing is supported. For the first word, TAB
      lists possible command completions. Anywhere else TAB lists the possible
      completions of a device/filename. ESC at any time exits. ]
      
      grub edit> kernel /platform/i86pc/multiboot -x
    4. Press the Enter key to accept the change and return to the boot parameters screen.

      The screen displays the edited command.


      GNU GRUB version 0.95 (615K lower / 2095552K upper memory)
      +----------------------------------------------------------------------+
      | root (hd0,0,a)                                                       |
      | kernel /platform/i86pc/multiboot -x                                  |
      | module /platform/i86pc/boot_archive                                  |
      +----------------------------------------------------------------------+
      Use the ^ and v keys to select which entry is highlighted.
      Press 'b' to boot, 'e' to edit the selected command in the
      boot sequence, 'c' for a command-line, 'o' to open a new line
      after ('O' for before) the selected line, 'd' to remove the
      selected line, or escape to go back to the main menu.-
    5. Type b to boot the node into noncluster mode.


      Note –

      This change to the kernel boot parameter command does not persist over the system boot. The next time you reboot the node, it will boot into cluster mode. To boot into noncluster mode instead, perform these steps to again to add the -x option to the kernel boot parameter command.


  5. On a single node, set the time of day by running the date command.


    # date HHMM.SS
    
  6. On the other machines, synchronize the time to that node by running the rdate(1M) command.


    # rdate hostname
    
  7. Boot each node to restart the cluster.


    # reboot
    
  8. Verify that the change occurred on all cluster nodes.

    On each node, run the date command.


    # date
    

ProcedureSPARC: How to Display the OpenBoot PROM (OBP) on a Node

Use this procedure if you need to configure or change OpenBoot PROM settings.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Connect to the console on the node to be shutdown.


    # telnet tc_name tc_port_number
    
    tc_name

    Specifies the name of the terminal concentrator.

    tc_port_number

    Specifies the port number on the terminal concentrator. Port numbers are configuration dependent. Typically, ports 2 and 3 (5002 and 5003) are used for the first cluster installed at a site.

  2. Shut down the cluster node gracefully by using the clnode evacuate command then the shutdown command. The clnode evacuate command switches over all device groups from the specified node to the next preferred node. The command also switches all resource groups from global or non-global zones on the specified node to the next-preferred global or non-global zones on other nodes.


    # clnode evacuate node
    # shutdown -g0 -y
    

    Caution – Caution –

    Do not use send brk on a cluster console to shut down a cluster node.


  3. Execute the OBP commands.

ProcedureHow to Change the Node Private Host Name

Use this procedure to change the private host name of a cluster node after installation has been completed.

Default private host names are assigned during initial cluster installation. The default private host name takes the form clusternode< nodeid>-priv, for example: clusternode3-priv . Change a private host name only if the name is already in use in the domain.


Caution – Caution –

Do not attempt to assign IP addresses to new private host names. The clustering software assigns them.


This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Disable, on all nodes in the cluster, any data service resources or other applications that might cache private host names.


    # clresource disable resource[,...]
    

    Include the following in the applications you disable.

    • HA-DNS and HA-NFS services, if configured

    • Any application that has been custom configured to use the private host name

    • Any application that is being used by clients over the private interconnect

    See the clresource(1CL) man page and the Sun Cluster Data Services Planning and Administration Guide for Solaris OS for information about using the clresource command.

  2. If your NTP configuration file refers to the private host name that you are changing, bring down the Network Time Protocol (NTP) daemon on each node of the cluster.

    • SPARC: If you are using Solaris 9 OS, use the xntpd command to shut down the Network Time Protocol (NTP) daemon. See the xntpd(1M) man page for more information about the NTP daemon.


      # /etc/init.d/xntpd.cluster stop
      
    • If you are using Solaris 10 OS, use the svcadm command to shut down the Network Time Protocol (NTP) daemon. See the svcadm(1M) man page for more information about the NTP daemon.


      # svcadm disable ntp
      
  3. Run the clsetup(1CL) utility to change the private host name of the appropriate node.

    To need to run the utility only from one of the nodes in the cluster.


    Note –

    When selecting a new private host name, ensure that the name is unique to the cluster node.


  4. Type the number that corresponds to the option for private host name.

  5. Type the number that corresponds to the option for changing a private host name.

    Answer the questions when prompted. You are asked the name of the node whose private host name is being changed (clusternode< nodeid>-priv), and the new private host name.

  6. Flush the name service cache.

    Perform this step on each node in the cluster. Flushing prevents the cluster applications and data services from trying to access the old private host name.


    # nscd -i hosts
    
  7. If you changed a private host name in your NTP configuration file, update your NTP configuration file (ntp.conf or ntp.conf.cluster) on each node.

    1. Use the editing tool of your choice.

      If you perform this step at installation, also remember to remove names for nodes which are configured. The default template is preconfigured with 16 nodes. Typically, the ntp.conf.cluster file is identical on each cluster node.

    2. Verify that you can successfully ping the new private host name from all cluster nodes.

    3. Restart the NTP daemon.

      Perform this step on each node of the cluster.

      • SPARC: If you are using Solaris 9 OS, use the xntpd command to restart the NTP daemon.

        If you are using the ntp.conf.cluster file, type the following:


        # /etc/init.d/xntpd.cluster start
        

        If you are using the ntp.conf file, type the following:


        # /etc/init.d/xntpd start
        
      • If you are using Solaris 10 OS, use the svcadm command to restart the NTP daemon.


        # svcadm enable ntp
        
  8. Enable all data service resources and other applications that were disabled in Step 1.


    # clresource disable resource[,...]
    

    See the clresource(1CL) man page and the Sun Cluster Data Services Planning and Administration Guide for Solaris OS for information about using the scswitch command.


Example 8–8 Changing the Private Host Name

The following example changes the private host name from clusternode2-priv to clusternode4-priv, on node phys-schost-2 .


[Disable all applications and data services as necessary.]
phys-schost-1# /etc/init.d/xntpd stop
phys-schost-1# clnode show | grep node
 ...
 private hostname:                           clusternode1-priv
 private hostname:                           clusternode2-priv
 private hostname:                           clusternode3-priv
 ...
phys-schost-1# clsetup
phys-schost-1# nscd -i hosts
phys-schost-1# vi /etc/inet/ntp.conf
 ...
 peer clusternode1-priv
 peer clusternode4-priv
 peer clusternode3-priv
phys-schost-1# ping clusternode4-priv
phys-schost-1# /etc/init.d/xntpd start
[Enable all applications and data services disabled at the beginning of the procedure.]

ProcedureHow to Add a Private Host Name for a Non-Global Zone

Use this procedure to add a private host name for a cluster non-global zone after installation has been completed.

  1. Run the clsetup(1CL) utility to add a private host name on the appropriate zone.

  2. Type the number that corresponds to the option for private host names and press the Return key.

  3. Type the number that corresponds to the option for adding a zone private host name and press the Return key.

    Answer the questions when prompted. There is no default for a non-global zone private host name. You will need to provide a host name.

ProcedureHow to Change the Non-Global Zone Private Host Name

Use this procedure to change the private host name of a cluster non-global zone after installation has been completed.

Private host names are assigned during initial cluster installation. The private host name takes the form clusternode< nodeid>-priv, for example: clusternode3-priv . Change a private host name only if the name is already in use in the domain.


Caution – Caution –

Do not attempt to assign IP addresses to new private host names. The clustering software assigns them.


This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Disable, on all nodes in the cluster, any data service resources or other applications that might cache private host names.


    # clresource disable resource1, resource2
    

    Include the following in the applications you disable.

    • HA-DNS and HA-NFS services, if configured

    • Any application that has been custom configured to use the private host name

    • Any application that is being used by clients over the private interconnect

    See the clresource(1CL) man page and the Sun Cluster Data Services Planning and Administration Guide for Solaris OS for information about using the clresource command.

  2. Run the clsetup(1CL) utility to change the private host name of the appropriate non-global zone.

    You need to perform this step only from one of the nodes in the cluster.


    Note –

    When selecting a new private host name, ensure that the name is unique to the cluster.


  3. Type the number that corresponds to the option for private host names and press the Return key.

  4. Type the number that corresponds to the option for adding a zone private hostname and press the Return key.

    There is no default for a non-global zone private host name. You will need to provide a host name.

  5. Type the number that corresponds to the option for changing a zone private hostname.

    Answer the questions when prompted. You are asked for the name of the non-global zone whose private host name is being changed (clusternode< nodeid>-priv), and the new private host name.

  6. Flush the name service cache.

    Perform this step on each node in the cluster. Flushing prevents the cluster applications and data services from trying to access the old private host name.


    # nscd -i hosts
    
  7. Enable all data service resources and other applications that were disabled in Step 1.

ProcedureHow to Delete the Private Host Name for a Non-Global Zone

Use this procedure to delete a private host name for a cluster non-global zone.

  1. Run the clsetup(1CL) utility to delete a private host name on the appropriate zone.

  2. Type the number that corresponds with the option for zone private host name.

  3. Type the number that corresponds with the option for deleting a zone private host names.

  4. Type the name of the non-global zone private host name you are deleting.

ProcedureHow to Put a Node Into Maintenance State

Put a cluster node into maintenance state when taking the node out of service for an extended period of time. This way, the node does not contribute to the quorum count while it is being serviced. To put a cluster node into maintenance state, the node must be shut down by using clnode(1CL) evacuate and cluster(1CL) shutdown commands.


Note –

Use the Solaris shutdown command to shut down a single node. Use the cluster shutdown command only when shutting down an entire cluster.


When a cluster node is shut down and put in maintenance state, all quorum devices that are configured with ports to the node have their quorum vote counts decremented by one. The node and quorum device vote counts are incremented by one when the node is removed from maintenance mode and brought back online.

Use the clquorum(1CL) disable command to put a cluster node to maintenance state.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization on the node that you are putting into maintenance state.

  2. Evacuate any resource groups and device groups from the node. The clnode evacuate command switches over all resource groups and device groups, including all non-global zones from the specified node to the next preferred node.


    # clnode evacuate node
    
  3. Shut down the node that you evacuated.


    # shutdown -g0 -y-i 0
    
  4. Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization on another node in the cluster and put the node that you shut down in Step 3 in maintenance state.


    # clquorum disable type [node]
    type

    Specifies the quorum device type. The type can be node, scsi, netapp_nas, or quorum_server.

    node

    Specifies the name of a node you want to put into maintenance mode.

  5. Verify that the cluster node is now in maintenance state.


    # clquorum status -t node
    

    The node that you put in maintenance state should have a Status of offline and 0 (zero) for Present and Possible quorum votes.


Example 8–9 Putting a Cluster Node In Maintenance State

The following example puts a cluster node in maintenance state and verifies the results. The clnode status output shows the Node votes for phys-schost-1 to be 0 (zero) and the status to be Offline. The Quorum Summary should also show reduced vote counts. Depending on your configuration, the Quorum Votes by Device output might indicate that some quorum disk devices are offline as well.


[On the node to be put into maintenance state:]
phys-schost-1# clnode evacute phys-schost-1
phys-schost-1# shutdown -g0 -y -i0

[On another node in the cluster:]
phys-schost-2# clquorum disable -t node phys-schost-1
phys-schost-2# clquorum status -t node

-- Quorum Votes by Node --

Node Name           Present       Possible       Status
---------           -------       --------       ------
phys-schost-1       0             0              Offline
phys-schost-2       1             1              Online
phys-schost-3       1             1              Online

See Also

To bring a node back online, see How to Remove Node From Maintenance State.

ProcedureHow to Remove Node From Maintenance State

Use the following procedure to bring a node back online and reset the quorum vote count to the default. For cluster nodes, the default quorum count is one. For quorum devices, the default quorum count is N-1, where N is the number of nodes with nonzero vote counts that have ports to the quorum device.

When a node has been put in maintenance state, the node's quorum vote count is decremented by one. All quorum devices that are configured with ports to the node will also have their quorum vote counts decremented. When the quorum vote count is reset and a node removed from maintenance state, both the node's quorum vote count and the quorum device vote count are incremented by one.

Run this procedure any time a node has been put in maintenance state and you are removing it from maintenance state.


Caution – Caution –

If you do not specify either the globaldev or node options, the quorum count is reset for the entire cluster.


This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization on any node of the cluster other than the one in maintenance state.

  2. Depending on the number of nodes you have in your cluster configuration, perform one of the following steps:

    • If you have two nodes in your cluster configuration, go to Step 4.

    • If you have more than two nodes in your cluster configuration, go to Step 3.

  3. If the node you are removing from maintenance state will have quorum devices, reset the cluster quorum count from a node other than the one in maintenance state.

    You must reset the quorum count from a node other than the node in maintenance state before rebooting the node, or the node might hang waiting for quorum.


    # clquorum reset
    
    reset

    The change flag that resets quorum.

  4. Boot the node that you are removing from maintenance state.

  5. Verify the quorum vote count.


    # clquorum status
    

    The node that you removed from maintenance state should have a status of online and show the appropriate vote count for Present and Possible quorum votes.


Example 8–10 Removing a Cluster Node From 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# clquorum reset

phys-schost-1# clquorum status

--- Quorum Votes Summary ---

            Needed   Present   Possible
            ------   -------   --------
            4        6         6


--- Quorum Votes by Node ---

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


--- Quorum Votes by Device ---

Device Name           Present      Possible      Status
-----------           -------      --------      ------
/dev/did/rdsk/d3s2    1            1             Online
/dev/did/rdsk/d17s2   0            1             Online
/dev/did/rdsk/d31s2   1            1             Online
`

Adding a Cluster Node

This section provides instructions on adding 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 8–2 Task Map: Adding a Cluster Node to an Existing Cluster

Task 

Instructions 

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

Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS

Add shared storage 

Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS

Prepare the cluster for additional nodes 

How to Prepare the Cluster for Additional Cluster Nodes in Sun Cluster Software Installation Guide for Solaris OS

Add the node to the authorized node list by using clsetup

How to Add a Node to the Authorized Node List

Install and configure the software on the new cluster node 

Chapter 2, Installing Software on the Cluster, in Sun Cluster Software Installation Guide for Solaris OS

ProcedureHow to Add a Node to the Authorized Node List

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

For hardware installation information, refer to the Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS or the hardware documentation that shipped with your server.

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

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. On a current cluster member, become superuser on a current cluster member.

  2. Ensure that you have correctly completed all prerequisite hardware installation and configuration tasks listed in the task map for Adding a Cluster Node.

  3. Start the clsetup utility.


    # clsetup
    

    The Main Menu is displayed.

  4. Type the number that corresponds to the option for displaying the New Nodes Menu and press the Return key.

  5. Type the number that corresponds to the option to modify the authorized list and press the Return key. Specify the name of a machine that can add itself.

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

  6. Verify that the task has been performed successfully.

    The clsetup utility prints a “Command completed successfully” message if it completes the task without error.

  7. To prevent any new machines from being added to the cluster, type the number that corresponds to option to instruct the cluster to ignore requests to add new machines and press the Return key.

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

  8. Quit the clsetup utility.

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

    Use either scinstall or JumpStartTM to complete the installation and configuration of the new node, as described in the Sun Cluster Software Installation Guide for Solaris OS.


Example 8–11 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 clsetup utility.]
# clsetup
[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.]
 
claccess allow -h phys-schost-3
 
    Command completed successfully.
[Select Prevent any new machines from being added to the cluster.]
[Quit the clsetup New Nodes Menu and Main Menu.]
[Install the cluster software.]

See Also

For an overall list of tasks for adding a cluster node, see Table 8–2, “Task Map: Adding a Cluster Node.”

To add a node to an existing resource group, see the Sun Cluster Data Services Planning and Administration Guide for Solaris OS.

Administering a Non-Global Zone on a Node

This section provides the following information and procedures to create a non-global zone, simply referred to as a zone, on a cluster node.

ProcedureHow to Create a Non-Global Zone on a Node

  1. Become superuser on the node on which you are creating the non-global zone.

    You must be in the global zone.

  2. For the Solaris 10 OS, verify on each node that multi-user services for the Service Management Facility (SMF) are online.

    If services are not yet online for a node, wait until the state becomes online before you proceed to the next step.


    phys-schost# svcs multi-user-server
    STATE          STIME    FMRI
    online         17:52:55 svc:/milestone/multi-user-server:default
  3. Configure, install, and boot the new zone.


    Note –

    You must set the autoboot property to true to support resource-group functionality in the non-global zone.


    Follow procedures in the following documentation:

    1. Perform procedures in Chapter 18, Planning and Configuring Non-Global Zones (Tasks), in System Administration Guide: Solaris Containers-Resource Management and Solaris Zones.

    2. Perform procedures in Installing and Booting Zones in System Administration Guide: Solaris Containers-Resource Management and Solaris Zones.

    3. Perform procedures in How to Boot a Zone in System Administration Guide: Solaris Containers-Resource Management and Solaris Zones.

  4. Verify that the zone is in the ready state.


    phys-schost# zoneadm list -v
    ID  NAME     STATUS       PATH
     0  global   running      /
     1  my-zone  ready        /zone-path
    
  5. (Optional) Assign a private IP address and a private hostname to the zone.

    The following command chooses and assigns an available IP address from the cluster's private IP address range. The command also assigns the specified private hostname, or host alias, to the zone and maps it to the assigned private IP address.


    phys-schost# clnode set -p zprivatehostname=hostalias node:zone
    
    -p

    Specifies a property.

    zprivatehostname=hostalias

    Specifies the zone private hostname, or host alias.

    node

    The name of the node.

    zone

    The name of the non-global zone.

  6. Perform the initial internal zone configuration.

    Follow the procedures in Performing the Initial Internal Zone Configuration in System Administration Guide: Solaris Containers-Resource Management and Solaris Zones. Choose either of the following methods:

    • Log in to the zone

    • Use an /etc/sysidcfg file

  7. In the non-global zone, modify the nsswitch.conf file.

    You must make these changes to enable the zone to resolve searches for cluster-specific hostnames and IP addresses.

    1. Log in to the zone.


      phys-schost# zogin -c zonename
      
    2. Open the /etc/nsswitch.conf file for editing.


      phys-schost# vi /etc/nsswitch.conf
      
    3. Add the cluster switch to the beginning of the lookups for the hosts and netmasks entries.

      The modified entries would appear similar to the following:


      …
      hosts:      cluster files nis [NOTFOUND=return]
      …
      netmasks:   cluster files nis [NOTFOUND=return]
      …

ProcedureHow to Remove a Non-Global Zone on a Node

  1. Become superuser on the node on which you will create the non-global zone.

  2. Delete the non-global zone from the system.

    Follow the procedures in Deleting a Non-Global Zone From the System in System Administration Guide: Solaris Containers-Resource Management and Solaris Zones

Removing a Cluster Node

This section provides instructions on how to remove a cluster node. The following table lists the tasks to perform to remove 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 8–3 Task Map: Removing a Cluster Node

Task 

Instructions 

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

   - Use clnode(1CL) evacuate

# clnode evacuate node

Remove the node from all resource groups. 

   - Use clresourcegroup(1CL) remove-node

Sun Cluster Data Services Planning and Administration Guide for Solaris OS

Remove node from all device groups 

   - Use cldevicegroup(1CL) remove node, metaset(1M), and clsetup(1CL)

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

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

How to Remove a Node From a Raw-Disk Device Group

Caution: If the number of desired secondaries is configured as 2 or more, it must be decreased to 1.

Remove all fully connected quorum devices. 

   - Use clsetup.

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 all fully connected storage devices from the node.  

  - Use devfsadm(1M), \cldevice(1CL) refresh.

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 back the quorum devices (to only the nodes that are intended to remain in the cluster). 

  - Use clsetup

Adding a Quorum Device

Put the node being removed into maintenance state. 

   - Use clnode(1CL) evacuate, cluster(1CL) shutdown, and clquorum(1CL) disable

How to Put a Node Into Maintenance State

Remove all logical transport connections (transport cables and adapters) from the node being removed. 

   - Use clsetup.

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

Remove all quorum devices connected to the node being removed. 

   - Use cluster set, clquorum remove.

How to Remove the Last Quorum Device From a Cluster

Remove node from the cluster software configuration. 

   - Use clnode remove.

How to Remove a Node From the Cluster Software Configuration

(Optional) Uninstall Sun Cluster software from a cluster node 

How to Uninstall Sun Cluster Software From a Cluster Node

ProcedureHow to Remove a Node From the Cluster Software Configuration

Perform this procedure to remove a node from the cluster.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Ensure that you have correctly completed all prerequisite tasks listed in the “Removing a Cluster Node” task map in Removing a Cluster Node.


    Note –

    Ensure that you have removed the node from all resource groups, device groups, and quorum device configurations and put it into maintenance state before you continue with this procedure.


  2. Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization on the node you want to remove.

  3. Boot the node you want to remove into noncluster mode.

    • On SPARC based systems, perform the following command:


      ok boot -x
      
    • On x86 based system, perform the following commands:


      phys-schost# shutdown -g -y -i0
      
      Press any key to continue
    1. In the GRUB menu, use the arrow keys to select the appropriate Solaris entry and type e to edit its commands.

      The GRUB menu appears similar to the following:


      GNU GRUB version 0.95 (631K lower / 2095488K upper memory)
      +-------------------------------------------------------------------------+
      | Solaris 10 /sol_10_x86                                                  |
      | Solaris failsafe                                                        |
      |                                                                         |
      +-------------------------------------------------------------------------+
      Use the ^ and v keys to select which entry is highlighted.
      Press enter to boot the selected OS, 'e' to edit the
      commands before booting, or 'c' for a command-line.

      For more information about GRUB based booting, see Chapter 11, GRUB Based Booting (Tasks), in System Administration Guide: Basic Administration.

    2. In the boot parameters screen, use the arrow keys to select the kernel entry and type e to edit the entry.

      The GRUB boot parameters screen appears similar to the following:


      GNU GRUB version 0.95 (615K lower / 2095552K upper memory)
      +----------------------------------------------------------------------+
      | root (hd0,0,a)                                                       |
      | kernel /platform/i86pc/multiboot                                     |
      | module /platform/i86pc/boot_archive                                  |
      +----------------------------------------------------------------------+
      Use the ^ and v keys to select which entry is highlighted.
      Press 'b' to boot, 'e' to edit the selected command in the
      boot sequence, 'c' for a command-line, 'o' to open a new line
      after ('O' for before) the selected line, 'd' to remove the
      selected line, or escape to go back to the main menu.
    3. Add -x to the command to specify that the system boot into noncluster mode.


      [ Minimal BASH-like line editing is supported. For the first word, TAB
      lists possible command completions. Anywhere else TAB lists the possible
      completions of a device/filename. ESC at any time exits. ]
      
      grub edit> kernel /platform/i86pc/multiboot -x
    4. Press the Enter key to accept the change and return to the boot parameters screen.

      The screen displays the edited command.


      GNU GRUB version 0.95 (615K lower / 2095552K upper memory)
      +----------------------------------------------------------------------+
      | root (hd0,0,a)                                                       |
      | kernel /platform/i86pc/multiboot -x                                  |
      | module /platform/i86pc/boot_archive                                  |
      +----------------------------------------------------------------------+
      Use the ^ and v keys to select which entry is highlighted.
      Press 'b' to boot, 'e' to edit the selected command in the
      boot sequence, 'c' for a command-line, 'o' to open a new line
      after ('O' for before) the selected line, 'd' to remove the
      selected line, or escape to go back to the main menu.-
    5. Type b to boot the node into noncluster mode.


      Note –

      This change to the kernel boot parameter command does not persist over the system boot. The next time you reboot the node, it will boot into cluster mode. To boot into noncluster mode instead, perform these steps to again to add the -x option to the kernel boot parameter command.


  4. Remove the node from the cluster.


    # clnode remove nodename
    
  5. From another cluster node, verify the node removal by using scstat(1M).


    # clnode status nodename
    
  6. If you intend to uninstall the Sun Cluster software from the removed node, proceed to How to Uninstall Sun Cluster Software From a Cluster Node. If you do not intend to uninstall the Sun Cluster software from the remove node, you can physically remove the node from the cluster by removing the hardware connections as described in Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS.


Example 8–12 Removing a Node From the Cluster Software Configuration

This example shows how to remove a node (phys-schost-2) from a cluster. The clnode remove command is run from the node you want to remove from the cluster ( phys-schost-1).


[Remove the node from the cluster:]
phys-schost-1# clnode remove phys-schost-2
[Verify node removal:]
phys-schost-1# clnode status phys-schost-2
-- Cluster Nodes --
                    Node name           Status
                    ---------           ------
  Cluster node:     phys-schost-1       Online

See Also

To uninstall Sun Cluster software from the removed node, see How to Uninstall Sun Cluster Software From a Cluster Node.

For hardware procedures, see the Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS.

For an overall list of tasks for removing a cluster node, see Table 8–3.

To add a node to an existing cluster, see How to Add a Node to the Authorized Node List.

ProcedureHow to Remove Connectivity Between an Array and a Single Node, in a Cluster With Greater Than Two-Node Connectivity

Use this procedure to detach a storage array from a single cluster node, in a cluster that has three-node or four-node connectivity.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Back up all database tables, data services, and volumes that are associated with the storage array that you are removing.

  2. Determine the resource groups and device groups that are running on the node to be disconnected.


    # clresourcegroup status
    # cldevicegroup status
    
  3. If necessary, move all resource groups and device groups off the node to be disconnected.


    Caution (SPARC only) – Caution (SPARC only) –

    If your cluster is running Oracle Parallel Server/Oracle RAC software, shut down the Oracle Parallel Server/Oracle RAC database instance that is running on the node before you move the groups off the node. For instructions see the Oracle Database Administration Guide.



    # clnode evacuate node
    

    The clnode evacuate command switches over all device groups from the specified node to the next preferred node. The command also switches all resource groups from global or non-global zones on the specified node to the next-preferred global or non-global zones on other nodes.

  4. Put the device groups into maintenance state.

    For the procedure on acquiescing I/O activity to Veritas shared disk groups, see your VxVM documentation.

    For the procedure on putting a device group in maintenance state, see the Chapter 8, Administering the Cluster.

  5. Remove the node from the device groups.

    • If you use VxVM or raw disk, use the cldevicegroup(1CL)command to remove the device groups.

    • If you use Solstice DiskSuite, use the metaset command to remove the device groups.

  6. For each resource group that contains an HAStoragePlus resource, remove the node from the resource group's node list.


    # clresourcegroup remove-node -z zone -n node + | resourcegroup
    
    node

    The name of the node.

    zone

    The name of the non-global zone on node that can master the resource group. Specify zone only if you specified a non-global zone when you created the resource group.

    See the Sun Cluster Data Services Planning and Administration Guide for Solaris OS for more information about changing a resource group's nodelist.


    Note –

    Resource type, resource group, and resource property names are case sensitive when clresourcegroup is executed.


  7. If the storage array you are removing is the last storage array that is connected to the node, disconnect the fiber-optic cable between the node and the hub or switch that is connected to this storage array (otherwise, skip this step).

  8. If you are removing the host adapter from the node that you are disconnecting, shut down and power off the node. If you are removing the host adapter from the node that you are disconnecting, skip to Step 11.

  9. Remove the host adapter from the node.

    For the procedure on removing host adapters, see the documentation that shipped with your node.

  10. Without booting the node to, power on the node.

  11. SPARC: If Oracle Parallel Server/Oracle RAC software has been installed, remove the Oracle Parallel Server/Oracle RAC software package from the node that you are disconnecting.


    # pkgrm SUNWscucm 
    

    Caution (SPARC only) – Caution (SPARC only) –

    If you do not remove the Oracle Parallel Server/Oracle RAC software from the node that you disconnected, the node panics when the node is reintroduced to the cluster and potentially causes a loss of data availability.


  12. Boot the node in cluster mode.

    • On SPARC based systems, do the following:


      ok boot
      
    • On x86 based systems, do the following:

      When the GRUB menu is displayed, select the appropriate Solaris entry and press Enter. The GRUB menu appears similar to the following:


      GNU GRUB version 0.95 (631K lower / 2095488K upper memory)
      +-------------------------------------------------------------------------+
      | Solaris 10 /sol_10_x86                                                  |
      | Solaris failsafe                                                        |
      |                                                                         |
      +-------------------------------------------------------------------------+
      Use the ^ and v keys to select which entry is highlighted.
      Press enter to boot the selected OS, 'e' to edit the
      commands before booting, or 'c' for a command-line.
  13. On the node, update the device namespace by updating the /devices and /dev entries.


    # devfsadm -C 
    # cldevice refresh
    
  14. Bring the device groups back online.

    For procedures about bringing a VERITAS shared disk group online, see your VERITAS Volume Manager documentation.

    For the procedure on bringing a device group online, see the procedure on putting a device group into maintenance state.

ProcedureHow to Uninstall Sun Cluster Software From a Cluster Node

Perform this procedure to uninstall Sun Cluster software from a cluster node before you disconnect it from a fully established cluster configuration. You can use this procedure to uninstall software from the last remaining node of a cluster.


Note –

To uninstall Sun Cluster software from a node that has not yet joined the cluster or is still in installation mode, do not perform this procedure. Instead, go to “How to Uninstall Sun Cluster Software to Correct Installation Problems” in the Sun Cluster Software Installation Guide for Solaris OS.


This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Ensure that you have correctly completed all prerequisite tasks in the task map for removing a cluster node.

    See Table 8–3.


    Note –

    Ensure that you have removed the node from the cluster configuration using clnode remove before you continue with this procedure.


  2. Become superuser on an active cluster member other than the node you are uninstalling.

  3. From the active cluster member, add the node that you intend to uninstall to the cluster's node authentication list.


    # claccess allow -h hostname
    
    -h

    Specifies the name of the node to be added to the node's authentication list.

    Alternately, you can use the clsetup(1CL) utility. See How to Add a Node to the Authorized Node List for procedures.

  4. Become superuser on the node to uninstall.

  5. Reboot the node into noncluster mode.

    • SPARC: Type:


      # shutdown -g0 -y -i0ok boot -x
      
    • x86: Type:


      # shutdown -g0 -y -i0
      ...
                            <<< Current Boot Parameters >>>
      Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
      sd@0,0:a
      Boot args:
      
      Type    b [file-name] [boot-flags] <ENTER>  to boot with options
      or      i <ENTER>                           to enter boot interpreter
      or      <ENTER>                             to boot with defaults
      
                        <<< timeout in 5 seconds >>>
      Select (b)oot or (i)nterpreter: b -x
      
  6. In the /etc/vfstab file, remove all globally mounted file system entries except the /global/.devices global mounts.

  7. If you intend to reinstall Sun Cluster software on this node, remove the Sun Cluster entry from the Sun Java Enterprise System (Java ES) product registry.

    If the Java ES product registry contains a record that Sun Cluster software was installed, the Java ES installer shows the Sun Cluster component grayed out and does not permit reinstallation.

    1. Start the Java ES uninstaller.

      Run the following command, where ver is the version of the Java ES distribution from which you installed Sun Cluster software.


      # /var/sadm/prod/SUNWentsysver/uninstall
      
    2. Follow the prompts to select Sun Cluster to uninstall.

      For more information about using the uninstall command, see Chapter 8, Uninstalling, in Sun Java Enterprise System 5 Installation Guide for UNIX in Sun Java Enterprise System 5 Installation Guide for UNIX.

  8. If you do not intend to reinstall Sun Cluster on this cluster, disconnect the transport cables and the transport switch, if any, from the other cluster devices.

    1. If the uninstalled node is connected to a storage device that uses a parallel SCSI interface, install a SCSI terminator to the open SCSI connector of the storage device after you disconnect the transport cables.

      If the uninstalled node is connected to a storage device that uses Fibre Channel interfaces, no termination is necessary.

    2. Follow the documentation that shipped with your host adapter and server for disconnection procedures.

ProcedureHow to Correct Error Messages

To correct the error messages in the previous sections, perform this procedure.

  1. Attempt to rejoin the node to the cluster.


    # boot
    
  2. Did the node successfully rejoin the cluster?

    • If no, proceed to Step 3.

    • If yes, perform the following steps to remove the node from device groups.

    1. If the node successfully rejoins the cluster, remove the node from the remaining device group or groups.

      Follow procedures in How to Remove a Node From All Device Groups.

    2. After you remove the node from all device groups, return to How to Uninstall Sun Cluster Software From a Cluster Node and repeat the procedure.

  3. If the node could not rejoin the cluster, rename the node's /etc/cluster/ccr file to any other name you choose, for example, ccr.old.


    # mv /etc/cluster/ccr /etc/cluster/ccr.old
    
  4. Return to How to Uninstall Sun Cluster Software From a Cluster Node and repeat the procedure.

Troubleshooting a Node Uninstallation

This section describes error messages you might receive when you run the scinstall -r command and the corrective actions to take.

Unremoved Cluster File-System Entries

The following error messages indicate that the node you removed still has cluster file systems referenced in its vfstab file.


Verifying that no unexpected global mounts remain in /etc/vfstab ... failed
scinstall:  global-mount1 is still configured as a global mount.
scinstall:  global-mount1 is still configured as a global mount.
scinstall:  /global/dg1 is still configured as a global mount.
 
scinstall:  It is not safe to uninstall with these outstanding errors.
scinstall:  Refer to the documentation for complete uninstall instructions.
scinstall:  Uninstall failed.

To correct this error, return to How to Uninstall Sun Cluster Software From a Cluster Node and repeat the procedure. Ensure that you successfully complete Step 6 in the procedure before you rerun the scinstall -r command.

Unremoved Listing in Device Groups

The following error messages indicate that the node you removed is still listed with a device group.


Verifying that no device services still reference this node ... failed
scinstall:  This node is still configured to host device service "
service".
scinstall:  This node is still configured to host device service "
service2".
scinstall:  This node is still configured to host device service "
service3".
scinstall:  This node is still configured to host device service "
dg1".
 
scinstall:  It is not safe to uninstall with these outstanding errors.          
scinstall:  Refer to the documentation for complete uninstall instructions.
scinstall:  Uninstall failed.

Creating, Setting Up, and Managing the Sun Cluster SNMP Event MIB

This section describes how to create, set up, and manage the Simple Network Management Protocol (SNMP) event Management Information Base (MIB). This section also describes how to enable, disable, and change the Sun Cluster SNMP event MIB.

The Sun Cluster software currently supports one MIB, the event MIB. The SNMP manager software traps cluster events in real time. When enabled, the SNMP manager automatically sends trap notifications to all hosts that are defined by the clsnmphost command. The MIB maintains a read-only table of the most current 50 events. Because clusters generate numerous notifications, only events with a severity of warning or greater are sent as trap notifications. This information does not persist across reboots.

The SNMP event MIB is defined in the sun-cluster-event-mib.mib file and is located in the /usr/cluster/lib/mib directory. You can use this definition to interpret the SNMP trap information.

The default port number for the event SNMP module is 11161, and the default port for the SNMP traps is 11162. These port numbers can be changed by modifying the Common Agent Container property file, which is /etc/cacao/instances/default/private/cacao.properties.

Creating, setting up, and managing a Sun Cluster SNMP event MIB can involve the following tasks:

Table 8–4 Task Map: Creating, Setting Up, and Managing the Sun Cluster SNMP Event MIB

Task 

Instructions 

Enable an SNMP event MIB 

How to Enable an SNMP Event MIB

Disable an SNMP event MIB 

How to Disable an SNMP Event MIB

Change an SNMP event MIB 

How to Change an SNMP Event MIB

Add an SNMP host to the list of hosts that will receive trap notifications for the MIBs 

How to Enable an SNMP Host to Receive SNMP Traps on a Node

Remove an SNMP host 

How to Disable an SNMP Host From Receiving SNMP Traps on a Node

Add an SNMP user 

How to Add an SNMP User on a Node

Remove an SNMP user 

How to Remove an SNMP User From a Node

ProcedureHow to Enable an SNMP Event MIB

This procedure shows how to enable an SNMP event MIB.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Enable the SNMP event MIB.


    phys-schost-1# clsnmpmib enable [-n node] MIB
    
    [-n node]

    Specifies the node on which the event MIB that you want to enable is located. You can specify a node ID or a node name. If you do not specify this option, the current node is used by default.

    MIB

    Specifies the name of the MIB that you want to enable. In this case, the MIB name must be event.

ProcedureHow to Disable an SNMP Event MIB

This procedure shows how to disable an SNMP event MIB.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Disable the SNMP event MIB.


    phys-schost-1# clsnmpmib disable -n node MIB
    
    -n node

    Specifies the node on which the event MIB that you want to disable is located. You can specify a node ID or a node name. If you do not specify this option, the current node is used by default.

    MIB

    Specifies the type of the MIB that you want to disable. In this case, you must specify event.

ProcedureHow to Change an SNMP Event MIB

This procedure shows how to change the protocol for an SNMP event MIB.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Change the protocol of the SNMP event MIB.


    phys-schost-1# clsnmpmib set -n node -p version=value MIB
    
    -n node

    Specifies the node on which the event MIB that you want to change is located. You can specify a node ID or a node name. If you do not specify this option, the current node is used by default.

    -p version=value

    Specifies the version of SNMP protocol to use with the MIBs. You specify value as follows:

    • version=SNMPv2

    • version=snmpv2

    • version=2

    • version=SNMPv3

    • version=snmpv3

    • version=3

    MIB

    Specifies the name of the MIB or MIBs to which to apply the subcommand. In this case, you must specify event.

ProcedureHow to Enable an SNMP Host to Receive SNMP Traps on a Node

This procedure shows how to add an SNMP host on a node to the list of hosts that will receive trap notifications for the MIBs.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Add the host to the SNMP host list of a community on another node.


    phys-schost-1# clsnmphost add -c SNMPcommunity [-n node] host
    
    -c SNMPcommunity

    Specifies the SNMP community name that is used in conjunction with the host name.

    You must specify the SNMP community name SNMPcommunity when you add a host to a community other than public. If you use the add subcommand without the -c option, the subcommand uses public as the default community name.

    If the specified community name does not exist, this command creates the community.

    -n node

    Specifies the name of the node of the SNMP host that is provided access to the SNMP MIBs in the cluster. You can specify a node name or a node ID. If you do not specify this option, the current node is used by default.

    host

    Specifies the name, IP address, or IPv6 address of a host that is provided access to the SNMP MIBs in the cluster.

ProcedureHow to Disable an SNMP Host From Receiving SNMP Traps on a Node

This procedure shows how to remove an SNMP host on a node from the list of hosts that will receive trap notifications for the MIBs.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Remove the host from the SNMP host list of a community on the specified node.


    phys-schost-1# clsnmphost remove -c SNMPcommunity -n node host
    
    remove

    Removes the specified SNMP host from the specified node.

    -c SNMPcommunity

    Specifies the name of the SNMP community from which the SNMP host is removed.

    -n node

    Specifies the name of the node on which the SNMP host that is removed from the configuration. You can specify a node name or a node ID. If you do not specify this option, the current node is used by default.

    host

    Specifies the name, IP address, or IPv6 address of the host that is removed from the configuration.

    To remove all hosts in the specified SNMP community, use a plus sign (+) for host with the -c option. To remove all hosts, use the plus sign (+) for host.

ProcedureHow to Add an SNMP User on a Node

This procedure shows how to add an SNMP user to the SNMP user configuration on a node.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Add the SNMP user.


    phys-schost-1# clsnmpuser create -n node -a authentication \
                  -f password user
    
    -n node

    Specifies the node on which the SNMP user is added. You can specify a node ID or a node name. If you do not specify this option, the current node is used by default.

    -a authentication

    Specifies the authentication protocol that is used to authorize the user. The value of the authentication protocol can be SHA or MD5.

    -f password

    Specifies a file that contains the SNMP user passwords. If you do not specify this option when you create a new user, the command prompts for a password. This option is valid only with the add subcommand.

    You must specify user passwords on separate lines in the following format:

    user:password
    

    Passwords cannot contain the following characters or a space:

    • ; (semicolon)

    • : (colon)

    • \ (backslash)

    • \n (newline)

    user

    Specifies the name of the SNMP user that you want to add.

ProcedureHow to Remove an SNMP User From a Node

This procedure shows how to remove an SNMP user from the SNMP user configuration on a node.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands.

  1. Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Remove the SNMP user.


    phys-schost-1# clsnmpuser delete -n node user
    
    -n node

    Specifies the node from which the SNMP user is removed. You can specify a node ID or a node name. If you do not specify this option, the current node is used by default.

    user

    Specifies the name of the SNMP user that you want to remove.