root / man / gnt-cluster.rst @ 2ab65a5d
History | View | Annotate | Download (31.8 kB)
1 | 3cb9e1fe | Iustin Pop | gnt-cluster(8) Ganeti | Version @GANETI_VERSION@ |
---|---|---|---|
2 | 3cb9e1fe | Iustin Pop | ================================================ |
3 | 3cb9e1fe | Iustin Pop | |
4 | 3cb9e1fe | Iustin Pop | Name |
5 | 3cb9e1fe | Iustin Pop | ---- |
6 | 3cb9e1fe | Iustin Pop | |
7 | 3cb9e1fe | Iustin Pop | gnt-cluster - Ganeti administration, cluster-wide |
8 | 3cb9e1fe | Iustin Pop | |
9 | 3cb9e1fe | Iustin Pop | Synopsis |
10 | 3cb9e1fe | Iustin Pop | -------- |
11 | 3cb9e1fe | Iustin Pop | |
12 | 3cb9e1fe | Iustin Pop | **gnt-cluster** {command} [arguments...] |
13 | 3cb9e1fe | Iustin Pop | |
14 | 3cb9e1fe | Iustin Pop | DESCRIPTION |
15 | 3cb9e1fe | Iustin Pop | ----------- |
16 | 3cb9e1fe | Iustin Pop | |
17 | 3cb9e1fe | Iustin Pop | The **gnt-cluster** is used for cluster-wide administration in the |
18 | 3cb9e1fe | Iustin Pop | Ganeti system. |
19 | 3cb9e1fe | Iustin Pop | |
20 | 3cb9e1fe | Iustin Pop | COMMANDS |
21 | 3cb9e1fe | Iustin Pop | -------- |
22 | 3cb9e1fe | Iustin Pop | |
23 | fb926117 | Andrea Spadaccini | ACTIVATE-MASTER-IP |
24 | fb926117 | Andrea Spadaccini | ~~~~~~~~~~~~~~~~~~ |
25 | fb926117 | Andrea Spadaccini | |
26 | fb926117 | Andrea Spadaccini | **activate-master-ip** |
27 | fb926117 | Andrea Spadaccini | |
28 | fb926117 | Andrea Spadaccini | Activates the master IP on the master node. |
29 | fb926117 | Andrea Spadaccini | |
30 | 3cb9e1fe | Iustin Pop | COMMAND |
31 | 3cb9e1fe | Iustin Pop | ~~~~~~~ |
32 | 3cb9e1fe | Iustin Pop | |
33 | a24aed2a | Michael Hanselmann | **command** [-n *node*] [-g *group*] [-M] {*command*} |
34 | 3cb9e1fe | Iustin Pop | |
35 | 0ab31d67 | Michael Hanselmann | Executes a command on all nodes. This command is designed for simple |
36 | 354c4f62 | Michael Hanselmann | usage. For more complex use cases the commands **dsh**\(1) or **cssh**\(1) |
37 | 0ab31d67 | Michael Hanselmann | should be used instead. |
38 | 0ab31d67 | Michael Hanselmann | |
39 | 0ab31d67 | Michael Hanselmann | If the option ``-n`` is not given, the command will be executed on all |
40 | 0ab31d67 | Michael Hanselmann | nodes, otherwise it will be executed only on the node(s) specified. Use |
41 | 0ab31d67 | Michael Hanselmann | the option multiple times for running it on multiple nodes, like:: |
42 | 3cb9e1fe | Iustin Pop | |
43 | 3cb9e1fe | Iustin Pop | # gnt-cluster command -n node1.example.com -n node2.example.com date |
44 | 3cb9e1fe | Iustin Pop | |
45 | b6e88032 | Michael Hanselmann | The ``-g`` option can be used to run a command only on a specific node |
46 | b6e88032 | Michael Hanselmann | group, e.g.:: |
47 | b6e88032 | Michael Hanselmann | |
48 | b6e88032 | Michael Hanselmann | # gnt-cluster command -g default date |
49 | b6e88032 | Michael Hanselmann | |
50 | a24aed2a | Michael Hanselmann | The ``-M`` option can be used to prepend the node name to all output |
51 | d5b031dc | Michael Hanselmann | lines. The ``--failure-only`` option hides successful commands, making |
52 | d5b031dc | Michael Hanselmann | it easier to see failures. |
53 | a24aed2a | Michael Hanselmann | |
54 | 3cb9e1fe | Iustin Pop | The command is executed serially on the selected nodes. If the |
55 | 3cb9e1fe | Iustin Pop | master node is present in the list, the command will be executed |
56 | 3cb9e1fe | Iustin Pop | last on the master. Regarding the other nodes, the execution order |
57 | 3cb9e1fe | Iustin Pop | is somewhat alphabetic, so that node2.example.com will be earlier |
58 | 3cb9e1fe | Iustin Pop | than node10.example.com but after node1.example.com. |
59 | 3cb9e1fe | Iustin Pop | |
60 | 3cb9e1fe | Iustin Pop | So given the node names node1, node2, node3, node10, node11, with |
61 | 3cb9e1fe | Iustin Pop | node3 being the master, the order will be: node1, node2, node10, |
62 | 3cb9e1fe | Iustin Pop | node11, node3. |
63 | 3cb9e1fe | Iustin Pop | |
64 | 3cb9e1fe | Iustin Pop | The command is constructed by concatenating all other command line |
65 | 3cb9e1fe | Iustin Pop | arguments. For example, to list the contents of the /etc directory |
66 | 3cb9e1fe | Iustin Pop | on all nodes, run:: |
67 | 3cb9e1fe | Iustin Pop | |
68 | 3cb9e1fe | Iustin Pop | # gnt-cluster command ls -l /etc |
69 | 3cb9e1fe | Iustin Pop | |
70 | 3cb9e1fe | Iustin Pop | and the command which will be executed will be ``ls -l /etc``. |
71 | 3cb9e1fe | Iustin Pop | |
72 | 3cb9e1fe | Iustin Pop | COPYFILE |
73 | 3cb9e1fe | Iustin Pop | ~~~~~~~~ |
74 | 3cb9e1fe | Iustin Pop | |
75 | e8f936b0 | Iustin Pop | | **copyfile** [\--use-replication-network] [-n *node*] [-g *group*] |
76 | b6e88032 | Michael Hanselmann | | {*file*} |
77 | 3cb9e1fe | Iustin Pop | |
78 | 3cb9e1fe | Iustin Pop | Copies a file to all or to some nodes. The argument specifies the |
79 | 3cb9e1fe | Iustin Pop | source file (on the current system), the ``-n`` argument specifies |
80 | 3cb9e1fe | Iustin Pop | the target node, or nodes if the option is given multiple times. If |
81 | b6e88032 | Michael Hanselmann | ``-n`` is not given at all, the file will be copied to all nodes. The |
82 | b6e88032 | Michael Hanselmann | ``-g`` option can be used to only select nodes in a specific node group. |
83 | 3cb9e1fe | Iustin Pop | Passing the ``--use-replication-network`` option will cause the |
84 | 3cb9e1fe | Iustin Pop | copy to be done over the replication network (only matters if the |
85 | 3cb9e1fe | Iustin Pop | primary/secondary IPs are different). Example:: |
86 | 3cb9e1fe | Iustin Pop | |
87 | 3cb9e1fe | Iustin Pop | # gnt-cluster -n node1.example.com -n node2.example.com copyfile /tmp/test |
88 | 3cb9e1fe | Iustin Pop | |
89 | 3cb9e1fe | Iustin Pop | This will copy the file /tmp/test from the current node to the two |
90 | 3cb9e1fe | Iustin Pop | named nodes. |
91 | 3cb9e1fe | Iustin Pop | |
92 | fb926117 | Andrea Spadaccini | DEACTIVATE-MASTER-IP |
93 | fb926117 | Andrea Spadaccini | ~~~~~~~~~~~~~~~~~~~~ |
94 | fb926117 | Andrea Spadaccini | |
95 | e8f936b0 | Iustin Pop | **deactivate-master-ip** [\--yes] |
96 | fb926117 | Andrea Spadaccini | |
97 | fb926117 | Andrea Spadaccini | Deactivates the master IP on the master node. |
98 | fb926117 | Andrea Spadaccini | |
99 | fb926117 | Andrea Spadaccini | This should be run only locally or on a connection to the node ip |
100 | fb926117 | Andrea Spadaccini | directly, as a connection to the master ip will be broken by this |
101 | fb926117 | Andrea Spadaccini | operation. Because of this risk it will require user confirmation |
102 | fb926117 | Andrea Spadaccini | unless the ``--yes`` option is passed. |
103 | fb926117 | Andrea Spadaccini | |
104 | 3cb9e1fe | Iustin Pop | DESTROY |
105 | 3cb9e1fe | Iustin Pop | ~~~~~~~ |
106 | 3cb9e1fe | Iustin Pop | |
107 | e8f936b0 | Iustin Pop | **destroy** {\--yes-do-it} |
108 | 3cb9e1fe | Iustin Pop | |
109 | 3cb9e1fe | Iustin Pop | Remove all configuration files related to the cluster, so that a |
110 | 3cb9e1fe | Iustin Pop | **gnt-cluster init** can be done again afterwards. |
111 | 3cb9e1fe | Iustin Pop | |
112 | 3cb9e1fe | Iustin Pop | Since this is a dangerous command, you are required to pass the |
113 | e8f936b0 | Iustin Pop | argument *\--yes-do-it.* |
114 | 3cb9e1fe | Iustin Pop | |
115 | 66d1f035 | René Nussbaumer | EPO |
116 | 66d1f035 | René Nussbaumer | ~~~ |
117 | 66d1f035 | René Nussbaumer | |
118 | e8f936b0 | Iustin Pop | **epo** [\--on] [\--groups|\--all] [\--power-delay] *arguments* |
119 | cfed3b9f | René Nussbaumer | |
120 | cfed3b9f | René Nussbaumer | Performs an emergency power-off on nodes given as arguments. If |
121 | cfed3b9f | René Nussbaumer | ``--groups`` is given, arguments are node groups. If ``--all`` is |
122 | cfed3b9f | René Nussbaumer | provided, the whole cluster will be shut down. |
123 | cfed3b9f | René Nussbaumer | |
124 | cfed3b9f | René Nussbaumer | The ``--on`` flag recovers the cluster after an emergency power-off. |
125 | cfed3b9f | René Nussbaumer | When powering on the cluster you can use ``--power-delay`` to define the |
126 | cfed3b9f | René Nussbaumer | time in seconds (fractions allowed) waited between powering on |
127 | cfed3b9f | René Nussbaumer | individual nodes. |
128 | cfed3b9f | René Nussbaumer | |
129 | cfed3b9f | René Nussbaumer | Please note that the master node will not be turned down or up |
130 | cfed3b9f | René Nussbaumer | automatically. It will just be left in a state, where you can manully |
131 | cfed3b9f | René Nussbaumer | perform the shutdown of that one node. If the master is in the list of |
132 | cfed3b9f | René Nussbaumer | affected nodes and this is not a complete cluster emergency power-off |
133 | cfed3b9f | René Nussbaumer | (e.g. using ``--all``), you're required to do a master failover to |
134 | cfed3b9f | René Nussbaumer | another node not affected. |
135 | 66d1f035 | René Nussbaumer | |
136 | 3cb9e1fe | Iustin Pop | GETMASTER |
137 | 3cb9e1fe | Iustin Pop | ~~~~~~~~~ |
138 | 3cb9e1fe | Iustin Pop | |
139 | 3cb9e1fe | Iustin Pop | **getmaster** |
140 | 3cb9e1fe | Iustin Pop | |
141 | 3cb9e1fe | Iustin Pop | Displays the current master node. |
142 | 3cb9e1fe | Iustin Pop | |
143 | 3cb9e1fe | Iustin Pop | INFO |
144 | 3cb9e1fe | Iustin Pop | ~~~~ |
145 | 3cb9e1fe | Iustin Pop | |
146 | e8f936b0 | Iustin Pop | **info** [\--roman] |
147 | 3cb9e1fe | Iustin Pop | |
148 | 3cb9e1fe | Iustin Pop | Shows runtime cluster information: cluster name, architecture (32 |
149 | 3cb9e1fe | Iustin Pop | or 64 bit), master node, node list and instance list. |
150 | 3cb9e1fe | Iustin Pop | |
151 | 3cb9e1fe | Iustin Pop | Passing the ``--roman`` option gnt-cluster info will try to print |
152 | 3cb9e1fe | Iustin Pop | its integer fields in a latin friendly way. This allows further |
153 | 3cb9e1fe | Iustin Pop | diffusion of Ganeti among ancient cultures. |
154 | 3cb9e1fe | Iustin Pop | |
155 | 3cb9e1fe | Iustin Pop | INIT |
156 | 3cb9e1fe | Iustin Pop | ~~~~ |
157 | 3cb9e1fe | Iustin Pop | |
158 | 3cb9e1fe | Iustin Pop | | **init** |
159 | e8f936b0 | Iustin Pop | | [{-s|\--secondary-ip} *secondary\_ip*] |
160 | e8f936b0 | Iustin Pop | | [\--vg-name *vg-name*] |
161 | e8f936b0 | Iustin Pop | | [\--master-netdev *interface-name*] |
162 | e8f936b0 | Iustin Pop | | [\--master-netmask *netmask*] |
163 | e8f936b0 | Iustin Pop | | [\--use-external-mip-script {yes \| no}] |
164 | e8f936b0 | Iustin Pop | | [{-m|\--mac-prefix} *mac-prefix*] |
165 | e8f936b0 | Iustin Pop | | [\--no-lvm-storage] |
166 | e8f936b0 | Iustin Pop | | [\--no-etc-hosts] |
167 | e8f936b0 | Iustin Pop | | [\--no-ssh-init] |
168 | e8f936b0 | Iustin Pop | | [\--file-storage-dir *dir*] |
169 | e8f936b0 | Iustin Pop | | [\--enabled-hypervisors *hypervisors*] |
170 | e8f936b0 | Iustin Pop | | [{-H|\--hypervisor-parameters} *hypervisor*:*hv-param*=*value*[,*hv-param*=*value*...]] |
171 | e8f936b0 | Iustin Pop | | [{-B|\--backend-parameters} *be-param*=*value*[,*be-param*=*value*...]] |
172 | e8f936b0 | Iustin Pop | | [{-N|\--nic-parameters} *nic-param*=*value*[,*nic-param*=*value*...]] |
173 | e8f936b0 | Iustin Pop | | [{-D|\--disk-parameters} *disk-template*:*disk-param*=*value*[,*disk-param*=*value*...]] |
174 | e8f936b0 | Iustin Pop | | [\--maintain-node-health {yes \| no}] |
175 | e8f936b0 | Iustin Pop | | [\--uid-pool *user-id pool definition*] |
176 | e8f936b0 | Iustin Pop | | [{-I|\--default-iallocator} *default instance allocator*] |
177 | e8f936b0 | Iustin Pop | | [\--primary-ip-version *version*] |
178 | e8f936b0 | Iustin Pop | | [\--prealloc-wipe-disks {yes \| no}] |
179 | e8f936b0 | Iustin Pop | | [\--node-parameters *ndparams*] |
180 | e8f936b0 | Iustin Pop | | [{-C|\--candidate-pool-size} *candidate\_pool\_size*] |
181 | e8f936b0 | Iustin Pop | | [\--specs-cpu-count *spec-param*=*value* [,*spec-param*=*value*...]] |
182 | e8f936b0 | Iustin Pop | | [\--specs-disk-count *spec-param*=*value* [,*spec-param*=*value*...]] |
183 | e8f936b0 | Iustin Pop | | [\--specs-disk-size *spec-param*=*value* [,*spec-param*=*value*...]] |
184 | e8f936b0 | Iustin Pop | | [\--specs-mem-size *spec-param*=*value* [,*spec-param*=*value*...]] |
185 | e8f936b0 | Iustin Pop | | [\--specs-nic-count *spec-param*=*value* [,*spec-param*=*value*...]] |
186 | 75c7a686 | Bernardo Dal Seno | | [\--ipolicy-disk-templates *template* [,*template*...]] |
187 | e8f936b0 | Iustin Pop | | [\--disk-state *diskstate*] |
188 | e8f936b0 | Iustin Pop | | [\--hypervisor-state *hvstate*] |
189 | 5914192c | Helga Velroyen | | [\--enabled-disk-templates *template* [,*template*...]] |
190 | 3cb9e1fe | Iustin Pop | | {*clustername*} |
191 | 3cb9e1fe | Iustin Pop | |
192 | 3cb9e1fe | Iustin Pop | This commands is only run once initially on the first node of the |
193 | 3cb9e1fe | Iustin Pop | cluster. It will initialize the cluster configuration, setup the |
194 | 3cb9e1fe | Iustin Pop | ssh-keys, start the daemons on the master node, etc. in order to have |
195 | 3cb9e1fe | Iustin Pop | a working one-node cluster. |
196 | 3cb9e1fe | Iustin Pop | |
197 | 3cb9e1fe | Iustin Pop | Note that the *clustername* is not any random name. It has to be |
198 | 3cb9e1fe | Iustin Pop | resolvable to an IP address using DNS, and it is best if you give the |
199 | 3cb9e1fe | Iustin Pop | fully-qualified domain name. This hostname must resolve to an IP |
200 | 3cb9e1fe | Iustin Pop | address reserved exclusively for this purpose, i.e. not already in |
201 | 3cb9e1fe | Iustin Pop | use. |
202 | 3cb9e1fe | Iustin Pop | |
203 | 3cb9e1fe | Iustin Pop | The cluster can run in two modes: single-home or dual-homed. In the |
204 | 0a68e0ff | Iustin Pop | first case, all traffic (both public traffic, inter-node traffic and |
205 | 0a68e0ff | Iustin Pop | data replication traffic) goes over the same interface. In the |
206 | 3cb9e1fe | Iustin Pop | dual-homed case, the data replication traffic goes over the second |
207 | 0a68e0ff | Iustin Pop | network. The ``-s (--secondary-ip)`` option here marks the cluster as |
208 | 0a68e0ff | Iustin Pop | dual-homed and its parameter represents this node's address on the |
209 | 0a68e0ff | Iustin Pop | second network. If you initialise the cluster with ``-s``, all nodes |
210 | 0a68e0ff | Iustin Pop | added must have a secondary IP as well. |
211 | 3cb9e1fe | Iustin Pop | |
212 | 3cb9e1fe | Iustin Pop | Note that for Ganeti it doesn't matter if the secondary network is |
213 | 3cb9e1fe | Iustin Pop | actually a separate physical network, or is done using tunneling, |
214 | 3cb9e1fe | Iustin Pop | etc. For performance reasons, it's recommended to use a separate |
215 | 3cb9e1fe | Iustin Pop | network, of course. |
216 | 3cb9e1fe | Iustin Pop | |
217 | 3cb9e1fe | Iustin Pop | The ``--vg-name`` option will let you specify a volume group |
218 | 3cb9e1fe | Iustin Pop | different than "xenvg" for Ganeti to use when creating instance |
219 | 3cb9e1fe | Iustin Pop | disks. This volume group must have the same name on all nodes. Once |
220 | 3cb9e1fe | Iustin Pop | the cluster is initialized this can be altered by using the |
221 | 3cb9e1fe | Iustin Pop | **modify** command. If you don't want to use lvm storage at all use |
222 | 3cb9e1fe | Iustin Pop | the ``--no-lvm-storage`` option. Once the cluster is initialized |
223 | 3cb9e1fe | Iustin Pop | you can change this setup with the **modify** command. |
224 | 3cb9e1fe | Iustin Pop | |
225 | 3cb9e1fe | Iustin Pop | The ``--master-netdev`` option is useful for specifying a different |
226 | 3cb9e1fe | Iustin Pop | interface on which the master will activate its IP address. It's |
227 | 3cb9e1fe | Iustin Pop | important that all nodes have this interface because you'll need it |
228 | 3cb9e1fe | Iustin Pop | for a master failover. |
229 | 3cb9e1fe | Iustin Pop | |
230 | 5a8648eb | Andrea Spadaccini | The ``--master-netmask`` option allows to specify a netmask for the |
231 | 5a8648eb | Andrea Spadaccini | master IP. The netmask must be specified as an integer, and will be |
232 | 5a8648eb | Andrea Spadaccini | interpreted as a CIDR netmask. The default value is 32 for an IPv4 |
233 | 5a8648eb | Andrea Spadaccini | address and 128 for an IPv6 address. |
234 | 5a8648eb | Andrea Spadaccini | |
235 | a6c79f3a | Iustin Pop | The ``--use-external-mip-script`` option allows to specify whether to |
236 | a6c79f3a | Iustin Pop | use an user-supplied master IP address setup script, whose location is |
237 | a6c79f3a | Iustin Pop | ``@SYSCONFDIR@/ganeti/scripts/master-ip-setup``. If the option value is |
238 | a6c79f3a | Iustin Pop | set to False, the default script (located at |
239 | a6c79f3a | Iustin Pop | ``@PKGLIBDIR@/tools/master-ip-setup``) will be executed. |
240 | bf689b7a | Andrea Spadaccini | |
241 | 0a68e0ff | Iustin Pop | The ``-m (--mac-prefix)`` option will let you specify a three byte |
242 | 0a68e0ff | Iustin Pop | prefix under which the virtual MAC addresses of your instances will be |
243 | 0a68e0ff | Iustin Pop | generated. The prefix must be specified in the format ``XX:XX:XX`` and |
244 | 0a68e0ff | Iustin Pop | the default is ``aa:00:00``. |
245 | 3cb9e1fe | Iustin Pop | |
246 | 3cb9e1fe | Iustin Pop | The ``--no-lvm-storage`` option allows you to initialize the |
247 | 3cb9e1fe | Iustin Pop | cluster without lvm support. This means that only instances using |
248 | 3cb9e1fe | Iustin Pop | files as storage backend will be possible to create. Once the |
249 | 3cb9e1fe | Iustin Pop | cluster is initialized you can change this setup with the |
250 | 3cb9e1fe | Iustin Pop | **modify** command. |
251 | 3cb9e1fe | Iustin Pop | |
252 | 3cb9e1fe | Iustin Pop | The ``--no-etc-hosts`` option allows you to initialize the cluster |
253 | 3cb9e1fe | Iustin Pop | without modifying the /etc/hosts file. |
254 | 3cb9e1fe | Iustin Pop | |
255 | 3cb9e1fe | Iustin Pop | The ``--no-ssh-init`` option allows you to initialize the cluster |
256 | 3cb9e1fe | Iustin Pop | without creating or distributing SSH key pairs. |
257 | 3cb9e1fe | Iustin Pop | |
258 | 3cb9e1fe | Iustin Pop | The ``--file-storage-dir`` option allows you set the directory to |
259 | 3cb9e1fe | Iustin Pop | use for storing the instance disk files when using file storage as |
260 | 3cb9e1fe | Iustin Pop | backend for instance disks. |
261 | 3cb9e1fe | Iustin Pop | |
262 | fa8ef9d6 | Michael Hanselmann | The ``--prealloc-wipe-disks`` sets a cluster wide configuration value |
263 | fa8ef9d6 | Michael Hanselmann | for wiping disks prior to allocation and size changes (``gnt-instance |
264 | fa8ef9d6 | Michael Hanselmann | grow-disk``). This increases security on instance level as the instance |
265 | fa8ef9d6 | Michael Hanselmann | can't access untouched data from its underlying storage. |
266 | 3cb9e1fe | Iustin Pop | |
267 | 3cb9e1fe | Iustin Pop | The ``--enabled-hypervisors`` option allows you to set the list of |
268 | 3cb9e1fe | Iustin Pop | hypervisors that will be enabled for this cluster. Instance |
269 | 3cb9e1fe | Iustin Pop | hypervisors can only be chosen from the list of enabled |
270 | 3cb9e1fe | Iustin Pop | hypervisors, and the first entry of this list will be used by |
271 | 3cb9e1fe | Iustin Pop | default. Currently, the following hypervisors are available: |
272 | 3cb9e1fe | Iustin Pop | |
273 | 3cb9e1fe | Iustin Pop | xen-pvm |
274 | 3cb9e1fe | Iustin Pop | Xen PVM hypervisor |
275 | 3cb9e1fe | Iustin Pop | |
276 | 3cb9e1fe | Iustin Pop | xen-hvm |
277 | 3cb9e1fe | Iustin Pop | Xen HVM hypervisor |
278 | 3cb9e1fe | Iustin Pop | |
279 | 3cb9e1fe | Iustin Pop | kvm |
280 | 3cb9e1fe | Iustin Pop | Linux KVM hypervisor |
281 | 3cb9e1fe | Iustin Pop | |
282 | 3cb9e1fe | Iustin Pop | chroot |
283 | 3cb9e1fe | Iustin Pop | a simple chroot manager that starts chroot based on a script at the |
284 | 3cb9e1fe | Iustin Pop | root of the filesystem holding the chroot |
285 | 3cb9e1fe | Iustin Pop | |
286 | 3cb9e1fe | Iustin Pop | fake |
287 | 3cb9e1fe | Iustin Pop | fake hypervisor for development/testing |
288 | 3cb9e1fe | Iustin Pop | |
289 | 3cb9e1fe | Iustin Pop | Either a single hypervisor name or a comma-separated list of |
290 | 3cb9e1fe | Iustin Pop | hypervisor names can be specified. If this option is not specified, |
291 | 3cb9e1fe | Iustin Pop | only the xen-pvm hypervisor is enabled by default. |
292 | 3cb9e1fe | Iustin Pop | |
293 | 0a68e0ff | Iustin Pop | The ``-H (--hypervisor-parameters)`` option allows you to set default |
294 | 3cb9e1fe | Iustin Pop | hypervisor specific parameters for the cluster. The format of this |
295 | 3cb9e1fe | Iustin Pop | option is the name of the hypervisor, followed by a colon and a |
296 | 0a68e0ff | Iustin Pop | comma-separated list of key=value pairs. The keys available for each |
297 | 354c4f62 | Michael Hanselmann | hypervisors are detailed in the **gnt-instance**\(8) man page, in the |
298 | 0a68e0ff | Iustin Pop | **add** command plus the following parameters which are only |
299 | 3cb9e1fe | Iustin Pop | configurable globally (at cluster level): |
300 | 3cb9e1fe | Iustin Pop | |
301 | 3cb9e1fe | Iustin Pop | migration\_port |
302 | 3cb9e1fe | Iustin Pop | Valid for the Xen PVM and KVM hypervisors. |
303 | 3cb9e1fe | Iustin Pop | |
304 | 3cb9e1fe | Iustin Pop | This options specifies the TCP port to use for live-migration. For |
305 | 3cb9e1fe | Iustin Pop | Xen, the same port should be configured on all nodes in the |
306 | a8e8c0c6 | Michael Hanselmann | ``@XEN_CONFIG_DIR@/xend-config.sxp`` file, under the key |
307 | 3cb9e1fe | Iustin Pop | "xend-relocation-port". |
308 | 3cb9e1fe | Iustin Pop | |
309 | 3cb9e1fe | Iustin Pop | migration\_bandwidth |
310 | 3cb9e1fe | Iustin Pop | Valid for the KVM hypervisor. |
311 | 3cb9e1fe | Iustin Pop | |
312 | 3cb9e1fe | Iustin Pop | This option specifies the maximum bandwidth that KVM will use for |
313 | 3cb9e1fe | Iustin Pop | instance live migrations. The value is in MiB/s. |
314 | 3cb9e1fe | Iustin Pop | |
315 | 3cb9e1fe | Iustin Pop | This option is only effective with kvm versions >= 78 and qemu-kvm |
316 | 3cb9e1fe | Iustin Pop | versions >= 0.10.0. |
317 | 3cb9e1fe | Iustin Pop | |
318 | 0a68e0ff | Iustin Pop | The ``-B (--backend-parameters)`` option allows you to set the default |
319 | 3cb9e1fe | Iustin Pop | backend parameters for the cluster. The parameter format is a |
320 | 0a68e0ff | Iustin Pop | comma-separated list of key=value pairs with the following supported |
321 | 0a68e0ff | Iustin Pop | keys: |
322 | 3cb9e1fe | Iustin Pop | |
323 | 3cb9e1fe | Iustin Pop | vcpus |
324 | 3cb9e1fe | Iustin Pop | Number of VCPUs to set for an instance by default, must be an |
325 | 3cb9e1fe | Iustin Pop | integer, will be set to 1 if no specified. |
326 | 3cb9e1fe | Iustin Pop | |
327 | 90bb3fe1 | Guido Trotter | maxmem |
328 | 90bb3fe1 | Guido Trotter | Maximum amount of memory to allocate for an instance by default, can |
329 | 90bb3fe1 | Guido Trotter | be either an integer or an integer followed by a unit (M for |
330 | 90bb3fe1 | Guido Trotter | mebibytes and G for gibibytes are supported), will be set to 128M if |
331 | 90bb3fe1 | Guido Trotter | not specified. |
332 | 90bb3fe1 | Guido Trotter | |
333 | 90bb3fe1 | Guido Trotter | minmem |
334 | 90bb3fe1 | Guido Trotter | Minimum amount of memory to allocate for an instance by default, can |
335 | 90bb3fe1 | Guido Trotter | be either an integer or an integer followed by a unit (M for |
336 | 90bb3fe1 | Guido Trotter | mebibytes and G for gibibytes are supported), will be set to 128M if |
337 | 90bb3fe1 | Guido Trotter | not specified. |
338 | 3cb9e1fe | Iustin Pop | |
339 | 3cb9e1fe | Iustin Pop | auto\_balance |
340 | 3cb9e1fe | Iustin Pop | Value of the auto\_balance flag for instances to use by default, |
341 | 3cb9e1fe | Iustin Pop | will be set to true if not specified. |
342 | 3cb9e1fe | Iustin Pop | |
343 | 11dc66f3 | Bernardo Dal Seno | always\_failover |
344 | 22ac4136 | Michael Hanselmann | Default value for the ``always_failover`` flag for instances; if |
345 | 11dc66f3 | Bernardo Dal Seno | not set, ``False`` is used. |
346 | 11dc66f3 | Bernardo Dal Seno | |
347 | 3cb9e1fe | Iustin Pop | |
348 | 42653ebd | Michael Hanselmann | The ``-N (--nic-parameters)`` option allows you to set the default |
349 | 42653ebd | Michael Hanselmann | network interface parameters for the cluster. The parameter format is a |
350 | 42653ebd | Michael Hanselmann | comma-separated list of key=value pairs with the following supported |
351 | 42653ebd | Michael Hanselmann | keys: |
352 | 3cb9e1fe | Iustin Pop | |
353 | 3cb9e1fe | Iustin Pop | mode |
354 | 42653ebd | Michael Hanselmann | The default NIC mode, one of ``routed``, ``bridged`` or |
355 | 42653ebd | Michael Hanselmann | ``openvswitch``. |
356 | 3cb9e1fe | Iustin Pop | |
357 | 3cb9e1fe | Iustin Pop | link |
358 | 42653ebd | Michael Hanselmann | In ``bridged`` or ``openvswitch`` mode the default interface where |
359 | 42653ebd | Michael Hanselmann | to attach NICs. In ``routed`` mode it represents an |
360 | 42653ebd | Michael Hanselmann | hypervisor-vif-script dependent value to allow different instance |
361 | 42653ebd | Michael Hanselmann | groups. For example under the KVM default network script it is |
362 | 42653ebd | Michael Hanselmann | interpreted as a routing table number or name. Openvswitch support |
363 | 42653ebd | Michael Hanselmann | is also hypervisor dependent and currently works for the default KVM |
364 | 42653ebd | Michael Hanselmann | network script. Under Xen a custom network script must be provided. |
365 | 3cb9e1fe | Iustin Pop | |
366 | a46b1883 | Andrea Spadaccini | The ``-D (--disk-parameters)`` option allows you to set the default disk |
367 | a46b1883 | Andrea Spadaccini | template parameters at cluster level. The format used for this option is |
368 | a46b1883 | Andrea Spadaccini | similar to the one use by the ``-H`` option: the disk template name |
369 | a46b1883 | Andrea Spadaccini | must be specified first, followed by a colon and by a comma-separated |
370 | a46b1883 | Andrea Spadaccini | list of key-value pairs. These parameters can only be specified at |
371 | a46b1883 | Andrea Spadaccini | cluster and node group level; the cluster-level parameter are inherited |
372 | a46b1883 | Andrea Spadaccini | by the node group at the moment of its creation, and can be further |
373 | 354c4f62 | Michael Hanselmann | modified at node group level using the **gnt-group**\(8) command. |
374 | a46b1883 | Andrea Spadaccini | |
375 | 9475189d | Andrea Spadaccini | The following is the list of disk parameters available for the **drbd** |
376 | 9475189d | Andrea Spadaccini | template, with measurement units specified in square brackets at the end |
377 | 9475189d | Andrea Spadaccini | of the description (when applicable): |
378 | a46b1883 | Andrea Spadaccini | |
379 | a46b1883 | Andrea Spadaccini | resync-rate |
380 | 9475189d | Andrea Spadaccini | Static re-synchronization rate. [KiB/s] |
381 | a46b1883 | Andrea Spadaccini | |
382 | a46b1883 | Andrea Spadaccini | data-stripes |
383 | 9475189d | Andrea Spadaccini | Number of stripes to use for data LVs. |
384 | a46b1883 | Andrea Spadaccini | |
385 | a46b1883 | Andrea Spadaccini | meta-stripes |
386 | 9475189d | Andrea Spadaccini | Number of stripes to use for meta LVs. |
387 | a46b1883 | Andrea Spadaccini | |
388 | a46b1883 | Andrea Spadaccini | disk-barriers |
389 | a46b1883 | Andrea Spadaccini | What kind of barriers to **disable** for disks. It can either assume |
390 | a46b1883 | Andrea Spadaccini | the value "n", meaning no barrier disabled, or a non-empty string |
391 | a46b1883 | Andrea Spadaccini | containing a subset of the characters "bfd". "b" means disable disk |
392 | 9475189d | Andrea Spadaccini | barriers, "f" means disable disk flushes, "d" disables disk drains. |
393 | a46b1883 | Andrea Spadaccini | |
394 | a46b1883 | Andrea Spadaccini | meta-barriers |
395 | a46b1883 | Andrea Spadaccini | Boolean value indicating whether the meta barriers should be |
396 | a46b1883 | Andrea Spadaccini | disabled (True) or not (False). |
397 | a46b1883 | Andrea Spadaccini | |
398 | a46b1883 | Andrea Spadaccini | metavg |
399 | a46b1883 | Andrea Spadaccini | String containing the name of the default LVM volume group for DRBD |
400 | a46b1883 | Andrea Spadaccini | metadata. By default, it is set to ``xenvg``. It can be overridden |
401 | a46b1883 | Andrea Spadaccini | during the instance creation process by using the ``metavg`` key of |
402 | a46b1883 | Andrea Spadaccini | the ``--disk`` parameter. |
403 | a46b1883 | Andrea Spadaccini | |
404 | a46b1883 | Andrea Spadaccini | disk-custom |
405 | a46b1883 | Andrea Spadaccini | String containing additional parameters to be appended to the |
406 | a46b1883 | Andrea Spadaccini | arguments list of ``drbdsetup disk``. |
407 | a46b1883 | Andrea Spadaccini | |
408 | a46b1883 | Andrea Spadaccini | net-custom |
409 | a46b1883 | Andrea Spadaccini | String containing additional parameters to be appended to the |
410 | a46b1883 | Andrea Spadaccini | arguments list of ``drbdsetup net``. |
411 | a46b1883 | Andrea Spadaccini | |
412 | 9475189d | Andrea Spadaccini | dynamic-resync |
413 | 9475189d | Andrea Spadaccini | Boolean indicating whether to use the dynamic resync speed |
414 | 9475189d | Andrea Spadaccini | controller or not. If enabled, c-plan-ahead must be non-zero and all |
415 | 9475189d | Andrea Spadaccini | the c-* parameters will be used by DRBD. Otherwise, the value of |
416 | 9475189d | Andrea Spadaccini | resync-rate will be used as a static resync speed. |
417 | 9475189d | Andrea Spadaccini | |
418 | 9475189d | Andrea Spadaccini | c-plan-ahead |
419 | 9475189d | Andrea Spadaccini | Agility factor of the dynamic resync speed controller. (the higher, |
420 | 9475189d | Andrea Spadaccini | the slower the algorithm will adapt the resync speed). A value of 0 |
421 | 9475189d | Andrea Spadaccini | (that is the default) disables the controller. [ds] |
422 | 9475189d | Andrea Spadaccini | |
423 | 9475189d | Andrea Spadaccini | c-fill-target |
424 | 9475189d | Andrea Spadaccini | Maximum amount of in-flight resync data for the dynamic resync speed |
425 | 9475189d | Andrea Spadaccini | controller. [sectors] |
426 | 9475189d | Andrea Spadaccini | |
427 | 9475189d | Andrea Spadaccini | c-delay-target |
428 | 9475189d | Andrea Spadaccini | Maximum estimated peer response latency for the dynamic resync speed |
429 | 9475189d | Andrea Spadaccini | controller. [ds] |
430 | 9475189d | Andrea Spadaccini | |
431 | 9475189d | Andrea Spadaccini | c-min-rate |
432 | 9475189d | Andrea Spadaccini | Minimum resync speed for the dynamic resync speed controller. [KiB/s] |
433 | 9475189d | Andrea Spadaccini | |
434 | 9475189d | Andrea Spadaccini | c-max-rate |
435 | 9475189d | Andrea Spadaccini | Upper bound on resync speed for the dynamic resync speed controller. |
436 | 9475189d | Andrea Spadaccini | [KiB/s] |
437 | 9475189d | Andrea Spadaccini | |
438 | a46b1883 | Andrea Spadaccini | List of parameters available for the **plain** template: |
439 | a46b1883 | Andrea Spadaccini | |
440 | a46b1883 | Andrea Spadaccini | stripes |
441 | 9475189d | Andrea Spadaccini | Number of stripes to use for new LVs. |
442 | a46b1883 | Andrea Spadaccini | |
443 | 7ed400f0 | Stratos Psomadakis | List of parameters available for the **rbd** template: |
444 | 7ed400f0 | Stratos Psomadakis | |
445 | 7ed400f0 | Stratos Psomadakis | pool |
446 | 7ed400f0 | Stratos Psomadakis | The RADOS cluster pool, inside which all rbd volumes will reside. |
447 | 7ed400f0 | Stratos Psomadakis | When a new RADOS cluster is deployed, the default pool to put rbd |
448 | 7ed400f0 | Stratos Psomadakis | volumes (Images in RADOS terminology) is 'rbd'. |
449 | 7ed400f0 | Stratos Psomadakis | |
450 | f7b769b1 | Iustin Pop | The option ``--maintain-node-health`` allows one to enable/disable |
451 | 3cb9e1fe | Iustin Pop | automatic maintenance actions on nodes. Currently these include |
452 | 3cb9e1fe | Iustin Pop | automatic shutdown of instances and deactivation of DRBD devices on |
453 | 3cb9e1fe | Iustin Pop | offline nodes; in the future it might be extended to automatic |
454 | d29036c1 | Iustin Pop | removal of unknown LVM volumes, etc. Note that this option is only |
455 | d29036c1 | Iustin Pop | useful if the use of ``ganeti-confd`` was enabled at compilation. |
456 | 3cb9e1fe | Iustin Pop | |
457 | 3cb9e1fe | Iustin Pop | The ``--uid-pool`` option initializes the user-id pool. The |
458 | 3cb9e1fe | Iustin Pop | *user-id pool definition* can contain a list of user-ids and/or a |
459 | 3cb9e1fe | Iustin Pop | list of user-id ranges. The parameter format is a comma-separated |
460 | 3cb9e1fe | Iustin Pop | list of numeric user-ids or user-id ranges. The ranges are defined |
461 | 3cb9e1fe | Iustin Pop | by a lower and higher boundary, separated by a dash. The boundaries |
462 | 3cb9e1fe | Iustin Pop | are inclusive. If the ``--uid-pool`` option is not supplied, the |
463 | 3cb9e1fe | Iustin Pop | user-id pool is initialized to an empty list. An empty list means |
464 | 3cb9e1fe | Iustin Pop | that the user-id pool feature is disabled. |
465 | 3cb9e1fe | Iustin Pop | |
466 | 3cb9e1fe | Iustin Pop | The ``-I (--default-iallocator)`` option specifies the default |
467 | d1e9c98d | Iustin Pop | instance allocator. The instance allocator will be used for operations |
468 | d1e9c98d | Iustin Pop | like instance creation, instance and node migration, etc. when no |
469 | d1e9c98d | Iustin Pop | manual override is specified. If this option is not specified and |
470 | d1e9c98d | Iustin Pop | htools was not enabled at build time, the default instance allocator |
471 | d1e9c98d | Iustin Pop | will be blank, which means that relevant operations will require the |
472 | d1e9c98d | Iustin Pop | administrator to manually specify either an instance allocator, or a |
473 | d1e9c98d | Iustin Pop | set of nodes. If the option is not specified but htools was enabled, |
474 | 354c4f62 | Michael Hanselmann | the default iallocator will be **hail**\(1) (assuming it can be found |
475 | d1e9c98d | Iustin Pop | on disk). The default iallocator can be changed later using the |
476 | d1e9c98d | Iustin Pop | **modify** command. |
477 | 3cb9e1fe | Iustin Pop | |
478 | 3cb9e1fe | Iustin Pop | The ``--primary-ip-version`` option specifies the IP version used |
479 | 3cb9e1fe | Iustin Pop | for the primary address. Possible values are 4 and 6 for IPv4 and |
480 | 3cb9e1fe | Iustin Pop | IPv6, respectively. This option is used when resolving node names |
481 | 3cb9e1fe | Iustin Pop | and the cluster name. |
482 | 3cb9e1fe | Iustin Pop | |
483 | 6204ee71 | René Nussbaumer | The ``--node-parameters`` option allows you to set default node |
484 | 354c4f62 | Michael Hanselmann | parameters for the cluster. Please see **ganeti**\(7) for more |
485 | 6204ee71 | René Nussbaumer | information about supported key=value pairs. |
486 | 6204ee71 | René Nussbaumer | |
487 | 0a68e0ff | Iustin Pop | The ``-C (--candidate-pool-size)`` option specifies the |
488 | 0a68e0ff | Iustin Pop | ``candidate_pool_size`` cluster parameter. This is the number of nodes |
489 | 0a68e0ff | Iustin Pop | that the master will try to keep as master\_candidates. For more |
490 | 354c4f62 | Michael Hanselmann | details about this role and other node roles, see the **ganeti**\(7). |
491 | 0a68e0ff | Iustin Pop | |
492 | 75c7a686 | Bernardo Dal Seno | The ``--specs-...`` and ``--ipolicy-disk-templates`` options specify |
493 | d04c9d45 | Iustin Pop | instance policy on the cluster. For the ``--specs-...`` options, each |
494 | d04c9d45 | Iustin Pop | option can have three values: ``min``, ``max`` and ``std``, which can |
495 | d04c9d45 | Iustin Pop | also be modified on group level (except for ``std``, which is defined |
496 | d04c9d45 | Iustin Pop | once for the entire cluster). Please note, that ``std`` values are not |
497 | d04c9d45 | Iustin Pop | the same as defaults set by ``--beparams``, but they are used for the |
498 | 75c7a686 | Bernardo Dal Seno | capacity calculations. The ``--ipolicy-disk-templates`` option takes a |
499 | d04c9d45 | Iustin Pop | comma-separated list of disk templates. |
500 | 0ce212e5 | Iustin Pop | |
501 | 0ce212e5 | Iustin Pop | - ``--specs-cpu-count`` limits the number of VCPUs that can be used by an |
502 | 0ce212e5 | Iustin Pop | instance. |
503 | 0ce212e5 | Iustin Pop | - ``--specs-disk-count`` limits the number of disks |
504 | 0ce212e5 | Iustin Pop | - ``--specs-disk-size`` limits the disk size for every disk used |
505 | 0ce212e5 | Iustin Pop | - ``--specs-mem-size`` limits the amount of memory available |
506 | 0ce212e5 | Iustin Pop | - ``--specs-nic-count`` sets limits on the number of NICs used |
507 | 75c7a686 | Bernardo Dal Seno | - ``--ipolicy-disk-templates`` limits the allowed disk templates |
508 | e37c5129 | Agata Murawska | |
509 | c4929a8b | René Nussbaumer | For details about how to use ``--hypervisor-state`` and ``--disk-state`` |
510 | 354c4f62 | Michael Hanselmann | have a look at **ganeti**\(7). |
511 | c4929a8b | René Nussbaumer | |
512 | 5914192c | Helga Velroyen | The ``--enabled-disk-templates`` option specifies a list of disk templates |
513 | 5914192c | Helga Velroyen | that can be used by instances of the cluster. For the possible values in |
514 | 5914192c | Helga Velroyen | this list, see **gnt-instance**\(8). Note that in contrast to the list of |
515 | 5914192c | Helga Velroyen | disk templates in the ipolicy, this list is a hard restriction. It is not |
516 | 5914192c | Helga Velroyen | possible to create instances with disk templates that are not enabled in |
517 | 5914192c | Helga Velroyen | the cluster. It is also not possible to disable a disk template when there |
518 | 5914192c | Helga Velroyen | are still instances using it. |
519 | 5914192c | Helga Velroyen | |
520 | 3cb9e1fe | Iustin Pop | MASTER-FAILOVER |
521 | 3cb9e1fe | Iustin Pop | ~~~~~~~~~~~~~~~ |
522 | 3cb9e1fe | Iustin Pop | |
523 | dc1e9a74 | Iustin Pop | **master-failover** [\--no-voting] [\--yes-do-it] |
524 | 3cb9e1fe | Iustin Pop | |
525 | 3cb9e1fe | Iustin Pop | Failover the master role to the current node. |
526 | 3cb9e1fe | Iustin Pop | |
527 | 3cb9e1fe | Iustin Pop | The ``--no-voting`` option skips the remote node agreement checks. |
528 | 3cb9e1fe | Iustin Pop | This is dangerous, but necessary in some cases (for example failing |
529 | 3cb9e1fe | Iustin Pop | over the master role in a 2 node cluster with the original master |
530 | 3cb9e1fe | Iustin Pop | down). If the original master then comes up, it won't be able to |
531 | 3cb9e1fe | Iustin Pop | start its master daemon because it won't have enough votes, but so |
532 | 3cb9e1fe | Iustin Pop | won't the new master, if the master daemon ever needs a restart. |
533 | 3cb9e1fe | Iustin Pop | You can pass ``--no-voting`` to **ganeti-masterd** on the new |
534 | 3cb9e1fe | Iustin Pop | master to solve this problem, and run **gnt-cluster redist-conf** |
535 | 3cb9e1fe | Iustin Pop | to make sure the cluster is consistent again. |
536 | 3cb9e1fe | Iustin Pop | |
537 | dc1e9a74 | Iustin Pop | The option ``--yes-do-it`` is used together with ``--no-voting``, for |
538 | dc1e9a74 | Iustin Pop | skipping the interactive checks. This is even more dangerous, and should |
539 | dc1e9a74 | Iustin Pop | only be used in conjunction with other means (e.g. a HA suite) to |
540 | dc1e9a74 | Iustin Pop | confirm that the operation is indeed safe. |
541 | dc1e9a74 | Iustin Pop | |
542 | 3cb9e1fe | Iustin Pop | MASTER-PING |
543 | 3cb9e1fe | Iustin Pop | ~~~~~~~~~~~ |
544 | 3cb9e1fe | Iustin Pop | |
545 | 3cb9e1fe | Iustin Pop | **master-ping** |
546 | 3cb9e1fe | Iustin Pop | |
547 | 3cb9e1fe | Iustin Pop | Checks if the master daemon is alive. |
548 | 3cb9e1fe | Iustin Pop | |
549 | 3cb9e1fe | Iustin Pop | If the master daemon is alive and can respond to a basic query (the |
550 | 3cb9e1fe | Iustin Pop | equivalent of **gnt-cluster info**), then the exit code of the |
551 | 3cb9e1fe | Iustin Pop | command will be 0. If the master daemon is not alive (either due to |
552 | 3cb9e1fe | Iustin Pop | a crash or because this is not the master node), the exit code will |
553 | 3cb9e1fe | Iustin Pop | be 1. |
554 | 3cb9e1fe | Iustin Pop | |
555 | 3cb9e1fe | Iustin Pop | MODIFY |
556 | 3cb9e1fe | Iustin Pop | ~~~~~~ |
557 | 3cb9e1fe | Iustin Pop | |
558 | 745dae57 | Michael Hanselmann | | **modify** [\--submit] |
559 | e8f936b0 | Iustin Pop | | [\--vg-name *vg-name*] |
560 | e8f936b0 | Iustin Pop | | [\--no-lvm-storage] |
561 | e8f936b0 | Iustin Pop | | [\--enabled-hypervisors *hypervisors*] |
562 | e8f936b0 | Iustin Pop | | [{-H|\--hypervisor-parameters} *hypervisor*:*hv-param*=*value*[,*hv-param*=*value*...]] |
563 | e8f936b0 | Iustin Pop | | [{-B|\--backend-parameters} *be-param*=*value*[,*be-param*=*value*...]] |
564 | e8f936b0 | Iustin Pop | | [{-N|\--nic-parameters} *nic-param*=*value*[,*nic-param*=*value*...]] |
565 | e8f936b0 | Iustin Pop | | [{-D|\--disk-parameters} *disk-template*:*disk-param*=*value*[,*disk-param*=*value*...]] |
566 | e8f936b0 | Iustin Pop | | [\--uid-pool *user-id pool definition*] |
567 | e8f936b0 | Iustin Pop | | [\--add-uids *user-id pool definition*] |
568 | e8f936b0 | Iustin Pop | | [\--remove-uids *user-id pool definition*] |
569 | e8f936b0 | Iustin Pop | | [{-C|\--candidate-pool-size} *candidate\_pool\_size*] |
570 | e8f936b0 | Iustin Pop | | [\--maintain-node-health {yes \| no}] |
571 | e8f936b0 | Iustin Pop | | [\--prealloc-wipe-disks {yes \| no}] |
572 | e8f936b0 | Iustin Pop | | [{-I|\--default-iallocator} *default instance allocator*] |
573 | e8f936b0 | Iustin Pop | | [\--reserved-lvs=*NAMES*] |
574 | e8f936b0 | Iustin Pop | | [\--node-parameters *ndparams*] |
575 | e8f936b0 | Iustin Pop | | [\--master-netdev *interface-name*] |
576 | e8f936b0 | Iustin Pop | | [\--master-netmask *netmask*] |
577 | e8f936b0 | Iustin Pop | | [\--use-external-mip-script {yes \| no}] |
578 | e8f936b0 | Iustin Pop | | [\--hypervisor-state *hvstate*] |
579 | e8f936b0 | Iustin Pop | | [\--disk-state *diskstate*] |
580 | e8f936b0 | Iustin Pop | | [\--specs-cpu-count *spec-param*=*value* [,*spec-param*=*value*...]] |
581 | e8f936b0 | Iustin Pop | | [\--specs-disk-count *spec-param*=*value* [,*spec-param*=*value*...]] |
582 | e8f936b0 | Iustin Pop | | [\--specs-disk-size *spec-param*=*value* [,*spec-param*=*value*...]] |
583 | e8f936b0 | Iustin Pop | | [\--specs-mem-size *spec-param*=*value* [,*spec-param*=*value*...]] |
584 | e8f936b0 | Iustin Pop | | [\--specs-nic-count *spec-param*=*value* [,*spec-param*=*value*...]] |
585 | 75c7a686 | Bernardo Dal Seno | | [\--ipolicy-disk-templates *template* [,*template*...]] |
586 | 5914192c | Helga Velroyen | | [\--enabled-disk-templates *template* [,*template*...]] |
587 | e37c5129 | Agata Murawska | |
588 | 3cb9e1fe | Iustin Pop | |
589 | 3cb9e1fe | Iustin Pop | Modify the options for the cluster. |
590 | 3cb9e1fe | Iustin Pop | |
591 | 75c7a686 | Bernardo Dal Seno | The ``--vg-name``, ``--no-lvm-storage``, ``--enabled-hypervisors``, |
592 | 0a68e0ff | Iustin Pop | ``-H (--hypervisor-parameters)``, ``-B (--backend-parameters)``, |
593 | a46b1883 | Andrea Spadaccini | ``-D (--disk-parameters)``, ``--nic-parameters``, ``-C |
594 | a46b1883 | Andrea Spadaccini | (--candidate-pool-size)``, ``--maintain-node-health``, |
595 | a46b1883 | Andrea Spadaccini | ``--prealloc-wipe-disks``, ``--uid-pool``, ``--node-parameters``, |
596 | 5914192c | Helga Velroyen | ``--master-netdev``, ``--master-netmask``, ``--use-external-mip-script``, |
597 | 5914192c | Helga Velroyen | and ``--enabled-disk-templates`` options are described in the **init** |
598 | a46b1883 | Andrea Spadaccini | command. |
599 | 3cb9e1fe | Iustin Pop | |
600 | 2da9f556 | René Nussbaumer | The ``--hypervisor-state`` and ``--disk-state`` options are described in |
601 | 354c4f62 | Michael Hanselmann | detail in **ganeti**\(7). |
602 | 2da9f556 | René Nussbaumer | |
603 | 3cb9e1fe | Iustin Pop | The ``--add-uids`` and ``--remove-uids`` options can be used to |
604 | 3cb9e1fe | Iustin Pop | modify the user-id pool by adding/removing a list of user-ids or |
605 | 3cb9e1fe | Iustin Pop | user-id ranges. |
606 | 3cb9e1fe | Iustin Pop | |
607 | 3cb9e1fe | Iustin Pop | The option ``--reserved-lvs`` specifies a list (comma-separated) of |
608 | 3cb9e1fe | Iustin Pop | logical volume group names (regular expressions) that will be |
609 | 3cb9e1fe | Iustin Pop | ignored by the cluster verify operation. This is useful if the |
610 | 3cb9e1fe | Iustin Pop | volume group used for Ganeti is shared with the system for other |
611 | 3cb9e1fe | Iustin Pop | uses. Note that it's not recommended to create and mark as ignored |
612 | 3cb9e1fe | Iustin Pop | logical volume names which match Ganeti's own name format (starting |
613 | 3cb9e1fe | Iustin Pop | with UUID and then .diskN), as this option only skips the |
614 | 3cb9e1fe | Iustin Pop | verification, but not the actual use of the names given. |
615 | 3cb9e1fe | Iustin Pop | |
616 | 3cb9e1fe | Iustin Pop | To remove all reserved logical volumes, pass in an empty argument |
617 | 3cb9e1fe | Iustin Pop | to the option, as in ``--reserved-lvs=`` or ``--reserved-lvs ''``. |
618 | 3cb9e1fe | Iustin Pop | |
619 | 0a68e0ff | Iustin Pop | The ``-I (--default-iallocator)`` is described in the **init** |
620 | 0a68e0ff | Iustin Pop | command. To clear the default iallocator, just pass an empty string |
621 | 0a68e0ff | Iustin Pop | (''). |
622 | 3cb9e1fe | Iustin Pop | |
623 | 75c7a686 | Bernardo Dal Seno | The ``--specs-...`` and ``--ipolicy-disk-templates`` options are |
624 | 75c7a686 | Bernardo Dal Seno | described in the **init** command. |
625 | e37c5129 | Agata Murawska | |
626 | 354c4f62 | Michael Hanselmann | See **ganeti**\(7) for a description of ``--submit`` and other common |
627 | 745dae57 | Michael Hanselmann | options. |
628 | 745dae57 | Michael Hanselmann | |
629 | 3cb9e1fe | Iustin Pop | QUEUE |
630 | 3cb9e1fe | Iustin Pop | ~~~~~ |
631 | 3cb9e1fe | Iustin Pop | |
632 | 3cb9e1fe | Iustin Pop | **queue** {drain | undrain | info} |
633 | 3cb9e1fe | Iustin Pop | |
634 | 3cb9e1fe | Iustin Pop | Change job queue properties. |
635 | 3cb9e1fe | Iustin Pop | |
636 | 3cb9e1fe | Iustin Pop | The ``drain`` option sets the drain flag on the job queue. No new |
637 | 3cb9e1fe | Iustin Pop | jobs will be accepted, but jobs already in the queue will be |
638 | 3cb9e1fe | Iustin Pop | processed. |
639 | 3cb9e1fe | Iustin Pop | |
640 | 3cb9e1fe | Iustin Pop | The ``undrain`` will unset the drain flag on the job queue. New |
641 | 3cb9e1fe | Iustin Pop | jobs will be accepted. |
642 | 3cb9e1fe | Iustin Pop | |
643 | 3cb9e1fe | Iustin Pop | The ``info`` option shows the properties of the job queue. |
644 | 3cb9e1fe | Iustin Pop | |
645 | 3cb9e1fe | Iustin Pop | WATCHER |
646 | 3cb9e1fe | Iustin Pop | ~~~~~~~ |
647 | 3cb9e1fe | Iustin Pop | |
648 | 3cb9e1fe | Iustin Pop | **watcher** {pause *duration* | continue | info} |
649 | 3cb9e1fe | Iustin Pop | |
650 | 3cb9e1fe | Iustin Pop | Make the watcher pause or let it continue. |
651 | 3cb9e1fe | Iustin Pop | |
652 | 3cb9e1fe | Iustin Pop | The ``pause`` option causes the watcher to pause for *duration* |
653 | 3cb9e1fe | Iustin Pop | seconds. |
654 | 3cb9e1fe | Iustin Pop | |
655 | 3cb9e1fe | Iustin Pop | The ``continue`` option will let the watcher continue. |
656 | 3cb9e1fe | Iustin Pop | |
657 | 3cb9e1fe | Iustin Pop | The ``info`` option shows whether the watcher is currently paused. |
658 | 3cb9e1fe | Iustin Pop | |
659 | 3bc145d8 | Bernardo Dal Seno | REDIST-CONF |
660 | 3cb9e1fe | Iustin Pop | ~~~~~~~~~~~ |
661 | 3cb9e1fe | Iustin Pop | |
662 | e8f936b0 | Iustin Pop | **redist-conf** [\--submit] |
663 | 3cb9e1fe | Iustin Pop | |
664 | 3cb9e1fe | Iustin Pop | This command forces a full push of configuration files from the |
665 | 3cb9e1fe | Iustin Pop | master node to the other nodes in the cluster. This is normally not |
666 | 3cb9e1fe | Iustin Pop | needed, but can be run if the **verify** complains about |
667 | 3cb9e1fe | Iustin Pop | configuration mismatches. |
668 | 3cb9e1fe | Iustin Pop | |
669 | 354c4f62 | Michael Hanselmann | See **ganeti**\(7) for a description of ``--submit`` and other common |
670 | 13ddcb50 | Michael Hanselmann | options. |
671 | 3cb9e1fe | Iustin Pop | |
672 | 3cb9e1fe | Iustin Pop | RENAME |
673 | 3cb9e1fe | Iustin Pop | ~~~~~~ |
674 | 3cb9e1fe | Iustin Pop | |
675 | 3cb9e1fe | Iustin Pop | **rename** [-f] {*name*} |
676 | 3cb9e1fe | Iustin Pop | |
677 | 3cb9e1fe | Iustin Pop | Renames the cluster and in the process updates the master IP |
678 | 3cb9e1fe | Iustin Pop | address to the one the new name resolves to. At least one of either |
679 | 3cb9e1fe | Iustin Pop | the name or the IP address must be different, otherwise the |
680 | 3cb9e1fe | Iustin Pop | operation will be aborted. |
681 | 3cb9e1fe | Iustin Pop | |
682 | 3cb9e1fe | Iustin Pop | Note that since this command can be dangerous (especially when run |
683 | 3cb9e1fe | Iustin Pop | over SSH), the command will require confirmation unless run with |
684 | 3cb9e1fe | Iustin Pop | the ``-f`` option. |
685 | 3cb9e1fe | Iustin Pop | |
686 | 3cb9e1fe | Iustin Pop | RENEW-CRYPTO |
687 | 3cb9e1fe | Iustin Pop | ~~~~~~~~~~~~ |
688 | 3cb9e1fe | Iustin Pop | |
689 | 3cb9e1fe | Iustin Pop | | **renew-crypto** [-f] |
690 | e8f936b0 | Iustin Pop | | [\--new-cluster-certificate] [\--new-confd-hmac-key] |
691 | e8f936b0 | Iustin Pop | | [\--new-rapi-certificate] [\--rapi-certificate *rapi-cert*] |
692 | e8f936b0 | Iustin Pop | | [\--new-spice-certificate | \--spice-certificate *spice-cert* |
693 | e8f936b0 | Iustin Pop | | \--spice-ca-certificate *spice-ca-cert*] |
694 | e8f936b0 | Iustin Pop | | [\--new-cluster-domain-secret] [\--cluster-domain-secret *filename*] |
695 | 3cb9e1fe | Iustin Pop | |
696 | 3cb9e1fe | Iustin Pop | This command will stop all Ganeti daemons in the cluster and start |
697 | 3cb9e1fe | Iustin Pop | them again once the new certificates and keys are replicated. The |
698 | 3cb9e1fe | Iustin Pop | options ``--new-cluster-certificate`` and ``--new-confd-hmac-key`` |
699 | 3cb9e1fe | Iustin Pop | can be used to regenerate the cluster-internal SSL certificate |
700 | 354c4f62 | Michael Hanselmann | respective the HMAC key used by **ganeti-confd**\(8). |
701 | 3cb9e1fe | Iustin Pop | |
702 | 3cb9e1fe | Iustin Pop | To generate a new self-signed RAPI certificate (used by |
703 | 354c4f62 | Michael Hanselmann | **ganeti-rapi**\(8)) specify ``--new-rapi-certificate``. If you want to |
704 | 3cb9e1fe | Iustin Pop | use your own certificate, e.g. one signed by a certificate |
705 | 3cb9e1fe | Iustin Pop | authority (CA), pass its filename to ``--rapi-certificate``. |
706 | 3cb9e1fe | Iustin Pop | |
707 | b8a10435 | Andrea Spadaccini | To generate a new self-signed SPICE certificate, used by SPICE |
708 | b8a10435 | Andrea Spadaccini | connections to the KVM hypervisor, specify the |
709 | b8a10435 | Andrea Spadaccini | ``--new-spice-certificate`` option. If you want to provide a |
710 | b8a10435 | Andrea Spadaccini | certificate, pass its filename to ``--spice-certificate`` and pass the |
711 | b8a10435 | Andrea Spadaccini | signing CA certificate to ``--spice-ca-certificate``. |
712 | b8a10435 | Andrea Spadaccini | |
713 | 3cb9e1fe | Iustin Pop | ``--new-cluster-domain-secret`` generates a new, random cluster |
714 | 3cb9e1fe | Iustin Pop | domain secret. ``--cluster-domain-secret`` reads the secret from a |
715 | 3cb9e1fe | Iustin Pop | file. The cluster domain secret is used to sign information |
716 | 3cb9e1fe | Iustin Pop | exchanged between separate clusters via a third party. |
717 | 3cb9e1fe | Iustin Pop | |
718 | 3cb9e1fe | Iustin Pop | REPAIR-DISK-SIZES |
719 | 3cb9e1fe | Iustin Pop | ~~~~~~~~~~~~~~~~~ |
720 | 3cb9e1fe | Iustin Pop | |
721 | 3cb9e1fe | Iustin Pop | **repair-disk-sizes** [instance...] |
722 | 3cb9e1fe | Iustin Pop | |
723 | 3cb9e1fe | Iustin Pop | This command checks that the recorded size of the given instance's |
724 | 3cb9e1fe | Iustin Pop | disks matches the actual size and updates any mismatches found. |
725 | 3cb9e1fe | Iustin Pop | This is needed if the Ganeti configuration is no longer consistent |
726 | 3cb9e1fe | Iustin Pop | with reality, as it will impact some disk operations. If no |
727 | 3cb9e1fe | Iustin Pop | arguments are given, all instances will be checked. |
728 | 3cb9e1fe | Iustin Pop | |
729 | 3cb9e1fe | Iustin Pop | Note that only active disks can be checked by this command; in case |
730 | 3cb9e1fe | Iustin Pop | a disk cannot be activated it's advised to use |
731 | e8f936b0 | Iustin Pop | **gnt-instance activate-disks \--ignore-size ...** to force |
732 | 3cb9e1fe | Iustin Pop | activation without regard to the current size. |
733 | 3cb9e1fe | Iustin Pop | |
734 | 3cb9e1fe | Iustin Pop | When the all disk sizes are consistent, the command will return no |
735 | 3cb9e1fe | Iustin Pop | output. Otherwise it will log details about the inconsistencies in |
736 | 3cb9e1fe | Iustin Pop | the configuration. |
737 | 3cb9e1fe | Iustin Pop | |
738 | 3cb9e1fe | Iustin Pop | VERIFY |
739 | 3cb9e1fe | Iustin Pop | ~~~~~~ |
740 | 3cb9e1fe | Iustin Pop | |
741 | e8f936b0 | Iustin Pop | | **verify** [\--no-nplus1-mem] [\--node-group *nodegroup*] |
742 | e8f936b0 | Iustin Pop | | [\--error-codes] [{-I|\--ignore-errors} *errorcode*] |
743 | e8f936b0 | Iustin Pop | | [{-I|\--ignore-errors} *errorcode*...] |
744 | 3cb9e1fe | Iustin Pop | |
745 | 3cb9e1fe | Iustin Pop | Verify correctness of cluster configuration. This is safe with |
746 | 3cb9e1fe | Iustin Pop | respect to running instances, and incurs no downtime of the |
747 | 3cb9e1fe | Iustin Pop | instances. |
748 | 3cb9e1fe | Iustin Pop | |
749 | 3cb9e1fe | Iustin Pop | If the ``--no-nplus1-mem`` option is given, Ganeti won't check |
750 | 3cb9e1fe | Iustin Pop | whether if it loses a node it can restart all the instances on |
751 | 3cb9e1fe | Iustin Pop | their secondaries (and report an error otherwise). |
752 | 3cb9e1fe | Iustin Pop | |
753 | 40167d65 | Adeodato Simo | With ``--node-group``, restrict the verification to those nodes and |
754 | 40167d65 | Adeodato Simo | instances that live in the named group. This will not verify global |
755 | 40167d65 | Adeodato Simo | settings, but will allow to perform verification of a group while other |
756 | 40167d65 | Adeodato Simo | operations are ongoing in other groups. |
757 | 40167d65 | Adeodato Simo | |
758 | 830fc5da | Andrea Spadaccini | The ``--error-codes`` option outputs each error in the following |
759 | 830fc5da | Andrea Spadaccini | parseable format: *ftype*:*ecode*:*edomain*:*name*:*msg*. |
760 | 830fc5da | Andrea Spadaccini | These fields have the following meaning: |
761 | 830fc5da | Andrea Spadaccini | |
762 | 830fc5da | Andrea Spadaccini | ftype |
763 | 830fc5da | Andrea Spadaccini | Failure type. Can be *WARNING* or *ERROR*. |
764 | 830fc5da | Andrea Spadaccini | |
765 | 830fc5da | Andrea Spadaccini | ecode |
766 | 830fc5da | Andrea Spadaccini | Error code of the failure. See below for a list of error codes. |
767 | 830fc5da | Andrea Spadaccini | |
768 | 830fc5da | Andrea Spadaccini | edomain |
769 | 830fc5da | Andrea Spadaccini | Can be *cluster*, *node* or *instance*. |
770 | 830fc5da | Andrea Spadaccini | |
771 | 830fc5da | Andrea Spadaccini | name |
772 | 830fc5da | Andrea Spadaccini | Contains the name of the item that is affected from the failure. |
773 | 830fc5da | Andrea Spadaccini | |
774 | 830fc5da | Andrea Spadaccini | msg |
775 | 830fc5da | Andrea Spadaccini | Contains a descriptive error message about the error |
776 | 830fc5da | Andrea Spadaccini | |
777 | 830fc5da | Andrea Spadaccini | ``gnt-cluster verify`` will have a non-zero exit code if at least one of |
778 | 830fc5da | Andrea Spadaccini | the failures that are found are of type *ERROR*. |
779 | 830fc5da | Andrea Spadaccini | |
780 | 830fc5da | Andrea Spadaccini | The ``--ignore-errors`` option can be used to change this behaviour, |
781 | 830fc5da | Andrea Spadaccini | because it demotes the error represented by the error code received as a |
782 | 830fc5da | Andrea Spadaccini | parameter to a warning. The option must be repeated for each error that |
783 | 830fc5da | Andrea Spadaccini | should be ignored (e.g.: ``-I ENODEVERSION -I ENODEORPHANLV``). The |
784 | 830fc5da | Andrea Spadaccini | ``--error-codes`` option can be used to determine the error code of a |
785 | 830fc5da | Andrea Spadaccini | given error. |
786 | 830fc5da | Andrea Spadaccini | |
787 | 830fc5da | Andrea Spadaccini | List of error codes: |
788 | 830fc5da | Andrea Spadaccini | |
789 | 830fc5da | Andrea Spadaccini | @CONSTANTS_ECODES@ |
790 | 830fc5da | Andrea Spadaccini | |
791 | 3cb9e1fe | Iustin Pop | VERIFY-DISKS |
792 | 3cb9e1fe | Iustin Pop | ~~~~~~~~~~~~ |
793 | 3cb9e1fe | Iustin Pop | |
794 | 3cb9e1fe | Iustin Pop | **verify-disks** |
795 | 3cb9e1fe | Iustin Pop | |
796 | 3cb9e1fe | Iustin Pop | The command checks which instances have degraded DRBD disks and |
797 | 3cb9e1fe | Iustin Pop | activates the disks of those instances. |
798 | 3cb9e1fe | Iustin Pop | |
799 | 3cb9e1fe | Iustin Pop | This command is run from the **ganeti-watcher** tool, which also |
800 | 3cb9e1fe | Iustin Pop | has a different, complementary algorithm for doing this check. |
801 | 3cb9e1fe | Iustin Pop | Together, these two should ensure that DRBD disks are kept |
802 | 3cb9e1fe | Iustin Pop | consistent. |
803 | 3cb9e1fe | Iustin Pop | |
804 | 3cb9e1fe | Iustin Pop | VERSION |
805 | 3cb9e1fe | Iustin Pop | ~~~~~~~ |
806 | 3cb9e1fe | Iustin Pop | |
807 | 3cb9e1fe | Iustin Pop | **version** |
808 | 3cb9e1fe | Iustin Pop | |
809 | 3cb9e1fe | Iustin Pop | Show the cluster version. |
810 | 9ff4f2c0 | Michael Hanselmann | |
811 | 7322bf7b | Iustin Pop | Tags |
812 | 7322bf7b | Iustin Pop | ~~~~ |
813 | 7322bf7b | Iustin Pop | |
814 | 7322bf7b | Iustin Pop | ADD-TAGS |
815 | 7322bf7b | Iustin Pop | ^^^^^^^^ |
816 | 7322bf7b | Iustin Pop | |
817 | 7322bf7b | Iustin Pop | **add-tags** [\--from *file*] {*tag*...} |
818 | 7322bf7b | Iustin Pop | |
819 | 7322bf7b | Iustin Pop | Add tags to the cluster. If any of the tags contains invalid |
820 | 7322bf7b | Iustin Pop | characters, the entire operation will abort. |
821 | 7322bf7b | Iustin Pop | |
822 | 7322bf7b | Iustin Pop | If the ``--from`` option is given, the list of tags will be |
823 | 7322bf7b | Iustin Pop | extended with the contents of that file (each line becomes a tag). |
824 | 7322bf7b | Iustin Pop | In this case, there is not need to pass tags on the command line |
825 | 7322bf7b | Iustin Pop | (if you do, both sources will be used). A file name of - will be |
826 | 7322bf7b | Iustin Pop | interpreted as stdin. |
827 | 7322bf7b | Iustin Pop | |
828 | 7322bf7b | Iustin Pop | LIST-TAGS |
829 | 7322bf7b | Iustin Pop | ^^^^^^^^^ |
830 | 7322bf7b | Iustin Pop | |
831 | 7322bf7b | Iustin Pop | **list-tags** |
832 | 7322bf7b | Iustin Pop | |
833 | 7322bf7b | Iustin Pop | List the tags of the cluster. |
834 | 7322bf7b | Iustin Pop | |
835 | 7322bf7b | Iustin Pop | REMOVE-TAGS |
836 | 7322bf7b | Iustin Pop | ^^^^^^^^^^^ |
837 | 7322bf7b | Iustin Pop | |
838 | 7322bf7b | Iustin Pop | **remove-tags** [\--from *file*] {*tag*...} |
839 | 7322bf7b | Iustin Pop | |
840 | 7322bf7b | Iustin Pop | Remove tags from the cluster. If any of the tags are not existing |
841 | 7322bf7b | Iustin Pop | on the cluster, the entire operation will abort. |
842 | 7322bf7b | Iustin Pop | |
843 | 7322bf7b | Iustin Pop | If the ``--from`` option is given, the list of tags to be removed will |
844 | 7322bf7b | Iustin Pop | be extended with the contents of that file (each line becomes a tag). |
845 | 7322bf7b | Iustin Pop | In this case, there is not need to pass tags on the command line (if |
846 | 7322bf7b | Iustin Pop | you do, tags from both sources will be removed). A file name of - will |
847 | 7322bf7b | Iustin Pop | be interpreted as stdin. |
848 | 7322bf7b | Iustin Pop | |
849 | 7322bf7b | Iustin Pop | SEARCH-TAGS |
850 | 7322bf7b | Iustin Pop | ^^^^^^^^^^^ |
851 | 7322bf7b | Iustin Pop | |
852 | 7322bf7b | Iustin Pop | **search-tags** {*pattern*} |
853 | 7322bf7b | Iustin Pop | |
854 | 7322bf7b | Iustin Pop | Searches the tags on all objects in the cluster (the cluster |
855 | 7322bf7b | Iustin Pop | itself, the nodes and the instances) for a given pattern. The |
856 | 7322bf7b | Iustin Pop | pattern is interpreted as a regular expression and a search will be |
857 | 7322bf7b | Iustin Pop | done on it (i.e. the given pattern is not anchored to the beggining |
858 | 7322bf7b | Iustin Pop | of the string; if you want that, prefix the pattern with ^). |
859 | 7322bf7b | Iustin Pop | |
860 | 7322bf7b | Iustin Pop | If no tags are matching the pattern, the exit code of the command |
861 | 7322bf7b | Iustin Pop | will be one. If there is at least one match, the exit code will be |
862 | 7322bf7b | Iustin Pop | zero. Each match is listed on one line, the object and the tag |
863 | 7322bf7b | Iustin Pop | separated by a space. The cluster will be listed as /cluster, a |
864 | 7322bf7b | Iustin Pop | node will be listed as /nodes/*name*, and an instance as |
865 | 7322bf7b | Iustin Pop | /instances/*name*. Example: |
866 | 7322bf7b | Iustin Pop | |
867 | 7322bf7b | Iustin Pop | :: |
868 | 7322bf7b | Iustin Pop | |
869 | 7322bf7b | Iustin Pop | # gnt-cluster search-tags time |
870 | 7322bf7b | Iustin Pop | /cluster ctime:2007-09-01 |
871 | 7322bf7b | Iustin Pop | /nodes/node1.example.com mtime:2007-10-04 |
872 | 7322bf7b | Iustin Pop | |
873 | 9ff4f2c0 | Michael Hanselmann | .. vim: set textwidth=72 : |
874 | 9ff4f2c0 | Michael Hanselmann | .. Local Variables: |
875 | 9ff4f2c0 | Michael Hanselmann | .. mode: rst |
876 | 9ff4f2c0 | Michael Hanselmann | .. fill-column: 72 |
877 | 9ff4f2c0 | Michael Hanselmann | .. End: |