Statistics
| Branch: | Tag: | Revision:

root / man / gnt-instance.sgml @ 810c50b7

History | View | Annotate | Download (27.2 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>May 16, 2007</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-instance</refentrytitle>">
10
  <!ENTITY dhpackage   "gnt-instance">
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
      <holder>Google Inc.</holder>
24
    </copyright>
25
    &dhdate;
26
  </refentryinfo>
27
  <refmeta>
28
    &dhucpackage;
29

    
30
    &dhsection;
31
    <refmiscinfo>ganeti 1.2</refmiscinfo>
32
  </refmeta>
33
  <refnamediv>
34
    <refname>&dhpackage;</refname>
35

    
36
    <refpurpose>ganeti instance administration</refpurpose>
37
  </refnamediv>
38
  <refsynopsisdiv>
39
    <cmdsynopsis>
40
      <command>&dhpackage; </command>
41

    
42
      <arg choice="req">command</arg>
43
      <arg>arguments...</arg>
44
    </cmdsynopsis>
45
  </refsynopsisdiv>
46
  <refsect1>
47
    <title>DESCRIPTION</title>
48

    
49
    <para>
50
      The <command>&dhpackage;</command> is used for instance
51
      administration in the ganeti system.
52
    </para>
53

    
54
  </refsect1>
55
  <refsect1>
56
    <title>COMMANDS</title>
57

    
58
    <refsect2>
59
      <title>Creation/removal/querying</title>
60

    
61
      <refsect3>
62
        <title>ADD</title>
63
        <cmdsynopsis>
64
          <command>add</command>
65
          <arg>-s <replaceable>disksize</replaceable></arg>
66
          <arg>--swap-size <replaceable>disksize</replaceable></arg>
67
          <arg>-m <replaceable>memsize</replaceable></arg>
68
          <sbr>
69
          <arg>-o <replaceable>os-type</replaceable></arg>
70
          <arg>-b <replaceable>bridge</replaceable></arg>
71
          <sbr>
72
          <arg choice="req">-t<group>
73
              <arg>diskless</arg>
74
              <arg>plain</arg>
75
              <arg>local_raid1</arg>
76
              <arg>remote_raid1</arg>
77
            </group>
78
          </arg>
79
          <sbr>
80
          <arg choice="req">-n <replaceable>node</replaceable></arg>
81
          <arg choice="req"><replaceable>instance</replaceable></arg>
82
        </cmdsynopsis>
83
        <para>
84
          Creates a new instance on the specified
85
          host. <replaceable>instance</replaceable> must be in DNS and
86
          resolve to a IP in the same network as the nodes in the
87
          cluster.
88
        </para>
89

    
90
        <para>
91
          The <option>-s</option> option specifies the disk size for
92
          the instance, in mebibytes (defaults to
93
          <constant>20480MiB</constant> =
94
          <constant>20GiB</constant>). You can also use one of the
95
          suffixes <literal>m</literal>, <literal>g</literal> or
96
          <literal>t</literal> to specificy the exact the units used;
97
          these suffixes map to mebibytes, gibibytes and tebibytes.
98
        </para>
99

    
100
        <para>
101
          The <option>--swap-size</option> option specifies the swap
102
          disk size (in mebibytes) for the instance (the one presented
103
          as <filename class="devicefile">/dev/sdb</filename>). The
104
          default is <constant>4096MiB</constant>. As for the disk
105
          size, you can specify other suffixes.
106
        </para>
107

    
108
        <para>
109
          The <option>-m</option> option specifies the memory size for
110
          the instance, in mebibytes (defaults to 128 MiB). Again, you
111
          can use other suffixes (e.g. <userinput>2g</userinput>).
112
        </para>
113

    
114
        <para>
115
          The <option>-o</option> options specifies the operating
116
          system to be installed. The available operating systems can
117
          be listed with <command>gnt-os list</command>.
118
        </para>
119

    
120
        <para>
121
          The <option>-b</option> option specifies the bridge to which the
122
          instance will be connected. (defaults to the cluster-wide default
123
          bridge specified at cluster initialization time).
124
        </para>
125

    
126
        <para>
127
          The <option>-t</option> options specifies the disk layout type for
128
          the instance. The available choices are:
129
          <variablelist>
130
            <varlistentry>
131
              <term>diskless</term>
132
              <listitem>
133
                <para>
134
                  This creates an instance with no disks. Its useful for
135
                  testing only (or other special cases).
136
                </para>
137
              </listitem>
138
            </varlistentry>
139
            <varlistentry>
140
              <term>plain</term>
141
              <listitem>
142
                <para>Disk devices will be logical volumes.</para>
143
              </listitem>
144
            </varlistentry>
145
            <varlistentry>
146
              <term>local_raid1</term>
147
              <listitem>
148
                <para>
149
                  Disk devices will be md raid1 arrays over two local
150
                  logical volumes.
151
                </para>
152
              </listitem>
153
            </varlistentry>
154
            <varlistentry>
155
              <term>remote_raid1</term>
156
              <listitem>
157
                <para>
158
                  Disk devices will be md raid1 arrays with one
159
                  component (so it's not actually raid1): a drbd device
160
                  between the instance's primary node and the node given
161
                  by the option <option>--secondary-node</option>.
162
                </para>
163
              </listitem>
164
            </varlistentry>
165
          </variablelist>
166
        </para>
167

    
168
        <para>
169
          The <option>--secondary-node</option> option is used with
170
          the remote raid disk template type and specifies the remote
171
          node.
172
        </para>
173

    
174
        <para>
175
          If you do not want gnt-instance to wait for the disk mirror
176
          to be synced, use the <option>--no-wait-for-sync</option>
177
          option.
178
        </para>
179

    
180

    
181
        <para>
182
          Example:
183
          <screen>
184
# gnt-instance add -t plain -s 30g -m 512 -o debian-etch \
185
  -n node1.example.com instance1.example.com
186
# gnt-instance add -t remote_raid1 --secondary-node node3.example.com \
187
  -s 30g -m 512 -o debian-etch \
188
  -n node1.example.com instance2.example.com
189
          </screen>
190
        </para>
191

    
192
      </refsect3>
193

    
194
      <refsect3>
195
        <title>REMOVE</title>
196

    
197
        <cmdsynopsis>
198
          <command>remove</command>
199
          <arg choice="req"><replaceable>instance</replaceable></arg>
200
        </cmdsynopsis>
201

    
202
        <para>
203
          Remove an instance. This will remove all data from the
204
          instance and there is <emphasis>no way back</emphasis>. If
205
          you are not sure if you use an instance again, use
206
          <command>shutdown</command> first and leave it in the
207
          shutdown state for a while.
208
        </para>
209

    
210
        <para>
211
          Example:
212
          <screen>
213
# gnt-instance remove instance1.example.com
214
          </screen>
215
        </para>
216
      </refsect3>
217

    
218
      <refsect3>
219
        <title>LIST</title>
220

    
221
        <cmdsynopsis>
222
          <command>list</command>
223
          <arg>--no-headers</arg>
224
          <arg>--separator=<replaceable>SEPARATOR</replaceable></arg>
225
          <arg>-o <replaceable>FIELD,...</replaceable></arg>
226
        </cmdsynopsis>
227

    
228
        <para>
229
          Shows the currently configured instances with memory usage,
230
          disk usage, the node they are running on, and the CPU time,
231
          counted in seconds, used by each instance since its latest
232
          restart.
233
        </para>
234

    
235
        <para>
236
          The <option>--no-headers</option> option will skip the
237
          initial header line. The <option>--separator</option> option
238
          takes an argument which denotes what will be used between
239
          the output fields. Both these options are to help scripting.
240
        </para>
241

    
242
        <para>
243
          The <option>-o</option> option takes a comma-separated list
244
          of output fields. The available fields and their meaning
245
          are:
246
          <variablelist>
247
            <varlistentry>
248
              <term>name</term>
249
              <listitem>
250
                <simpara>the instance name</simpara>
251
              </listitem>
252
            </varlistentry>
253
            <varlistentry>
254
              <term>os</term>
255
              <listitem>
256
                <simpara>the OS of the instance</simpara>
257
              </listitem>
258
            </varlistentry>
259
            <varlistentry>
260
              <term>pnode</term>
261
              <listitem>
262
                <simpara>the primary node of the instance</simpara>
263
              </listitem>
264
            </varlistentry>
265
            <varlistentry>
266
              <term>snodes</term>
267
              <listitem>
268
                <simpara>comma-separated list of secondary-nodes for the
269
                  instance; usually this will be just one node</simpara>
270
              </listitem>
271
            </varlistentry>
272
            <varlistentry>
273
              <term>admin_state</term>
274
              <listitem>
275
                <simpara>the desired state of the instance (either "yes"
276
                  or "no" denoting the instance should run or
277
                  not)</simpara>
278
              </listitem>
279
            </varlistentry>
280
            <varlistentry>
281
              <term>admin_ram</term>
282
              <listitem>
283
                <simpara>the desired memory for the instance</simpara>
284
              </listitem>
285
            </varlistentry>
286
            <varlistentry>
287
              <term>disk_template</term>
288
              <listitem>
289
                <simpara>the disk template of the instance</simpara>
290
              </listitem>
291
            </varlistentry>
292
            <varlistentry>
293
              <term>oper_state</term>
294
              <listitem>
295
                <simpara>the actual state of the instance; can take of
296
                  the values "running", "stopped", "(node down)"</simpara>
297
              </listitem>
298
            </varlistentry>
299
            <varlistentry>
300
              <term>oper_ram</term>
301
              <listitem>
302
                <simpara>the actual memory usage of the instance as seen
303
                  by the hypervisor</simpara>
304
              </listitem>
305
            </varlistentry>
306
            <varlistentry>
307
              <term>ip</term>
308
              <listitem>
309
                <simpara>the ip address ganeti recognizes as associated with
310
                the instance interface</simpara>
311
              </listitem>
312
            </varlistentry>
313
            <varlistentry>
314
              <term>mac</term>
315
              <listitem>
316
                <simpara>the instance interface MAC address</simpara>
317
              </listitem>
318
            </varlistentry>
319
            <varlistentry>
320
              <term>bridge</term>
321
              <listitem>
322
                <simpara>bridge the instance is connected to
323
                </simpara>
324
              </listitem>
325
            </varlistentry>
326
          </variablelist>
327
        </para>
328

    
329
        <para>
330
          There is a subtle grouping about the available output
331
          fields: all fields except for <option>oper_state</option>
332
          and <option>oper_ram</option> are configuration value and
333
          not run-time values. So if you don't select any of the
334
          <option>oper_*</option> fields, the query will be satisfied
335
          instantly from the cluster configuration, without having to
336
          ask the remote nodes for the data. This can be helpful for
337
          big clusters when you only want some data and it makes sense
338
          to specify a reduced set of output fields.
339
        </para>
340

    
341
        <para>The default output field list is:
342
          <simplelist type="inline">
343
            <member>name</member>
344
            <member>os</member>
345
            <member>pnode</member>
346
            <member>admin_state</member>
347
            <member>oper_state</member>
348
            <member>oper_ram</member>
349
          </simplelist>.
350
        </para>
351
      </refsect3>
352

    
353
      <refsect3>
354
        <title>INFO</title>
355

    
356
        <cmdsynopsis>
357
          <command>info</command>
358
          <arg rep="repeat"><replaceable>instance</replaceable></arg>
359
        </cmdsynopsis>
360

    
361
        <para>
362
          Show detailed information about the (given) instances. This
363
          is different from <command>list</command> as it shows
364
          detailed data about the instance's disks (especially useful
365
          for remote raid templates).
366
        </para>
367
      </refsect3>
368

    
369
      <refsect3>
370
        <title>MODIFY</title>
371

    
372
        <cmdsynopsis>
373
          <command>modify</command>
374
          <arg choice="opt">-m <replaceable>memsize</replaceable></arg>
375
          <arg choice="opt">-p <replaceable>vcpus</replaceable></arg>
376
          <arg choice="opt">-i <replaceable>ip</replaceable></arg>
377
          <arg choice="opt">-b <replaceable>bridge</replaceable></arg>
378
          <arg choice="req"><replaceable>instance</replaceable></arg>
379
        </cmdsynopsis>
380

    
381
        <para>
382
          Modify the memory size, number of vcpus, ip address and/or bridge
383
          for an instance.
384
        </para>
385

    
386
        <para>
387
          The memory size is given in MiB. Note that you need to give
388
          at least one of the arguments, otherwise the command
389
          complains.
390
        </para>
391

    
392
        <para>
393
          All the changes take effect at the next restart. If the
394
          instance is running, there is no effect on the instance.
395
        </para>
396
      </refsect3>
397

    
398
      <refsect3>
399
        <title>REINSTALL</title>
400

    
401
        <cmdsynopsis>
402
          <command>reinstall</command>
403
          <arg choice="opt">-o <replaceable>os-type</replaceable></arg>
404
          <arg choice="opt">-f <replaceable>force</replaceable></arg>
405
          <arg choice="req"><replaceable>instance</replaceable></arg>
406
        </cmdsynopsis>
407

    
408
        <para>
409
          Reinstalls the operating system on the given instance. The instance
410
          must be stopped when running this command. If the
411
          <option>--os-type</option> is specified, the operating system is
412
          changed.
413
        </para>
414
      </refsect3>
415

    
416
      <refsect3>
417
        <title>RENAME</title>
418

    
419
        <cmdsynopsis>
420
          <command>rename</command>
421
          <arg>--no-ip-check</arg>
422
          <arg choice="req"><replaceable>instance</replaceable></arg>
423
          <arg choice="req"><replaceable>new_name</replaceable></arg>
424
        </cmdsynopsis>
425

    
426
        <para>
427
          Renames the given instance. The instance must be stopped
428
          when running this command. The requirements for the new name
429
          are the same as for adding an instance: the new name must be
430
          resolvable and the IP it resolves to must not be reachable
431
          (in order to prevent duplicate IPs the next time the
432
          instance is started). The IP test can be skipped if the
433
          <option>--no-ip-check</option> option is passed.
434
        </para>
435
      </refsect3>
436

    
437
    </refsect2>
438

    
439
    <refsect2>
440
      <title>Starting/stopping/connecting to console</title>
441

    
442
      <refsect3>
443
        <title>STARTUP</title>
444

    
445
        <cmdsynopsis>
446
          <command>startup</command>
447
          <arg>--extra=<replaceable>PARAMS</replaceable></arg>
448
          <sbr>
449
          <group choice="opt">
450
            <arg>--instance</arg>
451
            <arg>--node</arg>
452
            <arg>--primary</arg>
453
            <arg>--secondary</arg>
454
            <arg>--all</arg>
455
          </group>
456
          <sbr>
457
          <arg choice="opt"
458
          rep="repeat"><replaceable>name</replaceable></arg>
459
        </cmdsynopsis>
460

    
461
        <para>
462
          Starts one or more instances, depending on the
463
          <option>--by-*</option> mode. The four available modes are:
464
          <variablelist>
465
            <varlistentry>
466
              <term><option>--instance</option></term>
467
              <listitem>
468
                <simpara>will start the instances given as arguments
469
                (at least one argument required); this is the default
470
                selection</simpara>
471
              </listitem>
472
            </varlistentry>
473
            <varlistentry>
474
              <term>--node</term>
475
              <listitem>
476
                <simpara>will start the instances who have the given
477
                node as either primary or secondary</simpara>
478
              </listitem>
479
            </varlistentry>
480
            <varlistentry>
481
              <term><option>--primary</option></term>
482
              <listitem>
483
                <simpara>will start all instances whose primary node
484
                is in the list of nodes passed as arguments (at least
485
                one node required)</simpara>
486
              </listitem>
487
            </varlistentry>
488
            <varlistentry>
489
              <term><option>--secondary</option></term>
490
              <listitem>
491
                <simpara>will start all instances whose secondary node
492
                is in the list of nodes passed as arguments (at least
493
                one node required)</simpara>
494
              </listitem>
495
            </varlistentry>
496
            <varlistentry>
497
              <term>--all</term>
498
              <listitem>
499
                <simpara>will start all instances in the cluster (no
500
                arguments accepted)</simpara>
501
              </listitem>
502
            </varlistentry>
503
          </variablelist>
504
        </para>
505

    
506
        <para>
507
          Note that although you can pass more than one
508
          <option>--by-</option> option, the last one wins, so in
509
          order to guarantee the desired result, don't pass more than
510
          one such option.
511
        </para>
512

    
513
        <para>
514
          The <option>--extra</option> option is used to pass
515
          additional argument to the instance's kernel for this start
516
          only. Currently there is no way to specify a persistent set
517
          of arguments (beside the one hardcoded). Note that this may
518
          not apply to all virtualization types.
519
        </para>
520

    
521

    
522
        <para>
523
          Example:
524
          <screen>
525
# gnt-instance start instance1.example.com
526
# gnt-instance start --extra single test1.example.com
527
# gnt-instance start --by-node node1.example.com node2.example.com
528
# gnt-instance start --by-cluster
529
          </screen>
530
        </para>
531
      </refsect3>
532

    
533
      <refsect3>
534
        <title>SHUTDOWN</title>
535

    
536
        <cmdsynopsis>
537
          <command>shutdown</command>
538
          <sbr>
539
          <group choice="opt">
540
            <arg>--instance</arg>
541
            <arg>--node</arg>
542
            <arg>--primary</arg>
543
            <arg>--secondary</arg>
544
            <arg>--all</arg>
545
          </group>
546
          <sbr>
547

    
548
          <arg choice="opt"
549
          rep="repeat"><replaceable>name</replaceable></arg>
550
        </cmdsynopsis>
551

    
552
        <para>
553
          Stops one or more instances. If the instance cannot be
554
          cleanly stopped during a hardcoded interval (currently 2
555
          minutes), it will forcibly stop the instance (equivalent to
556
          switching off the power on a physical machine).
557
        </para>
558

    
559
        <para>
560
          The <option>--instance</option>, <option>--node</option>,
561
          <option>--primary</option>, <option>--secondary</option> and
562
          <option>--all</option> options are similar as for the
563
          <command>startup</command> command and they influence the
564
          actual instances being shutodnw.
565
        </para>
566

    
567
        <para>
568
          Example:
569
          <screen>
570
# gnt-instance shutdown instance1.example.com
571
# gnt-instance shutdown --by-cluster
572
          </screen>
573
        </para>
574
      </refsect3>
575

    
576
      <refsect3>
577
        <title>CONSOLE</title>
578
        <cmdsynopsis>
579
          <command>console</command>
580
          <arg choice="req"><replaceable>instance</replaceable></arg>
581
        </cmdsynopsis>
582

    
583
        <para>
584
          Connects to the console of the given instance. If the instance
585
          is not up, an error is returned.
586
        </para>
587

    
588
        <para>
589
          Example:
590
          <screen>
591
# gnt-instance console instance1.example.com
592
          </screen>
593
        </para>
594
      </refsect3>
595

    
596
    </refsect2>
597

    
598
    <refsect2>
599
      <title>Disk management</title>
600

    
601
      <refsect3>
602
        <title>REPLACE-DISKS</title>
603

    
604
        <cmdsynopsis>
605
          <command>replace-disks</command>
606
          <arg choice="req">--new-secondary <replaceable>NODE</replaceable></arg>
607
          <arg choice="req"><replaceable>instance</replaceable></arg>
608
        </cmdsynopsis>
609

    
610
        <para>
611
          This command does a full add and replace for both disks of
612
          an instance.  It basically does an
613
          <command>addmirror</command> and
614
          <command>removemirror</command> for both disks of the
615
          instance.
616
        </para>
617

    
618
        <para>
619
          If you also want to replace the secondary node during this
620
          process (for example to fix a broken secondary node), you
621
          can do so using the <option>--new-secondary</option> option.
622
        </para>
623
      </refsect3>
624

    
625
      <refsect3>
626
        <title>ADD-MIRROR</title>
627
        <cmdsynopsis>
628
          <command>add-mirror</command>
629
          <arg choice="req">-b <replaceable>sdX</replaceable></arg>
630
          <arg choice="req">-n <replaceable>node</replaceable></arg>
631
          <arg choice="req"><replaceable>instance</replaceable></arg>
632
        </cmdsynopsis>
633
        <para>
634
          Adds a new mirror to the disk layout of the instance, if the
635
          instance has a remote raid disk layout.
636

    
637
          The new mirror member will be between the instance's primary
638
          node and the node given with the <option>-n</option> option.
639
        </para>
640
      </refsect3>
641

    
642
      <refsect3>
643
        <title>REMOVE-MIRROR</title>
644

    
645
        <cmdsynopsis>
646
          <command>removemirror</command>
647
          <arg choice="req">-b <replaceable>sdX</replaceable></arg>
648
          <arg choice="req">-p <replaceable>id</replaceable></arg>
649
          <arg choice="req"><replaceable>instance</replaceable></arg>
650
        </cmdsynopsis>
651
        <para>
652
          Removes a mirror componenent from the disk layout of the
653
          instance, if the instance has a remote raid disk layout.
654
        </para>
655

    
656
        <para>
657
          You need to specifiy on which disk to act on using the
658
          <option>-b</option> option (either <filename>sda</filename>
659
          or <filename>sdb</filename>) and the mirror component, which
660
          is identified by the <option>-p</option> option. You can
661
          find the list of valid identifiers with the
662
          <command>info</command> command.
663
        </para>
664

    
665
      <refsect3>
666
        <title>ACTIVATE-DISKS</title>
667

    
668
        <cmdsynopsis>
669
          <command>activate-disks</command>
670
          <arg choice="req"><replaceable>instance</replaceable></arg>
671
        </cmdsynopsis>
672
        <para>
673
          Activates the block devices of the given instance. If
674
          successful, the command will show the location and name of
675
          the block devices:
676
          <screen>
677
node1.example.com:sda:/dev/md0
678
node1.example.com:sdb:/dev/md1
679
          </screen>
680

    
681
          In this example, <emphasis>node1.example.com</emphasis> is
682
          the name of the node on which the devices have been
683
          activated. The <emphasis>sda</emphasis> and
684
          <emphasis>sdb</emphasis> are the names of the block devices
685
          inside the instance. <emphasis>/dev/md0</emphasis> and
686
          <emphasis>/dev/md1</emphasis> are the names of the block
687
          devices as visible on the node.
688
        </para>
689

    
690
        <para>
691
          Note that it is safe to run this command while the instance
692
          is already running.
693
        </para>
694
      </refsect3>
695

    
696
      <refsect3>
697
        <title>DEACTIVATE-DISKS</title>
698

    
699
        <cmdsynopsis>
700
          <command>deactivate-disks</command>
701
          <arg choice="req"><replaceable>instance</replaceable></arg>
702
        </cmdsynopsis>
703
        <para>
704
          De-activates the block devices of the given instance. Note
705
          that if you run this command for a remote raid instance
706
          type, while it is running, it will not be able to shutdown
707
          the block devices on the primary node, but it will shutdown
708
          the block devices on the secondary nodes, thus breaking the
709
          replication.
710
        </para>
711

    
712
      </refsect3>
713

    
714
    </refsect2>
715

    
716
    <refsect2>
717
      <title>Recovery</title>
718

    
719
      <refsect3>
720
        <title>FAILOVER</title>
721

    
722
        <cmdsynopsis>
723
          <command>failover</command>
724
          <arg>-f</arg>
725
          <arg>--ignore-consistency</arg>
726
          <arg choice="req"><replaceable>instance</replaceable></arg>
727
        </cmdsynopsis>
728

    
729
        <para>
730
          Failover will fail the instance over its secondary
731
          node. This works only for instances having a remote raid
732
          disk layout.
733
        </para>
734

    
735
        <para>
736
          Normally the failover will check the consistency of the
737
          disks before failing over the instance. If you are trying to
738
          migrate instances off a dead node, this will fail. Use the
739
          <option>--ignore-consistency</option> option for this
740
          purpose.
741
        </para>
742

    
743
        <para>
744
          Example:
745
          <screen>
746
# gnt-instance failover instance1.example.com
747
          </screen>
748
        </para>
749
      </refsect3>
750

    
751
    </refsect2>
752

    
753
    <refsect2>
754
      <title>TAGS</title>
755

    
756
    <refsect3>
757
        <title>ADD-TAGS</title>
758

    
759
        <cmdsynopsis>
760
          <command>add-tags</command>
761
          <arg choice="opt">--from <replaceable>file</replaceable></arg>
762
          <arg choice="req"><replaceable>instancename</replaceable></arg>
763
          <arg choice="req"
764
            rep="repeat"><replaceable>tag</replaceable></arg>
765
        </cmdsynopsis>
766

    
767
        <para>
768
          Add tags to the given instance. If any of the tags contains
769
          invalid characters, the entire operation will abort.
770
        </para>
771
        <para>
772
          If the <option>--from</option> option is given, the list of
773
          tags will be extended with the contents of that file (each
774
          line becomes a tag). In this case, there is not need to pass
775
          tags on the command line (if you do, both sources will be
776
          used). A file name of - will be interpreted as stdin.
777
        </para>
778
      </refsect3>
779

    
780
      <refsect3>
781
        <title>LIST-TAGS</title>
782

    
783
        <cmdsynopsis>
784
          <command>list-tags</command>
785
          <arg choice="req"><replaceable>instancename</replaceable></arg>
786
        </cmdsynopsis>
787

    
788
        <para>List the tags of the given instance.</para>
789
      </refsect3>
790

    
791
      <refsect3>
792
        <title>REMOVE-TAGS</title>
793
        <cmdsynopsis>
794
          <command>remove-tags</command>
795
          <arg choice="opt">--from <replaceable>file</replaceable></arg>
796
          <arg choice="req"><replaceable>instancename</replaceable></arg>
797
          <arg choice="req"
798
            rep="repeat"><replaceable>tag</replaceable></arg>
799
        </cmdsynopsis>
800

    
801
        <para>
802
          Remove tags from the given instance. If any of the tags are
803
          not existing on the node, the entire operation will abort.
804
        </para>
805

    
806
        <para>
807
          If the <option>--from</option> option is given, the list of
808
          tags will be extended with the contents of that file (each
809
          line becomes a tag). In this case, there is not need to pass
810
          tags on the command line (if you do, both sources will be
811
          used). A file name of - will be interpreted as stdin.
812
        </para>
813
      </refsect3>
814

    
815
    </refsect2>
816

    
817
  </refsect1>
818

    
819
  &footer;
820

    
821
</refentry>
822

    
823
<!-- Keep this comment at the end of the file
824
Local variables:
825
mode: sgml
826
sgml-omittag:t
827
sgml-shorttag:t
828
sgml-minimize-attributes:nil
829
sgml-always-quote-attributes:t
830
sgml-indent-step:2
831
sgml-indent-data:t
832
sgml-parent-document:nil
833
sgml-default-dtd-file:nil
834
sgml-exposed-tags:nil
835
sgml-local-catalogs:nil
836
sgml-local-ecat-files:nil
837
End:
838
-->