OCF_HEARTBEAT_LXC(7) | OCF resource agents | OCF_HEARTBEAT_LXC(7) |
ocf_heartbeat_lxc - Manages LXC containers
lxc [start | stop | monitor | meta-data | validate-all]
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.
container
(unique, required, string, no default)
config
(required, string, no default)
log
(optional, string, default "/run/resource-agents/RESOURCE_ID.log")
use_screen
(optional, boolean, default false)
This resource agent supports the following actions (operations):
start
stop
monitor
validate-all
meta-data
The following is an example configuration for a lxc resource using the crm(8) shell:
primitive p_lxc ocf:heartbeat:lxc \
params \
container=string \
config=string \
op monitor timeout="20s" interval="60s" depth="0"
The following is an example configuration for a lxc resource using pcs(8)
pcs resource create p_lxc ocf:heartbeat:lxc \
container=string \
config=string \
op monitor timeout="20s" interval="60s" depth="0"
http://clusterlabs.org/
ClusterLabs contributors (see the resource agent source for information about individual authors)
06/27/2020 | resource-agents UNKNOWN |