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