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