]> git.proxmox.com Git - pve-docs.git/blame - ha-manager.1-synopsis.adoc
vzdump: drop overly scary & outdated warning about fleecing
[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
2489d6df 11`--comment` `<string>` ::
e0e8bd47
DM
12
13Description.
14
2489d6df 15`--group` `<string>` ::
e0e8bd47
DM
16
17The HA group identifier.
18
2489d6df 19`--max_relocate` `<integer> (0 - N)` ('default =' `1`)::
e0e8bd47
DM
20
21Maximal number of service relocate tries when a service failes to start.
22
2489d6df 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
2489d6df 27`--state` `<disabled | enabled | ignored | started | stopped>` ('default =' `started`)::
e0e8bd47 28
f13c1238 29Requested resource state.
e0e8bd47 30
2489d6df 31`--type` `<ct | vm>` ::
e0e8bd47
DM
32
33Resource type.
34
e0e8bd47
DM
35*ha-manager config* `[OPTIONS]`
36
37List HA resources.
38
2489d6df 39`--type` `<ct | vm>` ::
e0e8bd47
DM
40
41Only list resources of specific type
42
1c532546
TL
43*ha-manager crm-command migrate* `<sid> <node>`
44
45Request resource migration (online) to another node.
46
47`<sid>`: `<type>:<name>` ::
48
49HA 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).
50
51`<node>`: `<string>` ::
52
53Target node.
54
9d2e98ed
TL
55*ha-manager crm-command node-maintenance disable* `<node>`
56
57Change the node-maintenance request state.
58
59`<node>`: `<string>` ::
60
61The cluster node name.
62
63*ha-manager crm-command node-maintenance enable* `<node>`
64
65Change the node-maintenance request state.
66
67`<node>`: `<string>` ::
68
69The cluster node name.
70
1c532546
TL
71*ha-manager crm-command relocate* `<sid> <node>`
72
73Request resource relocatzion to another node. This stops the service on the
74old node, and restarts it on the target node.
75
76`<sid>`: `<type>:<name>` ::
77
78HA 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).
79
80`<node>`: `<string>` ::
81
82Target node.
83
84*ha-manager crm-command stop* `<sid> <timeout>`
85
86Request the service to be stopped.
87
88`<sid>`: `<type>:<name>` ::
89
90HA 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).
91
92`<timeout>`: `<integer> (0 - N)` ::
93
94Timeout in seconds. If set to 0 a hard stop will be performed.
95
2489d6df 96*ha-manager groupadd* `<group> --nodes <string>` `[OPTIONS]`
e0e8bd47
DM
97
98Create a new HA group.
99
013dc89f 100`<group>`: `<string>` ::
e0e8bd47
DM
101
102The HA group identifier.
103
2489d6df 104`--comment` `<string>` ::
e0e8bd47
DM
105
106Description.
107
2489d6df 108`--nodes` `<node>[:<pri>]{,<node>[:<pri>]}*` ::
e0e8bd47 109
f13c1238 110List of cluster node names with optional priority.
e0e8bd47 111
2489d6df 112`--nofailback` `<boolean>` ('default =' `0`)::
e0e8bd47 113
c2993fe5 114The 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 115
2489d6df 116`--restricted` `<boolean>` ('default =' `0`)::
e0e8bd47 117
c4808e75 118Resources bound to restricted groups may only run on nodes defined by the group.
e0e8bd47 119
2489d6df 120`--type` `<group>` ::
e0e8bd47
DM
121
122Group type.
123
e0e8bd47
DM
124*ha-manager groupconfig*
125
126Get HA groups.
127
e0e8bd47
DM
128*ha-manager groupremove* `<group>`
129
130Delete ha group configuration.
131
013dc89f 132`<group>`: `<string>` ::
e0e8bd47
DM
133
134The HA group identifier.
135
e0e8bd47
DM
136*ha-manager groupset* `<group>` `[OPTIONS]`
137
138Update ha group configuration.
139
013dc89f 140`<group>`: `<string>` ::
e0e8bd47
DM
141
142The HA group identifier.
143
2489d6df 144`--comment` `<string>` ::
e0e8bd47
DM
145
146Description.
147
2489d6df 148`--delete` `<string>` ::
e0e8bd47
DM
149
150A list of settings you want to delete.
151
2489d6df 152`--digest` `<string>` ::
e0e8bd47 153
82551b2b 154Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
e0e8bd47 155
2489d6df 156`--nodes` `<node>[:<pri>]{,<node>[:<pri>]}*` ::
e0e8bd47 157
f13c1238 158List of cluster node names with optional priority.
e0e8bd47 159
2489d6df 160`--nofailback` `<boolean>` ('default =' `0`)::
e0e8bd47 161
c2993fe5 162The 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 163
2489d6df 164`--restricted` `<boolean>` ('default =' `0`)::
e0e8bd47 165
c4808e75 166Resources bound to restricted groups may only run on nodes defined by the group.
e0e8bd47 167
35a75dd3 168*ha-manager help* `[OPTIONS]`
e0e8bd47
DM
169
170Get help about specified command.
171
35a75dd3 172`--extra-args` `<array>` ::
e0e8bd47 173
35a75dd3 174Shows help for a specific command
e0e8bd47 175
2489d6df 176`--verbose` `<boolean>` ::
e0e8bd47
DM
177
178Verbose output format.
179
1c532546 180*ha-manager migrate*
e0e8bd47 181
1c532546 182An alias for 'ha-manager crm-command migrate'.
e0e8bd47 183
1c532546 184*ha-manager relocate*
e0e8bd47 185
1c532546 186An alias for 'ha-manager crm-command relocate'.
e0e8bd47 187
e0e8bd47
DM
188*ha-manager remove* `<sid>`
189
190Delete resource configuration.
191
013dc89f 192`<sid>`: `<type>:<name>` ::
e0e8bd47 193
c2993fe5 194HA 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 195
e0e8bd47
DM
196*ha-manager set* `<sid>` `[OPTIONS]`
197
198Update resource configuration.
199
013dc89f 200`<sid>`: `<type>:<name>` ::
e0e8bd47 201
c2993fe5 202HA 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 203
2489d6df 204`--comment` `<string>` ::
e0e8bd47
DM
205
206Description.
207
2489d6df 208`--delete` `<string>` ::
e0e8bd47
DM
209
210A list of settings you want to delete.
211
2489d6df 212`--digest` `<string>` ::
e0e8bd47 213
82551b2b 214Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.
e0e8bd47 215
2489d6df 216`--group` `<string>` ::
e0e8bd47
DM
217
218The HA group identifier.
219
2489d6df 220`--max_relocate` `<integer> (0 - N)` ('default =' `1`)::
e0e8bd47
DM
221
222Maximal number of service relocate tries when a service failes to start.
223
2489d6df 224`--max_restart` `<integer> (0 - N)` ('default =' `1`)::
e0e8bd47 225
c2993fe5 226Maximal number of tries to restart the service on a node after its start failed.
e0e8bd47 227
2489d6df 228`--state` `<disabled | enabled | ignored | started | stopped>` ('default =' `started`)::
e0e8bd47 229
f13c1238 230Requested resource state.
e0e8bd47 231
e0e8bd47
DM
232*ha-manager status* `[OPTIONS]`
233
234Display HA manger status.
235
2489d6df 236`--verbose` `<boolean>` ('default =' `0`)::
e0e8bd47
DM
237
238Verbose output. Include complete CRM and LRM status (JSON).
239
240