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