sun.com | docs.sun.com | How To Buy | My Sun | Worldwide Sites |  |

| Previous Contents Index Next
1. ## 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: #### To Perform a Clean Reboot of a Node Stop the operating system and reboot the node by typing the following command:
       # init 6
1. #### To Perform a Clean Poweroff of a Node Shut the node down by typing the following command:
       # init 5
1. #### To Perform a Clean Halt of a Node Go into the firmware and type the following command:
       # init 0
1. #### To Abruptly Reboot a Node Reboot the node by typing the following command:
       # uadmin 1 1 (A_REBOOT AD_BOOT)
1. The node stops immediately without any further processing, and is rebooted. #### To Abruptly Power Off a Node Power off the node by typing the following command:
       # uadmin 1 6 (A_REBOOT AD_POWEROFF)
1. The node stops immediately without any further processing. #### To Abruptly Halt a Node Halt the node by typing the following command:
       # uadmin 1 0 (A_REBOOT AD_HALT)
2. 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. #### To 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: Log in to the master node as superuser. Shut down the master node:
       # init 5
2. 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. #### To Shut Down the Vice-Master Node Log in to the vice-master node as superuser. Shut down the vice-master node.
       # init 5
2. 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. #### To Shut Down a Diskless Node or Dataless Node Log in as superuser to the node you want to shut down. Shut down the node:
       # init 5
1. - 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. #### To Restart a Node 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
3. 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. Log in to the restarted node as superuser. Verify that the node has started correctly:
       # nhadm check
For more information, see the `nhadm`(1M) man page.
Previous Contents Index Next

Copyright 1994-2004 Sun Microsystems