December 7, 2009@PACKAGE_NAME@@VERSION@AlanRobertsonstonithalanr@unix.shSimonHormanman pagehorms@vergenet.netFlorianHaasman pageflorian.haas@linbit.comstonith8System administration utilitiesstonithextensible interface for remotely powering down a node
in the clusterstonithstonithstonithstonith-device-typestonithstonith-device-typename=valuestonith-device-parametersstonith-device-parameters-filecountstonithstonith-device-typename=valuestonith-device-parametersstonith-device-parameters-filecountresetonoffnodenameDescriptionThe STONITH module provides an extensible interface for
remotely powering down a node in the cluster (STONITH = Shoot The
Other Node In The Head). The idea is quite simple: when the
software running on one machine wants to make sure another machine
in the cluster is not using a resource, pull the plug on the other
machine. It's simple and reliable, albeit admittedly
brutal.OptionsThe following options are supported:countPerform any actions identified by the
, and
options count
times.stonith-device-parameters-filePath of file specifying parameters for a stonith
device. To determine the syntax of the parameters file for a
given device type run:# stonith -t stonith-device-type -nAll of the listed parameters need to appear in order
on a single line in the parameters file and be delimited by
whitespace.Display detailed information about a stonith device
including description, configuration information, parameters
and any other related information. When specified without a
stonith-device-type, detailed information on all stonith
devices is displayed.If you don't yet own a stonith device and want to know
more about the ones we support, this information is likely
to be helpful.List the valid stonith device types, suitable for
passing as an argument to the
option.List the hosts controlled by the stonith device.Output the parameter names of the stonith device.name=valueParameter, in the form of a name/value pair, to pass
directly to the stonith device. To determine the syntax of
the parameters for a given device type run:# stonith -t stonith-device-type -nAll of the listed parameter names need to be passed
with their corresponding values.stonith-device-parametersParameters to pass directly to the stonith device. To
determine the syntax of the parameters for a given device
type run:# stonith -t stonith-device-type -nAll of the listed parameter names need to appear in
order and be delimited by whitespace.Show the status of the stonith device.Silent operation. Suppress logging of error messages to standard error.actionThe stonith action to perform on the node identified
by nodename. Chosen from reset,
on, and off.If a nodename is specified without the
option, the stonith action defaults to
reset.stonith-device-typeThe type of the stonith device to be used to effect
stonith. A list of supported devices for an installation may
be obtained using the option.Ignored.ExamplesTo determine which stonith devices are available on your installation, use the option:# stonith -LAll of the supported devices will be displayed one per line.
Choose one from this list that is best for your environment -
let's use wti_nps for the rest of this example. To get detailed
information about this device, use the option:# stonith -t wti_nps -hIncluded in the output is the list of valid parameter names
for wti_nps. To get just the
list of valid parameter names, use the option
instead:# stonith -t wti_nps -nAll of the required parameter names will be displayed one
per line. For wti_nps the output is:ipaddrpasswordThere are three ways to pass these parameters to the device.
The first (and preferred) way is by passing name/value pairs on
the stonith command line:# stonith -t wti_nps ipaddr=my-dev-ip password=my-dev-pw ...The second way, which is maintained only for backward
compatibility with legacy clusters, is passing the values
in order on the stonith
command line with the option:# stonith -t wti_nps -p "my-dev-ip my-dev-pw" ...The third way, which is also maintained only for backward
compatibility with legacy clusters, is placing the values in order
on a single line in a config file:my-dev-ip my-dev-pw... and passing the name of the file on the stonith command
line with the option:# stonith -t wti_nps -F ~/my-wtinps-config ...To make sure you have the configuration set up correctly and
that the device is available for stonith operations, use the
option:# stonith -t wti_nps ipaddr=my-dev-ip password=my-dev-pw -SIf all is well at this point, you should see something similar to:stonith: wti_nps device OK.If you don't, some debugging may be necessary to determine
if the config info is correct, the device is powered on, etc. The
option can come in handy here - you can add it
to any stonith command to cause it to generate
debug output.To get the list of hosts controlled by the device, use the
option:# stonith -t wti_nps ipaddr=my-dev-ip password=my-dev-pw -lAll of the hosts controlled by the device will be displayed one per line. For wti_nps the output could be:node1node2node3To power off one of these hosts, use the option:
# stonith -t wti_nps ipaddr=my-dev-ip password=my-dev-pw -T off nodeSee alsoheartbeat8,
meatclient8