OCF_HEARTBEAT_CTDB(7) | OCF resource agents | OCF_HEARTBEAT_CTDB(7) |
ocf_heartbeat_CTDB - CTDB Resource Agent
CTDB [start | stop | monitor | meta-data | validate-all]
This resource agent manages CTDB, allowing one to use Clustered Samba in a Linux-HA/Pacemaker cluster. You need a shared filesystem (e.g. OCFS2 or GFS2) on which the CTDB lock will be stored. Create /etc/ctdb/nodes containing a list of private IP addresses of each node in the cluster, then configure this RA as a clone. This agent expects the samba and windbind resources to be managed outside of CTDB's control as a separate set of resources controlled by the cluster manager. The optional support for enabling CTDB management of these daemons will be depreciated.
For more information see http://linux-ha.org/wiki/CTDB_(resource_agent)
ctdb_recovery_lock
(unique, required, string, no default)
ctdb_manages_samba
(optional, boolean, default no)
ctdb_manages_winbind
(optional, boolean, default no)
ctdb_service_smb
(optional, string, no default)
ctdb_service_nmb
(optional, string, no default)
ctdb_service_winbind
(optional, string, no default)
ctdb_samba_skip_share_check
(optional, boolean, default yes)
ctdb_monitor_free_memory
(optional, integer, default 100)
ctdb_start_as_disabled
(optional, boolean, default no)
ctdb_config_dir
(optional, string, default "/etc/ctdb")
ctdb_binary
(optional, string, default "/usr/bin/ctdb")
ctdbd_binary
(optional, string, default "/usr/sbin/ctdbd")
ctdb_socket
(unique, optional, string, default "/run/ctdb/ctdbd.socket")
ctdb_dbdir
(unique, optional, string, default "/var/run")
ctdb_logfile
(optional, string, default "/var/log/ctdb/log.ctdb")
ctdb_rundir
(optional, string, default "/run/ctdb")
ctdb_timeout
(unique, optional, integer, default 10)
ctdb_debuglevel
(optional, integer, default 2)
ctdb_max_open_files
(optional, integer, no default)
smb_conf
(optional, string, default "/etc/samba/smb.conf")
smb_private_dir
(unique, optional, string, no default)
smb_passdb_backend
(optional, string, default "tdbsam")
smb_idmap_backend
(optional, string, default "tdb2")
smb_fileid_algorithm
(optional, string, no default)
This resource agent supports the following actions (operations):
start
stop
monitor
meta-data
validate-all
The following is an example configuration for a CTDB resource using the crm(8) shell:
primitive p_CTDB ocf:heartbeat:CTDB \
params \
ctdb_recovery_lock=string \
op monitor timeout="20s" interval="10s" depth="0"
The following is an example configuration for a CTDB resource using pcs(8)
pcs resource create p_CTDB ocf:heartbeat:CTDB \
ctdb_recovery_lock=string \
op monitor timeout="20s" interval="10s" OCF_CHECK_LEVEL="0"
http://clusterlabs.org/
ClusterLabs contributors (see the resource agent source for information about individual authors)
04/13/2023 | resource-agents 4.12.0-2 |