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