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