]> git.proxmox.com Git - pve-docs.git/blame - ha-manager.1-synopsis.adoc
update link qemu documentation non web.archive
[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
55*ha-manager crm-command relocate* `<sid> <node>`
56
57Request resource relocatzion to another node. This stops the service on the
58old node, and restarts it on the target node.
59
60`<sid>`: `<type>:<name>` ::
61
62HA 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).
63
64`<node>`: `<string>` ::
65
66Target node.
67
68*ha-manager crm-command stop* `<sid> <timeout>`
69
70Request the service to be stopped.
71
72`<sid>`: `<type>:<name>` ::
73
74HA 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).
75
76`<timeout>`: `<integer> (0 - N)` ::
77
78Timeout in seconds. If set to 0 a hard stop will be performed.
79
2489d6df 80*ha-manager groupadd* `<group> --nodes <string>` `[OPTIONS]`
e0e8bd47
DM
81
82Create a new HA group.
83
013dc89f 84`<group>`: `<string>` ::
e0e8bd47
DM
85
86The HA group identifier.
87
2489d6df 88`--comment` `<string>` ::
e0e8bd47
DM
89
90Description.
91
2489d6df 92`--nodes` `<node>[:<pri>]{,<node>[:<pri>]}*` ::
e0e8bd47 93
f13c1238 94List of cluster node names with optional priority.
e0e8bd47 95
2489d6df 96`--nofailback` `<boolean>` ('default =' `0`)::
e0e8bd47 97
c2993fe5 98The 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 99
2489d6df 100`--restricted` `<boolean>` ('default =' `0`)::
e0e8bd47 101
c4808e75 102Resources bound to restricted groups may only run on nodes defined by the group.
e0e8bd47 103
2489d6df 104`--type` `<group>` ::
e0e8bd47
DM
105
106Group type.
107
e0e8bd47
DM
108*ha-manager groupconfig*
109
110Get HA groups.
111
e0e8bd47
DM
112*ha-manager groupremove* `<group>`
113
114Delete ha group configuration.
115
013dc89f 116`<group>`: `<string>` ::
e0e8bd47
DM
117
118The HA group identifier.
119
e0e8bd47
DM
120*ha-manager groupset* `<group>` `[OPTIONS]`
121
122Update ha group configuration.
123
013dc89f 124`<group>`: `<string>` ::
e0e8bd47
DM
125
126The HA group identifier.
127
2489d6df 128`--comment` `<string>` ::
e0e8bd47
DM
129
130Description.
131
2489d6df 132`--delete` `<string>` ::
e0e8bd47
DM
133
134A list of settings you want to delete.
135
2489d6df 136`--digest` `<string>` ::
e0e8bd47 137
c2993fe5 138Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
e0e8bd47 139
2489d6df 140`--nodes` `<node>[:<pri>]{,<node>[:<pri>]}*` ::
e0e8bd47 141
f13c1238 142List of cluster node names with optional priority.
e0e8bd47 143
2489d6df 144`--nofailback` `<boolean>` ('default =' `0`)::
e0e8bd47 145
c2993fe5 146The 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 147
2489d6df 148`--restricted` `<boolean>` ('default =' `0`)::
e0e8bd47 149
c4808e75 150Resources bound to restricted groups may only run on nodes defined by the group.
e0e8bd47 151
35a75dd3 152*ha-manager help* `[OPTIONS]`
e0e8bd47
DM
153
154Get help about specified command.
155
35a75dd3 156`--extra-args` `<array>` ::
e0e8bd47 157
35a75dd3 158Shows help for a specific command
e0e8bd47 159
2489d6df 160`--verbose` `<boolean>` ::
e0e8bd47
DM
161
162Verbose output format.
163
1c532546 164*ha-manager migrate*
e0e8bd47 165
1c532546 166An alias for 'ha-manager crm-command migrate'.
e0e8bd47 167
1c532546 168*ha-manager relocate*
e0e8bd47 169
1c532546 170An alias for 'ha-manager crm-command relocate'.
e0e8bd47 171
e0e8bd47
DM
172*ha-manager remove* `<sid>`
173
174Delete resource configuration.
175
013dc89f 176`<sid>`: `<type>:<name>` ::
e0e8bd47 177
c2993fe5 178HA 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 179
e0e8bd47
DM
180*ha-manager set* `<sid>` `[OPTIONS]`
181
182Update resource configuration.
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
2489d6df 188`--comment` `<string>` ::
e0e8bd47
DM
189
190Description.
191
2489d6df 192`--delete` `<string>` ::
e0e8bd47
DM
193
194A list of settings you want to delete.
195
2489d6df 196`--digest` `<string>` ::
e0e8bd47 197
c2993fe5 198Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
e0e8bd47 199
2489d6df 200`--group` `<string>` ::
e0e8bd47
DM
201
202The HA group identifier.
203
2489d6df 204`--max_relocate` `<integer> (0 - N)` ('default =' `1`)::
e0e8bd47
DM
205
206Maximal number of service relocate tries when a service failes to start.
207
2489d6df 208`--max_restart` `<integer> (0 - N)` ('default =' `1`)::
e0e8bd47 209
c2993fe5 210Maximal number of tries to restart the service on a node after its start failed.
e0e8bd47 211
2489d6df 212`--state` `<disabled | enabled | ignored | started | stopped>` ('default =' `started`)::
e0e8bd47 213
f13c1238 214Requested resource state.
e0e8bd47 215
e0e8bd47
DM
216*ha-manager status* `[OPTIONS]`
217
218Display HA manger status.
219
2489d6df 220`--verbose` `<boolean>` ('default =' `0`)::
e0e8bd47
DM
221
222Verbose output. Include complete CRM and LRM status (JSON).
223
224