]>
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 | |
013dc89f | 11 | `-comment` `<string>` :: |
e0e8bd47 DM |
12 | |
13 | Description. | |
14 | ||
013dc89f | 15 | `-group` `<string>` :: |
e0e8bd47 DM |
16 | |
17 | The HA group identifier. | |
18 | ||
013dc89f | 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 | ||
013dc89f | 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 | |
013dc89f | 27 | `-state` `<disabled | enabled>` ('default =' `enabled`):: |
e0e8bd47 DM |
28 | |
29 | Resource state. | |
30 | ||
013dc89f | 31 | `-type` `<ct | vm>` :: |
e0e8bd47 DM |
32 | |
33 | Resource type. | |
34 | ||
35 | ||
36 | ||
37 | *ha-manager config* `[OPTIONS]` | |
38 | ||
39 | List HA resources. | |
40 | ||
013dc89f | 41 | `-type` `<ct | vm>` :: |
e0e8bd47 DM |
42 | |
43 | Only list resources of specific type | |
44 | ||
45 | ||
46 | ||
47 | ||
48 | *ha-manager disable* `<sid>` | |
49 | ||
50 | Disable a HA resource. | |
51 | ||
013dc89f | 52 | `<sid>`: `<type>:<name>` :: |
e0e8bd47 | 53 | |
c2993fe5 | 54 | 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 |
55 | |
56 | ||
57 | ||
58 | *ha-manager enable* `<sid>` | |
59 | ||
60 | Enable a HA resource. | |
61 | ||
013dc89f | 62 | `<sid>`: `<type>:<name>` :: |
e0e8bd47 | 63 | |
c2993fe5 | 64 | 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 |
65 | |
66 | ||
67 | ||
68 | ||
69 | *ha-manager groupadd* `<group> -nodes <string>` `[OPTIONS]` | |
70 | ||
71 | Create a new HA group. | |
72 | ||
013dc89f | 73 | `<group>`: `<string>` :: |
e0e8bd47 DM |
74 | |
75 | The HA group identifier. | |
76 | ||
013dc89f | 77 | `-comment` `<string>` :: |
e0e8bd47 DM |
78 | |
79 | Description. | |
80 | ||
81 | `-nodes` `<node>[:<pri>]{,<node>[:<pri>]}*` :: | |
82 | ||
c2993fe5 | 83 | List of cluster node names with optional priority. We use priority '0' as default. The CRM tries to run services on the node with highest priority (also see option 'nofailback'). |
e0e8bd47 | 84 | |
013dc89f | 85 | `-nofailback` `<boolean>` ('default =' `0`):: |
e0e8bd47 | 86 | |
c2993fe5 | 87 | 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 | 88 | |
013dc89f | 89 | `-restricted` `<boolean>` ('default =' `0`):: |
e0e8bd47 | 90 | |
c2993fe5 | 91 | Services on unrestricted groups may run on any cluster members if all group members are offline. But they will migrate back as soon as a group member comes online. One can implement a 'preferred node' behavior using an unrestricted group with one member. |
e0e8bd47 | 92 | |
013dc89f | 93 | `-type` `<group>` :: |
e0e8bd47 DM |
94 | |
95 | Group type. | |
96 | ||
97 | ||
98 | ||
99 | *ha-manager groupconfig* | |
100 | ||
101 | Get HA groups. | |
102 | ||
103 | ||
104 | ||
105 | *ha-manager groupremove* `<group>` | |
106 | ||
107 | Delete ha group configuration. | |
108 | ||
013dc89f | 109 | `<group>`: `<string>` :: |
e0e8bd47 DM |
110 | |
111 | The HA group identifier. | |
112 | ||
113 | ||
114 | ||
115 | *ha-manager groupset* `<group>` `[OPTIONS]` | |
116 | ||
117 | Update ha group configuration. | |
118 | ||
013dc89f | 119 | `<group>`: `<string>` :: |
e0e8bd47 DM |
120 | |
121 | The HA group identifier. | |
122 | ||
013dc89f | 123 | `-comment` `<string>` :: |
e0e8bd47 DM |
124 | |
125 | Description. | |
126 | ||
013dc89f | 127 | `-delete` `<string>` :: |
e0e8bd47 DM |
128 | |
129 | A list of settings you want to delete. | |
130 | ||
013dc89f | 131 | `-digest` `<string>` :: |
e0e8bd47 | 132 | |
c2993fe5 | 133 | Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. |
e0e8bd47 DM |
134 | |
135 | `-nodes` `<node>[:<pri>]{,<node>[:<pri>]}*` :: | |
136 | ||
c2993fe5 | 137 | List of cluster node names with optional priority. We use priority '0' as default. The CRM tries to run services on the node with highest priority (also see option 'nofailback'). |
e0e8bd47 | 138 | |
013dc89f | 139 | `-nofailback` `<boolean>` ('default =' `0`):: |
e0e8bd47 | 140 | |
c2993fe5 | 141 | 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 | 142 | |
013dc89f | 143 | `-restricted` `<boolean>` ('default =' `0`):: |
e0e8bd47 | 144 | |
c2993fe5 | 145 | Services on unrestricted groups may run on any cluster members if all group members are offline. But they will migrate back as soon as a group member comes online. One can implement a 'preferred node' behavior using an unrestricted group with one member. |
e0e8bd47 DM |
146 | |
147 | ||
148 | ||
149 | ||
150 | *ha-manager help* `[<cmd>]` `[OPTIONS]` | |
151 | ||
152 | Get help about specified command. | |
153 | ||
013dc89f | 154 | `<cmd>`: `<string>` :: |
e0e8bd47 DM |
155 | |
156 | Command name | |
157 | ||
013dc89f | 158 | `-verbose` `<boolean>` :: |
e0e8bd47 DM |
159 | |
160 | Verbose output format. | |
161 | ||
162 | ||
163 | ||
164 | ||
165 | *ha-manager migrate* `<sid> <node>` | |
166 | ||
167 | Request resource migration (online) to another node. | |
168 | ||
013dc89f | 169 | `<sid>`: `<type>:<name>` :: |
e0e8bd47 | 170 | |
c2993fe5 | 171 | 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 | 172 | |
013dc89f | 173 | `<node>`: `<string>` :: |
e0e8bd47 DM |
174 | |
175 | The cluster node name. | |
176 | ||
177 | ||
178 | ||
179 | *ha-manager relocate* `<sid> <node>` | |
180 | ||
181 | Request resource relocatzion to another node. This stops the service on the | |
182 | old node, and restarts it on the target node. | |
183 | ||
013dc89f | 184 | `<sid>`: `<type>:<name>` :: |
e0e8bd47 | 185 | |
c2993fe5 | 186 | 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 | 187 | |
013dc89f | 188 | `<node>`: `<string>` :: |
e0e8bd47 DM |
189 | |
190 | The cluster node name. | |
191 | ||
192 | ||
193 | ||
194 | *ha-manager remove* `<sid>` | |
195 | ||
196 | Delete resource configuration. | |
197 | ||
013dc89f | 198 | `<sid>`: `<type>:<name>` :: |
e0e8bd47 | 199 | |
c2993fe5 | 200 | 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 |
201 | |
202 | ||
203 | ||
204 | *ha-manager set* `<sid>` `[OPTIONS]` | |
205 | ||
206 | Update resource configuration. | |
207 | ||
013dc89f | 208 | `<sid>`: `<type>:<name>` :: |
e0e8bd47 | 209 | |
c2993fe5 | 210 | 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 | 211 | |
013dc89f | 212 | `-comment` `<string>` :: |
e0e8bd47 DM |
213 | |
214 | Description. | |
215 | ||
013dc89f | 216 | `-delete` `<string>` :: |
e0e8bd47 DM |
217 | |
218 | A list of settings you want to delete. | |
219 | ||
013dc89f | 220 | `-digest` `<string>` :: |
e0e8bd47 | 221 | |
c2993fe5 | 222 | Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. |
e0e8bd47 | 223 | |
013dc89f | 224 | `-group` `<string>` :: |
e0e8bd47 DM |
225 | |
226 | The HA group identifier. | |
227 | ||
013dc89f | 228 | `-max_relocate` `<integer> (0 - N)` ('default =' `1`):: |
e0e8bd47 DM |
229 | |
230 | Maximal number of service relocate tries when a service failes to start. | |
231 | ||
013dc89f | 232 | `-max_restart` `<integer> (0 - N)` ('default =' `1`):: |
e0e8bd47 | 233 | |
c2993fe5 | 234 | Maximal number of tries to restart the service on a node after its start failed. |
e0e8bd47 | 235 | |
013dc89f | 236 | `-state` `<disabled | enabled>` ('default =' `enabled`):: |
e0e8bd47 DM |
237 | |
238 | Resource state. | |
239 | ||
240 | ||
241 | ||
242 | ||
243 | *ha-manager status* `[OPTIONS]` | |
244 | ||
245 | Display HA manger status. | |
246 | ||
013dc89f | 247 | `-verbose` `<boolean>` ('default =' `0`):: |
e0e8bd47 DM |
248 | |
249 | Verbose output. Include complete CRM and LRM status (JSON). | |
250 | ||
251 | ||
252 | ||
253 |