]> git.proxmox.com Git - pve-docs.git/blame - ha-manager.1-synopsis.adoc
buildsys: not our job to handle editor files
[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
f13c1238 27`-state` `<disabled | enabled | started | stopped>` ('default =' `started`)::
e0e8bd47 28
f13c1238 29Requested resource state.
e0e8bd47 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
e0e8bd47
DM
48*ha-manager groupadd* `<group> -nodes <string>` `[OPTIONS]`
49
50Create a new HA group.
51
013dc89f 52`<group>`: `<string>` ::
e0e8bd47
DM
53
54The HA group identifier.
55
013dc89f 56`-comment` `<string>` ::
e0e8bd47
DM
57
58Description.
59
60`-nodes` `<node>[:<pri>]{,<node>[:<pri>]}*` ::
61
f13c1238 62List of cluster node names with optional priority.
e0e8bd47 63
013dc89f 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
013dc89f 68`-restricted` `<boolean>` ('default =' `0`)::
e0e8bd47 69
c4808e75 70Resources bound to restricted groups may only run on nodes defined by the group.
e0e8bd47 71
013dc89f 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
013dc89f 102`-comment` `<string>` ::
e0e8bd47
DM
103
104Description.
105
013dc89f 106`-delete` `<string>` ::
e0e8bd47
DM
107
108A list of settings you want to delete.
109
013dc89f 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
DM
113
114`-nodes` `<node>[:<pri>]{,<node>[:<pri>]}*` ::
115
f13c1238 116List of cluster node names with optional priority.
e0e8bd47 117
013dc89f 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
013dc89f 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
013dc89f 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
013dc89f 191`-comment` `<string>` ::
e0e8bd47
DM
192
193Description.
194
013dc89f 195`-delete` `<string>` ::
e0e8bd47
DM
196
197A list of settings you want to delete.
198
013dc89f 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
013dc89f 203`-group` `<string>` ::
e0e8bd47
DM
204
205The HA group identifier.
206
013dc89f 207`-max_relocate` `<integer> (0 - N)` ('default =' `1`)::
e0e8bd47
DM
208
209Maximal number of service relocate tries when a service failes to start.
210
013dc89f 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
f13c1238 215`-state` `<disabled | enabled | 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
013dc89f 226`-verbose` `<boolean>` ('default =' `0`)::
e0e8bd47
DM
227
228Verbose output. Include complete CRM and LRM status (JSON).
229
230
231
232