]> git.proxmox.com Git - pve-docs.git/blame - ha-resources-opts.adoc
backup: clarify that CLI means FS-level and highlight retention-note
[pve-docs.git] / ha-resources-opts.adoc
CommitLineData
52e44c50
FG
1`comment`: `<string>` ::
2
3Description.
4
5`group`: `<string>` ::
6
7The HA group identifier.
8
9`max_relocate`: `<integer> (0 - N)` ('default =' `1`)::
10
2489d6df 11Maximal number of service relocate tries when a service failes to start.
52e44c50
FG
12
13`max_restart`: `<integer> (0 - N)` ('default =' `1`)::
14
15Maximal number of tries to restart the service on a node after its start failed.
16
2489d6df 17`state`: `<disabled | enabled | ignored | started | stopped>` ('default =' `started`)::
52e44c50
FG
18
19Requested resource state. The CRM reads this state and acts accordingly.
20Please note that `enabled` is just an alias for `started`.
21+
22`started`;;
23+
24The CRM tries to start the resource. Service state is
25set to `started` after successful start. On node failures, or when start
26fails, it tries to recover the resource. If everything fails, service
27state it set to `error`.
28+
29`stopped`;;
30+
31The CRM tries to keep the resource in `stopped` state, but it
32still tries to relocate the resources on node failures.
33+
34`disabled`;;
35+
36The CRM tries to put the resource in `stopped` state, but does not try
37to relocate the resources on node failures. The main purpose of this
38state is error recovery, because it is the only way to move a resource out
39of the `error` state.
2489d6df
WB
40+
41`ignored`;;
42+
43The resource gets removed from the manager status and so the CRM and the LRM do
44not touch the resource anymore. All {pve} API calls affecting this resource
45will be executed, directly bypassing the HA stack. CRM commands will be thrown
46away while there source is in this state. The resource will not get relocated
47on node failures.
52e44c50 48