Configuring the CTDB recovery lock: Difference between revisions
From SambaWiki
(→CTDB configuration: Update for 4.9 (and 4.8)) |
m (→Samba <= 4.8) |
||
Line 16: | Line 16: | ||
recovery lock = /clusterfs/.ctdb/reclock |
recovery lock = /clusterfs/.ctdb/reclock |
||
== Samba |
== Samba ≤ 4.8 == |
||
The equivalent <code>ctdbd.conf</code> option is <code>CTDB_RECOVERY_LOCK</code>. For example: |
The equivalent <code>ctdbd.conf</code> option is <code>CTDB_RECOVERY_LOCK</code>. For example: |
Revision as of 05:53, 17 September 2018
Goal
Configure CTDB to use a recovery lock to avoid a "split-brain" situation.
Prerequisites
- Setting up a cluster filesystem (by default - see below)
CTDB configuration
The recovery lock, configured via the recovery lock
option in the cluster
section, provides important split-brain prevention and is usually configured to point to a lock file in the cluster filesystem. See the RECOVERY LOCK section in ctdb(7) for more details.
For example:
[cluster] recovery lock = /clusterfs/.ctdb/reclock
Samba ≤ 4.8
The equivalent ctdbd.conf
option is CTDB_RECOVERY_LOCK
. For example:
CTDB_RECOVERY_LOCK=/clusterfs/.ctdb/reclock