1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00
Commit Graph

59 Commits

Author SHA1 Message Date
Martin Schwenke
6315432f87 doc: Major updates to manual pages
This includes new manpages for ctdb.7, ctdb.conf.5 and ctdb-tunables.7.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 15b5c6c00c248bc1a8364a6da103296a55d7bfb6)
2013-10-30 15:37:54 +11:00
Amitay Isaacs
fc7f335843 daemon: Change the default recovery method for persistent databases
Use sequence numbers to do recovery for persistent databases instead of
RSNs.  This fixes the problem of registry corruption during recovery.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 56486d1c01cc8ad0e4b8cee7a22429e72e50f03d)
2013-10-28 18:51:22 +11:00
Martin Schwenke
e14fa50941 doc: Update XML files to use standard DocBook DTD
This simplifies building since we don't use any of the Samba
extensions.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 57aa2dffea60abd73a95233f8b761cc676adebb6)
2013-07-29 15:58:51 +10:00
Amitay Isaacs
d46c24f4d0 ctdbd: No need for DeadlockTimeout tunable
The code for deadlock detection and killing smbd process causing deadlock
has been removed and replaced with external debug script.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 2211cd94bea266547d3e6f167d3160a6b23bec88)
2013-07-10 14:33:18 +10:00
Martin Schwenke
ab68cf3446 doc: Add a disclaimer for the EnableBans tunable
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 145b1966c1b34f1667a175235e1df2741294391c)
2013-07-04 14:30:18 +10:00
Martin Schwenke
356647949b doc: Fix documentation for NoIPTakeover in ctdbd manpage
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 5d0215be5aefe492258a92c7bff2d41960379580)
2013-06-22 15:54:19 +10:00
Martin Schwenke
ed45a2e115 doc: Update notification script section in ctdbd manpage
The example notification script is now much more useful.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 4ba7c73eeab98296c9168e0b0fed1f6bb9f32733)
2013-06-22 15:54:19 +10:00
Martin Schwenke
0445c988e2 recoverd: Fix tunable NoIPTakeoverOnDisabled, rename to NoIPHostOnAllDisabled
This really needs to be per-node.  The rename is because nodes with
this tunable switched on should drop IPs if they become unhealthy (or
disabled in some other way).

* Add new flag NODE_FLAGS_NOIPHOST, only used in recovery daemon.

* Enhance set_ipflags_internal() and set_ipflags() to setup
  NODE_FLAGS_NOIPHOST depending on setting of NoIPHostOnAllDisabled
  and/or whether nodes are disabled/inactive.

* Replace can_node_servce_ip() with functions can_node_host_ip() and
  can_node_takeover_ip().  These functions are the only ones that need
  to look at NODE_FLAGS_NOIPTAKEOVER and NODE_FLAGS_NOIPHOST.  They
  can make the decision without looking at any other flags due to
  previous setup.

* Remove explicit flag checking in IP allocation functions (including
  unassign_unsuitable_ips()) and just call can_node_host_ip() and
  can_node_takeover_ip() as appropriate.

* Update test code to handle CTDB_SET_NoIPHostOnAllDisabled.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 1308a51f73f2e29ba4dbebb6111d9309a89732cc)
2013-05-07 16:20:46 +10:00
Martin Schwenke
f9bbbaef7e doc: Fix typo in ctdbd manpage
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 855ab348901edb3ec1327499a43f509d279b8182)
2013-02-15 13:12:26 +11:00
Mathieu Parent
69afd9abc5 doc: allows to -> allows one to
Signed-off-by: Mathieu Parent <math.parent@gmail.com>

(This used to be ctdb commit 95fc493a7d4145f976cb3fe928d9e92faec4dd71)
2013-01-22 18:03:35 +11:00
Amitay Isaacs
a73f13ada7 daemon: Add a tunable to enable automatic database priority setting
Samba versions 3.6.x and older do not set the database priority.
This can cause deadlock between Samba and CTDB since the locking order
of database will be different. A hack was added for automatic promotion
of priority for specific databases to avoid deadlock.  This code should
not be invoked with Samba version 4.x which correctly specifies the
priority for each database.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Michael Adam <obnox@samba.org>

(This used to be ctdb commit 4a9e96ad3d8fc46da1cd44cd82309c1b54301eb7)
2013-01-05 01:14:57 +01:00
Amitay Isaacs
83306337df ctdbd: locking: Provide non-blocking API for locking of TDB record/db/alldb
This introduces a consistent API for handling locks on single record, complete
db or all dbs. The locks are taken out in a child process. In cases of timeout,
find the processes that currently hold the lock and log.

Callback functions for locking requests take locked boolean to indicate
whether the lock was successfully obtained or not.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 1af99cf0de9919dd89af1feab6d1bd18b95d82ff)
2012-10-20 02:48:44 +11:00
Martin Schwenke
79ea15bf96 ctdbd: New tunable NoIPTakeoverOnDisabled
Stops the behaviour where unhealthy nodes can host IPs when there are
no healthy nodes.  Set this to 1 when an immediate complete outage is
preferred when all nodes are unhealthy.  The alternative
(i.e. default) can lead to undefined behaviour when the shared
filesystem is unavailable.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit a555940fb5c914b7581667a05153256ad7d17774)
2012-10-11 12:10:45 +11:00
Amitay Isaacs
85cc174b91 doc: Fix path string of /etc/sysconfig/ctdb file
Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 49dd755fcd077c84eaf3d2fe5dd7757f5588d49c)
2012-08-20 17:06:28 +10:00
Martin Schwenke
6717698cba Eventscripts: Default route on NAT gateway should have a metric of 10
At the moment routes from 11.routing can fail to be added because they
conflict with the default route added by 11.natgw.

NAT gateway is meant to be a last resort, so routes from 11.routing
should override it.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 624f4677e99ed1710a0ace76201150349b1a0335)
2012-07-26 21:14:58 +10:00
Ronnie Sahlberg
7d9acaeb37 DOCS: Document the new tunables to produce warnings if databases grow unexpectedly big.
(This used to be ctdb commit 6cf6a9b071bd8dd730717ca033337ff73bf247bb)
2012-05-21 13:26:23 +10:00
Martin Schwenke
081a8ec403 Add policy routing documentation to ctdbd(1).
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 5cdeb0dd8827b13b06265c75dfac359bcd6ad10c)
2012-03-23 14:36:18 +11:00
Ronnie Sahlberg
2456f77ca6 NoIPTakeover: change the tunable name for the "dont allow failing addresses over onto the node" to NoIPTakeover
(This used to be ctdb commit 35592e618cfd827b6978af6332f80504f232c46a)
2012-03-22 11:05:15 +11:00
Ronnie Sahlberg
bc9ec181e2 STICKY document the sticky record parameters
(This used to be ctdb commit e6a8306257dece02313043274789b52cef1a5647)
2012-03-20 17:12:27 +11:00
Ronnie Sahlberg
462cdbc5c4 DOC: Document the MaxLACount tunable variable
(This used to be ctdb commit cf96d6380de974c1abff7a33c62a7e31ac980551)
2012-03-20 12:26:32 +11:00
Ronnie Sahlberg
9bc6055af8 DOC document the FetchCollapse tunable
(This used to be ctdb commit c37aa6f3738693653f64c2fa015ace061da38b5a)
2012-03-20 11:39:11 +11:00
Ronnie Sahlberg
a05dd12379 DOC: Update the manpage to describe all relevant tunables
(This used to be ctdb commit 3f471da605b9c43d5e1206452f238c2a91dc02f7)
2011-12-14 14:23:53 +11:00
Ronnie Sahlberg
940e9cb7a7 DOC: describe the RecoverPDBBySeqNum tunable
(This used to be ctdb commit 86d956170d4806065f1470fc44710c085c57f17a)
2011-11-30 08:59:03 +11:00
Mathieu Parent
a5a6140b7e Correction of spelling errors
* continous -> continuous
* activete  -> activate

(thanks to lintian)

See https://bugzilla.samba.org/show_bug.cgi?id=6935

Signed-off-by: Michael Adam <obnox@samba.org>

(This used to be ctdb commit fb6987c2f747d6dbf9bb3899a480124d1c242a90)
2011-03-23 00:35:23 +01:00
Ronnie Sahlberg
f5c0539dc6 Change how NATGW is configured to allow special nodes that do not have
network connectivity outside of the cluster to still be able to
participate in a natgw group.
These nodes can not become natgw master since they lack external network
connectivity.

These nodes are configured just the same way as for any other node with
NATGW, with the following two exceptions :
* we do NOT set CTDB_NATGW_PUBLIC_IFACE at all on these nodes.
  since these ndoes lack external network we should not check the interface
  for link.
* we must set CTDB_NATGW_SLAVE_ONLY=yes to flag that this is a node that
  can not become natgw master.

(This used to be ctdb commit ab7b00a37e55beffc074be95b55d8a5c7cb9eef2)
2010-09-08 09:20:16 +10:00
Michael Adam
eb10f70fa1 doc: add metainfo "manual" and "source" in the ctdbd manual page
(This used to be ctdb commit 8ffd7500d1740f2ce384d2c41fa5cca983c63cea)
2010-02-24 23:22:43 +11:00
Mathieu Parent
62b0af141f Correction of spelling errors in manpages
thanks to lintian

See https://bugzilla.samba.org/show_bug.cgi?id=6935

(This used to be ctdb commit 402aad596e143c1ae3ec4bf2dfe3863c505bfc40)
2010-02-24 23:21:29 +11:00
Ronnie Sahlberg
88dc248ada document the in-memory ringbuffer for logging and the commands
used to set it up and manage it.

(This used to be ctdb commit 037e64e1900f09e699d5fce50df2850f26f47f91)
2010-01-15 16:01:51 +11:00
Ronnie Sahlberg
daae501d91 Document the procedure to remove/change the NATGW configuration at
runtime without restarting the ctdb service

(This used to be ctdb commit 0a0526e03ef995b6b6634f5b75c7a17cb7b5df8f)
2009-12-04 08:33:56 +11:00
Ronnie Sahlberg
32286b08ac document how to use the notification script
(This used to be ctdb commit b77e4698e7f83443243965f93b84237f2903cd46)
2009-10-01 14:31:55 +10:00
Ronnie Sahlberg
37d68c58b8 add two commands : setlmasterrole and setrecmasterrole to enable/disable these capabilities at runtime
(This used to be ctdb commit 51aaed0e9e42e901451292e8dd545297ab725a62)
2009-07-28 13:45:13 +10:00
Ronnie Sahlberg
ad98e6a1f4 Document the natgw flag and how this changes the output of "ctdb
getcapabilities"

(This used to be ctdb commit 9b395986962909a5b0548eaea7e45215df72a08e)
2009-07-28 10:02:39 +10:00
Ronnie Sahlberg
72e2380e92 add a command "setnatgwstate {on|off}" that can be used to indicate if this node is using natgw functionality or not.
(This used to be ctdb commit 89a9bb29a60a6fb1fba55987e6cf0a4baa695e50)
2009-07-28 09:58:11 +10:00
Ronnie Sahlberg
679ef878f8 describe how to activate NATGW without restarting the nodes on a running
cluster

(This used to be ctdb commit b6c8011024ce4574f945d5a470075c6779b34a43)
2009-07-28 09:27:00 +10:00
Ronnie Sahlberg
9d0941bf83 document the new commands ctdb stop/continue
(This used to be ctdb commit d6ddea4167ccdad05e88378ee3f22b6125969562)
2009-07-09 13:07:15 +10:00
Ronnie Sahlberg
ce54b6dc8b update the man pages with the "getreclock" and "setreclock" commands.
(This used to be ctdb commit 3db8b1d7425ed5bd41e58b43c55fdac517d71baf)
2009-06-25 14:45:57 +10:00
Ronnie Sahlberg
caf0e863a4 remove the obsolete ipmux component.
this is replaced by LVS since a long time

(This used to be ctdb commit dca41ec04788922ce5f4c52d346872b3e35f8cbb)
2009-05-25 12:33:52 +10:00
Ronnie Sahlberg
0891024f7a document the new support for ClamAV
(This used to be ctdb commit 39539a2d1784f04245ed7abc84c4f39e1601afa4)
2009-05-25 12:06:09 +10:00
Ronnie Sahlberg
016b37f1e2 change the prefix NATGW_ to CTDB_NATGW_
(This used to be ctdb commit b7ed7fd4a5fbd344d41caa1afa100b1f24506173)
2009-05-14 08:12:48 +10:00
Ronnie Sahlberg
d7cefca723 remove NATGW_PRIVATE_IFACE from the documentation since we do not need
it any more.

(This used to be ctdb commit c967b234f59e5998bc8f2250062f4b0d1f39d820)
2009-05-12 18:21:26 +10:00
Ronnie Sahlberg
3d16205096 iupdate the documentation for NATGW to reflect that you can now use
multiple natgw groups in one cluster

(This used to be ctdb commit e059df6d3cd81c67e5505e8ef2d6d0ef9a287b31)
2009-03-25 13:46:41 +11:00
Ronnie Sahlberg
293a3f1158 update the natgw eventscript and documentation
(This used to be ctdb commit 95d8ddbc2dd0b159e8df003502c3c336668d2c41)
2009-03-19 10:17:44 +11:00
Ronnie Sahlberg
c9d7c06b61 add documentation for the NAT-GW feature
(This used to be ctdb commit b6f7cddc68508e52bc65b357b0b77258ae96362a)
2009-03-18 10:05:00 +11:00
Martin Schwenke
48936dff90 Minor documentation fixes.
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit 616b71fef54a3d1ea2638602099722a19ef6f41d)
2008-09-12 11:25:50 +10:00
Ronnie Sahlberg
a89778c048 explain why you have to have a real ip address as well as the "virtual"
ip address for lvs

(This used to be ctdb commit 919af5aadb797cfdd10473b6a1269f4ae2a9dbda)
2008-07-10 13:40:00 +10:00
Ronnie Sahlberg
d7aa3b4c69 add documentation for both LVS:single-ip and CAPABILITIES:wan-accelerator
(This used to be ctdb commit 563cdf2bd9cca358d234c797d8e1d9c8838c6ca6)
2008-07-10 12:50:16 +10:00
Ronnie Sahlberg
5afb32f976 document some public tunables
(This used to be ctdb commit 61fd50e2b3aa9a3ed32bc81a8e28464f267dc490)
2008-03-04 13:06:46 +11:00
Ronnie Sahlberg
0c193b349b document the --start-as-disabled argument
(This used to be ctdb commit 613881a06186dec90fb64a7190ddf4afd7437d67)
2008-02-22 10:01:15 +11:00
Ronnie Sahlberg
8b8fb37420 update --transport
we only supprot tcp now,   infiniband may be supported in the future

(This used to be ctdb commit b70790cde9c1cfc8c0e345161e2667ccc3b4bd58)
2008-01-16 11:08:41 +11:00
Ronnie Sahlberg
d8a708f8e2 explain public-interface and single-public-ip better
(This used to be ctdb commit 5b1c4fff2795eaa5ef4a1a29ef5a6a136f28ed3d)
2008-01-16 11:06:26 +11:00