1OCF_HEARTBEAT_LXC(7) OCF resource agents OCF_HEARTBEAT_LXC(7)
2
3
4
6 ocf_heartbeat_lxc - Manages LXC containers
7
9 lxc [start | stop | monitor | meta-data | validate-all]
10
12 Allows LXC containers to be managed by the cluster. If the container is
13 running "init" it will also perform an orderly shutdown. It is
14 'assumed' that the 'init' system will do an orderly shudown if
15 presented with a 'kill -PWR' signal. On a 'sysvinit' this would require
16 the container to have an inittab file containing
17 "p0::powerfail:/sbin/init 0" I have absolutly no idea how this is done
18 with 'upstart' or 'systemd', YMMV if your container is using one of
19 them.
20
22 container
23 The unique name for this 'Container Instance' e.g. 'test1'.
24 (unique, required, string, no default)
25
26 config
27 Absolute path to the file holding the specific configuration for
28 this container e.g. '/etc/lxc/test1/config'. (required, string, no
29 default)
30
31 log
32 Absolute path to the container log file (optional, string, default
33 /var/run/heartbeat/rsctmp/default.log)
34
35 use_screen
36 Provides the option of capturing the 'root console' from the
37 container and showing it on a separate screen. To see the screen
38 output run 'screen -r {container name}' The default value is set to
39 'false', change to 'true' to activate this option (optional,
40 boolean, default false)
41
43 This resource agent supports the following actions (operations):
44
45 start
46 Starts the resource. Suggested minimum timeout: 10.
47
48 stop
49 Stops the resource. Suggested minimum timeout: 30.
50
51 monitor
52 Performs a detailed status check. Suggested minimum timeout: 20.
53 Suggested interval: 60.
54
55 validate-all
56 Performs a validation of the resource configuration. Suggested
57 minimum timeout: 20.
58
59 meta-data
60 Retrieves resource agent metadata (internal use only). Suggested
61 minimum timeout: 5.
62
64 The following is an example configuration for a lxc resource using the
65 crm(8) shell:
66
67 primitive p_lxc ocf:heartbeat:lxc \
68 params \
69 container=string \
70 config=string \
71 op monitor timeout="20" interval="60" depth="0"
72
74 http://www.linux-ha.org/wiki/lxc_(resource_agent)
75
77 Linux-HA contributors (see the resource agent source for information
78 about individual authors)
79
80
81
82resource-agents 3.9.2 07/08/2011 OCF_HEARTBEAT_LXC(7)