Configuring the CTDB recovery lock

From SambaWiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Goal

Configure CTDB to use a recovery lock to avoid a "split-brain" situation.

Prerequisites

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