node_down

Name

node_down – Bring a compute node down cleanly.

Synopsis

/usr/lib/beoboot/bin/node_down node [state]

Description

This script can be used to bring a node down (“reboot”, “halt”, “pwroff”) in such a way that the local filesystems on the compute node remain in a constant state.

node_down works by first changing the node’s state to “unavailable”, then remounting all of the filesystems read-only, followed by using bpctl to perform the actual state change you requested.

Options

node

The node number of the node to bring down.

state

The state to put the node in after remounting all the filesystems. The state defaults to “reboot” if unspecified.

Examples

Cleanly bringing down node 3:

[root@cluster ~] #  /usr/lib/beoboot/bin/node_down 3
 Remounting / readonly...
 Remounting /proc readonly...
 Remounting /home readonly...
 Remounting /dev/pts readonly...
 Syncing disks on node 3.
 Shutting down node 3 (reboot)