Statistics
| Branch: | Tag: | Revision:

root / man / gnt-cluster.sgml @ d729e03a

History | View | Annotate | Download (31.9 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>--use-replication-network</arg>
142
        <arg>-n <replaceable>node</replaceable></arg>
143
        <arg choice="req"><replaceable>file</replaceable></arg>
144
      </cmdsynopsis>
145

    
146
      <para>
147
        Copies a file to all or to some nodes. The argument specifies
148
        the source file (on the current system), the
149
        <option>-n</option> argument specifies the target node, or
150
        nodes if the option is given multiple times. If
151
        <option>-n</option> is not given at all, the file will be
152
        copied to all nodes.
153

    
154
        Passing the <option>--use-replication-network</option> option
155
        will cause the copy to be done over the replication network
156
        (only matters if the primary/secondary IPs are different).
157

    
158
        Example:
159
        <screen>
160
          # gnt-cluster -n node1.example.com -n node2.example.com copyfile /tmp/test
161
        </screen>
162

    
163
        This will copy the file <filename>/tmp/test</filename> from
164
        the current node to the two named nodes.
165
      </para>
166
    </refsect2>
167

    
168
    <refsect2>
169
      <title>DESTROY</title>
170

    
171
      <cmdsynopsis>
172
        <command>destroy</command>
173
        <arg choice="req">--yes-do-it</arg>
174
      </cmdsynopsis>
175

    
176
      <para>
177
        Remove all configuration files related to the cluster, so that
178
        a <command>gnt-cluster init</command> can be done again
179
        afterwards.
180
      </para>
181

    
182
      <para>
183
        Since this is a dangerous command, you are required to pass
184
        the argument <replaceable>--yes-do-it.</replaceable>
185
      </para>
186
    </refsect2>
187

    
188
    <refsect2>
189
      <title>GETMASTER</title>
190

    
191
      <cmdsynopsis>
192
        <command>getmaster</command>
193
      </cmdsynopsis>
194

    
195
      <para>
196
        Displays the current master node.
197
      </para>
198
    </refsect2>
199

    
200
    <refsect2>
201
      <title>INFO</title>
202

    
203
      <cmdsynopsis>
204
        <command>info</command>
205
        <arg>--roman</arg>
206
      </cmdsynopsis>
207

    
208
      <para>
209
        Shows runtime cluster information: cluster name, architecture
210
        (32 or 64 bit), master node, node list and instance list.
211
      </para>
212

    
213
      <para>
214
        Passing the <option>--roman</option> option gnt-cluster info will try
215
        to print its integer fields in a latin friendly way. This allows
216
        further diffusion of Ganeti among ancient cultures.
217
      </para>
218

    
219
    </refsect2>
220

    
221
    <refsect2>
222
      <title>INIT</title>
223

    
224
      <cmdsynopsis>
225
        <command>init</command>
226
        <sbr>
227
        <arg>-s <replaceable>secondary_ip</replaceable></arg>
228
        <sbr>
229
        <arg>-g <replaceable>vg-name</replaceable></arg>
230
        <sbr>
231
        <arg>--master-netdev <replaceable>vg-name</replaceable></arg>
232
        <sbr>
233
        <arg>-m <replaceable>mac-prefix</replaceable></arg>
234
        <sbr>
235
        <arg>--no-lvm-storage</arg>
236
        <sbr>
237
        <arg>--no-etc-hosts</arg>
238
        <sbr>
239
        <arg>--no-ssh-init</arg>
240
        <sbr>
241
        <arg>--file-storage-dir <replaceable>dir</replaceable></arg>
242
        <sbr>
243
        <arg>--enabled-hypervisors <replaceable>hypervisors</replaceable></arg>
244
        <sbr>
245
        <arg>-t <replaceable>hypervisor name</replaceable></arg>
246
        <sbr>
247
        <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>
248
        <sbr>
249
        <arg>--backend-parameters <replaceable>be-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>be-param</replaceable>=<replaceable>value</replaceable></arg></arg>
250
        <sbr>
251
        <arg>--nic-parameters <replaceable>nic-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>nic-param</replaceable>=<replaceable>value</replaceable></arg></arg>
252
        <sbr>
253
        <arg>--maintain-node-health <group choice="req"><arg>yes</arg><arg>no</arg></group></arg>
254
        <sbr>
255
        <arg>--uid-pool <replaceable>user-id pool definition</replaceable></arg>
256
        <sbr>
257
        <arg choice="req"><replaceable>clustername</replaceable></arg>
258
      </cmdsynopsis>
259

    
260
      <para>
261
        This commands is only run once initially on the first node of
262
        the cluster. It will initialize the cluster configuration and
263
        setup ssh-keys and more.
264
      </para>
265

    
266
      <para>
267
        Note that the <replaceable>clustername</replaceable> is not
268
        any random name. It has to be resolvable to an IP address
269
        using DNS, and it is best if you give the fully-qualified
270
        domain name. This hostname must resolve to an IP address
271
        reserved exclusively for this purpose.
272
      </para>
273

    
274
      <para>
275
        The cluster can run in two modes: single-home or
276
        dual-homed. In the first case, all traffic (both public
277
        traffic, inter-node traffic and data replication traffic) goes
278
        over the same interface. In the dual-homed case, the data
279
        replication traffic goes over the second network. The
280
        <option>-s</option> option here marks the cluster as
281
        dual-homed and its parameter represents this node's address on
282
        the second network. If you initialise the cluster with
283
        <option>-s</option>, all nodes added must have a secondary IP
284
        as well.
285
      </para>
286

    
287
      <para>
288
        Note that for Ganeti it doesn't matter if the secondary
289
        network is actually a separate physical network, or is done
290
        using tunneling, etc. For performance reasons, it's
291
        recommended to use a separate network, of course.
292
      </para>
293

    
294
      <para>
295
        The <option>-g</option> option will let you specify a volume group
296
        different than 'xenvg' for ganeti to use when creating instance disks.
297
        This volume group must have the same name on all nodes. Once the
298
        cluster is initialized this can be altered by using the
299
        <command>modify</command> command. If you don't want to use lvm
300
        storage at all use the <option>--no-lvm-storage</option> option.
301
        Once the cluster is initialized you can change this setup with the
302
        <command>modify</command> command.
303
      </para>
304

    
305
      <para>
306
        The <option>--master-netdev</option> option is useful for specifying a
307
        different interface on which the master will activate its IP address.
308
        It's important that all nodes have this interface because you'll need
309
        it for a master failover.
310
      </para>
311

    
312
      <para>
313
        The <option>-m</option> option will let you specify a three byte prefix
314
        under which the virtual MAC addresses of your instances will be
315
        generated. The prefix must be specified in the format XX:XX:XX and the
316
        default is aa:00:00.
317
      </para>
318

    
319
      <para>
320
        The <option>--no-lvm-storage</option> option allows you to initialize
321
        the cluster without lvm support. This means that only instances using
322
        files as storage backend will be possible to create. Once the cluster
323
        is initialized you can change this setup with the
324
        <command>modify</command> command.
325
      </para>
326

    
327
      <para>
328
        The <option>--no-etc-hosts</option> option allows you to initialize the
329
        cluster without modifying the <filename>/etc/hosts</filename> file.
330
      </para>
331

    
332
      <para>
333
        The <option>--no-ssh-init</option> option allows you to initialize the
334
        cluster without creating or distributing SSH key pairs.
335
      </para>
336

    
337
      <para>
338
        The <option>--file-storage-dir</option> option allows you
339
        set the directory to use for storing the instance disk
340
        files when using file storage as backend for instance disks.
341
      </para>
342

    
343
      <para>
344
        The <option>--enabled-hypervisors</option> option allows you
345
        to set the list of hypervisors that will be enabled for
346
        this cluster. Instance hypervisors can only be chosen from
347
        the list of enabled hypervisors, and the first entry of this list
348
        will be used by default. Currently, the following hypervisors are
349
        available:
350
      </para>
351

    
352
      <para>
353
        <variablelist>
354
          <varlistentry>
355
            <term>xen-pvm</term>
356
            <listitem>
357
              <para>
358
                Xen PVM hypervisor
359
              </para>
360
            </listitem>
361
          </varlistentry>
362
          <varlistentry>
363
            <term>xen-hvm</term>
364
            <listitem>
365
              <para>
366
                Xen HVM hypervisor
367
              </para>
368
            </listitem>
369
          </varlistentry>
370
          <varlistentry>
371
            <term>kvm</term>
372
            <listitem>
373
              <para>
374
                Linux KVM hypervisor
375
              </para>
376
            </listitem>
377
          </varlistentry>
378
          <varlistentry>
379
            <term>chroot</term>
380
            <listitem>
381
              <para>
382
                a simple chroot manager that starts chroot based on a
383
                script at the root of the filesystem holding the
384
                chroot
385
          <varlistentry>
386
            <term>fake</term>
387
            <listitem>
388
              <para>
389
                fake hypervisor for development/testing
390
              </para>
391
            </listitem>
392
          </varlistentry>
393
        </variablelist>
394
      </para>
395

    
396
      <para>
397
        Either a single hypervisor name or a comma-separated list of
398
        hypervisor names can be specified. If this option is not
399
        specified, only the xen-pvm hypervisor is enabled by default.
400
      </para>
401

    
402
      <para>
403
        The <option>--hypervisor-parameters</option> option allows you
404
        to set default hypervisor specific parameters for the
405
        cluster. The format of this option is the name of the
406
        hypervisor, followed by a colon and a comma-separated list of
407
        key=value pairs. The keys available for each hypervisors are
408
        detailed in the <citerefentry>
409
        <refentrytitle>gnt-instance</refentrytitle>
410
        <manvolnum>8</manvolnum> </citerefentry> man page, in the
411
        <command>add</command> command plus the following parameters
412
        which are only configurable globally (at cluster level):
413

    
414
        <variablelist>
415
          <varlistentry>
416
            <term>migration_port</term>
417
            <listitem>
418
              <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara>
419

    
420
              <para>
421
                This options specifies the TCP port to use for
422
                live-migration. For Xen, the same port should be
423
                configured on all nodes in
424
                the <filename>/etc/xen/xend-config.sxp</filename>
425
                file, under the
426
                key <quote>xend-relocation-port</quote>.
427
              </para>
428
            </listitem>
429
          </varlistentry>
430
          <varlistentry>
431
            <term>migration_bandwidth</term>
432
            <listitem>
433
              <simpara>Valid for the KVM hypervisor.</simpara>
434

    
435
              <para>
436
                This option specifies the maximum bandwidth that KVM will
437
                use for instance live migrations. The value is in MiB/s.
438
              </para>
439

    
440
              <simpara>This option is only effective with kvm versions >= 78
441
              and qemu-kvm versions >= 0.10.0.
442
              </simpara>
443
            </listitem>
444
          </varlistentry>
445
        </variablelist>
446

    
447
      </para>
448

    
449
      <para>
450
        The <option>--backend-parameters</option> option allows you to set
451
        the default backend parameters for the cluster. The parameter
452
        format is a comma-separated list of key=value pairs with the
453
        following supported keys:
454
      </para>
455

    
456
      <para>
457
        <variablelist>
458
          <varlistentry>
459
            <term>vcpus</term>
460
            <listitem>
461
              <para>
462
                Number of VCPUs to set for an instance by default, must
463
                be an integer, will be set to 1 if no specified.
464
              </para>
465
            </listitem>
466
          </varlistentry>
467
          <varlistentry>
468
            <term>memory</term>
469
            <listitem>
470
              <para>
471
                Amount of memory to allocate for an instance by default,
472
                can be either an integer or an integer followed by a
473
                unit (M for mebibytes and G for gibibytes are
474
                supported), will be set to 128M if not specified.
475
              </para>
476
            </listitem>
477
          </varlistentry>
478
          <varlistentry>
479
            <term>auto_balance</term>
480
            <listitem>
481
              <para>
482
                Value of the auto_balance flag for instances to use by
483
                default, will be set to true if not specified.
484
              </para>
485
            </listitem>
486
          </varlistentry>
487
        </variablelist>
488
      </para>
489

    
490
      <para>
491
        The <option>--nic-parameters</option> option allows you to set
492
        the default nic parameters for the cluster. The parameter
493
        format is a comma-separated list of key=value pairs with the
494
        following supported keys:
495
        <variablelist>
496
          <varlistentry>
497
            <term>mode</term>
498
            <listitem>
499
              <para>
500
                The default nic mode, 'routed' or 'bridged'.
501
              </para>
502
            </listitem>
503
          </varlistentry>
504
          <varlistentry>
505
            <term>link</term>
506
            <listitem>
507
              <para>
508
                In bridged mode the default NIC bridge. In routed mode it
509
                represents an hypervisor-vif-script dependent value to allow
510
                different instance groups. For example under the KVM default
511
                network script it is interpreted as a routing table number or
512
                name.
513
              </para>
514
            </listitem>
515
          </varlistentry>
516
        </variablelist>
517
      </para>
518

    
519
      <para>
520
        The option <option>--maintain-node-health</option> allows to
521
        enable/disable automatic maintenance actions on
522
        nodes. Currently these include automatic shutdown of instances
523
        and deactivation of DRBD devices on offline nodes; in the
524
        future it might be extended to automatic removal of unknown
525
        LVM volumes, etc.
526
      </para>
527

    
528
      <para>
529
        The <option>--uid-pool</option> option initializes the user-id pool.
530
        The <replaceable>user-id pool definition</replaceable> can contain a
531
        list of user-ids and/or a list of user-id ranges. The parameter format
532
        is a comma-separated list of numeric user-ids or user-id ranges.
533
        The ranges are defined by a lower and higher boundary, separated
534
        by a dash. The boundaries are inclusive.
535
        If the <option>--uid-pool</option> option is not supplied, the
536
        user-id pool is initialized to an empty list. An empty list means that
537
        the user-id pool feature is disabled.
538
      </para>
539

    
540
    </refsect2>
541

    
542
    <refsect2>
543
      <title>LIST-TAGS</title>
544

    
545
      <cmdsynopsis>
546
        <command>list-tags</command>
547
      </cmdsynopsis>
548

    
549
      <para>List the tags of the cluster.</para>
550
    </refsect2>
551

    
552
    <refsect2>
553
      <title>MASTERFAILOVER</title>
554

    
555
      <cmdsynopsis>
556
        <command>masterfailover</command>
557
        <arg>--no-voting</arg>
558
      </cmdsynopsis>
559

    
560
      <para>
561
        Failover the master role to the current node.
562
      </para>
563

    
564
      <para>
565
        The <option>--no-voting</option> option skips the remote node agreement
566
        checks. This is dangerous, but necessary in some cases (for example
567
        failing over the master role in a 2 node cluster with the original master
568
        down). If the original master then comes up, it won't be able to start
569
        its master daemon because it won't have enough votes, but so won't the
570
        new master, if the master daemon ever needs a restart. You can pass
571
        --no-voting to ganeti-masterd on the new master to solve this problem,
572
        and gnt-cluster redist-conf to make sure the cluster is consistent again.
573
      </para>
574

    
575
    </refsect2>
576

    
577
    <refsect2>
578
      <title>MODIFY</title>
579

    
580
      <cmdsynopsis>
581
        <command>modify</command>
582
        <sbr>
583
        <arg choice="opt">-g <replaceable>vg-name</replaceable></arg>
584
        <sbr>
585
        <arg choice="opt">--no-lvm-storage</arg>
586
        <sbr>
587
        <arg choice="opt">--enabled-hypervisors
588
        <replaceable>hypervisors</replaceable></arg>
589
        <sbr>
590
        <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>
591
        <sbr>
592
        <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>
593
        <sbr>
594
        <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>
595
        <sbr>
596
        <arg choice="opt">--uid-pool <replaceable>user-id pool definition</replaceable></arg>
597
        <sbr>
598
        <arg choice="opt">--add-uids <replaceable>user-id pool definition</replaceable></arg>
599
        <sbr>
600
        <arg choice="opt">--remove-uids <replaceable>user-id pool definition</replaceable></arg>
601
        <sbr>
602
        <arg choice="opt">-C <replaceable>candidate_pool_size</replaceable></arg>
603
        <sbr>
604
        <arg>--maintain-node-health <group choice="req"><arg>yes</arg><arg>no</arg></group></arg>
605

    
606
      </cmdsynopsis>
607

    
608
        <para>
609
          Modify the options for the cluster.
610
        </para>
611

    
612
        <para>
613
          The <option>-g</option>, <option>--no-lvm-storarge</option>,
614
          <option>--enabled-hypervisors</option>,
615
          <option>--hypervisor-parameters</option>,
616
          <option>--backend-parameters</option>,
617
          <option>--nic-parameters</option>,
618
          <option>--maintain-node-health</option> and
619
          <option>--uid-pool</option> options are
620
          described in the <command>init</command> command.
621
        </para>
622

    
623
      <para>
624
        The <option>-C</option> option specifies the
625
        <varname>candidate_pool_size</varname> cluster parameter. This
626
        is the number of nodes that the master will try to keep as
627
        <literal>master_candidates</literal>. For more details about
628
        this role and other node roles, see the <citerefentry>
629
        <refentrytitle>ganeti</refentrytitle><manvolnum>7</manvolnum>
630
        </citerefentry>. If you increase the size, the master will
631
        automatically promote as many nodes as required and possible
632
        to reach the intended number.
633
      </para>
634

    
635
      <para>
636
        The <option>--add-uids</option> and <option>--remove-uids</option>
637
        options can be used to modify the user-id pool by adding/removing
638
        a list of user-ids or user-id ranges.
639
    </refsect2>
640

    
641
    <refsect2>
642
      <title>QUEUE</title>
643

    
644
      <cmdsynopsis>
645
        <command>queue</command>
646
        <arg choice="opt">drain</arg>
647
        <arg choice="opt">undrain</arg>
648
        <arg choice="opt">info</arg>
649

    
650
      </cmdsynopsis>
651

    
652
      <para>
653
        Change job queue properties.
654
      </para>
655

    
656
      <para>
657
        The <option>drain</option> option sets the drain flag on the
658
        job queue. No new jobs will be accepted, but jobs already in
659
        the queue will be processed.
660
      </para>
661

    
662
      <para>
663
        The <option>undrain</option> will unset the drain flag on the
664
        job queue. New jobs will be accepted.
665
      </para>
666

    
667
      <para>
668
        The <option>info</option> option shows the properties of the
669
        job queue.
670
      </para>
671
    </refsect2>
672

    
673
    <refsect2>
674
      <title>WATCHER</title>
675

    
676
      <cmdsynopsis>
677
        <command>watcher</command>
678
        <group choice="req">
679
          <arg>pause <replaceable>duration</replaceable></arg>
680
          <arg>continue</arg>
681
          <arg>info</arg>
682
        </group>
683
      </cmdsynopsis>
684

    
685
      <para>
686
        Make the watcher pause or let it continue.
687
      </para>
688

    
689
      <para>
690
        The <option>pause</option> option causes the watcher to pause for
691
        <replaceable>duration</replaceable> seconds.
692
      </para>
693

    
694
      <para>
695
        The <option>continue</option> option will let the watcher continue.
696
      </para>
697

    
698
      <para>
699
        The <option>info</option> option shows whether the watcher is currently
700
        paused.
701
      </para>
702
    </refsect2>
703

    
704
    <refsect2>
705
      <title>redist-conf</title>
706
      <cmdsynopsis>
707
        <command>redist-conf</command>
708
          <arg>--submit</arg>
709
      </cmdsynopsis>
710

    
711
      <para>
712
        This command forces a full push of configuration files from
713
        the master node to the other nodes in the cluster. This is
714
        normally not needed, but can be run if the
715
        <command>verify</command> complains about configuration
716
        mismatches.
717
      </para>
718

    
719
      <para>
720
        The <option>--submit</option> option is used to send the job
721
        to the master daemon but not wait for its completion. The job
722
        ID will be shown so that it can be examined via
723
        <command>gnt-job info</command>.
724
      </para>
725

    
726
    </refsect2>
727
    <refsect2>
728
      <title>REMOVE-TAGS</title>
729

    
730
      <cmdsynopsis>
731
        <command>remove-tags</command>
732
        <arg choice="opt">--from <replaceable>file</replaceable></arg>
733
        <arg choice="req"
734
        rep="repeat"><replaceable>tag</replaceable></arg>
735
      </cmdsynopsis>
736

    
737
      <para>
738
        Remove tags from the cluster. If any of the tags are not
739
        existing on the cluster, the entire operation will abort.
740
      </para>
741

    
742
      <para>
743
        If the <option>--from</option> option is given, the list of
744
        tags will be extended with the contents of that file (each
745
        line becomes a tag). In this case, there is not need to pass
746
        tags on the command line (if you do, both sources will be
747
        used). A file name of - will be interpreted as stdin.
748
      </para>
749
    </refsect2>
750

    
751
    <refsect2>
752
      <title>RENAME</title>
753

    
754
      <cmdsynopsis>
755
        <command>rename</command>
756
        <arg>-f</arg>
757
        <arg choice="req"><replaceable>name</replaceable></arg>
758
      </cmdsynopsis>
759

    
760
      <para>
761
        Renames the cluster and in the process updates the master IP
762
        address to the one the new name resolves to. At least one of
763
        either the name or the IP address must be different, otherwise
764
        the operation will be aborted.
765
      </para>
766

    
767
      <para>
768
        Note that since this command can be dangerous (especially when
769
        run over SSH), the command will require confirmation unless
770
        run with the <option>-f</option> option.
771
      </para>
772
    </refsect2>
773

    
774
    <refsect2>
775
      <title>RENEW-CRYPTO</title>
776

    
777
      <cmdsynopsis>
778
        <command>renew-crypto</command>
779
        <arg>-f</arg>
780
        <sbr>
781
        <arg choice="opt">--new-cluster-certificate</arg>
782
        <arg choice="opt">--new-confd-hmac-key</arg>
783
        <sbr>
784
        <arg choice="opt">--new-rapi-certificate</arg>
785
        <arg choice="opt">--rapi-certificate <replaceable>rapi-cert</replaceable></arg>
786
      </cmdsynopsis>
787

    
788
      <para>
789
        This command will stop all
790
        Ganeti daemons in the cluster and start them again once the new
791
        certificates and keys are replicated. The options
792
        <option>--new-cluster-certificate</option> and
793
        <option>--new-confd-hmac-key</option> can be used to regenerate the
794
        cluster-internal SSL certificate respective the HMAC key used by
795
        <citerefentry>
796
        <refentrytitle>ganeti-confd</refentrytitle><manvolnum>8</manvolnum>
797
        </citerefentry>. To generate a new self-signed RAPI certificate (used
798
        by <citerefentry>
799
        <refentrytitle>ganeti-rapi</refentrytitle><manvolnum>8</manvolnum>
800
        </citerefentry>) specify <option>--new-rapi-certificate</option>. If
801
        you want to use your own certificate, e.g. one signed by a certificate
802
        authority (CA), pass its filename to
803
        <option>--rapi-certificate</option>.
804
      </para>
805
    </refsect2>
806

    
807
    <refsect2>
808
      <title>REPAIR-DISK-SIZES</title>
809

    
810
      <cmdsynopsis>
811
        <command>repair-disk-sizes</command>
812
        <arg rep="repeat">instance</arg>
813
      </cmdsynopsis>
814

    
815
      <para>
816
        This command checks that the recorded size of the given
817
        instance's disks matches the actual size and updates any
818
        mismatches found. This is needed if the Ganeti configuration
819
        is no longer consistent with reality, as it will impact some
820
        disk operations. If no arguments are given, all instances will
821
        be checked.
822
      </para>
823

    
824
      <para>
825
        Note that only active disks can be checked by this command; in
826
        case a disk cannot be activated it's advised to use
827
        <command>gnt-instance activate-disks --ignore-size ...</command> to
828
        force activation without regard to the
829
        current size.
830
      </para>
831

    
832
      <para>
833
        When the all disk sizes are consistent, the command will
834
        return no output. Otherwise it will log details about the
835
        inconsistencies in the configuration.
836
      </para>
837
    </refsect2>
838

    
839
    <refsect2>
840
      <title>SEARCH-TAGS</title>
841

    
842
      <cmdsynopsis>
843
        <command>search-tags</command>
844
        <arg choice="req"><replaceable>pattern</replaceable></arg>
845
      </cmdsynopsis>
846

    
847
      <para>
848
        Searches the tags on all objects in the cluster (the cluster
849
        itself, the nodes and the instances) for a given pattern. The
850
        pattern is interpreted as a regular expression and a search
851
        will be done on it (i.e. the given pattern is not anchored to
852
        the beggining of the string; if you want that, prefix the
853
        pattern with <literal>^</literal>).
854
      </para>
855

    
856
      <para>
857
        If no tags are matching the pattern, the exit code of the
858
        command will be one. If there is at least one match, the exit
859
        code will be zero. Each match is listed on one line, the
860
        object and the tag separated by a space. The cluster will be
861
        listed as <filename>/cluster</filename>, a node will be listed
862
        as
863
        <filename>/nodes/<replaceable>name</replaceable></filename>,
864
        and an instance as
865
        <filename>/instances/<replaceable>name</replaceable></filename>.
866
        Example:
867
      </para>
868
<screen>
869
# gnt-cluster search-tags time
870
/cluster ctime:2007-09-01
871
/nodes/node1.example.com mtime:2007-10-04
872
</screen>
873
    </refsect2>
874

    
875
    <refsect2>
876
      <title>VERIFY</title>
877

    
878
      <cmdsynopsis>
879
        <command>verify</command>
880
        <arg choice="opt">--no-nplus1-mem</arg>
881
      </cmdsynopsis>
882

    
883
      <para>
884
        Verify correctness of cluster configuration. This is safe with
885
        respect to running instances, and incurs no downtime of the
886
        instances.
887
      </para>
888

    
889
      <para>
890
        If the <option>--no-nplus1-mem</option> option is given, ganeti won't
891
        check whether if it loses a node it can restart all the instances on
892
        their secondaries (and report an error otherwise).
893
      </para>
894
    </refsect2>
895

    
896
    <refsect2>
897
      <title>VERIFY-DISKS</title>
898

    
899
      <cmdsynopsis>
900
        <command>verify-disks</command>
901
      </cmdsynopsis>
902

    
903
      <para>
904
        The command checks which instances have degraded DRBD disks
905
        and activates the disks of those instances.
906
      </para>
907

    
908
      <para>
909
        This command is run from the <command>ganeti-watcher</command>
910
        tool, which also has a different, complementary algorithm for
911
        doing this check. Together, these two should ensure that DRBD
912
        disks are kept consistent.
913
      </para>
914
    </refsect2>
915

    
916
    <refsect2>
917
      <title>VERSION</title>
918

    
919
      <cmdsynopsis>
920
        <command>version</command>
921
      </cmdsynopsis>
922

    
923
      <para>
924
        Show the cluster version.
925
      </para>
926
    </refsect2>
927

    
928
  </refsect1>
929

    
930
  &footer;
931

    
932
</refentry>
933

    
934
<!-- Keep this comment at the end of the file
935
Local variables:
936
mode: sgml
937
sgml-omittag:t
938
sgml-shorttag:t
939
sgml-minimize-attributes:nil
940
sgml-always-quote-attributes:t
941
sgml-indent-step:2
942
sgml-indent-data:t
943
sgml-parent-document:nil
944
sgml-default-dtd-file:nil
945
sgml-exposed-tags:nil
946
sgml-local-catalogs:nil
947
sgml-local-ecat-files:nil
948
End:
949
-->