1 *ha-manager* `<COMMAND> [ARGS] [OPTIONS]`
3 *ha-manager add* `<sid>` `[OPTIONS]`
5 Create a new HA resource.
7 `<sid>`: `<type>:<name>` ::
9 HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).
11 `--comment` `<string>` ::
15 `--group` `<string>` ::
17 The HA group identifier.
19 `--max_relocate` `<integer> (0 - N)` ('default =' `1`)::
21 Maximal number of service relocate tries when a service failes to start.
23 `--max_restart` `<integer> (0 - N)` ('default =' `1`)::
25 Maximal number of tries to restart the service on a node after its start failed.
27 `--state` `<disabled | enabled | ignored | started | stopped>` ('default =' `started`)::
29 Requested resource state.
31 `--type` `<ct | vm>` ::
35 *ha-manager config* `[OPTIONS]`
39 `--type` `<ct | vm>` ::
41 Only list resources of specific type
43 *ha-manager crm-command migrate* `<sid> <node>`
45 Request resource migration (online) to another node.
47 `<sid>`: `<type>:<name>` ::
49 HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).
51 `<node>`: `<string>` ::
55 *ha-manager crm-command relocate* `<sid> <node>`
57 Request resource relocatzion to another node. This stops the service on the
58 old node, and restarts it on the target node.
60 `<sid>`: `<type>:<name>` ::
62 HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).
64 `<node>`: `<string>` ::
68 *ha-manager crm-command stop* `<sid> <timeout>`
70 Request the service to be stopped.
72 `<sid>`: `<type>:<name>` ::
74 HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).
76 `<timeout>`: `<integer> (0 - N)` ::
78 Timeout in seconds. If set to 0 a hard stop will be performed.
80 *ha-manager groupadd* `<group> --nodes <string>` `[OPTIONS]`
82 Create a new HA group.
84 `<group>`: `<string>` ::
86 The HA group identifier.
88 `--comment` `<string>` ::
92 `--nodes` `<node>[:<pri>]{,<node>[:<pri>]}*` ::
94 List of cluster node names with optional priority.
96 `--nofailback` `<boolean>` ('default =' `0`)::
98 The CRM tries to run services on the node with the highest priority. If a node with higher priority comes online, the CRM migrates the service to that node. Enabling nofailback prevents that behavior.
100 `--restricted` `<boolean>` ('default =' `0`)::
102 Resources bound to restricted groups may only run on nodes defined by the group.
104 `--type` `<group>` ::
108 *ha-manager groupconfig*
112 *ha-manager groupremove* `<group>`
114 Delete ha group configuration.
116 `<group>`: `<string>` ::
118 The HA group identifier.
120 *ha-manager groupset* `<group>` `[OPTIONS]`
122 Update ha group configuration.
124 `<group>`: `<string>` ::
126 The HA group identifier.
128 `--comment` `<string>` ::
132 `--delete` `<string>` ::
134 A list of settings you want to delete.
136 `--digest` `<string>` ::
138 Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
140 `--nodes` `<node>[:<pri>]{,<node>[:<pri>]}*` ::
142 List of cluster node names with optional priority.
144 `--nofailback` `<boolean>` ('default =' `0`)::
146 The CRM tries to run services on the node with the highest priority. If a node with higher priority comes online, the CRM migrates the service to that node. Enabling nofailback prevents that behavior.
148 `--restricted` `<boolean>` ('default =' `0`)::
150 Resources bound to restricted groups may only run on nodes defined by the group.
152 *ha-manager help* `[OPTIONS]`
154 Get help about specified command.
156 `--extra-args` `<array>` ::
158 Shows help for a specific command
160 `--verbose` `<boolean>` ::
162 Verbose output format.
166 An alias for 'ha-manager crm-command migrate'.
168 *ha-manager relocate*
170 An alias for 'ha-manager crm-command relocate'.
172 *ha-manager remove* `<sid>`
174 Delete resource configuration.
176 `<sid>`: `<type>:<name>` ::
178 HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).
180 *ha-manager set* `<sid>` `[OPTIONS]`
182 Update resource configuration.
184 `<sid>`: `<type>:<name>` ::
186 HA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).
188 `--comment` `<string>` ::
192 `--delete` `<string>` ::
194 A list of settings you want to delete.
196 `--digest` `<string>` ::
198 Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
200 `--group` `<string>` ::
202 The HA group identifier.
204 `--max_relocate` `<integer> (0 - N)` ('default =' `1`)::
206 Maximal number of service relocate tries when a service failes to start.
208 `--max_restart` `<integer> (0 - N)` ('default =' `1`)::
210 Maximal number of tries to restart the service on a node after its start failed.
212 `--state` `<disabled | enabled | ignored | started | stopped>` ('default =' `started`)::
214 Requested resource state.
216 *ha-manager status* `[OPTIONS]`
218 Display HA manger status.
220 `--verbose` `<boolean>` ('default =' `0`)::
222 Verbose output. Include complete CRM and LRM status (JSON).