Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next

Shutting Down and Restarting a Node

This section describes how to shut down a node and how to restart a node. The consequences of stopping a node depend on the role of the node. If you shut down a master-eligible node, you no longer have a redundant cluster.

General Rules for Shutting Down a Node

To shut down nodes, observe the following rules:

ProcedureTo Perform a Clean Reboot of a Node

  1. Stop the operating system and reboot the node by typing the following command:

    # init 6

ProcedureTo Perform a Clean Poweroff of a Node

  1. Shut the node down by typing the following command:

    # init 5

ProcedureTo Perform a Clean Halt of a Node

  1. Go into the firmware and type the following command:

    # init 0

ProcedureTo Abruptly Reboot a Node

  1. Reboot the node by typing the following command:

    # uadmin 1 1 (A_REBOOT AD_BOOT)

    The node stops immediately without any further processing, and is rebooted.

ProcedureTo Abruptly Power Off a Node

  1. Power off the node by typing the following command:

    # uadmin 1 6 (A_REBOOT AD_POWEROFF)

    The node stops immediately without any further processing.

ProcedureTo Abruptly Halt a Node

  1. Halt the node by typing the following command:

    # uadmin 1 0 (A_REBOOT AD_HALT)

    The node stops immediately without any further processing.

Shutting Down a Node

This section describes how to shut down a master node, a vice-master node, a diskless node, and a dataless node.

ProcedureTo Shut Down the Master Node

Before shutting down the master node, perform a switchover as described in To Trigger a Switchover With nhcmmstat. The vice-master node becomes the new master node, and the old master node should reboot as the new vice-master node. Then, shut down the new vice-master node as described in To Shut Down the Vice-Master Node.

Should you want to shut down the master node without first performing a switchover, do the following:

  1. Log in to the master node as superuser.

  2. Shut down the master node:

    # init 5

    The vice-master node becomes the master node. Because there are only two master-eligible nodes in the cluster and one is shut down, your cluster is not highly available. To restore high-availability, restart the stopped node.

ProcedureTo Shut Down the Vice-Master Node

  1. Log in to the vice-master node as superuser.

  2. Shut down the vice-master node.

    # init 5

    Because there are only two master-eligible nodes in the cluster and one is shut down, your cluster is not highly available. To restore high-availability, restart the stopped node.

ProcedureTo Shut Down a Diskless Node or Dataless Node

  1. Log in as superuser to the node you want to shut down.

  2. Shut down the node:

    # init 5

    When a diskless node or dataless node is shut down, there is no impact on the roles of the other peer nodes.

Restarting a Node

This section describes how to restart a node that has been stopped by one of the procedures in Shutting Down a Node.

ProcedureTo Restart a Node

  1. Restart the node.

    • If the node is powered off, power on the node.

    • If the node is not powered off but is at the open boot prompt, boot the node:

      ok> boot

      If the node is in single-user mode, go to multi-user mode using CTRL-D.

    If the node is a peer node, restarting the node reintegrates it into the cluster.

  2. Log in to the restarted node as superuser.

  3. Verify that the node has started correctly:

    # nhadm check

    For more information, see the nhadm(1M) man page.

Previous Previous     Contents     Index     Next Next