![]() |
|||
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
| |||||||||||
Shutting Down and Restarting a NodeThis 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 NodeTo shut down nodes, observe the following rules:
|
# init 6 |
Shut the node down by typing the following command:
# init 5 |
Go into the firmware and type the following command:
# init 0 |
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.
Power off the node by typing the following command:
# uadmin 1 6 (A_REBOOT AD_POWEROFF) |
The node stops immediately without any further processing.
Halt the node by typing the following command:
# uadmin 1 0 (A_REBOOT AD_HALT) |
The node stops immediately without any further processing.
This section describes how to shut down a master node, a vice-master node, a diskless node, and a dataless 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 |
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.
Log in to the vice-master node as superuser.
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.
Log in as superuser to the node you want to shut down.
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.
This section describes how to restart a node that has been stopped by one of the procedures in Shutting Down 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 |
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.
![]() ![]() |