root / man / gnt-cluster.sgml @ 9b94905f
History | View | Annotate | Download (26.6 kB)
1 |
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ |
---|---|
2 |
|
3 |
<!-- Fill in your name for FIRSTNAME and SURNAME. --> |
4 |
<!-- Please adjust the date whenever revising the manpage. --> |
5 |
<!ENTITY dhdate "<date>February 12, 2009</date>"> |
6 |
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are |
7 |
allowed: see man(7), man(1). --> |
8 |
<!ENTITY dhsection "<manvolnum>8</manvolnum>"> |
9 |
<!ENTITY dhucpackage "<refentrytitle>gnt-cluster</refentrytitle>"> |
10 |
<!ENTITY dhpackage "gnt-cluster"> |
11 |
|
12 |
<!ENTITY debian "<productname>Debian</productname>"> |
13 |
<!ENTITY gnu "<acronym>GNU</acronym>"> |
14 |
<!ENTITY gpl "&gnu; <acronym>GPL</acronym>"> |
15 |
<!ENTITY footer SYSTEM "footer.sgml"> |
16 |
]> |
17 |
|
18 |
<refentry> |
19 |
<refentryinfo> |
20 |
<copyright> |
21 |
<year>2006</year> |
22 |
<year>2007</year> |
23 |
<year>2008</year> |
24 |
<year>2009</year> |
25 |
<holder>Google Inc.</holder> |
26 |
</copyright> |
27 |
&dhdate; |
28 |
</refentryinfo> |
29 |
<refmeta> |
30 |
&dhucpackage; |
31 |
|
32 |
&dhsection; |
33 |
<refmiscinfo>ganeti 2.0</refmiscinfo> |
34 |
</refmeta> |
35 |
<refnamediv> |
36 |
<refname>&dhpackage;</refname> |
37 |
|
38 |
<refpurpose>ganeti administration, cluster-wide</refpurpose> |
39 |
</refnamediv> |
40 |
<refsynopsisdiv> |
41 |
<cmdsynopsis> |
42 |
<command>&dhpackage; </command> |
43 |
|
44 |
<arg choice="req">command</arg> |
45 |
<arg>arguments...</arg> |
46 |
</cmdsynopsis> |
47 |
</refsynopsisdiv> |
48 |
<refsect1> |
49 |
<title>DESCRIPTION</title> |
50 |
|
51 |
<para> |
52 |
The <command>&dhpackage;</command> is used for cluster-wide |
53 |
administration in the ganeti system. |
54 |
</para> |
55 |
|
56 |
</refsect1> |
57 |
<refsect1> |
58 |
<title>COMMANDS</title> |
59 |
|
60 |
<refsect2> |
61 |
<title>ADD-TAGS</title> |
62 |
|
63 |
<cmdsynopsis> |
64 |
<command>add-tags</command> |
65 |
<arg choice="opt">--from <replaceable>file</replaceable></arg> |
66 |
<arg choice="req" |
67 |
rep="repeat"><replaceable>tag</replaceable></arg> |
68 |
</cmdsynopsis> |
69 |
|
70 |
<para> |
71 |
Add tags to the cluster. If any of the tags contains invalid |
72 |
characters, the entire operation will abort. |
73 |
</para> |
74 |
|
75 |
<para> |
76 |
If the <option>--from</option> option is given, the list of |
77 |
tags will be extended with the contents of that file (each |
78 |
line becomes a tag). In this case, there is not need to pass |
79 |
tags on the command line (if you do, both sources will be |
80 |
used). A file name of - will be interpreted as stdin. |
81 |
</para> |
82 |
</refsect2> |
83 |
|
84 |
<refsect2> |
85 |
<title>COMMAND</title> |
86 |
|
87 |
<cmdsynopsis> |
88 |
<command>command</command> |
89 |
<arg>-n <replaceable>node</replaceable></arg> |
90 |
<arg choice="req"><replaceable>command</replaceable></arg> |
91 |
</cmdsynopsis> |
92 |
|
93 |
<para> |
94 |
Executes a command on all nodes. If the option |
95 |
<option>-n</option> is not given, the command will be executed |
96 |
on all nodes, otherwise it will be executed only on the |
97 |
node(s) specified. Use the option multiple times for running |
98 |
it on multiple nodes, like: |
99 |
|
100 |
<screen> |
101 |
# gnt-cluster command -n node1.example.com -n node2.example.com date |
102 |
</screen> |
103 |
|
104 |
</para> |
105 |
|
106 |
<para> |
107 |
The command is executed serially on the selected nodes. If the |
108 |
master node is present in the list, the command will be |
109 |
executed last on the master. Regarding the other nodes, the |
110 |
execution order is somewhat alphabetic, so that |
111 |
node2.example.com will be earlier than node10.example.com but |
112 |
after node1.example.com. |
113 |
</para> |
114 |
|
115 |
<para> |
116 |
So given the node names node1, node2, node3, node10, node11, |
117 |
with node3 being the master, the order will be: node1, node2, |
118 |
node10, node11, node3. |
119 |
</para> |
120 |
|
121 |
<para> |
122 |
The command is constructed by concatenating all other command |
123 |
line arguments. For example, to list the contents of the |
124 |
<filename class="directory">/etc</filename> directory on all |
125 |
nodes, run: |
126 |
|
127 |
<screen> |
128 |
# gnt-cluster command ls -l /etc |
129 |
</screen> |
130 |
|
131 |
and the command which will be executed will be |
132 |
<computeroutput>"ls -l /etc"</computeroutput> |
133 |
</para> |
134 |
</refsect2> |
135 |
|
136 |
<refsect2> |
137 |
<title>COPYFILE</title> |
138 |
|
139 |
<cmdsynopsis> |
140 |
<command>copyfile</command> |
141 |
<arg>-n <replaceable>node</replaceable></arg> |
142 |
<arg choice="req"><replaceable>file</replaceable></arg> |
143 |
</cmdsynopsis> |
144 |
|
145 |
<para> |
146 |
Copies a file to all or to some nodes. The argument specifies |
147 |
the source file (on the current system), the |
148 |
<option>-n</option> argument specifies the target node, or |
149 |
nodes if the option is given multiple times. If |
150 |
<option>-n</option> is not given at all, the file will be |
151 |
copied to all nodes. |
152 |
|
153 |
Example: |
154 |
<screen> |
155 |
# gnt-cluster -n node1.example.com -n node2.example.com copyfile /tmp/test |
156 |
</screen> |
157 |
|
158 |
This will copy the file <filename>/tmp/test</filename> from |
159 |
the current node to the two named nodes. |
160 |
</para> |
161 |
</refsect2> |
162 |
|
163 |
<refsect2> |
164 |
<title>DESTROY</title> |
165 |
|
166 |
<cmdsynopsis> |
167 |
<command>destroy</command> |
168 |
<arg choice="req">--yes-do-it</arg> |
169 |
</cmdsynopsis> |
170 |
|
171 |
<para> |
172 |
Remove all configuration files related to the cluster, so that |
173 |
a <command>gnt-cluster init</command> can be done again |
174 |
afterwards. |
175 |
</para> |
176 |
|
177 |
<para> |
178 |
Since this is a dangerous command, you are required to pass |
179 |
the argument <replaceable>--yes-do-it.</replaceable> |
180 |
</para> |
181 |
</refsect2> |
182 |
|
183 |
<refsect2> |
184 |
<title>GETMASTER</title> |
185 |
|
186 |
<cmdsynopsis> |
187 |
<command>getmaster</command> |
188 |
</cmdsynopsis> |
189 |
|
190 |
<para> |
191 |
Displays the current master node. |
192 |
</para> |
193 |
</refsect2> |
194 |
|
195 |
<refsect2> |
196 |
<title>INFO</title> |
197 |
|
198 |
<cmdsynopsis> |
199 |
<command>info</command> |
200 |
</cmdsynopsis> |
201 |
|
202 |
<para> |
203 |
Shows runtime cluster information: cluster name, architecture |
204 |
(32 or 64 bit), master node, node list and instance list. |
205 |
</para> |
206 |
</refsect2> |
207 |
|
208 |
<refsect2> |
209 |
<title>INIT</title> |
210 |
|
211 |
<cmdsynopsis> |
212 |
<command>init</command> |
213 |
<sbr> |
214 |
<arg>-s <replaceable>secondary_ip</replaceable></arg> |
215 |
<sbr> |
216 |
<arg>-g <replaceable>vg-name</replaceable></arg> |
217 |
<sbr> |
218 |
<arg>--master-netdev <replaceable>vg-name</replaceable></arg> |
219 |
<sbr> |
220 |
<arg>-m <replaceable>mac-prefix</replaceable></arg> |
221 |
<sbr> |
222 |
<arg>--no-lvm-storage</arg> |
223 |
<sbr> |
224 |
<arg>--no-etc-hosts</arg> |
225 |
<sbr> |
226 |
<arg>--no-ssh-init</arg> |
227 |
<sbr> |
228 |
<arg>--file-storage-dir <replaceable>dir</replaceable></arg> |
229 |
<sbr> |
230 |
<arg>--enabled-hypervisors <replaceable>hypervisors</replaceable></arg> |
231 |
<sbr> |
232 |
<arg>-t <replaceable>hypervisor name</replaceable></arg> |
233 |
<sbr> |
234 |
<arg>--hypervisor-parameters <replaceable>hypervisor</replaceable>:<replaceable>hv-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>hv-param</replaceable>=<replaceable>value</replaceable></arg></arg> |
235 |
<sbr> |
236 |
<arg>--backend-parameters <replaceable>be-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>be-param</replaceable>=<replaceable>value</replaceable></arg></arg> |
237 |
<sbr> |
238 |
<arg>--nic-parameters <replaceable>nic-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>nic-param</replaceable>=<replaceable>value</replaceable></arg></arg> |
239 |
<sbr> |
240 |
<arg choice="req"><replaceable>clustername</replaceable></arg> |
241 |
</cmdsynopsis> |
242 |
|
243 |
<para> |
244 |
This commands is only run once initially on the first node of |
245 |
the cluster. It will initialize the cluster configuration and |
246 |
setup ssh-keys and more. |
247 |
</para> |
248 |
|
249 |
<para> |
250 |
Note that the <replaceable>clustername</replaceable> is not |
251 |
any random name. It has to be resolvable to an IP address |
252 |
using DNS, and it is best if you give the fully-qualified |
253 |
domain name. This hostname must resolve to an IP address |
254 |
reserved exclusively for this purpose. |
255 |
</para> |
256 |
|
257 |
<para> |
258 |
The cluster can run in two modes: single-home or |
259 |
dual-homed. In the first case, all traffic (both public |
260 |
traffic, inter-node traffic and data replication traffic) goes |
261 |
over the same interface. In the dual-homed case, the data |
262 |
replication traffic goes over the second network. The |
263 |
<option>-s</option> option here marks the cluster as |
264 |
dual-homed and its parameter represents this node's address on |
265 |
the second network. If you initialise the cluster with |
266 |
<option>-s</option>, all nodes added must have a secondary IP |
267 |
as well. |
268 |
</para> |
269 |
|
270 |
<para> |
271 |
Note that for Ganeti it doesn't matter if the secondary |
272 |
network is actually a separate physical network, or is done |
273 |
using tunneling, etc. For performance reasons, it's |
274 |
recommended to use a separate network, of course. |
275 |
</para> |
276 |
|
277 |
<para> |
278 |
The <option>-g</option> option will let you specify a volume group |
279 |
different than 'xenvg' for ganeti to use when creating instance disks. |
280 |
This volume group must have the same name on all nodes. Once the |
281 |
cluster is initialized this can be altered by using the |
282 |
<command>modify</command> command. If you don't want to use lvm |
283 |
storage at all use the <option>--no-lvm-storage</option> option. |
284 |
Once the cluster is initialized you can change this setup with the |
285 |
<command>modify</command> command. |
286 |
</para> |
287 |
|
288 |
<para> |
289 |
The <option>--master-netdev</option> option is useful for specifying a |
290 |
different interface on which the master will activate its IP address. |
291 |
It's important that all nodes have this interface because you'll need |
292 |
it for a master failover. |
293 |
</para> |
294 |
|
295 |
<para> |
296 |
The <option>-m</option> option will let you specify a three byte prefix |
297 |
under which the virtual MAC addresses of your instances will be |
298 |
generated. The prefix must be specified in the format XX:XX:XX and the |
299 |
default is aa:00:00. |
300 |
</para> |
301 |
|
302 |
<para> |
303 |
The <option>--no-lvm-storage</option> option allows you to initialize |
304 |
the cluster without lvm support. This means that only instances using |
305 |
files as storage backend will be possible to create. Once the cluster |
306 |
is initialized you can change this setup with the |
307 |
<command>modify</command> command. |
308 |
</para> |
309 |
|
310 |
<para> |
311 |
The <option>--no-etc-hosts</option> option allows you to initialize the |
312 |
cluster without modifying the <filename>/etc/hosts</filename> file. |
313 |
</para> |
314 |
|
315 |
<para> |
316 |
The <option>--no-ssh-init</option> option allows you to initialize the |
317 |
cluster without creating or distributing SSH key pairs. |
318 |
</para> |
319 |
|
320 |
<para> |
321 |
The <option>--file-storage-dir</option> option allows you |
322 |
set the directory to use for storing the instance disk |
323 |
files when using file storage as backend for instance disks. |
324 |
</para> |
325 |
|
326 |
<para> |
327 |
The <option>--enabled-hypervisors</option> option allows you |
328 |
to set the list of hypervisors that will be enabled for |
329 |
this cluster. Instance hypervisors can only be choosen from |
330 |
the list of enabled hypervisors, and the first entry of this list |
331 |
will be used by default. Currently, the following hypervisors are |
332 |
available: |
333 |
</para> |
334 |
|
335 |
<para> |
336 |
<variablelist> |
337 |
<varlistentry> |
338 |
<term>xen-pvm</term> |
339 |
<listitem> |
340 |
<para> |
341 |
Xen PVM hypervisor |
342 |
</para> |
343 |
</listitem> |
344 |
</varlistentry> |
345 |
<varlistentry> |
346 |
<term>xen-hvm</term> |
347 |
<listitem> |
348 |
<para> |
349 |
Xen HVM hypervisor |
350 |
</para> |
351 |
</listitem> |
352 |
</varlistentry> |
353 |
<varlistentry> |
354 |
<term>kvm</term> |
355 |
<listitem> |
356 |
<para> |
357 |
Linux KVM hypervisor |
358 |
</para> |
359 |
</listitem> |
360 |
</varlistentry> |
361 |
<varlistentry> |
362 |
<term>fake</term> |
363 |
<listitem> |
364 |
<para> |
365 |
fake hypervisor for development/testing |
366 |
</para> |
367 |
</listitem> |
368 |
</varlistentry> |
369 |
</variablelist> |
370 |
</para> |
371 |
|
372 |
<para> |
373 |
Either a single hypervisor name or a comma-separated list of |
374 |
hypervisor names can be specified. If this option is not |
375 |
specified, only the xen-pvm hypervisor is enabled by default. |
376 |
</para> |
377 |
|
378 |
<para> |
379 |
The <option>--backend-parameters</option> option allows you to set |
380 |
the default backend parameters for the cluster. The parameter |
381 |
format is a comma-separated list of key=value pairs with the |
382 |
following supported keys: |
383 |
</para> |
384 |
|
385 |
<para> |
386 |
<variablelist> |
387 |
<varlistentry> |
388 |
<term>vcpus</term> |
389 |
<listitem> |
390 |
<para> |
391 |
Number of VCPUs to set for an instance by default, must |
392 |
be an integer, will be set to 1 if no specified. |
393 |
</para> |
394 |
</listitem> |
395 |
</varlistentry> |
396 |
<varlistentry> |
397 |
<term>memory</term> |
398 |
<listitem> |
399 |
<para> |
400 |
Amount of memory to allocate for an instance by default, |
401 |
can be either an integer or an integer followed by a |
402 |
unit (M for mebibytes and G for gibibytes are |
403 |
supported), will be set to 128M if not specified. |
404 |
</para> |
405 |
</listitem> |
406 |
</varlistentry> |
407 |
<varlistentry> |
408 |
<term>auto_balance</term> |
409 |
<listitem> |
410 |
<para> |
411 |
Value of the auto_balance flag for instances to use by |
412 |
default, will be set to true if not specified. |
413 |
</para> |
414 |
</listitem> |
415 |
</varlistentry> |
416 |
</variablelist> |
417 |
</para> |
418 |
|
419 |
<para> |
420 |
The <option>--hypervisor-parameters</option> option allows you |
421 |
to set default hypervisor specific parameters for the |
422 |
cluster. The format of this option is the name of the |
423 |
hypervisor, followed by a colon and a comma-separated list of |
424 |
key=value pairs. The keys available for each hypervisors are |
425 |
detailed int the <citerefentry> |
426 |
<refentrytitle>gnt-instance</refentrytitle> |
427 |
<manvolnum>8</manvolnum> </citerefentry> man page, in the |
428 |
<command>add</command> command. |
429 |
</para> |
430 |
|
431 |
<para> |
432 |
The <option>--nic-parameters</option> option allows you to set |
433 |
the default nic parameters for the cluster. The parameter |
434 |
format is a comma-separated list of key=value pairs with the |
435 |
following supported keys: |
436 |
<variablelist> |
437 |
<varlistentry> |
438 |
<term>mode</term> |
439 |
<listitem> |
440 |
<para> |
441 |
The default nic mode, 'routed' or 'bridged'. |
442 |
</para> |
443 |
</listitem> |
444 |
</varlistentry> |
445 |
<varlistentry> |
446 |
<term>link</term> |
447 |
<listitem> |
448 |
<para> |
449 |
In bridged mode the default NIC bridge. In routed mode it |
450 |
represents an hypervisor-vif-script dependent value to allow |
451 |
different instance groups. For example under the KVM default |
452 |
network script it is interpreted as a routing table number or |
453 |
name. |
454 |
</para> |
455 |
</listitem> |
456 |
</varlistentry> |
457 |
</variablelist> |
458 |
</para> |
459 |
|
460 |
</refsect2> |
461 |
|
462 |
<refsect2> |
463 |
<title>LIST-TAGS</title> |
464 |
|
465 |
<cmdsynopsis> |
466 |
<command>list-tags</command> |
467 |
</cmdsynopsis> |
468 |
|
469 |
<para>List the tags of the cluster.</para> |
470 |
</refsect2> |
471 |
|
472 |
<refsect2> |
473 |
<title>MASTERFAILOVER</title> |
474 |
|
475 |
<cmdsynopsis> |
476 |
<command>masterfailover</command> |
477 |
<arg>--no-voting</arg> |
478 |
</cmdsynopsis> |
479 |
|
480 |
<para> |
481 |
Failover the master role to the current node. |
482 |
</para> |
483 |
|
484 |
<para> |
485 |
The <option>--no-voting</option> option skips the remote node agreement |
486 |
checks. This is dangerous, but necessary in some cases (for example |
487 |
failing over the master role in a 2 node cluster with the original master |
488 |
down). If the original master then comes up, it won't be able to start |
489 |
its master daemon because it won't have enough votes, but so won't the |
490 |
new master, if the master daemon ever needs a restart. You can pass |
491 |
--no-voting to ganeti-masterd on the new master to solve this problem, |
492 |
and gnt-cluster redist-conf to make sure the cluster is consistent again. |
493 |
</para> |
494 |
|
495 |
</refsect2> |
496 |
|
497 |
<refsect2> |
498 |
<title>MODIFY</title> |
499 |
|
500 |
<cmdsynopsis> |
501 |
<command>modify</command> |
502 |
<sbr> |
503 |
<arg choice="opt">-g <replaceable>vg-name</replaceable></arg> |
504 |
<sbr> |
505 |
<arg choice="opt">--no-lvm-storage</arg> |
506 |
<sbr> |
507 |
<arg choice="opt">--enabled-hypervisors |
508 |
<replaceable>hypervisors</replaceable></arg> |
509 |
<sbr> |
510 |
<arg choice="opt">--hypervisor-parameters <replaceable>hypervisor</replaceable>:<replaceable>hv-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>hv-param</replaceable>=<replaceable>value</replaceable></arg></arg> |
511 |
<sbr> |
512 |
<arg choice="opt">--backend-parameters <replaceable>be-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>be-param</replaceable>=<replaceable>value</replaceable></arg></arg> |
513 |
<sbr> |
514 |
<arg choice="opt">--nic-parameters <replaceable>nic-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>nic-param</replaceable>=<replaceable>value</replaceable></arg></arg> |
515 |
<sbr> |
516 |
<arg>-C <replaceable>candidate_pool_size</replaceable></arg> |
517 |
|
518 |
</cmdsynopsis> |
519 |
|
520 |
<para> |
521 |
Modify the options for the cluster. |
522 |
</para> |
523 |
|
524 |
<para> |
525 |
The <option>-g</option>, <option>--no-lvm-storarge</option>, |
526 |
<option>--enabled-hypervisors</option>, |
527 |
<option>--hypervisor-parameters</option>, |
528 |
<option>--backend-parameters</option> and |
529 |
<option>--nic-parameters</option> and options are |
530 |
described in the <command>init</command> command. |
531 |
</para> |
532 |
|
533 |
<para> |
534 |
The <option>-C</option> options specifies the |
535 |
<varname>candidate_pool_size</varname> cluster parameter. This |
536 |
is the number of nodes that the master will try to keep as |
537 |
<literal>master_candidates</literal>. For more details about |
538 |
this role and other node roles, see the <citerefentry> |
539 |
<refentrytitle>ganeti</refentrytitle><manvolnum>7</manvolnum> |
540 |
</citerefentry>. If you increase the size, the master will |
541 |
automatically promote as many nodes as required and possible |
542 |
to reach the intended number. |
543 |
</para> |
544 |
</refsect2> |
545 |
|
546 |
<refsect2> |
547 |
<title>QUEUE</title> |
548 |
|
549 |
<cmdsynopsis> |
550 |
<command>queue</command> |
551 |
<arg choice="opt">drain</arg> |
552 |
<arg choice="opt">undrain</arg> |
553 |
<arg choice="opt">info</arg> |
554 |
|
555 |
</cmdsynopsis> |
556 |
|
557 |
<para> |
558 |
Change job queue properties. |
559 |
</para> |
560 |
|
561 |
<para> |
562 |
The <option>drain</option> option sets the drain flag on the |
563 |
job queue. No new jobs will be accepted, but jobs already in |
564 |
the queue will be processed. |
565 |
</para> |
566 |
|
567 |
<para> |
568 |
The <option>undrain</option> will unset the drain flag on the |
569 |
job queue. New jobs will be accepted. |
570 |
</para> |
571 |
|
572 |
<para> |
573 |
The <option>info</option> option shows the properties of the |
574 |
job queue. |
575 |
</para> |
576 |
</refsect2> |
577 |
|
578 |
<refsect2> |
579 |
<title>WATCHER</title> |
580 |
|
581 |
<cmdsynopsis> |
582 |
<command>watcher</command> |
583 |
<group choice="req"> |
584 |
<arg>pause <replaceable>duration</replaceable></arg> |
585 |
<arg>continue</arg> |
586 |
<arg>info</arg> |
587 |
</group> |
588 |
</cmdsynopsis> |
589 |
|
590 |
<para> |
591 |
Make the watcher pause or let it continue. |
592 |
</para> |
593 |
|
594 |
<para> |
595 |
The <option>pause</option> option causes the watcher to pause for |
596 |
<replaceable>duration</replaceable> seconds. |
597 |
</para> |
598 |
|
599 |
<para> |
600 |
The <option>continue</option> option will let the watcher continue. |
601 |
</para> |
602 |
|
603 |
<para> |
604 |
The <option>info</option> option shows whether the watcher is currently |
605 |
paused. |
606 |
</para> |
607 |
</refsect2> |
608 |
|
609 |
<refsect2> |
610 |
<title>redist-conf</title> |
611 |
<cmdsynopsis> |
612 |
<command>redist-conf</command> |
613 |
<arg>--submit</arg> |
614 |
</cmdsynopsis> |
615 |
|
616 |
<para> |
617 |
This command forces a full push of configuration files from |
618 |
the master node to the other nodes in the cluster. This is |
619 |
normally not needed, but can be run if the |
620 |
<command>verify</command> complains about configuration |
621 |
mismatches. |
622 |
</para> |
623 |
|
624 |
<para> |
625 |
The <option>--submit</option> option is used to send the job |
626 |
to the master daemon but not wait for its completion. The job |
627 |
ID will be shown so that it can be examined via |
628 |
<command>gnt-job info</command>. |
629 |
</para> |
630 |
|
631 |
</refsect2> |
632 |
<refsect2> |
633 |
<title>REMOVE-TAGS</title> |
634 |
|
635 |
<cmdsynopsis> |
636 |
<command>remove-tags</command> |
637 |
<arg choice="opt">--from <replaceable>file</replaceable></arg> |
638 |
<arg choice="req" |
639 |
rep="repeat"><replaceable>tag</replaceable></arg> |
640 |
</cmdsynopsis> |
641 |
|
642 |
<para> |
643 |
Remove tags from the cluster. If any of the tags are not |
644 |
existing on the cluster, the entire operation will abort. |
645 |
</para> |
646 |
|
647 |
<para> |
648 |
If the <option>--from</option> option is given, the list of |
649 |
tags will be extended with the contents of that file (each |
650 |
line becomes a tag). In this case, there is not need to pass |
651 |
tags on the command line (if you do, both sources will be |
652 |
used). A file name of - will be interpreted as stdin. |
653 |
</para> |
654 |
</refsect2> |
655 |
|
656 |
<refsect2> |
657 |
<title>RENAME</title> |
658 |
|
659 |
<cmdsynopsis> |
660 |
<command>rename</command> |
661 |
<arg>-f</arg> |
662 |
<arg choice="req"><replaceable>name</replaceable></arg> |
663 |
</cmdsynopsis> |
664 |
|
665 |
<para> |
666 |
Renames the cluster and in the process updates the master IP |
667 |
address to the one the new name resolves to. At least one of |
668 |
either the name or the IP address must be different, otherwise |
669 |
the operation will be aborted. |
670 |
</para> |
671 |
|
672 |
<para> |
673 |
Note that since this command can be dangerous (especially when |
674 |
run over SSH), the command will require confirmation unless |
675 |
run with the <option>-f</option> option. |
676 |
</para> |
677 |
</refsect2> |
678 |
|
679 |
<refsect2> |
680 |
<title>REPAIR-DISK-SIZES</title> |
681 |
|
682 |
<cmdsynopsis> |
683 |
<command>repair-disk-sizes</command> |
684 |
<arg rep="repeat">instance</arg> |
685 |
</cmdsynopsis> |
686 |
|
687 |
<para> |
688 |
This command checks that the recorded size of the given |
689 |
instance's disks matches the actual size and updates any |
690 |
mismatches found. This is needed if the Ganeti configuration |
691 |
is no longer consistent with reality, as it will impact some |
692 |
disk operations. If no arguments are given, all instances will |
693 |
be checked. |
694 |
</para> |
695 |
|
696 |
<para> |
697 |
Note that only active disks can be checked by this command; in |
698 |
case a disk cannot be activated it's advised to use |
699 |
<command>gnt-instance activate-disks --ignore-size |
700 |
...</command> to force activation without regard to the |
701 |
current size. |
702 |
</para> |
703 |
|
704 |
<para> |
705 |
When the all disk sizes are consistent, the command will |
706 |
return no output. Otherwise it will log details about the |
707 |
inconsistencies in the configuration. |
708 |
</para> |
709 |
</refsect2> |
710 |
|
711 |
<refsect2> |
712 |
<title>SEARCH-TAGS</title> |
713 |
|
714 |
<cmdsynopsis> |
715 |
<command>search-tags</command> |
716 |
<arg choice="req"><replaceable>pattern</replaceable></arg> |
717 |
</cmdsynopsis> |
718 |
|
719 |
<para> |
720 |
Searches the tags on all objects in the cluster (the cluster |
721 |
itself, the nodes and the instances) for a given pattern. The |
722 |
pattern is interpreted as a regular expression and a search |
723 |
will be done on it (i.e. the given pattern is not anchored to |
724 |
the beggining of the string; if you want that, prefix the |
725 |
pattern with <literal>^</literal>). |
726 |
</para> |
727 |
|
728 |
<para> |
729 |
If no tags are matching the pattern, the exit code of the |
730 |
command will be one. If there is at least one match, the exit |
731 |
code will be zero. Each match is listed on one line, the |
732 |
object and the tag separated by a space. The cluster will be |
733 |
listed as <filename>/cluster</filename>, a node will be listed |
734 |
as |
735 |
<filename>/nodes/<replaceable>name</replaceable></filename>, |
736 |
and an instance as |
737 |
<filename>/instances/<replaceable>name</replaceable></filename>. |
738 |
Example: |
739 |
</para> |
740 |
<screen> |
741 |
# gnt-cluster search-tags time |
742 |
/cluster ctime:2007-09-01 |
743 |
/nodes/node1.example.com mtime:2007-10-04 |
744 |
</screen> |
745 |
</refsect2> |
746 |
|
747 |
<refsect2> |
748 |
<title>VERIFY</title> |
749 |
|
750 |
<cmdsynopsis> |
751 |
<command>verify</command> |
752 |
<arg choice="opt">--no-nplus1-mem</arg> |
753 |
</cmdsynopsis> |
754 |
|
755 |
<para> |
756 |
Verify correctness of cluster configuration. This is safe with |
757 |
respect to running instances, and incurs no downtime of the |
758 |
instances. |
759 |
</para> |
760 |
|
761 |
<para> |
762 |
If the <option>--no-nplus1-mem</option> option is given, ganeti won't |
763 |
check whether if it loses a node it can restart all the instances on |
764 |
their secondaries (and report an error otherwise). |
765 |
</para> |
766 |
</refsect2> |
767 |
|
768 |
<refsect2> |
769 |
<title>VERIFY-DISKS</title> |
770 |
|
771 |
<cmdsynopsis> |
772 |
<command>verify-disks</command> |
773 |
</cmdsynopsis> |
774 |
|
775 |
<para> |
776 |
The command checks which instances have degraded DRBD disks |
777 |
and activates the disks of those instances. |
778 |
</para> |
779 |
|
780 |
<para> |
781 |
This command is run from the <command>ganeti-watcher</command> |
782 |
tool, which also has a different, complementary algorithm for |
783 |
doing this check. Together, these two should ensure that DRBD |
784 |
disks are kept consistent. |
785 |
</para> |
786 |
</refsect2> |
787 |
|
788 |
<refsect2> |
789 |
<title>VERSION</title> |
790 |
|
791 |
<cmdsynopsis> |
792 |
<command>version</command> |
793 |
</cmdsynopsis> |
794 |
|
795 |
<para> |
796 |
Show the cluster version. |
797 |
</para> |
798 |
</refsect2> |
799 |
|
800 |
</refsect1> |
801 |
|
802 |
&footer; |
803 |
|
804 |
</refentry> |
805 |
|
806 |
<!-- Keep this comment at the end of the file |
807 |
Local variables: |
808 |
mode: sgml |
809 |
sgml-omittag:t |
810 |
sgml-shorttag:t |
811 |
sgml-minimize-attributes:nil |
812 |
sgml-always-quote-attributes:t |
813 |
sgml-indent-step:2 |
814 |
sgml-indent-data:t |
815 |
sgml-parent-document:nil |
816 |
sgml-default-dtd-file:nil |
817 |
sgml-exposed-tags:nil |
818 |
sgml-local-catalogs:nil |
819 |
sgml-local-ecat-files:nil |
820 |
End: |
821 |
--> |