To gracefully reboot one or more nodes, use the following rhino-console command or related MBean operation.

Console command: reboot

Command

reboot [-nodes node1,node2,...] {-state state | -states state1,state2,...}
  Description
    Gracefully shutdown the SLEE (on the specified nodes), restarting into either
    the running or stopped state.
  Use either the -state argument to set the state for all nodes or the -states
  argument to set it separately for each node rebooted.
  If a list of nodes is not provided then -state must be used to set the state of
  all nodes.
  Valid states are (r)unning and (s)topped

Examples

To reboot the entire cluster:

$ ./rhino-console reboot -states running,running,stopped
Restarting node(s) [101,102,103] (using Rhino's default shutdown timeout)
Restarting

To shut down only node 102:

$ ./rhino-console reboot -nodes 102 -states stopped
Restarting node(s) [102] (using Rhino's default shutdown timeout)
Restarting

MBean operation: reboot

MBean

Rhino extension

Reboot all nodes
public void reboot(SleeState[] states)
  throws InvalidArgumentException, InvalidStateException, ManagementException;

Reboots every node in the cluster to the state specified.

Rhino extension

Reboot specific nodes
public void reboot(int[] nodeIDs, SleeState[])
  throws NullPointerException, InvalidArgumentException, InvalidStateException, ManagementException;

Extension to reboot that adds an argument which lets you control which nodes to shut down (by specifying node IDs).

Note Event-router nodes can restart to either the RUNNING state or the STOPPED state. Quorum nodes must have a state provided but do not use this in operation.
Previous page Next page
Rhino Version 2.6.1