'\" t .\" Title: ocf_heartbeat_galera .\" Author: ClusterLabs contributors (see the resource agent source for information about individual authors) .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: 06/07/2017 .\" Manual: OCF resource agents .\" Source: resource-agents 4.0.0~rc1-4~bpo8+1 .\" Language: English .\" .TH "OCF_HEARTBEAT_GALERA" "7" "06/07/2017" "resource-agents 4.0.0~rc1-4~bp" "OCF resource agents" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ocf_heartbeat_galera \- Manages a galara instance .SH "SYNOPSIS" .HP \w'\fBgalera\fR\ 'u \fBgalera\fR [start | stop | status | monitor | promote | demote | meta\-data | validate\-all] .SH "DESCRIPTION" .PP Resource script for managing galara database\&. .SH "SUPPORTED PARAMETERS" .PP \fBbinary\fR .RS 4 Location of the MySQL server binary .sp (optional, string, default "/usr/bin/mysqld_safe") .RE .PP \fBclient_binary\fR .RS 4 Location of the MySQL client binary .sp (optional, string, default "mysql") .RE .PP \fBconfig\fR .RS 4 Configuration file .sp (optional, string, default "/etc/mysql/my\&.cnf") .RE .PP \fBdatadir\fR .RS 4 Directory containing databases .sp (optional, string, default "/var/lib/mysql") .RE .PP \fBuser\fR .RS 4 User running MySQL daemon .sp (optional, string, default "mysql") .RE .PP \fBgroup\fR .RS 4 Group running MySQL daemon (for logfile and directory permissions) .sp (optional, string, default "mysql") .RE .PP \fBlog\fR .RS 4 The logfile to be used for mysqld\&. .sp (optional, string, default "/var/log/mysql\&.log") .RE .PP \fBpid\fR .RS 4 The pidfile to be used for mysqld\&. .sp (optional, string, default "/var/run/mysqld/mysqld\&.pid") .RE .PP \fBsocket\fR .RS 4 The socket to be used for mysqld\&. .sp (optional, string, default "/var/lib/mysqld/mysqld\&.sock") .RE .PP \fBenable_creation\fR .RS 4 If the MySQL database does not exist, it will be created .sp (optional, boolean, default 0) .RE .PP \fBadditional_parameters\fR .RS 4 Additional parameters which are passed to the mysqld on startup\&. (e\&.g\&. \-\-skip\-external\-locking or \-\-skip\-grant\-tables) .sp (optional, string, no default) .RE .PP \fBwsrep_cluster_address\fR .RS 4 The galera cluster address\&. This takes the form of: gcomm://node,node,node .sp Only nodes present in this node list will be allowed to start a galera instance\&. It is expected that the galera node names listed in this address match valid pacemaker node names\&. .sp (required, string, no default) .RE .PP \fBcheck_user\fR .RS 4 Cluster check user\&. .sp (optional, string, default "root") .RE .PP \fBcheck_passwd\fR .RS 4 Cluster check user password .sp (optional, string, no default) .RE .SH "SUPPORTED ACTIONS" .PP This resource agent supports the following actions (operations): .PP \fBstart\fR .RS 4 Starts the resource\&. Suggested minimum timeout: 120\&. .RE .PP \fBstop\fR .RS 4 Stops the resource\&. Suggested minimum timeout: 120\&. .RE .PP \fBstatus\fR .RS 4 Performs a status check\&. Suggested minimum timeout: 60\&. .RE .PP \fBmonitor\fR .RS 4 Performs a detailed status check\&. Suggested minimum timeout: 30\&. Suggested interval: 20\&. .RE .PP \fBmonitor (Master role)\fR .RS 4 Performs a detailed status check\&. Suggested minimum timeout: 30\&. Suggested interval: 10\&. .RE .PP \fBmonitor (Slave role)\fR .RS 4 Performs a detailed status check\&. Suggested minimum timeout: 30\&. Suggested interval: 30\&. .RE .PP \fBpromote\fR .RS 4 Promotes the resource to the Master role\&. Suggested minimum timeout: 300\&. .RE .PP \fBdemote\fR .RS 4 Demotes the resource to the Slave role\&. Suggested minimum timeout: 120\&. .RE .PP \fBvalidate\-all\fR .RS 4 Performs a validation of the resource configuration\&. Suggested minimum timeout: 5\&. .RE .PP \fBmeta\-data\fR .RS 4 Retrieves resource agent metadata (internal use only)\&. Suggested minimum timeout: 5\&. .RE .SH "EXAMPLE CRM SHELL" .PP The following is an example configuration for a galera resource using the \fBcrm\fR(8) shell: .sp .if n \{\ .RS 4 .\} .nf primitive p_galera ocf:heartbeat:galera \e params \e wsrep_cluster_address=\fIstring\fR \e op monitor depth="0" timeout="30" interval="20" \e op monitor role="Master" depth="0" timeout="30" interval="10" \e op monitor role="Slave" depth="0" timeout="30" interval="30" .fi .if n \{\ .RE .\} .sp .if n \{\ .RS 4 .\} .nf ms ms_galera p_galera \e meta notify="true" interleave="true" .fi .if n \{\ .RE .\} .SH "EXAMPLE PCS" .PP The following is an example configuration for a galera resource using \fBpcs\fR(8) .sp .if n \{\ .RS 4 .\} .nf pcs resource create p_galera ocf:heartbeat:galera \e wsrep_cluster_address=\fIstring\fR \e op monitor depth="0" timeout="30" interval="20" \e op monitor role="Master" depth="0" timeout="30" interval="10" \e op monitor role="Slave" depth="0" timeout="30" interval="30" \-\-master .fi .if n \{\ .RE .\} .SH "SEE ALSO" .PP \m[blue]\fB\%http://clusterlabs.org/\fR\m[] .SH "AUTHOR" .PP \fBClusterLabs contributors (see the resource agent source for information about individual authors)\fR