summaryrefslogtreecommitdiffstats
path: root/ctdb/web/testing.html
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-06-12 12:27:45 +1000
committerAndrew Tridgell <tridge@samba.org>2007-06-12 12:27:45 +1000
commit1bf776bb52d66b9243b6948ddb5930351663ea4b (patch)
tree77eefe59ee9e50292e29e0803c524d170736bff4 /ctdb/web/testing.html
parenta0e827fe33a6518100b9f91851b85227c3330411 (diff)
downloadsamba-1bf776bb52d66b9243b6948ddb5930351663ea4b.tar.gz
samba-1bf776bb52d66b9243b6948ddb5930351663ea4b.tar.xz
samba-1bf776bb52d66b9243b6948ddb5930351663ea4b.zip
minor doc updates
(This used to be ctdb commit 20c824dbce877575c423cb08943c5b9ff6d0c4a1)
Diffstat (limited to 'ctdb/web/testing.html')
-rw-r--r--ctdb/web/testing.html60
1 files changed, 42 insertions, 18 deletions
diff --git a/ctdb/web/testing.html b/ctdb/web/testing.html
index 8c7eb6ad55..a766a6f9b5 100644
--- a/ctdb/web/testing.html
+++ b/ctdb/web/testing.html
@@ -7,26 +7,33 @@
<H2 align="center">Starting and testing CTDB</h2>
-The CTDB log is in /var/log/log.ctdb so look in this file if something diud not start correctly.<br><br>
+The CTDB log is in /var/log/log.ctdb so look in this file if something
+did not start correctly.<p>
-Log in to all of the nodes in the cluster and start the ctdb service using
+You can ensure that ctdb is running on all nodes using
<pre>
- service ctdb start
+ onnode all service ctdb start
</pre>
Verify that the CTDB daemon started properly. There should normally be at least 2 processes started for CTDB, one for the main daemon and one for the recovery daemon.
<pre>
- pidof ctdbd
+ onnode all pidof ctdbd
</pre>
-Once all CTDB nodes have started, verify that they are correctly talking to eachothers.<br>
-There should be one TCP connection from the private ip address on each node to TCP port 9001 on each of the other nodes in the cluster.
+Once all CTDB nodes have started, verify that they are correctly
+talking to each other.<p>
+
+There should be one TCP connection from the private ip address on each
+node to TCP port 9001 on each of the other nodes in the cluster.
<pre>
- netstat -a -n | grep 9001
+ onnode all netstat -tn | grep 9001
</pre>
<h2>Automatically restarting CTDB</h2>
-If you wish to cope with software faults in ctdb, or want ctdb to automatically restart when an administration kills it, then you may wish to add a cron entry for root like this:
+
+If you wish to cope with software faults in ctdb, or want ctdb to
+automatically restart when an administration kills it, then you may
+wish to add a cron entry for root like this:
<pre>
* * * * * /etc/init.d/ctdb cron > /dev/null 2>&1
@@ -39,7 +46,9 @@ Once your cluster is up and running, you may wish to know how to test that it is
<h3>The ctdb tool</h3>
-The ctdb package comes with a utility called ctdb that can be used to view the behaviour of the ctdb cluster.<br>
+The ctdb package comes with a utility called ctdb that can be used to
+view the behaviour of the ctdb cluster.<p>
+
If you run it with no options it will provide some terse usage information. The most commonly used commands are:
<pre>
ctdb status
@@ -48,7 +57,9 @@ If you run it with no options it will provide some terse usage information. The
</pre>
<h3>ctdb status</h3>
-The status command provides basic information about the cluster and the status of the nodes. when you run it you will get some output like :
+
+The status command provides basic information about the cluster and the status of the nodes. when you run it you will get some output like:
+
<pre>
<strong>Number of nodes:4
vnn:0 10.1.1.1 OK (THIS NODE)
@@ -65,13 +76,24 @@ hash:3 lmaster:3
Recovery master:0
</pre>
-The important parts are in bold. This tells us that all 4 nodes are in a healthy state.<br>
-It also tells us that recovery mode is normal, which means that the cluster has finished a recovery and is running in a normal fully operational state.<br>
-Recovery state will briefly change to "RECOVERY" when there ahs been a node failure or something is wrong with the cluster.<br>
-If the cluster remains in RECOVERY state for very long (many seconds) there might be something wrong with the configuration. See /var/log/log.ctdb
+The important parts are in bold. This tells us that all 4 nodes are in
+a healthy state.<p>
+
+It also tells us that recovery mode is normal, which means that the
+cluster has finished a recovery and is running in a normal fully
+operational state.<p>
+
+Recovery state will briefly change to "RECOVERY" when there ahs been a
+node failure or something is wrong with the cluster.<p>
+
+If the cluster remains in RECOVERY state for very long (many seconds)
+there might be something wrong with the configuration. See
+/var/log/log.ctdb.
<h3>ctdb ip</h3>
+
This command prints the current status of the public ip addresses and which physical node is currently serving that ip.
+
<pre>
Number of nodes:4
192.168.1.1 0
@@ -83,10 +105,12 @@ Number of nodes:4
<h3>ctdb ping</h3>
this command tries to "ping" each of the CTDB daemons in the cluster.
<pre>
-response from 0 time=0.000050 sec (13 clients)
-response from 1 time=0.000154 sec (27 clients)
-response from 2 time=0.000114 sec (17 clients)
-response from 3 time=0.000115 sec (59 clients)
+ ctdb ping -n all
+
+ response from 0 time=0.000050 sec (13 clients)
+ response from 1 time=0.000154 sec (27 clients)
+ response from 2 time=0.000114 sec (17 clients)
+ response from 3 time=0.000115 sec (59 clients)
</pre>
<!--#include virtual="footer.html" -->