]> git.proxmox.com Git - pve-docs.git/blame - ha-manager.1-synopsis.adoc
qm-cpu-settings.png: new screenshot
[pve-docs.git] / ha-manager.1-synopsis.adoc
CommitLineData
e0e8bd47
DM
1*ha-manager* `<COMMAND> [ARGS] [OPTIONS]`
2
3*ha-manager add* `<sid>` `[OPTIONS]`
4
5Create a new HA resource.
6
013dc89f 7`<sid>`: `<type>:<name>` ::
e0e8bd47 8
c2993fe5 9HA 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).
e0e8bd47 10
013dc89f 11`-comment` `<string>` ::
e0e8bd47
DM
12
13Description.
14
013dc89f 15`-group` `<string>` ::
e0e8bd47
DM
16
17The HA group identifier.
18
013dc89f 19`-max_relocate` `<integer> (0 - N)` ('default =' `1`)::
e0e8bd47
DM
20
21Maximal number of service relocate tries when a service failes to start.
22
013dc89f 23`-max_restart` `<integer> (0 - N)` ('default =' `1`)::
e0e8bd47 24
c2993fe5 25Maximal number of tries to restart the service on a node after its start failed.
e0e8bd47 26
013dc89f 27`-state` `<disabled | enabled>` ('default =' `enabled`)::
e0e8bd47
DM
28
29Resource state.
30
013dc89f 31`-type` `<ct | vm>` ::
e0e8bd47
DM
32
33Resource type.
34
35
36
37*ha-manager config* `[OPTIONS]`
38
39List HA resources.
40
013dc89f 41`-type` `<ct | vm>` ::
e0e8bd47
DM
42
43Only list resources of specific type
44
45
46
47
48*ha-manager disable* `<sid>`
49
50Disable a HA resource.
51
013dc89f 52`<sid>`: `<type>:<name>` ::
e0e8bd47 53
c2993fe5 54HA 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).
e0e8bd47
DM
55
56
57
58*ha-manager enable* `<sid>`
59
60Enable a HA resource.
61
013dc89f 62`<sid>`: `<type>:<name>` ::
e0e8bd47 63
c2993fe5 64HA 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).
e0e8bd47
DM
65
66
67
68
69*ha-manager groupadd* `<group> -nodes <string>` `[OPTIONS]`
70
71Create a new HA group.
72
013dc89f 73`<group>`: `<string>` ::
e0e8bd47
DM
74
75The HA group identifier.
76
013dc89f 77`-comment` `<string>` ::
e0e8bd47
DM
78
79Description.
80
81`-nodes` `<node>[:<pri>]{,<node>[:<pri>]}*` ::
82
c2993fe5 83List of cluster node names with optional priority. We use priority '0' as default. The CRM tries to run services on the node with highest priority (also see option 'nofailback').
e0e8bd47 84
013dc89f 85`-nofailback` `<boolean>` ('default =' `0`)::
e0e8bd47 86
c2993fe5 87The 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.
e0e8bd47 88
013dc89f 89`-restricted` `<boolean>` ('default =' `0`)::
e0e8bd47 90
c2993fe5 91Services on unrestricted groups may run on any cluster members if all group members are offline. But they will migrate back as soon as a group member comes online. One can implement a 'preferred node' behavior using an unrestricted group with one member.
e0e8bd47 92
013dc89f 93`-type` `<group>` ::
e0e8bd47
DM
94
95Group type.
96
97
98
99*ha-manager groupconfig*
100
101Get HA groups.
102
103
104
105*ha-manager groupremove* `<group>`
106
107Delete ha group configuration.
108
013dc89f 109`<group>`: `<string>` ::
e0e8bd47
DM
110
111The HA group identifier.
112
113
114
115*ha-manager groupset* `<group>` `[OPTIONS]`
116
117Update ha group configuration.
118
013dc89f 119`<group>`: `<string>` ::
e0e8bd47
DM
120
121The HA group identifier.
122
013dc89f 123`-comment` `<string>` ::
e0e8bd47
DM
124
125Description.
126
013dc89f 127`-delete` `<string>` ::
e0e8bd47
DM
128
129A list of settings you want to delete.
130
013dc89f 131`-digest` `<string>` ::
e0e8bd47 132
c2993fe5 133Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
e0e8bd47
DM
134
135`-nodes` `<node>[:<pri>]{,<node>[:<pri>]}*` ::
136
c2993fe5 137List of cluster node names with optional priority. We use priority '0' as default. The CRM tries to run services on the node with highest priority (also see option 'nofailback').
e0e8bd47 138
013dc89f 139`-nofailback` `<boolean>` ('default =' `0`)::
e0e8bd47 140
c2993fe5 141The 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.
e0e8bd47 142
013dc89f 143`-restricted` `<boolean>` ('default =' `0`)::
e0e8bd47 144
c2993fe5 145Services on unrestricted groups may run on any cluster members if all group members are offline. But they will migrate back as soon as a group member comes online. One can implement a 'preferred node' behavior using an unrestricted group with one member.
e0e8bd47
DM
146
147
148
149
150*ha-manager help* `[<cmd>]` `[OPTIONS]`
151
152Get help about specified command.
153
013dc89f 154`<cmd>`: `<string>` ::
e0e8bd47
DM
155
156Command name
157
013dc89f 158`-verbose` `<boolean>` ::
e0e8bd47
DM
159
160Verbose output format.
161
162
163
164
165*ha-manager migrate* `<sid> <node>`
166
167Request resource migration (online) to another node.
168
013dc89f 169`<sid>`: `<type>:<name>` ::
e0e8bd47 170
c2993fe5 171HA 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).
e0e8bd47 172
013dc89f 173`<node>`: `<string>` ::
e0e8bd47
DM
174
175The cluster node name.
176
177
178
179*ha-manager relocate* `<sid> <node>`
180
181Request resource relocatzion to another node. This stops the service on the
182old node, and restarts it on the target node.
183
013dc89f 184`<sid>`: `<type>:<name>` ::
e0e8bd47 185
c2993fe5 186HA 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).
e0e8bd47 187
013dc89f 188`<node>`: `<string>` ::
e0e8bd47
DM
189
190The cluster node name.
191
192
193
194*ha-manager remove* `<sid>`
195
196Delete resource configuration.
197
013dc89f 198`<sid>`: `<type>:<name>` ::
e0e8bd47 199
c2993fe5 200HA 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).
e0e8bd47
DM
201
202
203
204*ha-manager set* `<sid>` `[OPTIONS]`
205
206Update resource configuration.
207
013dc89f 208`<sid>`: `<type>:<name>` ::
e0e8bd47 209
c2993fe5 210HA 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).
e0e8bd47 211
013dc89f 212`-comment` `<string>` ::
e0e8bd47
DM
213
214Description.
215
013dc89f 216`-delete` `<string>` ::
e0e8bd47
DM
217
218A list of settings you want to delete.
219
013dc89f 220`-digest` `<string>` ::
e0e8bd47 221
c2993fe5 222Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
e0e8bd47 223
013dc89f 224`-group` `<string>` ::
e0e8bd47
DM
225
226The HA group identifier.
227
013dc89f 228`-max_relocate` `<integer> (0 - N)` ('default =' `1`)::
e0e8bd47
DM
229
230Maximal number of service relocate tries when a service failes to start.
231
013dc89f 232`-max_restart` `<integer> (0 - N)` ('default =' `1`)::
e0e8bd47 233
c2993fe5 234Maximal number of tries to restart the service on a node after its start failed.
e0e8bd47 235
013dc89f 236`-state` `<disabled | enabled>` ('default =' `enabled`)::
e0e8bd47
DM
237
238Resource state.
239
240
241
242
243*ha-manager status* `[OPTIONS]`
244
245Display HA manger status.
246
013dc89f 247`-verbose` `<boolean>` ('default =' `0`)::
e0e8bd47
DM
248
249Verbose output. Include complete CRM and LRM status (JSON).
250
251
252
253