summaryrefslogtreecommitdiffstats
path: root/ctdb/tools/ctdb_diagnostics
Commit message (Collapse)AuthorAgeFilesLines
* ctdb-tools: Update onnode and ctdb-diagnostics to use ctdb -XMartin Schwenke2014-12-051-1/+1
| | | | | | | Also update onnode unit tests. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* tools/ctdb_diagnostics: Add output of "ctdb getdbmap"Martin Schwenke2013-08-221-0/+1
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f0d69a9079b7aecc68f1d2d8510702046b618b19)
* tools/ctdb_diagnostics: Safer temporary file creationMartin Schwenke2013-08-221-3/+10
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 406e1cb1fdd17ddd239774d0228e3657b73ae68f)
* tools/ctdb_diagnostics: Add "ctdb listvars" outputMartin Schwenke2012-10-181-0/+1
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 2d75a04ba9a2e87a0dcb9bf778c58e335af1871c)
* config can be in /etc/default/ instead of /etc/sysconfig/ (ctdb_gnostics part)Mathieu Parent2011-11-081-2/+5
| | | | (This used to be ctdb commit b6a9dacefd8f031677702f0fbf6b321beb4c4d54)
* Make ctdb_diagnostics more resilient to uncontactable nodes.Martin Schwenke2011-10-131-1/+33
| | | | | | | | | | | | | | | | | | | | | | Current behaviour is for onnode to timeout (for about 20s) for each attempted ssh to a down node. With 40 or 50 invocations of onnode this takes a long time. 2 changes to work around this: * If EXTRA_SSH_OPTS (which is passed to ssh by onnode) does not contains a ConnectTimeout= setting then add a setting for a 5 second timeout. * Filter the nodes before starting any diagnosis, taking out any "bad nodes" that are uncontactable via onnode. In the nodes summary at the beginning of the output, print information about any "bad nodes". Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 8c3b6427dbaade87e1a0f5590f0894c2e69b31a3)
* Remove all checking of GPFS from ctdb_diagnosticsRonnie Sahlberg2011-05-111-32/+0
| | | | | | CQ S1023524 (This used to be ctdb commit 4cddba08b46db0a56a86b32403a41b89cd097317)
* Add some command-line options to ctdb_diagnostics.Martin Schwenke2010-08-061-45/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some contexts ctdb_diagnostics generates too many errors when it is run on heterogeneous and machine-configured clusters. In some clusters some nodes are expected to be differently configured and also machine-generated configured files can have comments containing timestamps. This adds some command-line options that can be used to reduce the number of errors reported: -n <nodes> Comma separated list of nodes to operate on -c Ignore comment lines (starting with '#') in file comparisons -w Ignore whitespace in file comparisons --no-ads Do not use commands that assume an Active Directory Server The -n option simply allows ctdb_diagnostics to operate on a subset of nodes, avoiding file comparisons with and data collection on nodes that are differently configured. For file comparisons, instead of showing each file on the current node and then comparing other nodes to that file, the file from the first (available or requested) nodes is shown and then other nodes are compared to that. That has resulted in changes in output - that is, ctdb diagnostics no longer prints messages referencing the current node. -c and -w are used to weaken comparisons between configuration files. --no-ads can be used to avoid running ADS-specific commands if a cluster uses LDAP (or other non-ADS) configuration. This also fixes a number of bugs in related code: * A call to onnode was losing the >> NODE ... << lines because they now go to stderr. This was changed in onnode long ago but ctdb_diagnostics was never updated to match. * ctdb_diagnostics was counting lines in /etc/ctdb/nodes to determine what nodes to operate on. For some time the nodes file has supported syntax that makes this invalid. "ctdb listnodes -Y" is now used to list available nodes. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 36c8244a0f68c7c9bbee40982f230e9d14d3c0ea)
* ctdb_diagnostics: don't use hardcoded path to iptablesStefan Metzmacher2009-10-261-2/+2
| | | | | | | | | | | All event scripts use only the relative path, so we should here. Also PATH includes /sbin and /usr/sbin... metze (This used to be ctdb commit 20678e1506db1f96b58c326ee91339e797c07c22)
* Remove error messages about a non-existing /var/log/log.ctdb when running ↵Christian Ambach2009-05-141-2/+2
| | | | | | ctdb with logging to syslog (This used to be ctdb commit afdbf3c0df02decd823615134294abf2c8a8a5f3)
* The wbinfo --sequence command has been depreciated in favor of the newRonnie Sahlberg2009-03-191-1/+1
| | | | | | --online-status command (This used to be ctdb commit b6e34503ac094a274a569a69e3d93d92ad911f4d)
* make sure we can collect proper mmfs dataroot2009-03-121-5/+5
| | | | (This used to be ctdb commit 76d655f9aa3ebd39e7a40d0bbd85e40d08f3e90b)
* collect net conf list in ctdb_diagnosticsroot2007-03-101-0/+1
| | | | (This used to be ctdb commit 0bb130090b8dce5f85b0cb178a19f877759c0caa)
* check the static-routes file if it existsroot2007-03-101-3/+27
| | | | (This used to be ctdb commit 9ce84a7915abaa987160ecbcae63128a9ed0a741)
* Merge commit 'ronnie/master'Andrew Tridgell2008-10-161-0/+5
|\ | | | | | | (This used to be ctdb commit 5403ed6dcfdfc101b05b43f83002e720d81b4e38)
| * From Mathieu ParentRonnie Sahlberg2008-10-131-0/+5
| | | | | | | | | | | | | | patch to make debian systems log the package versions in ctdb_diagnostics (This used to be ctdb commit 07dd4c7d2e8ba10f53d4cf2644fc4b7b8647e286)
* | added some more gpfs commands per-filesystemAndrew Tridgell2008-10-091-0/+8
|/ | | | (This used to be ctdb commit a5d5aa455c7f7eb93d3fa6f403d5b8e0b795109d)
* expanded ctdb_diagnostics based on recent experienceAndrew Tridgell2008-09-171-1/+10
| | | | (This used to be ctdb commit a06abf6bff6c4d379453e5063d8de1a6542c982a)
* nicer onnode outputAndrew Tridgell2008-01-071-0/+1
| | | | (This used to be ctdb commit ac5c1e090d007bc2e3965589731620b87c0217fb)
* added bonding info to ctdb_diagnosticsAndrew Tridgell2007-10-301-5/+11
| | | | (This used to be ctdb commit 71b5fc434bc5d88eb0669ee29aa932ba12737e07)
* more detail on multipath configAndrew Tridgell2007-10-161-1/+1
| | | | (This used to be ctdb commit 78c44f2267cbef5fbc57d56dfd5ff40972733a1f)
* separate out the various fs display opsAndrew Tridgell2007-09-191-1/+3
| | | | (This used to be ctdb commit dc89e1a428da5d5ca2a9c4988c05de3ea65f00f4)
* expanded ctdb_diagnostics a bitAndrew Tridgell2007-09-171-3/+20
| | | | (This used to be ctdb commit 70a4bb3dc7e624ad778949dbc874c2617fd532e6)
* new approach for killing TCP connections on IP releaseAndrew Tridgell2007-09-131-0/+1
| | | | (This used to be ctdb commit c33a0db29b5604966f582b1f8c5fd66760c72197)
* add crontab and sysctl outputAndrew Tridgell2007-09-101-1/+3
| | | | (This used to be ctdb commit b1b59f3294ee7a5ed6d685f373bf19d3152170fa)
* added a diagnostics tool for ctdbAndrew Tridgell2007-09-051-0/+174
(This used to be ctdb commit 032a2238caf688656b00e06bf363182368e037e1)