Name

ocf:CTDB — CTDB Resource Agent

Synopsis

OCF_RESKEY_ctdb_recovery_lock=string OCF_RESKEY_smb_private_dir=string [OCF_RESKEY_ctdb_config_dir=string] [OCF_RESKEY_ctdb_binary=string] [OCF_RESKEY_ctdbd_binary=string] [OCF_RESKEY_ctdb_socket=string] [OCF_RESKEY_ctdb_dbdir=string] [OCF_RESKEY_ctdb_logfile=string] [OCF_RESKEY_ctdb_debuglevel=integer] [OCF_RESKEY_smb_conf=string] CTDB [start | stop | monitor | meta-data | validate-all]

Description

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) on which CTDB lock and Samba state will be stored. Configure shares in smb.conf on all nodes, and create /etc/ctdb/nodes containing a list of private IP addresses of each node in the cluster. Configure this RA as a clone, and it will take care of the rest. For more information see http://linux-ha.org/wiki/CTDB_(resource_agent)

Supported Parameters

OCF_RESKEY_ctdb_recovery_lock=CTDB shared lock file

The location of a shared lock file, common across all nodes. This must be on shared storage, e.g.: /shared-fs/samba/ctdb.lock

OCF_RESKEY_smb_private_dir=Samba private dir

The directory for smbd to use for storing such files as smbpasswd and secrets.tdb. This must be on shared storage, e.g.: /shared-fs/samba/private

OCF_RESKEY_ctdb_config_dir=CTDB config file directory

The directory containing various CTDB configuration files. The "nodes" and "notify.sh" scripts are expected to be in this directory, as is the "events.d" subdirectory.

OCF_RESKEY_ctdb_binary=CTDB binary path

Full path to the CTDB binary.

OCF_RESKEY_ctdbd_binary=CTDB Daemon binary path

Full path to the CTDB cluster daemon binary.

OCF_RESKEY_ctdb_socket=CTDB socket location

Full path to the domain socket that ctdbd will create, used for local clients to attach and communicate with the ctdb daemon.

OCF_RESKEY_ctdb_dbdir=CTDB database directory

The directory to put the local CTDB database files in. Persistent database files will be put in ctdb_dbdir/persistent.

OCF_RESKEY_ctdb_logfile=CTDB log file location

Full path to log file. To log to syslog instead, use the value "syslog".

OCF_RESKEY_ctdb_debuglevel=CTDB debug level

What debug level to run at (0-10). Higher means more verbose.

OCF_RESKEY_smb_conf=Path to smb.conf

Path to default samba config file.