Name

ocf:lxc — Manages LXC containers

Synopsis

OCF_RESKEY_container=string [OCF_RESKEY_config=string] [OCF_RESKEY_log=string] [OCF_RESKEY_use_screen=boolean] lxc [start | stop | monitor | validate-all | meta-data]

Description

Allows LXC containers to be managed by the cluster. If the container is running "init" it will also perform an orderly shutdown. It is 'assumed' that the 'init' system will do an orderly shudown if presented with a 'kill -PWR' signal. On a 'sysvinit' 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 'upstart' or 'systemd', YMMV if your container is using one of them.

Supported Parameters

OCF_RESKEY_container=Container Name

The unique name for this 'Container Instance' e.g. 'test1'.

OCF_RESKEY_config=The LXC config file.

Absolute path to the file holding the specific configuration for this container e.g. '/etc/lxc/test1/config'.

OCF_RESKEY_log=Container log file

Absolute path to the container log file

OCF_RESKEY_use_screen=Use 'screen' for container 'root console' output

Provides the option of capturing the 'root console' from the container and showing it on a separate screen. To see the screen output run 'screen -r {container name}' The default value is set to 'false', change to 'true' to activate this option


SUSE Linux Enterprise High Availability Extension High Availability Guide 11 SP3