From a128b7e3bb0e2bdbbd2d5d83d631c5ebc5a20302 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 22 Oct 2009 17:47:10 +1100 Subject: Document onnode -n and -f options. Signed-off-by: Martin Schwenke (This used to be ctdb commit 431f79f7c9038ebd95d27c2465207ca40b8f4f23) --- ctdb/doc/onnode.1.html | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'ctdb/doc/onnode.1.html') diff --git a/ctdb/doc/onnode.1.html b/ctdb/doc/onnode.1.html index c8e3157dff..3ddfa2ffe4 100644 --- a/ctdb/doc/onnode.1.html +++ b/ctdb/doc/onnode.1.html @@ -1,4 +1,4 @@ -onnode

Name

onnode — run commands on ctdb nodes

Synopsis

onnode [OPTION] ... NODES COMMAND ...

DESCRIPTION

+onnode

Name

onnode — run commands on ctdb nodes

Synopsis

onnode [OPTION] ... NODES COMMAND ...

DESCRIPTION

onnode is a utility to run commands on a specific node of a CTDB cluster, or on all nodes.

@@ -13,7 +13,7 @@

The COMMAND can be any shell command. The onnode utility uses ssh or rsh to connect to the remote nodes and run the command. -

DESCRIPTIVE NODE SPECIFICATIONS

+

DESCRIPTIVE NODE SPECIFICATIONS

The following descriptive node specification can be used in place of numeric node numbers:

all

@@ -32,7 +32,7 @@ The current NAT gateway.

rm | recmaster

The current recovery master. -

OPTIONS

-c

+

OPTIONS

-c

Execute COMMAND in the current working directory on the specified nodes.

-o <prefix>

@@ -45,13 +45,22 @@ Do not print node addresses. Normally, onnode prints informational node addresses if more than one node is specified. This overrides -v. +

-n

+ Allow nodes to be specified by name rather than node + numbers. These nodes don't need to be listed in the nodes + file. You can avoid the nodes file entirely by combining + this with -f /dev/null. +

-f <file>

+ Specify an alternative nodes file to use instead of + /etc/ctdb/nodes. This overrides the + CTDB_NODES_FILE environment variable.

-v

Print a node addresses even if only one node is specified. Normally, onnode prints informational node addresses when more than one node is specified.

-h, --help

Show a short usage guide. -

EXAMPLES

+

EXAMPLES

The following command would show the process ID of ctdb on all nodes

       onnode all pidof ctdbd
@@ -69,10 +78,10 @@
       directory, in parallel, on nodes 0, 2, 3 and 4.
     

       onnode -c -p 0,2-4 ./foo
-    

ENVIRONMENT

CTDB_NODES_FILE

+

ENVIRONMENT

CTDB_NODES_FILE

Name of alternative nodes file to use instead of /etc/ctdb/nodes. -

FILES

/etc/ctdb/nodes

+

FILES

/etc/ctdb/nodes

Default file containing a list of each node's IP address or hostname.

/etc/ctdb/onnode.conf

@@ -81,9 +90,9 @@ something other than "ssh". In this case the -t option is ignored. For example, the administrator may choose to use use rsh instead of ssh. -

SEE ALSO

+

SEE ALSO

ctdbd(1), ctdb(1), http://ctdb.samba.org/ -

COPYRIGHT/LICENSE


+

COPYRIGHT/LICENSE


Copyright (C) Andrew Tridgell 2007
Copyright (C) Ronnie sahlberg 2007
Copyright (C) Martin Schwenke 2008
-- cgit