]>
Commit | Line | Data |
---|---|---|
e0e8bd47 DM |
1 | *ha-manager* `<COMMAND> [ARGS] [OPTIONS]` |
2 | ||
3 | *ha-manager add* `<sid>` `[OPTIONS]` | |
4 | ||
5 | Create a new HA resource. | |
6 | ||
013dc89f | 7 | `<sid>`: `<type>:<name>` :: |
e0e8bd47 | 8 | |
c2993fe5 | 9 | HA 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 | |
13 | Description. | |
14 | ||
2489d6df | 15 | `--group` `<string>` :: |
e0e8bd47 DM |
16 | |
17 | The HA group identifier. | |
18 | ||
2489d6df | 19 | `--max_relocate` `<integer> (0 - N)` ('default =' `1`):: |
e0e8bd47 DM |
20 | |
21 | Maximal number of service relocate tries when a service failes to start. | |
22 | ||
2489d6df | 23 | `--max_restart` `<integer> (0 - N)` ('default =' `1`):: |
e0e8bd47 | 24 | |
c2993fe5 | 25 | Maximal 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 | 29 | Requested resource state. |
e0e8bd47 | 30 | |
2489d6df | 31 | `--type` `<ct | vm>` :: |
e0e8bd47 DM |
32 | |
33 | Resource type. | |
34 | ||
35 | ||
36 | ||
37 | *ha-manager config* `[OPTIONS]` | |
38 | ||
39 | List HA resources. | |
40 | ||
2489d6df | 41 | `--type` `<ct | vm>` :: |
e0e8bd47 DM |
42 | |
43 | Only list resources of specific type | |
44 | ||
45 | ||
46 | ||
47 | ||
2489d6df | 48 | *ha-manager groupadd* `<group> --nodes <string>` `[OPTIONS]` |
e0e8bd47 DM |
49 | |
50 | Create a new HA group. | |
51 | ||
013dc89f | 52 | `<group>`: `<string>` :: |
e0e8bd47 DM |
53 | |
54 | The HA group identifier. | |
55 | ||
2489d6df | 56 | `--comment` `<string>` :: |
e0e8bd47 DM |
57 | |
58 | Description. | |
59 | ||
2489d6df | 60 | `--nodes` `<node>[:<pri>]{,<node>[:<pri>]}*` :: |
e0e8bd47 | 61 | |
f13c1238 | 62 | List of cluster node names with optional priority. |
e0e8bd47 | 63 | |
2489d6df | 64 | `--nofailback` `<boolean>` ('default =' `0`):: |
e0e8bd47 | 65 | |
c2993fe5 | 66 | The 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 | 70 | Resources bound to restricted groups may only run on nodes defined by the group. |
e0e8bd47 | 71 | |
2489d6df | 72 | `--type` `<group>` :: |
e0e8bd47 DM |
73 | |
74 | Group type. | |
75 | ||
76 | ||
77 | ||
78 | *ha-manager groupconfig* | |
79 | ||
80 | Get HA groups. | |
81 | ||
82 | ||
83 | ||
84 | *ha-manager groupremove* `<group>` | |
85 | ||
86 | Delete ha group configuration. | |
87 | ||
013dc89f | 88 | `<group>`: `<string>` :: |
e0e8bd47 DM |
89 | |
90 | The HA group identifier. | |
91 | ||
92 | ||
93 | ||
94 | *ha-manager groupset* `<group>` `[OPTIONS]` | |
95 | ||
96 | Update ha group configuration. | |
97 | ||
013dc89f | 98 | `<group>`: `<string>` :: |
e0e8bd47 DM |
99 | |
100 | The HA group identifier. | |
101 | ||
2489d6df | 102 | `--comment` `<string>` :: |
e0e8bd47 DM |
103 | |
104 | Description. | |
105 | ||
2489d6df | 106 | `--delete` `<string>` :: |
e0e8bd47 DM |
107 | |
108 | A list of settings you want to delete. | |
109 | ||
2489d6df | 110 | `--digest` `<string>` :: |
e0e8bd47 | 111 | |
c2993fe5 | 112 | Prevent 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 | 116 | List of cluster node names with optional priority. |
e0e8bd47 | 117 | |
2489d6df | 118 | `--nofailback` `<boolean>` ('default =' `0`):: |
e0e8bd47 | 119 | |
c2993fe5 | 120 | The 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 | 124 | Resources 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 | ||
131 | Get help about specified command. | |
132 | ||
013dc89f | 133 | `<cmd>`: `<string>` :: |
e0e8bd47 DM |
134 | |
135 | Command name | |
136 | ||
2489d6df | 137 | `--verbose` `<boolean>` :: |
e0e8bd47 DM |
138 | |
139 | Verbose output format. | |
140 | ||
141 | ||
142 | ||
143 | ||
144 | *ha-manager migrate* `<sid> <node>` | |
145 | ||
146 | Request resource migration (online) to another node. | |
147 | ||
013dc89f | 148 | `<sid>`: `<type>:<name>` :: |
e0e8bd47 | 149 | |
c2993fe5 | 150 | HA 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 | |
154 | The cluster node name. | |
155 | ||
156 | ||
157 | ||
158 | *ha-manager relocate* `<sid> <node>` | |
159 | ||
160 | Request resource relocatzion to another node. This stops the service on the | |
161 | old node, and restarts it on the target node. | |
162 | ||
013dc89f | 163 | `<sid>`: `<type>:<name>` :: |
e0e8bd47 | 164 | |
c2993fe5 | 165 | HA 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 | |
169 | The cluster node name. | |
170 | ||
171 | ||
172 | ||
173 | *ha-manager remove* `<sid>` | |
174 | ||
175 | Delete resource configuration. | |
176 | ||
013dc89f | 177 | `<sid>`: `<type>:<name>` :: |
e0e8bd47 | 178 | |
c2993fe5 | 179 | HA 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 | ||
185 | Update resource configuration. | |
186 | ||
013dc89f | 187 | `<sid>`: `<type>:<name>` :: |
e0e8bd47 | 188 | |
c2993fe5 | 189 | HA 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 | |
193 | Description. | |
194 | ||
2489d6df | 195 | `--delete` `<string>` :: |
e0e8bd47 DM |
196 | |
197 | A list of settings you want to delete. | |
198 | ||
2489d6df | 199 | `--digest` `<string>` :: |
e0e8bd47 | 200 | |
c2993fe5 | 201 | Prevent 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 | |
205 | The HA group identifier. | |
206 | ||
2489d6df | 207 | `--max_relocate` `<integer> (0 - N)` ('default =' `1`):: |
e0e8bd47 DM |
208 | |
209 | Maximal number of service relocate tries when a service failes to start. | |
210 | ||
2489d6df | 211 | `--max_restart` `<integer> (0 - N)` ('default =' `1`):: |
e0e8bd47 | 212 | |
c2993fe5 | 213 | Maximal 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 | 217 | Requested resource state. |
e0e8bd47 DM |
218 | |
219 | ||
220 | ||
221 | ||
222 | *ha-manager status* `[OPTIONS]` | |
223 | ||
224 | Display HA manger status. | |
225 | ||
2489d6df | 226 | `--verbose` `<boolean>` ('default =' `0`):: |
e0e8bd47 DM |
227 | |
228 | Verbose output. Include complete CRM and LRM status (JSON). | |
229 | ||
230 | ||
231 | ||
232 |