The branch, master has been updated
       via  401ad5bb3c4d2f34e34c4b61649c77391ac2f791 (commit)
       via  70e92ccc4e0afb8c166d40d09ccad1cdc145892c (commit)
       via  4cb12fa01749aabd5ad6c73defba8a0204b54978 (commit)
       via  ad4619f1eb1c7c8881fd6e65cdce3b9ed15ce0dd (commit)
       via  6f41dd35bda6de0501fa48a75148bb818ffdceed (commit)
       via  63ad4a7fe7bd7c9597a4f5573e87f66e5234eb48 (commit)
       via  7a5790de22e8370b2812414aa1adef8201e8b269 (commit)
       via  4ec99c1eeab529865ac790ef554f3b099a14faf1 (commit)
       via  034635418c7e5274d6bdf4cccc7a10e3b631e2d4 (commit)
      from  3695462ade497356d1b86c6fd1bc1765f1d11e57 (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 401ad5bb3c4d2f34e34c4b61649c77391ac2f791
Author: Ronnie Sahlberg <ronniesahlb...@gmail.com>
Date:   Thu Oct 21 11:12:30 2010 +1100

    new version 1.10

commit 70e92ccc4e0afb8c166d40d09ccad1cdc145892c
Author: Stefan Metzmacher <me...@samba.org>
Date:   Mon May 10 09:20:13 2010 +0200

    web: fix link to tdb README
    
    metze

commit 4cb12fa01749aabd5ad6c73defba8a0204b54978
Author: Stefan Metzmacher <me...@samba.org>
Date:   Tue Sep 14 16:28:27 2010 +0200

    doc: regenerate docs
    
    metze

commit ad4619f1eb1c7c8881fd6e65cdce3b9ed15ce0dd
Author: Stefan Metzmacher <me...@samba.org>
Date:   Tue Sep 14 15:14:29 2010 +0200

    doc/ctdb.1: fix "ctdb restore <filename> [<dbname>]" cmdline
    
    metze

commit 6f41dd35bda6de0501fa48a75148bb818ffdceed
Author: Stefan Metzmacher <me...@samba.org>
Date:   Tue Sep 14 15:05:42 2010 +0200

    doc/ctdb.1: document "persistent" flag for "ctdb atttach"
    
    metze

commit 63ad4a7fe7bd7c9597a4f5573e87f66e5234eb48
Author: Stefan Metzmacher <me...@samba.org>
Date:   Tue Sep 14 16:21:27 2010 +0200

    tools/ctdb: allow "ctdb pfetch" only on persistent databases
    
    metze

commit 7a5790de22e8370b2812414aa1adef8201e8b269
Author: Stefan Metzmacher <me...@samba.org>
Date:   Tue Sep 14 14:49:42 2010 +0200

    tools/ctdb: add 'persistent' flag to "ctdb attach"
    
    metze

commit 4ec99c1eeab529865ac790ef554f3b099a14faf1
Author: Stefan Metzmacher <me...@samba.org>
Date:   Tue Sep 14 14:45:16 2010 +0200

    tools/ctdb: let "ctdb catdb" pass the persistent flag to ctdb_attach()
    
    metze

commit 034635418c7e5274d6bdf4cccc7a10e3b631e2d4
Author: Stefan Metzmacher <me...@samba.org>
Date:   Tue Oct 19 19:21:23 2010 +0200

    events.d/11.routing: handle "updateip" event
    
    metze

-----------------------------------------------------------------------

Summary of changes:
 config/events.d/11.routing |   11 +++
 doc/ctdb.1                 |   41 +++++++-----
 doc/ctdb.1.html            |  158 +++++++++++++++++++++-----------------------
 doc/ctdb.1.xml             |    4 +-
 packaging/RPM/ctdb.spec.in |    2 +
 tools/ctdb.c               |   35 ++++++++--
 web/index.html             |    2 +-
 7 files changed, 144 insertions(+), 109 deletions(-)


Changeset truncated at 500 lines:

diff --git a/config/events.d/11.routing b/config/events.d/11.routing
index c265c38..9a1fdef 100755
--- a/config/events.d/11.routing
+++ b/config/events.d/11.routing
@@ -27,6 +27,17 @@ case "$1" in
        done
        ;;
 
+    updateip)
+       oiface=$2
+       niface=$3
+       cat $CTDB_BASE/static-routes | egrep "^$niface " | while read IFACE 
DEST GW; do
+           ip route add $DEST via $GW dev $IFACE >/dev/null 2>/dev/null
+       done
+       cat $CTDB_BASE/static-routes | egrep "^$oiface " | while read IFACE 
DEST GW; do
+           ip route add $DEST via $GW dev $IFACE >/dev/null 2>/dev/null
+       done
+       ;;
+
     *)
        ctdb_standard_event_handler "$@"
        ;;
diff --git a/doc/ctdb.1 b/doc/ctdb.1
index 70e150c..2fce654 100644
--- a/doc/ctdb.1
+++ b/doc/ctdb.1
@@ -1,13 +1,22 @@
 '\" t
 .\"     Title: ctdb
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/>
-.\"      Date: 08/05/2010
+.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
+.\"      Date: 09/14/2010
 .\"    Manual: CTDB - clustered TDB database
 .\"    Source: ctdb
 .\"  Language: English
 .\"
-.TH "CTDB" "1" "08/05/2010" "ctdb" "CTDB \- clustered TDB database"
+.TH "CTDB" "1" "09/14/2010" "ctdb" "CTDB \- clustered TDB database"
+.\" -----------------------------------------------------------------
+.\" * Define some portability stuff
+.\" -----------------------------------------------------------------
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.\" http://bugs.debian.org/507673
+.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.ie \n(.g .ds Aq \(aq
+.el       .ds Aq '
 .\" -----------------------------------------------------------------
 .\" * set default formatting
 .\" -----------------------------------------------------------------
@@ -407,12 +416,12 @@ Example output:
 .PP
 This command is used to disable an eventscript\&.
 .PP
-This will take effect the next time the eventscripts are being executed so it 
can take a short while until this is reflected in \'scriptstatus\'\&.
+This will take effect the next time the eventscripts are being executed so it 
can take a short while until this is reflected in \*(Aqscriptstatus\*(Aq\&.
 .SS "enablescript <script>"
 .PP
 This command is used to enable an eventscript\&.
 .PP
-This will take effect the next time the eventscripts are being executed so it 
can take a short while until this is reflected in \'scriptstatus\'\&.
+This will take effect the next time the eventscripts are being executed so it 
can take a short while until this is reflected in \*(Aqscriptstatus\*(Aq\&.
 .SS "getvar <name>"
 .PP
 Get the runtime value of a tuneable variable\&.
@@ -706,29 +715,29 @@ This command is used when adding new nodes, or removing 
existing nodes from an e
 .PP
 Procedure to add a node:
 .PP
-1, To expand an existing cluster, first ensure with \'ctdb status\' that all 
nodes are up and running and that they are all healthy\&. Do not try to expand 
a cluster unless it is completely healthy!
+1, To expand an existing cluster, first ensure with \*(Aqctdb status\*(Aq that 
all nodes are up and running and that they are all healthy\&. Do not try to 
expand a cluster unless it is completely healthy!
 .PP
 2, On all nodes, edit /etc/ctdb/nodes and add the new node as the last entry 
to the file\&. The new node MUST be added to the end of this file!
 .PP
 3, Verify that all the nodes have identical /etc/ctdb/nodes files after you 
edited them and added the new node!
 .PP
-4, Run \'ctdb reloadnodes\' to force all nodes to reload the nodesfile\&.
+4, Run \*(Aqctdb reloadnodes\*(Aq to force all nodes to reload the nodesfile\&.
 .PP
-5, Use \'ctdb status\' on all nodes and verify that they now show the 
additional node\&.
+5, Use \*(Aqctdb status\*(Aq on all nodes and verify that they now show the 
additional node\&.
 .PP
 6, Install and configure the new node and bring it online\&.
 .PP
 Procedure to remove a node:
 .PP
-1, To remove a node from an existing cluster, first ensure with \'ctdb 
status\' that all nodes, except the node to be deleted, are up and running and 
that they are all healthy\&. Do not try to remove a node from a cluster unless 
the cluster is completely healthy!
+1, To remove a node from an existing cluster, first ensure with \*(Aqctdb 
status\*(Aq that all nodes, except the node to be deleted, are up and running 
and that they are all healthy\&. Do not try to remove a node from a cluster 
unless the cluster is completely healthy!
 .PP
 2, Shutdown and poerwoff the node to be removed\&.
 .PP
-3, On all other nodes, edit the /etc/ctdb/nodes file and comment out the node 
to be removed\&. Do not delete the line for that node, just comment it out by 
adding a \'#\' at the beginning of the line\&.
+3, On all other nodes, edit the /etc/ctdb/nodes file and comment out the node 
to be removed\&. Do not delete the line for that node, just comment it out by 
adding a \*(Aq#\*(Aq at the beginning of the line\&.
 .PP
-4, Run \'ctdb reloadnodes\' to force all nodes to reload the nodesfile\&.
+4, Run \*(Aqctdb reloadnodes\*(Aq to force all nodes to reload the nodesfile\&.
 .PP
-5, Use \'ctdb status\' on all nodes and verify that the deleted node no longer 
shows up in the list\&.\&.
+5, Use \*(Aqctdb status\*(Aq on all nodes and verify that the deleted node no 
longer shows up in the list\&.\&.
 .PP
 .SS "tickle <srcip:port> <dstip:port>"
 .PP
@@ -767,7 +776,7 @@ By default, this operation is issued from the 00\&.ctdb 
event script every 5 min
 .SS "backupdb <dbname> <file>"
 .PP
 This command can be used to copy the entire content of a database out to a 
file\&. This file can later be read back into ctdb using the restoredb 
command\&. This is mainly useful for backing up persistent databases such as 
secrets\&.tdb and similar\&.
-.SS "restoredb <file> [dbname]"
+.SS "restoredb <file> [<dbname>]"
 .PP
 This command restores a persistent database that was previously backed up 
using backupdb\&. By default the data will be restored back into the same 
database as it was created from\&. By specifying dbname you can restore the 
data into a different database\&.
 .SS "wipedb <dbname>"
@@ -793,7 +802,7 @@ This command checks if a specific process exists on the 
CTDB host\&. This is mai
 .PP
 This command lists all clustered TDB databases that the CTDB daemon has 
attached to\&. Some databases are flagged as PERSISTENT, this means that the 
database stores data persistently and the data will remain across reboots\&. 
One example of such a database is secrets\&.tdb where information about how the 
cluster was joined to the domain is stored\&.
 .PP
-If a PERSISTENT database is not in a healthy state the database is flagged as 
UNHEALTHY\&. If there\'s at least one completely healthy node running in the 
cluster, it\'s possible that the content is restored by a recovery run 
automaticly\&. Otherwise an administrator needs to analyze the problem\&.
+If a PERSISTENT database is not in a healthy state the database is flagged as 
UNHEALTHY\&. If there\*(Aqs at least one completely healthy node running in the 
cluster, it\*(Aqs possible that the content is restored by a recovery run 
automaticly\&. Otherwise an administrator needs to analyze the problem\&.
 .PP
 See also "ctdb getdbstatus", "ctdb backupdb", "ctdb restoredb", "ctdb 
dumpbackup", "ctdb wipedb", "ctdb setvar AllowUnhealthyDBRead 1" and (if samba 
or tdb\-utils are installed) "tdbtool check"\&.
 .PP
@@ -886,7 +895,7 @@ dbid: 0xf2a58948
 name: registry\&.tdb
 path: /var/ctdb/persistent/registry\&.tdb\&.0
 PERSISTENT: yes
-HEALTH: NO\-HEALTHY\-NODES \- ERROR \- Backup of corrupted TDB in 
\'/var/ctdb/persistent/registry\&.tdb\&.0\&.corrupted\&.20091208091949\&.0Z\'
+HEALTH: NO\-HEALTHY\-NODES \- ERROR \- Backup of corrupted TDB in 
\*(Aq/var/ctdb/persistent/registry\&.tdb\&.0\&.corrupted\&.20091208091949\&.0Z\*(Aq
       
 .fi
 .if n \{\
@@ -908,7 +917,7 @@ DISABLED \- This node is not monitoring that other nodes 
are available\&. In thi
 .SS "setmonmode <0|1>"
 .PP
 This command can be used to explicitly disable/enable monitoring mode on a 
node\&. The main purpose is if one wants to attach GDB to a running ctdb daemon 
but wants to prevent the other nodes from marking it as DISCONNECTED and 
issuing a recovery\&. To do this, set monitoring mode to 0 on all nodes before 
attaching with GDB\&. Remember to set monitoring mode back to 1 afterwards\&.
-.SS "attach <dbname>"
+.SS "attach <dbname> [persistent]"
 .PP
 This is a debugging command\&. This command will make the CTDB daemon create a 
new CTDB database and attach to it\&.
 .SS "dumpmemory"
diff --git a/doc/ctdb.1.html b/doc/ctdb.1.html
index 701b0dd..5c5078b 100644
--- a/doc/ctdb.1.html
+++ b/doc/ctdb.1.html
@@ -1,6 +1,6 @@
-<html><head><meta http-equiv="Content-Type" content="text/html; 
charset=ISO-8859-1"><title>ctdb</title><meta name="generator" content="DocBook 
XSL Stylesheets V1.75.2"></head><body bgcolor="white" text="black" 
link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" 
title="ctdb"><a name="ctdb.1"></a><div class="titlepage"></div><div 
class="refnamediv"><h2>Name</h2><p>ctdb &#8212; clustered tdb database 
management utility</p></div><div class="refsynopsisdiv" 
title="Synopsis"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code 
class="command">ctdb [ OPTIONS ] COMMAND ...</code> </p></div><div 
class="cmdsynopsis"><p><code class="command">ctdb</code>  [-n &lt;node&gt;] 
[-Y] [-t &lt;timeout&gt;] [-T &lt;timelimit&gt;] [-? --help] [--usage] [-d 
--debug=&lt;INTEGER&gt;] [--socket=&lt;filename&gt;]</p></div></div><div 
class="refsect1" title="DESCRIPTION"><a 
name="id2485540"></a><h2>DESCRIPTION</h2><p>
+<html><head><meta http-equiv="Content-Type" content="text/html; 
charset=ISO-8859-1"><title>ctdb</title><meta name="generator" content="DocBook 
XSL Stylesheets V1.75.2"></head><body bgcolor="white" text="black" 
link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" 
title="ctdb"><a name="ctdb.1"></a><div class="titlepage"></div><div 
class="refnamediv"><h2>Name</h2><p>ctdb &#8212; clustered tdb database 
management utility</p></div><div class="refsynopsisdiv" 
title="Synopsis"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code 
class="command">ctdb [ OPTIONS ] COMMAND ...</code> </p></div><div 
class="cmdsynopsis"><p><code class="command">ctdb</code>  [-n &lt;node&gt;] 
[-Y] [-t &lt;timeout&gt;] [-T &lt;timelimit&gt;] [-? --help] [--usage] [-d 
--debug=&lt;INTEGER&gt;] [--socket=&lt;filename&gt;]</p></div></div><div 
class="refsect1" title="DESCRIPTION"><a 
name="id497338"></a><h2>DESCRIPTION</h2><p>
       ctdb is a utility to view and manage a ctdb cluster.
-    </p></div><div class="refsect1" title="OPTIONS"><a 
name="id2485550"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span 
class="term">-n &lt;pnn&gt;</span></dt><dd><p>
+    </p></div><div class="refsect1" title="OPTIONS"><a 
name="id497348"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span 
class="term">-n &lt;pnn&gt;</span></dt><dd><p>
             This specifies the physical node number on which to execute the 
            command. Default is to run the command on the daemon running on 
            the local host.
@@ -28,13 +28,13 @@
             You only need to specify this parameter if you run multiple ctdb 
             daemons on the same physical host and thus can not use the default
             name for the domain socket.
-          </p></dd></dl></div></div><div class="refsect1" 
title="Administrative Commands"><a name="id2485687"></a><h2>Administrative 
Commands</h2><p>
+          </p></dd></dl></div></div><div class="refsect1" 
title="Administrative Commands"><a name="id539721"></a><h2>Administrative 
Commands</h2><p>
       These are commands used to monitor and administrate a CTDB cluster.
-    </p><div class="refsect2" title="pnn"><a 
name="id2485696"></a><h3>pnn</h3><p>
+    </p><div class="refsect2" title="pnn"><a 
name="id539729"></a><h3>pnn</h3><p>
         This command displays the pnn of the current node.
-      </p></div><div class="refsect2" title="status"><a 
name="id2485706"></a><h3>status</h3><p>
+      </p></div><div class="refsect2" title="status"><a 
name="id539738"></a><h3>status</h3><p>
         This command shows the current status of the ctdb node.
-      </p><div class="refsect3" title="node status"><a 
name="id2485715"></a><h4>node status</h4><p>
+      </p><div class="refsect3" title="node status"><a 
name="id539745"></a><h4>node status</h4><p>
           Node status reflects the current status of the node. There are five 
possible states:
         </p><p>
           OK - This node is fully functional.
@@ -57,7 +57,7 @@
        in a cluster like a node that is ok. Some interfaces to serve
        public ip addresses are down, but at least one interface is up.
        See also "ctdb ifaces".
-        </p></div><div class="refsect3" title="generation"><a 
name="id2485783"></a><h4>generation</h4><p>
+        </p></div><div class="refsect3" title="generation"><a 
name="id539795"></a><h4>generation</h4><p>
           The generation id is a number that indicates the current generation 
           of a cluster instance. Each time a cluster goes through a 
           reconfiguration or a recovery its generation id will be changed.
@@ -78,10 +78,10 @@
          All nodes start with generation "INVALID" and are not assigned a real
          generation id until they have successfully been merged with a cluster
          through a recovery.
-        </p></div><div class="refsect3" title="VNNMAP"><a 
name="id2538082"></a><h4>VNNMAP</h4><p>
+        </p></div><div class="refsect3" title="VNNMAP"><a 
name="id539820"></a><h4>VNNMAP</h4><p>
           The list of Virtual Node Numbers. This is a list of all nodes that 
actively participates in the cluster and that share the workload of hosting the 
Clustered TDB database records.
           Only nodes that are participating in the vnnmap can become lmaster 
or dmaster for a database record.
-        </p></div><div class="refsect3" title="Recovery mode"><a 
name="id2538096"></a><h4>Recovery mode</h4><p>
+        </p></div><div class="refsect3" title="Recovery mode"><a 
name="id539832"></a><h4>Recovery mode</h4><p>
           This is the current recovery mode of the cluster. There are two 
possible modes:
         </p><p>
           NORMAL - The cluster is fully operational.
@@ -101,7 +101,7 @@
        have been recovered, the node mode will change into NORMAL mode
        and the databases will be "thawed", allowing samba to access the
        databases again.
-       </p></div><div class="refsect3" title="Recovery master"><a 
name="id2538138"></a><h4>Recovery master</h4><p>
+       </p></div><div class="refsect3" title="Recovery master"><a 
name="id539863"></a><h4>Recovery master</h4><p>
           This is the cluster node that is currently designated as the 
recovery master. This node is responsible of monitoring the consistency of the 
cluster and to perform the actual recovery process when reqired.
         </p><p>
        Only one node at a time can be the designated recovery master. Which
@@ -123,9 +123,9 @@ hash:2 lmaster:2
 hash:3 lmaster:3
 Recovery mode:NORMAL (0)
 Recovery master:0
-      </pre></div><div class="refsect2" title="recmaster"><a 
name="id2538176"></a><h3>recmaster</h3><p>
+      </pre></div><div class="refsect2" title="recmaster"><a 
name="id539895"></a><h3>recmaster</h3><p>
         This command shows the pnn of the node which is currently the 
recmaster.
-      </p></div><div class="refsect2" title="uptime"><a 
name="id2538184"></a><h3>uptime</h3><p>
+      </p></div><div class="refsect2" title="uptime"><a 
name="id539905"></a><h3>uptime</h3><p>
         This command shows the uptime for the ctdb daemon. When the last 
recovery or ip-failover completed and how long it took. If the "duration" is 
shown as a negative number, this indicates that there is a recovery/failover in 
progress and it started that many seconds ago.
       </p><p>
        Example: ctdb uptime
@@ -134,7 +134,7 @@ Current time of node          :                Thu Oct 29 
10:38:54 2009
 Ctdbd start time              : (000 16:54:28) Wed Oct 28 17:44:26 2009
 Time of last recovery/failover: (000 16:53:31) Wed Oct 28 17:45:23 2009
 Duration of last recovery/failover: 2.248552 seconds
-      </pre></div><div class="refsect2" title="listnodes"><a 
name="id2538215"></a><h3>listnodes</h3><p>
+      </pre></div><div class="refsect2" title="listnodes"><a 
name="id539931"></a><h3>listnodes</h3><p>
         This command shows lists the ip addresses of all the nodes in the 
cluster.
       </p><p>
        Example: ctdb listnodes
@@ -143,7 +143,7 @@ Duration of last recovery/failover: 2.248552 seconds
 10.0.0.72
 10.0.0.73
 10.0.0.74
-      </pre></div><div class="refsect2" title="ping"><a 
name="id2538239"></a><h3>ping</h3><p>
+      </pre></div><div class="refsect2" title="ping"><a 
name="id539953"></a><h3>ping</h3><p>
         This command will "ping" all CTDB daemons in the cluster to verify 
that they are processing commands correctly.
       </p><p>
        Example: ctdb ping
@@ -154,7 +154,7 @@ response from 0 time=0.000054 sec  (3 clients)
 response from 1 time=0.000144 sec  (2 clients)
 response from 2 time=0.000105 sec  (2 clients)
 response from 3 time=0.000114 sec  (2 clients)
-      </pre></div><div class="refsect2" title="ifaces"><a 
name="id2538265"></a><h3>ifaces</h3><p>
+      </pre></div><div class="refsect2" title="ifaces"><a 
name="id539978"></a><h3>ifaces</h3><p>
        This command will display the list of network interfaces, which could
        host public addresses, along with their status.
       </p><p>
@@ -177,13 +177,13 @@ name:eth2 link:up references:1
 :eth4:0:0
 :eth3:1:1
 :eth2:1:1
-      </pre></div><div class="refsect2" title="setifacelink &lt;iface&gt; 
&lt;status&gt;"><a name="id2538305"></a><h3>setifacelink &lt;iface&gt; 
&lt;status&gt;</h3><p>
+      </pre></div><div class="refsect2" title="setifacelink &lt;iface&gt; 
&lt;status&gt;"><a name="id540015"></a><h3>setifacelink &lt;iface&gt; 
&lt;status&gt;</h3><p>
        This command will set the status of a network interface.
        The status needs to be "up" or "down". This is typically
        used in the 10.interfaces script in the "monitor" event.
       </p><p>
        Example: ctdb setifacelink eth0 up
-      </p></div><div class="refsect2" title="ip"><a 
name="id2538321"></a><h3>ip</h3><p>
+      </p></div><div class="refsect2" title="ip"><a 
name="id540028"></a><h3>ip</h3><p>
         This command will display the list of public addresses that are 
provided by the cluster and which physical node is currently serving this ip. 
By default this command will ONLY show those public addresses that are known to 
the node itself. To see the full list of all public ips across the cluster you 
must use "ctdb ip -n all".
       </p><p>
        Example: ctdb ip
@@ -213,7 +213,7 @@ Public IPs on node 0
 :172.31.92.83:0:eth5:eth5:eth4,eth5:
 :172.31.92.84:1::eth5:eth4,eth5:
 :172.31.92.85:0:eth5:eth5:eth4,eth5:
-      </pre></div><div class="refsect2" title="ipinfo &lt;ip&gt;"><a 
name="id2538376"></a><h3>ipinfo &lt;ip&gt;</h3><p>
+      </pre></div><div class="refsect2" title="ipinfo &lt;ip&gt;"><a 
name="id540074"></a><h3>ipinfo &lt;ip&gt;</h3><p>
         This command will display details about the specified public addresses.
       </p><p>
        Example: ctdb ipinfo 172.31.92.85
@@ -226,7 +226,7 @@ CurrentNode:0
 NumInterfaces:2
 Interface[1]: Name:eth4 Link:down References:0
 Interface[2]: Name:eth5 Link:up References:2 (active)
-      </pre></div><div class="refsect2" title="scriptstatus"><a 
name="id2538403"></a><h3>scriptstatus</h3><p>
+      </pre></div><div class="refsect2" title="scriptstatus"><a 
name="id540096"></a><h3>scriptstatus</h3><p>
         This command displays which scripts where run in the previous 
monitoring cycle and the result of each script. If a script failed with an 
error, causing the node to become unhealthy, the output from that script is 
also shown.
       </p><p>
        Example: ctdb scriptstatus
@@ -243,15 +243,15 @@ Interface[2]: Name:eth5 Link:up References:2 (active)
 41.httpd             Status:OK    Duration:0.039 Tue Mar 24 18:56:57 2009
 50.samba             Status:ERROR    Duration:0.082 Tue Mar 24 18:56:57 2009
    OUTPUT:ERROR: Samba tcp port 445 is not responding
-      </pre></div><div class="refsect2" title="disablescript 
&lt;script&gt;"><a name="id2538439"></a><h3>disablescript &lt;script&gt;</h3><p>
+      </pre></div><div class="refsect2" title="disablescript 
&lt;script&gt;"><a name="id540126"></a><h3>disablescript &lt;script&gt;</h3><p>
        This command is used to disable an eventscript.
       </p><p>
        This will take effect the next time the eventscripts are being executed 
so it can take a short while until this is reflected in 'scriptstatus'.
-      </p></div><div class="refsect2" title="enablescript &lt;script&gt;"><a 
name="id2538455"></a><h3>enablescript &lt;script&gt;</h3><p>
+      </p></div><div class="refsect2" title="enablescript &lt;script&gt;"><a 
name="id540139"></a><h3>enablescript &lt;script&gt;</h3><p>
        This command is used to enable an eventscript.
       </p><p>
        This will take effect the next time the eventscripts are being executed 
so it can take a short while until this is reflected in 'scriptstatus'.
-      </p></div><div class="refsect2" title="getvar &lt;name&gt;"><a 
name="id2538471"></a><h3>getvar &lt;name&gt;</h3><p>
+      </p></div><div class="refsect2" title="getvar &lt;name&gt;"><a 
name="id540153"></a><h3>getvar &lt;name&gt;</h3><p>
         Get the runtime value of a tuneable variable.
       </p><p>
        Example: ctdb getvar MaxRedirectCount
@@ -259,11 +259,11 @@ Interface[2]: Name:eth5 Link:up References:2 (active)
        Example output:
       </p><pre class="screen">
 MaxRedirectCount    = 3
-      </pre></div><div class="refsect2" title="setvar &lt;name&gt; 
&lt;value&gt;"><a name="id2538494"></a><h3>setvar &lt;name&gt; 
&lt;value&gt;</h3><p>
+      </pre></div><div class="refsect2" title="setvar &lt;name&gt; 
&lt;value&gt;"><a name="id496772"></a><h3>setvar &lt;name&gt; 
&lt;value&gt;</h3><p>
         Set the runtime value of a tuneable variable.
       </p><p>
        Example: ctdb setvar MaxRedirectCount 5
-      </p></div><div class="refsect2" title="listvars"><a 
name="id2538509"></a><h3>listvars</h3><p>
+      </p></div><div class="refsect2" title="listvars"><a 
name="id496784"></a><h3>listvars</h3><p>
         List all tuneable variables.
       </p><p>
        Example: ctdb listvars
@@ -312,7 +312,7 @@ VacuumMaxInterval   = 600
 MaxQueueDropMsg     = 1000
 UseStatusEvents     = 0
 AllowUnhealthyDBRead = 0
-      </pre></div><div class="refsect2" title="lvsmaster"><a 
name="id2538549"></a><h3>lvsmaster</h3><p>
+      </pre></div><div class="refsect2" title="lvsmaster"><a 
name="id496815"></a><h3>lvsmaster</h3><p>
       This command shows which node is currently the LVSMASTER. The
       LVSMASTER is the node in the cluster which drives the LVS system and
       which receives all incoming traffic from clients.
@@ -323,7 +323,7 @@ AllowUnhealthyDBRead = 0
       evenly onto the other nodes in the cluster. This is an alternative to 
using
       public ip addresses. See the manpage for ctdbd for more information
       about LVS.
-      </p></div><div class="refsect2" title="lvs"><a 
name="id2538571"></a><h3>lvs</h3><p>
+      </p></div><div class="refsect2" title="lvs"><a 
name="id496832"></a><h3>lvs</h3><p>
       This command shows which nodes in the cluster are currently active in the
       LVS configuration. I.e. which nodes we are currently loadbalancing
       the single ip address across.
@@ -338,7 +338,7 @@ AllowUnhealthyDBRead = 0
       </p><pre class="screen">
 2:10.0.0.13
 3:10.0.0.14
-      </pre></div><div class="refsect2" title="getcapabilities"><a 
name="id2538601"></a><h3>getcapabilities</h3><p>
+      </pre></div><div class="refsect2" title="getcapabilities"><a 
name="id496858"></a><h3>getcapabilities</h3><p>
       This command shows the capabilities of the current node.
       Please see manpage for ctdbd for a full list of all capabilities and
       more detailed description.
@@ -357,7 +357,7 @@ AllowUnhealthyDBRead = 0
 RECMASTER: YES
 LMASTER: YES
 LVS: NO
-      </pre></div><div class="refsect2" title="statistics"><a 
name="id2538638"></a><h3>statistics</h3><p>
+      </pre></div><div class="refsect2" title="statistics"><a 
name="id496889"></a><h3>statistics</h3><p>
         Collect statistics from the CTDB daemon about how many calls it has 
served.
       </p><p>
        Example: ctdb statistics
@@ -399,23 +399,23 @@ CTDB version 1
  max_hop_count                      0
  max_call_latency                   4.948321 sec
  max_lockwait_latency               0.000000 sec
-      </pre></div><div class="refsect2" title="statisticsreset"><a 
name="id2538681"></a><h3>statisticsreset</h3><p>
+      </pre></div><div class="refsect2" title="statisticsreset"><a 
name="id496922"></a><h3>statisticsreset</h3><p>
         This command is used to clear all statistics counters in a node.
       </p><p>
        Example: ctdb statisticsreset
-      </p></div><div class="refsect2" title="getreclock"><a 
name="id2538695"></a><h3>getreclock</h3><p>
+      </p></div><div class="refsect2" title="getreclock"><a 
name="id496934"></a><h3>getreclock</h3><p>
        This command is used to show the filename of the reclock file that is 
used.
       </p><p>
        Example output:
       </p><pre class="screen">
 Reclock file:/gpfs/.ctdb/shared
-      </pre></div><div class="refsect2" title="setreclock [filename]"><a 
name="id2538715"></a><h3>setreclock [filename]</h3><p>
+      </pre></div><div class="refsect2" title="setreclock [filename]"><a 
name="id496952"></a><h3>setreclock [filename]</h3><p>
        This command is used to modify, or clear, the file that is used as the 
reclock file at runtime. When this command is used, the reclock file checks are 
disabled. To re-enable the checks the administrator needs to activate the 
"VerifyRecoveryLock" tunable using "ctdb setvar".
       </p><p>
        If run with no parameter this will remove the reclock file completely. 
If run with a parameter the parameter specifies the new filename to use for the 
recovery lock.
       </p><p>
        This command only affects the runtime settings of a ctdb node and will 
be lost when ctdb is restarted. For persistent changes to the reclock file 
setting you must edit /etc/sysconfig/ctdb.
-      </p></div><div class="refsect2" title="getdebug"><a 
name="id2538742"></a><h3>getdebug</h3><p>
+      </p></div><div class="refsect2" title="getdebug"><a 
name="id496973"></a><h3>getdebug</h3><p>
         Get the current debug level for the node. the debug level controls 
what information is written to the log file.
       </p><p>
        The debug levels are mapped to the corresponding syslog levels.
@@ -425,42 +425,42 @@ Reclock file:/gpfs/.ctdb/shared
        The list of debug levels from highest to lowest are :
       </p><p>
        EMERG ALERT CRIT ERR WARNING NOTICE INFO DEBUG
-      </p></div><div class="refsect2" title="setdebug &lt;debuglevel&gt;"><a 
name="id2538767"></a><h3>setdebug &lt;debuglevel&gt;</h3><p>
+      </p></div><div class="refsect2" title="setdebug &lt;debuglevel&gt;"><a 
name="id496994"></a><h3>setdebug &lt;debuglevel&gt;</h3><p>
         Set the debug level of a node. This controls what information will be 
logged.
       </p><p>
        The debuglevel is one of EMERG ALERT CRIT ERR WARNING NOTICE INFO DEBUG
-      </p></div><div class="refsect2" title="getpid"><a 
name="id2538783"></a><h3>getpid</h3><p>
+      </p></div><div class="refsect2" title="getpid"><a 
name="id497007"></a><h3>getpid</h3><p>
         This command will return the process id of the ctdb daemon.
-      </p></div><div class="refsect2" title="disable"><a 
name="id2538793"></a><h3>disable</h3><p>
+      </p></div><div class="refsect2" title="disable"><a 
name="id497016"></a><h3>disable</h3><p>
         This command is used to administratively disable a node in the cluster.
         A disabled node will still participate in the cluster and host
         clustered TDB records but its public ip address has been taken over by
         a different node and it no longer hosts any services.
-      </p></div><div class="refsect2" title="enable"><a 
name="id2538807"></a><h3>enable</h3><p>
+      </p></div><div class="refsect2" title="enable"><a 
name="id497028"></a><h3>enable</h3><p>
         Re-enable a node that has been administratively disabled.
-      </p></div><div class="refsect2" title="stop"><a 
name="id2538817"></a><h3>stop</h3><p>
+      </p></div><div class="refsect2" title="stop"><a 
name="id497036"></a><h3>stop</h3><p>
         This command is used to administratively STOP a node in the cluster.
         A STOPPED node is connected to the cluster but will not host any
        public ip addresse, nor does it participate in the VNNMAP.
        The difference between a DISABLED node and a STOPPED node is that
        a STOPPED node does not host any parts of the database which means
        that a recovery is required to stop/continue nodes.
-      </p></div><div class="refsect2" title="continue"><a 
name="id2538833"></a><h3>continue</h3><p>
+      </p></div><div class="refsect2" title="continue"><a 
name="id497049"></a><h3>continue</h3><p>
         Re-start a node that has been administratively stopped.
-      </p></div><div class="refsect2" title="addip &lt;public_ip/mask&gt; 
&lt;iface&gt;"><a name="id2538843"></a><h3>addip &lt;public_ip/mask&gt; 
&lt;iface&gt;</h3><p>
+      </p></div><div class="refsect2" title="addip &lt;public_ip/mask&gt; 
&lt;iface&gt;"><a name="id497058"></a><h3>addip &lt;public_ip/mask&gt; 
&lt;iface&gt;</h3><p>
        This command is used to add a new public ip to a node during runtime.
        This allows public addresses to be added to a cluster without having
        to restart the ctdb daemons.
       </p><p>
        Note that this only updates the runtime instance of ctdb. Any changes 
will be lost next time ctdb is restarted and the public addresses file is 
re-read.
  If you want this change to be permanent you must also update the public 
addresses file manually.
-      </p></div><div class="refsect2" title="delip &lt;public_ip&gt;"><a 
name="id2538863"></a><h3>delip &lt;public_ip&gt;</h3><p>
+      </p></div><div class="refsect2" title="delip &lt;public_ip&gt;"><a 
name="id497074"></a><h3>delip &lt;public_ip&gt;</h3><p>
        This command is used to remove a public ip from a node during runtime.
        If this public ip is currently hosted by the node it being removed 
from, the ip will first be failed over to another node, if possible, before it 
is removed.
       </p><p>
        Note that this only updates the runtime instance of ctdb. Any changes 
will be lost next time ctdb is restarted and the public addresses file is 
re-read.
  If you want this change to be permanent you must also update the public 
addresses file manually.
-      </p></div><div class="refsect2" title="moveip &lt;public_ip&gt; 
&lt;node&gt;"><a name="id2538884"></a><h3>moveip &lt;public_ip&gt; 
&lt;node&gt;</h3><p>
+      </p></div><div class="refsect2" title="moveip &lt;public_ip&gt; 
&lt;node&gt;"><a name="id497090"></a><h3>moveip &lt;public_ip&gt; 
&lt;node&gt;</h3><p>
       This command can be used to manually fail a public ip address to a
       specific node.
       </p><p>
@@ -471,14 +471,14 @@ Reclock file:/gpfs/.ctdb/shared
       DeterministicIPs = 0
       </p><p>
       NoIPFailback = 1
-      </p></div><div class="refsect2" title="shutdown"><a 
name="id2538909"></a><h3>shutdown</h3><p>
+      </p></div><div class="refsect2" title="shutdown"><a 
name="id497113"></a><h3>shutdown</h3><p>
         This command will shutdown a specific CTDB daemon.
-      </p></div><div class="refsect2" title="recover"><a 
name="id2538919"></a><h3>recover</h3><p>
+      </p></div><div class="refsect2" title="recover"><a 
name="id497121"></a><h3>recover</h3><p>
         This command will trigger the recovery daemon to do a cluster
         recovery.
-      </p></div><div class="refsect2" title="ipreallocate"><a 
name="id2538929"></a><h3>ipreallocate</h3><p>
+      </p></div><div class="refsect2" title="ipreallocate"><a 
name="id497131"></a><h3>ipreallocate</h3><p>
         This command will force the recovery master to perform a full ip 
reallocation process and redistribute all ip addresses. This is useful to 
"reset" the allocations back to its default state if they have been changed 
using the "moveip" command. While a "recover" will also perform this 
reallocation, a recovery is much more hevyweight since it will also rebuild all 
the databases.
-      </p></div><div class="refsect2" title="setlmasterrole &lt;on|off&gt;"><a 
name="id2538945"></a><h3>setlmasterrole &lt;on|off&gt;</h3><p>
+      </p></div><div class="refsect2" title="setlmasterrole &lt;on|off&gt;"><a 
name="id497143"></a><h3>setlmasterrole &lt;on|off&gt;</h3><p>
        This command is used ot enable/disable the LMASTER capability for a 
node at runtime. This capability determines whether or not a node can be used 
as an LMASTER for records in the database. A node that does not have the 
LMASTER capability will not show up in the vnnmap.
       </p><p>
        Nodes will by default have this capability, but it can be stripped off 
nodes by the setting in the sysconfig file or by using this command.
@@ -486,21 +486,21 @@ Reclock file:/gpfs/.ctdb/shared
        Once this setting has been enabled/disabled, you need to perform a 
recovery for it to take effect.
       </p><p>
        See also "ctdb getcapabilities"
-      </p></div><div class="refsect2" title="setrecmasterrole 
&lt;on|off&gt;"><a name="id2538974"></a><h3>setrecmasterrole 
&lt;on|off&gt;</h3><p>
+      </p></div><div class="refsect2" title="setrecmasterrole 
&lt;on|off&gt;"><a name="id497167"></a><h3>setrecmasterrole 
&lt;on|off&gt;</h3><p>
        This command is used ot enable/disable the RECMASTER capability for a 
node at runtime. This capability determines whether or not a node can be used 
as an RECMASTER for the cluster. A node that does not have the RECMASTER 
capability can not win a recmaster election. A node that already is the 
recmaster for the cluster when the capability is stripped off the node will 
remain the recmaster until the next cluster election.
       </p><p>
        Nodes will by default have this capability, but it can be stripped off 
nodes by the setting in the sysconfig file or by using this command.
       </p><p>
        See also "ctdb getcapabilities"
-      </p></div><div class="refsect2" title="killtcp &lt;srcip:port&gt; 
&lt;dstip:port&gt;"><a name="id2539000"></a><h3>killtcp &lt;srcip:port&gt; 
&lt;dstip:port&gt;</h3><p>
+      </p></div><div class="refsect2" title="killtcp &lt;srcip:port&gt; 
&lt;dstip:port&gt;"><a name="id497187"></a><h3>killtcp &lt;srcip:port&gt; 
&lt;dstip:port&gt;</h3><p>
         This command will kill the specified TCP connection by issuing a
         TCP RST to the srcip:port endpoint. This is a command used by the 
        ctdb eventscripts.
-      </p></div><div class="refsect2" title="gratiousarp &lt;ip&gt; 
&lt;interface&gt;"><a name="id2539013"></a><h3>gratiousarp &lt;ip&gt; 
&lt;interface&gt;</h3><p>
+      </p></div><div class="refsect2" title="gratiousarp &lt;ip&gt; 
&lt;interface&gt;"><a name="id497198"></a><h3>gratiousarp &lt;ip&gt; 
&lt;interface&gt;</h3><p>
        This command will send out a gratious arp for the specified interface
        through the specified interface. This command is mainly used by the
        ctdb eventscripts.
-      </p></div><div class="refsect2" title="reloadnodes"><a 
name="id2539025"></a><h3>reloadnodes</h3><p>
+      </p></div><div class="refsect2" title="reloadnodes"><a 
name="id497208"></a><h3>reloadnodes</h3><p>
       This command is used when adding new nodes, or removing existing nodes 
from an existing cluster.
       </p><p>
       Procedure to add a node:
@@ -534,7 +534,7 @@ Reclock file:/gpfs/.ctdb/shared
       </p><p>
       5, Use 'ctdb status' on all nodes and verify that the deleted node no 
longer shows up in the list..
       </p><p>
-      </p></div><div class="refsect2" title="tickle &lt;srcip:port&gt; 
&lt;dstip:port&gt;"><a name="id2539109"></a><h3>tickle &lt;srcip:port&gt; 
&lt;dstip:port&gt;</h3><p>
+      </p></div><div class="refsect2" title="tickle &lt;srcip:port&gt; 
&lt;dstip:port&gt;"><a name="id497275"></a><h3>tickle &lt;srcip:port&gt; 
&lt;dstip:port&gt;</h3><p>
         This command will will send a TCP tickle to the source host for the
         specified TCP connection.
        A TCP tickle is a TCP ACK packet with an invalid sequence and 
@@ -546,10 +546,10 @@ Reclock file:/gpfs/.ctdb/shared
         TCP connection has been disrupted and that the client will need
         to reestablish. This greatly speeds up the time it takes for a client
         to detect and reestablish after an IP failover in the ctdb cluster.
-      </p></div><div class="refsect2" title="gettickles &lt;ip&gt;"><a 
name="id2539134"></a><h3>gettickles &lt;ip&gt;</h3><p>
+      </p></div><div class="refsect2" title="gettickles &lt;ip&gt;"><a 
name="id497294"></a><h3>gettickles &lt;ip&gt;</h3><p>
        This command is used to show which TCP connections are registered with
        CTDB to be "tickled" if there is a failover.
-      </p></div><div class="refsect2" title="repack [max_freelist]"><a 
name="id2539145"></a><h3>repack [max_freelist]</h3><p>
+      </p></div><div class="refsect2" title="repack [max_freelist]"><a 
name="id540984"></a><h3>repack [max_freelist]</h3><p>
        Over time, when records are created and deleted in a TDB, the TDB list 
of free space will become fragmented. This can lead to a slowdown in accessing 
TDB records.
        This command is used to defragment a TDB database and pruning the 
freelist.
       </p><p>
@@ -564,7 +564,7 @@ Reclock file:/gpfs/.ctdb/shared
        Example: ctdb repack 1000
       </p><p>
         By default, this operation is issued from the 00.ctdb event script 
every 5 minutes.
-      </p></div><div class="refsect2" title="vacuum [max_records]"><a 
name="id2483662"></a><h3>vacuum [max_records]</h3><p>
+      </p></div><div class="refsect2" title="vacuum [max_records]"><a 
name="id541021"></a><h3>vacuum [max_records]</h3><p>
        Over time CTDB databases will fill up with empty deleted records which 
will lead to a progressive slow down of CTDB database access.
        This command is used to prune all databases and delete all empty 
records from the cluster.
       </p><p>


-- 
CTDB repository

Reply via email to