'\" t .\" Title: ocf_heartbeat_lxc .\" Author: Linux-HA contributors (see the resource agent source for information about individual authors) .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: 03/09/2014 .\" Manual: OCF resource agents .\" Source: resource-agents UNKNOWN .\" Language: English .\" .TH "OCF_HEARTBEAT_LXC" "7" "03/09/2014" "resource-agents UNKNOWN" "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_lxc \- Manages LXC containers .SH "SYNOPSIS" .HP \w'\fBlxc\fR\ 'u \fBlxc\fR [start | stop | monitor | meta\-data | validate\-all] .SH "DESCRIPTION" .PP Allows LXC containers to be managed by the cluster\&. If the container is running "init" it will also perform an orderly shutdown\&. It is \*(Aqassumed\*(Aq that the \*(Aqinit\*(Aq system will do an orderly shudown if presented with a \*(Aqkill \-PWR\*(Aq signal\&. On a \*(Aqsysvinit\*(Aq this would require the container to have an inittab file containing "p0::powerfail:/sbin/init 0" I have absolutly no idea how this is done with \*(Aqupstart\*(Aq or \*(Aqsystemd\*(Aq, YMMV if your container is using one of them\&. .SH "SUPPORTED PARAMETERS" .PP \fBcontainer\fR .RS 4 The unique name for this \*(AqContainer Instance\*(Aq e\&.g\&. \*(Aqtest1\*(Aq\&. (unique, required, string, no default) .RE .PP \fBconfig\fR .RS 4 Absolute path to the file holding the specific configuration for this container e\&.g\&. \*(Aq/etc/lxc/test1/config\*(Aq\&. (required, string, no default) .RE .PP \fBlog\fR .RS 4 Absolute path to the container log file (optional, string, default /var/run/resource\-agents/default\&.log) .RE .PP \fBuse_screen\fR .RS 4 Provides the option of capturing the \*(Aqroot console\*(Aq from the container and showing it on a separate screen\&. To see the screen output run \*(Aqscreen \-r {container name}\*(Aq The default value is set to \*(Aqfalse\*(Aq, change to \*(Aqtrue\*(Aq to activate this option (optional, boolean, default false) .RE .SH "SUPPORTED ACTIONS" .PP This resource agent supports the following actions (operations): .PP \fBstart\fR .RS 4 Starts the resource\&. Suggested minimum timeout: 10\&. .RE .PP \fBstop\fR .RS 4 Stops the resource\&. Suggested minimum timeout: 30\&. .RE .PP \fBmonitor\fR .RS 4 Performs a detailed status check\&. Suggested minimum timeout: 20\&. Suggested interval: 60\&. .RE .PP \fBvalidate\-all\fR .RS 4 Performs a validation of the resource configuration\&. Suggested minimum timeout: 20\&. .RE .PP \fBmeta\-data\fR .RS 4 Retrieves resource agent metadata (internal use only)\&. Suggested minimum timeout: 5\&. .RE .SH "EXAMPLE" .PP The following is an example configuration for a lxc resource using the \fBcrm\fR(8) shell: .sp .if n \{\ .RS 4 .\} .nf primitive p_lxc ocf:heartbeat:lxc \e params \e container=\fIstring\fR \e config=\fIstring\fR \e op monitor timeout="20" interval="60" depth="0" .fi .if n \{\ .RE .\} .SH "SEE ALSO" .PP \m[blue]\fB\%http://www.linux-ha.org/wiki/lxc_(resource_agent)\fR\m[] .SH "AUTHOR" .PP \fBLinux\-HA contributors (see the resource agent source for information about individual authors)\fR