Statistics
| Branch: | Tag: | Revision:

root / man / gnt-instance.rst @ 3438e1f8

History | View | Annotate | Download (67 kB)

1
gnt-instance(8) Ganeti | Version @GANETI_VERSION@
2
=================================================
3

    
4
Name
5
----
6

    
7
gnt-instance - Ganeti instance administration
8

    
9
Synopsis
10
--------
11

    
12
**gnt-instance** {command} [arguments...]
13

    
14
DESCRIPTION
15
-----------
16

    
17
The **gnt-instance** command is used for instance administration in
18
the Ganeti system.
19

    
20
COMMANDS
21
--------
22

    
23
Creation/removal/querying
24
~~~~~~~~~~~~~~~~~~~~~~~~~
25

    
26
ADD
27
^^^
28

    
29
| **add**
30
| {-t|\--disk-template {diskless | file \| plain \| drbd \| rbd}}
31
| {\--disk=*N*: {size=*VAL* \| adopt=*LV*}[,vg=*VG*][,metavg=*VG*][,mode=*ro\|rw*]
32
|  \| {size=*VAL*,provider=*PROVIDER*}[,param=*value*... ][,mode=*ro\|rw*]
33
|  \| {-s|\--os-size} *SIZE*}
34
| [\--no-ip-check] [\--no-name-check] [\--no-start] [\--no-install]
35
| [\--net=*N* [:options...] \| \--no-nics]
36
| [{-B|\--backend-parameters} *BEPARAMS*]
37
| [{-H|\--hypervisor-parameters} *HYPERVISOR* [: option=*value*... ]]
38
| [{-O|\--os-parameters} *param*=*value*... ]
39
| [\--file-storage-dir *dir\_path*] [\--file-driver {loop \| blktap}]
40
| {{-n|\--node} *node[:secondary-node]* \| {-I|\--iallocator} *name*}
41
| {{-o|\--os-type} *os-type*}
42
| [\--submit]
43
| [\--ignore-ipolicy]
44
| {*instance*}
45

    
46
Creates a new instance on the specified host. The *instance* argument
47
must be in DNS, but depending on the bridge/routing setup, need not be
48
in the same network as the nodes in the cluster.
49

    
50
The ``disk`` option specifies the parameters for the disks of the
51
instance. The numbering of disks starts at zero, and at least one disk
52
needs to be passed. For each disk, either the size or the adoption
53
source needs to be given, and optionally the access mode (read-only or
54
the default of read-write). The size is interpreted (when no unit is
55
given) in mebibytes. You can also use one of the suffixes *m*, *g* or
56
*t* to specify the exact the units used; these suffixes map to
57
mebibytes, gibibytes and tebibytes. For LVM and DRBD devices, the LVM
58
volume group can also be specified (via the ``vg`` key). For DRBD
59
devices, a different VG can be specified for the metadata device using
60
the ``metavg`` key. For ExtStorage devices, also the ``provider``
61
option is mandatory, to specify which ExtStorage provider to use.
62

    
63
When creating ExtStorage disks, also arbitrary parameters can be passed,
64
to the ExtStorage provider. Those parameters are passed as additional
65
comma separated options. Therefore, an ExtStorage disk provided by
66
provider ``pvdr1`` with parameters ``param1``, ``param2`` would be
67
passed as ``--disk 0:size=10G,provider=pvdr1,param1=val1,param2=val2``.
68

    
69
When using the ``adopt`` key in the disk definition, Ganeti will
70
reuse those volumes (instead of creating new ones) as the
71
instance's disks. Ganeti will rename these volumes to the standard
72
format, and (without installing the OS) will use them as-is for the
73
instance. This allows migrating instances from non-managed mode
74
(e.g. plain KVM with LVM) to being managed via Ganeti. Please note that
75
this works only for the \`plain' disk template (see below for
76
template details).
77

    
78
Alternatively, a single-disk instance can be created via the ``-s``
79
option which takes a single argument, the size of the disk. This is
80
similar to the Ganeti 1.2 version (but will only create one disk).
81

    
82
The minimum disk specification is therefore ``--disk 0:size=20G`` (or
83
``-s 20G`` when using the ``-s`` option), and a three-disk instance
84
can be specified as ``--disk 0:size=20G --disk 1:size=4G --disk
85
2:size=100G``.
86

    
87
The minimum information needed to specify an ExtStorage disk are the
88
``size`` and the ``provider``. For example:
89
``--disk 0:size=20G,provider=pvdr1``.
90

    
91
The ``--no-ip-check`` skips the checks that are done to see if the
92
instance's IP is not already alive (i.e. reachable from the master
93
node).
94

    
95
The ``--no-name-check`` skips the check for the instance name via
96
the resolver (e.g. in DNS or /etc/hosts, depending on your setup).
97
Since the name check is used to compute the IP address, if you pass
98
this option you must also pass the ``--no-ip-check`` option.
99

    
100
If you don't want the instance to automatically start after
101
creation, this is possible via the ``--no-start`` option. This will
102
leave the instance down until a subsequent **gnt-instance start**
103
command.
104

    
105
The NICs of the instances can be specified via the ``--net``
106
option. By default, one NIC is created for the instance, with a
107
random MAC, and set up according the the cluster level NIC
108
parameters. Each NIC can take these parameters (all optional):
109

    
110
mac
111
    either a value or 'generate' to generate a new unique MAC
112

    
113
ip
114
    specifies the IP address assigned to the instance from the Ganeti
115
    side (this is not necessarily what the instance will use, but what
116
    the node expects the instance to use)
117

    
118
mode
119
    specifies the connection mode for this NIC: routed, bridged or
120
    openvswitch.
121

    
122
link
123
    in bridged or openvswitch mode specifies the interface to attach
124
    this NIC to, in routed mode it's intended to differentiate between
125
    different routing tables/instance groups (but the meaning is
126
    dependent on the network script, see **gnt-cluster**\(8) for more
127
    details). Note that openvswitch support is also hypervisor
128
    dependent.
129

    
130
network
131
    derives the mode and the link from the settings of the network
132
    which is identified by its name. If the network option is chosen,
133
    link and mode must not be specified. Note that the mode and link
134
    depend on the network-to-nodegroup connection, thus allowing
135
    different nodegroups to be connected to the same network in
136
    different ways.
137

    
138

    
139
Of these "mode" and "link" are NIC parameters, and inherit their
140
default at cluster level.  Alternatively, if no network is desired for
141
the instance, you can prevent the default of one NIC with the
142
``--no-nics`` option.
143

    
144
The ``-o (--os-type)`` option specifies the operating system to be
145
installed.  The available operating systems can be listed with
146
**gnt-os list**.  Passing ``--no-install`` will however skip the OS
147
installation, allowing a manual import if so desired. Note that the
148
no-installation mode will automatically disable the start-up of the
149
instance (without an OS, it most likely won't be able to start-up
150
successfully).
151

    
152
The ``-B (--backend-parameters)`` option specifies the backend
153
parameters for the instance. If no such parameters are specified, the
154
values are inherited from the cluster. Possible parameters are:
155

    
156
maxmem
157
    the maximum memory size of the instance; as usual, suffixes can be
158
    used to denote the unit, otherwise the value is taken in mebibytes
159

    
160
minmem
161
    the minimum memory size of the instance; as usual, suffixes can be
162
    used to denote the unit, otherwise the value is taken in mebibytes
163

    
164
vcpus
165
    the number of VCPUs to assign to the instance (if this value makes
166
    sense for the hypervisor)
167

    
168
auto\_balance
169
    whether the instance is considered in the N+1 cluster checks
170
    (enough redundancy in the cluster to survive a node failure)
171

    
172
always\_failover
173
    ``True`` or ``False``, whether the instance must be failed over
174
    (shut down and rebooted) always or it may be migrated (briefly
175
    suspended)
176

    
177
Note that before 2.6 Ganeti had a ``memory`` parameter, which was the
178
only value of memory an instance could have. With the
179
``maxmem``/``minmem`` change Ganeti guarantees that at least the minimum
180
memory is always available for an instance, but allows more memory to be
181
used (up to the maximum memory) should it be free.
182

    
183
The ``-H (--hypervisor-parameters)`` option specified the hypervisor
184
to use for the instance (must be one of the enabled hypervisors on the
185
cluster) and optionally custom parameters for this instance. If not
186
other options are used (i.e. the invocation is just -H *NAME*) the
187
instance will inherit the cluster options. The defaults below show the
188
cluster defaults at cluster creation time.
189

    
190
The possible hypervisor options are as follows:
191

    
192
boot\_order
193
    Valid for the Xen HVM and KVM hypervisors.
194

    
195
    A string value denoting the boot order. This has different meaning
196
    for the Xen HVM hypervisor and for the KVM one.
197

    
198
    For Xen HVM, The boot order is a string of letters listing the boot
199
    devices, with valid device letters being:
200

    
201
    a
202
        floppy drive
203

    
204
    c
205
        hard disk
206

    
207
    d
208
        CDROM drive
209

    
210
    n
211
        network boot (PXE)
212

    
213
    The default is not to set an HVM boot order, which is interpreted
214
    as 'dc'.
215

    
216
    For KVM the boot order is either "floppy", "cdrom", "disk" or
217
    "network".  Please note that older versions of KVM couldn't netboot
218
    from virtio interfaces. This has been fixed in more recent versions
219
    and is confirmed to work at least with qemu-kvm 0.11.1. Also note
220
    that if you have set the ``kernel_path`` option, that will be used
221
    for booting, and this setting will be silently ignored.
222

    
223
blockdev\_prefix
224
    Valid for the Xen HVM and PVM hypervisors.
225

    
226
    Relevant to non-pvops guest kernels, in which the disk device names
227
    are given by the host.  Allows one to specify 'xvd', which helps run
228
    Red Hat based installers, driven by anaconda.
229

    
230
floppy\_image\_path
231
    Valid for the KVM hypervisor.
232

    
233
    The path to a floppy disk image to attach to the instance.  This
234
    is useful to install Windows operating systems on Virt/IO disks
235
    because you can specify here the floppy for the drivers at
236
    installation time.
237

    
238
cdrom\_image\_path
239
    Valid for the Xen HVM and KVM hypervisors.
240

    
241
    The path to a CDROM image to attach to the instance.
242

    
243
cdrom2\_image\_path
244
    Valid for the KVM hypervisor.
245

    
246
    The path to a second CDROM image to attach to the instance.
247
    **NOTE**: This image can't be used to boot the system. To do that
248
    you have to use the 'cdrom\_image\_path' option.
249

    
250
nic\_type
251
    Valid for the Xen HVM and KVM hypervisors.
252

    
253
    This parameter determines the way the network cards are presented
254
    to the instance. The possible options are:
255

    
256
    - rtl8139 (default for Xen HVM) (HVM & KVM)
257
    - ne2k\_isa (HVM & KVM)
258
    - ne2k\_pci (HVM & KVM)
259
    - i82551 (KVM)
260
    - i82557b (KVM)
261
    - i82559er (KVM)
262
    - pcnet (KVM)
263
    - e1000 (KVM)
264
    - paravirtual (default for KVM) (HVM & KVM)
265

    
266
disk\_type
267
    Valid for the Xen HVM and KVM hypervisors.
268

    
269
    This parameter determines the way the disks are presented to the
270
    instance. The possible options are:
271

    
272
    - ioemu [default] (HVM & KVM)
273
    - ide (HVM & KVM)
274
    - scsi (KVM)
275
    - sd (KVM)
276
    - mtd (KVM)
277
    - pflash (KVM)
278

    
279

    
280
cdrom\_disk\_type
281
    Valid for the KVM hypervisor.
282

    
283
    This parameter determines the way the cdroms disks are presented
284
    to the instance. The default behavior is to get the same value of
285
    the earlier parameter (disk_type). The possible options are:
286

    
287
    - paravirtual
288
    - ide
289
    - scsi
290
    - sd
291
    - mtd
292
    - pflash
293

    
294

    
295
vnc\_bind\_address
296
    Valid for the Xen HVM and KVM hypervisors.
297

    
298
    Specifies the address that the VNC listener for this instance
299
    should bind to. Valid values are IPv4 addresses. Use the address
300
    0.0.0.0 to bind to all available interfaces (this is the default)
301
    or specify the address of one of the interfaces on the node to
302
    restrict listening to that interface.
303

    
304
vnc\_tls
305
    Valid for the KVM hypervisor.
306

    
307
    A boolean option that controls whether the VNC connection is
308
    secured with TLS.
309

    
310
vnc\_x509\_path
311
    Valid for the KVM hypervisor.
312

    
313
    If ``vnc_tls`` is enabled, this options specifies the path to the
314
    x509 certificate to use.
315

    
316
vnc\_x509\_verify
317
    Valid for the KVM hypervisor.
318

    
319
spice\_bind
320
    Valid for the KVM hypervisor.
321

    
322
    Specifies the address or interface on which the SPICE server will
323
    listen. Valid values are:
324

    
325
    - IPv4 addresses, including 0.0.0.0 and 127.0.0.1
326
    - IPv6 addresses, including :: and ::1
327
    - names of network interfaces
328

    
329
    If a network interface is specified, the SPICE server will be bound
330
    to one of the addresses of that interface.
331

    
332
spice\_ip\_version
333
    Valid for the KVM hypervisor.
334

    
335
    Specifies which version of the IP protocol should be used by the
336
    SPICE server.
337

    
338
    It is mainly intended to be used for specifying what kind of IP
339
    addresses should be used if a network interface with both IPv4 and
340
    IPv6 addresses is specified via the ``spice_bind`` parameter. In
341
    this case, if the ``spice_ip_version`` parameter is not used, the
342
    default IP version of the cluster will be used.
343

    
344
spice\_password\_file
345
    Valid for the KVM hypervisor.
346

    
347
    Specifies a file containing the password that must be used when
348
    connecting via the SPICE protocol. If the option is not specified,
349
    passwordless connections are allowed.
350

    
351
spice\_image\_compression
352
    Valid for the KVM hypervisor.
353

    
354
    Configures the SPICE lossless image compression. Valid values are:
355

    
356
    - auto_glz
357
    - auto_lz
358
    - quic
359
    - glz
360
    - lz
361
    - off
362

    
363
spice\_jpeg\_wan\_compression
364
    Valid for the KVM hypervisor.
365

    
366
    Configures how SPICE should use the jpeg algorithm for lossy image
367
    compression on slow links. Valid values are:
368

    
369
    - auto
370
    - never
371
    - always
372

    
373
spice\_zlib\_glz\_wan\_compression
374
    Valid for the KVM hypervisor.
375

    
376
    Configures how SPICE should use the zlib-glz algorithm for lossy image
377
    compression on slow links. Valid values are:
378

    
379
    - auto
380
    - never
381
    - always
382

    
383
spice\_streaming\_video
384
    Valid for the KVM hypervisor.
385

    
386
    Configures how SPICE should detect video streams. Valid values are:
387

    
388
    - off
389
    - all
390
    - filter
391

    
392
spice\_playback\_compression
393
    Valid for the KVM hypervisor.
394

    
395
    Configures whether SPICE should compress audio streams or not.
396

    
397
spice\_use\_tls
398
    Valid for the KVM hypervisor.
399

    
400
    Specifies that the SPICE server must use TLS to encrypt all the
401
    traffic with the client.
402

    
403
spice\_tls\_ciphers
404
    Valid for the KVM hypervisor.
405

    
406
    Specifies a list of comma-separated ciphers that SPICE should use
407
    for TLS connections. For the format, see man **cipher**\(1).
408

    
409
spice\_use\_vdagent
410
    Valid for the KVM hypervisor.
411

    
412
    Enables or disables passing mouse events via SPICE vdagent.
413

    
414
cpu\_type
415
    Valid for the KVM hypervisor.
416

    
417
    This parameter determines the emulated cpu for the instance. If this
418
    parameter is empty (which is the default configuration), it will not
419
    be passed to KVM.
420

    
421
    Be aware of setting this parameter to ``"host"`` if you have nodes
422
    with different CPUs from each other. Live migration may stop working
423
    in this situation.
424

    
425
    For more information please refer to the KVM manual.
426

    
427
acpi
428
    Valid for the Xen HVM and KVM hypervisors.
429

    
430
    A boolean option that specifies if the hypervisor should enable
431
    ACPI support for this instance. By default, ACPI is disabled.
432

    
433
pae
434
    Valid for the Xen HVM and KVM hypervisors.
435

    
436
    A boolean option that specifies if the hypervisor should enabled
437
    PAE support for this instance. The default is false, disabling PAE
438
    support.
439

    
440
use\_localtime
441
    Valid for the Xen HVM and KVM hypervisors.
442

    
443
    A boolean option that specifies if the instance should be started
444
    with its clock set to the localtime of the machine (when true) or
445
    to the UTC (When false). The default is false, which is useful for
446
    Linux/Unix machines; for Windows OSes, it is recommended to enable
447
    this parameter.
448

    
449
kernel\_path
450
    Valid for the Xen PVM and KVM hypervisors.
451

    
452
    This option specifies the path (on the node) to the kernel to boot
453
    the instance with. Xen PVM instances always require this, while for
454
    KVM if this option is empty, it will cause the machine to load the
455
    kernel from its disks (and the boot will be done accordingly to
456
    ``boot_order``).
457

    
458
kernel\_args
459
    Valid for the Xen PVM and KVM hypervisors.
460

    
461
    This options specifies extra arguments to the kernel that will be
462
    loaded. device. This is always used for Xen PVM, while for KVM it
463
    is only used if the ``kernel_path`` option is also specified.
464

    
465
    The default setting for this value is simply ``"ro"``, which
466
    mounts the root disk (initially) in read-only one. For example,
467
    setting this to single will cause the instance to start in
468
    single-user mode.
469

    
470
initrd\_path
471
    Valid for the Xen PVM and KVM hypervisors.
472

    
473
    This option specifies the path (on the node) to the initrd to boot
474
    the instance with. Xen PVM instances can use this always, while
475
    for KVM if this option is only used if the ``kernel_path`` option
476
    is also specified. You can pass here either an absolute filename
477
    (the path to the initrd) if you want to use an initrd, or use the
478
    format no\_initrd\_path for no initrd.
479

    
480
root\_path
481
    Valid for the Xen PVM and KVM hypervisors.
482

    
483
    This options specifies the name of the root device. This is always
484
    needed for Xen PVM, while for KVM it is only used if the
485
    ``kernel_path`` option is also specified.
486

    
487
    Please note, that if this setting is an empty string and the
488
    hypervisor is Xen it will not be written to the Xen configuration
489
    file
490

    
491
serial\_console
492
    Valid for the KVM hypervisor.
493

    
494
    This boolean option specifies whether to emulate a serial console
495
    for the instance. Note that some versions of KVM have a bug that
496
    will make an instance hang when configured to use the serial console
497
    unless a connection is made to it within about 2 seconds of the
498
    instance's startup. For such case it's recommended to disable this
499
    option, which is enabled by default.
500

    
501
serial\_speed
502
    Valid for the KVM hypervisor.
503

    
504
    This integer option specifies the speed of the serial console.
505
    Common values are 9600, 19200, 38400, 57600 and 115200: choose the
506
    one which works on your system. (The default is 38400 for historical
507
    reasons, but newer versions of kvm/qemu work with 115200)
508

    
509
disk\_cache
510
    Valid for the KVM hypervisor.
511

    
512
    The disk cache mode. It can be either default to not pass any
513
    cache option to KVM, or one of the KVM cache modes: none (for
514
    direct I/O), writethrough (to use the host cache but report
515
    completion to the guest only when the host has committed the
516
    changes to disk) or writeback (to use the host cache and report
517
    completion as soon as the data is in the host cache). Note that
518
    there are special considerations for the cache mode depending on
519
    version of KVM used and disk type (always raw file under Ganeti),
520
    please refer to the KVM documentation for more details.
521

    
522
security\_model
523
    Valid for the KVM hypervisor.
524

    
525
    The security model for kvm. Currently one of *none*, *user* or
526
    *pool*. Under *none*, the default, nothing is done and instances
527
    are run as the Ganeti daemon user (normally root).
528

    
529
    Under *user* kvm will drop privileges and become the user
530
    specified by the security\_domain parameter.
531

    
532
    Under *pool* a global cluster pool of users will be used, making
533
    sure no two instances share the same user on the same node. (this
534
    mode is not implemented yet)
535

    
536
security\_domain
537
    Valid for the KVM hypervisor.
538

    
539
    Under security model *user* the username to run the instance
540
    under.  It must be a valid username existing on the host.
541

    
542
    Cannot be set under security model *none* or *pool*.
543

    
544
kvm\_flag
545
    Valid for the KVM hypervisor.
546

    
547
    If *enabled* the -enable-kvm flag is passed to kvm. If *disabled*
548
    -disable-kvm is passed. If unset no flag is passed, and the
549
    default running mode for your kvm binary will be used.
550

    
551
mem\_path
552
    Valid for the KVM hypervisor.
553

    
554
    This option passes the -mem-path argument to kvm with the path (on
555
    the node) to the mount point of the hugetlbfs file system, along
556
    with the -mem-prealloc argument too.
557

    
558
use\_chroot
559
    Valid for the KVM hypervisor.
560

    
561
    This boolean option determines whether to run the KVM instance in a
562
    chroot directory.
563

    
564
    If it is set to ``true``, an empty directory is created before
565
    starting the instance and its path is passed via the -chroot flag
566
    to kvm. The directory is removed when the instance is stopped.
567

    
568
    It is set to ``false`` by default.
569

    
570
migration\_downtime
571
    Valid for the KVM hypervisor.
572

    
573
    The maximum amount of time (in ms) a KVM instance is allowed to be
574
    frozen during a live migration, in order to copy dirty memory
575
    pages. Default value is 30ms, but you may need to increase this
576
    value for busy instances.
577

    
578
    This option is only effective with kvm versions >= 87 and qemu-kvm
579
    versions >= 0.11.0.
580

    
581
cpu\_mask
582
    Valid for the Xen, KVM and LXC hypervisors.
583

    
584
    The processes belonging to the given instance are only scheduled
585
    on the specified CPUs.
586

    
587
    The format of the mask can be given in three forms. First, the word
588
    "all", which signifies the common case where all VCPUs can live on
589
    any CPU, based on the hypervisor's decisions.
590

    
591
    Second, a comma-separated list of CPU IDs or CPU ID ranges. The
592
    ranges are defined by a lower and higher boundary, separated by a
593
    dash, and the boundaries are inclusive. In this form, all VCPUs of
594
    the instance will be mapped on the selected list of CPUs. Example:
595
    ``0-2,5``, mapping all VCPUs (no matter how many) onto physical CPUs
596
    0, 1, 2 and 5.
597

    
598
    The last form is used for explicit control of VCPU-CPU pinnings. In
599
    this form, the list of VCPU mappings is given as a colon (:)
600
    separated list, whose elements are the possible values for the
601
    second or first form above. In this form, the number of elements in
602
    the colon-separated list _must_ equal the number of VCPUs of the
603
    instance.
604

    
605
    Example:
606

    
607
    .. code-block:: bash
608

    
609
      # Map the entire instance to CPUs 0-2
610
      gnt-instance modify -H cpu_mask=0-2 my-inst
611

    
612
      # Map vCPU 0 to physical CPU 1 and vCPU 1 to CPU 3 (assuming 2 vCPUs)
613
      gnt-instance modify -H cpu_mask=1:3 my-inst
614

    
615
      # Pin vCPU 0 to CPUs 1 or 2, and vCPU 1 to any CPU
616
      gnt-instance modify -H cpu_mask=1-2:all my-inst
617

    
618
      # Pin vCPU 0 to any CPU, vCPU 1 to CPUs 1, 3, 4 or 5, and CPU 2 to
619
      # CPU 0 (backslashes for escaping the comma)
620
      gnt-instance modify -H cpu_mask=all:1\\,3-5:0 my-inst
621

    
622
      # Pin entire VM to CPU 0
623
      gnt-instance modify -H cpu_mask=0 my-inst
624

    
625
      # Turn off CPU pinning (default setting)
626
      gnt-instance modify -H cpu_mask=all my-inst
627

    
628
cpu\_cap
629
    Valid for the Xen hypervisor.
630

    
631
    Set the maximum amount of cpu usage by the VM. The value is a percentage
632
    between 0 and (100 * number of VCPUs). Default cap is 0: unlimited.
633

    
634
cpu\_weight
635
    Valid for the Xen hypervisor.
636

    
637
    Set the cpu time ratio to be allocated to the VM. Valid values are
638
    between 1 and 65535. Default weight is 256.
639

    
640
usb\_mouse
641
    Valid for the KVM hypervisor.
642

    
643
    This option specifies the usb mouse type to be used. It can be
644
    "mouse" or "tablet". When using VNC it's recommended to set it to
645
    "tablet".
646

    
647
keymap
648
    Valid for the KVM hypervisor.
649

    
650
    This option specifies the keyboard mapping to be used. It is only
651
    needed when using the VNC console. For example: "fr" or "en-gb".
652

    
653
reboot\_behavior
654
    Valid for Xen PVM, Xen HVM and KVM hypervisors.
655

    
656
    Normally if an instance reboots, the hypervisor will restart it. If
657
    this option is set to ``exit``, the hypervisor will treat a reboot
658
    as a shutdown instead.
659

    
660
    It is set to ``reboot`` by default.
661

    
662
cpu\_cores
663
    Valid for the KVM hypervisor.
664

    
665
    Number of emulated CPU cores.
666

    
667
cpu\_threads
668
    Valid for the KVM hypervisor.
669

    
670
    Number of emulated CPU threads.
671

    
672
cpu\_sockets
673
    Valid for the KVM hypervisor.
674

    
675
    Number of emulated CPU sockets.
676

    
677
soundhw
678
    Valid for the KVM hypervisor.
679

    
680
    Comma separated list of emulated sounds cards, or "all" to enable
681
    all the available ones.
682

    
683
usb\_devices
684
    Valid for the KVM hypervisor.
685

    
686
    Comma separated list of usb devices. These can be emulated devices
687
    or passthrough ones, and each one gets passed to kvm with its own
688
    ``-usbdevice`` option. See the **qemu**\(1) manpage for the syntax
689
    of the possible components.
690

    
691
vga
692
    Valid for the KVM hypervisor.
693

    
694
    Emulated vga mode, passed the the kvm -vga option.
695

    
696
kvm\_extra
697
    Valid for the KVM hypervisor.
698

    
699
    Any other option to the KVM hypervisor, useful tweaking anything
700
    that Ganeti doesn't support.
701

    
702
machine\_version
703
    Valid for the KVM hypervisor.
704

    
705
    Use in case an instance must be booted with an exact type of
706
    machine version (due to e.g. outdated drivers). In case it's not set
707
    the default version supported by your version of kvm is used.
708

    
709
kvm\_path
710
    Valid for the KVM hypervisor.
711

    
712
    Path to the userspace KVM (or qemu) program.
713

    
714
The ``-O (--os-parameters)`` option allows customisation of the OS
715
parameters. The actual parameter names and values depends on the OS
716
being used, but the syntax is the same key=value. For example, setting
717
a hypothetical ``dhcp`` parameter to yes can be achieved by::
718

    
719
    gnt-instance add -O dhcp=yes ...
720

    
721
The ``-I (--iallocator)`` option specifies the instance allocator plugin
722
to use (``.`` means the default allocator). If you pass in this option
723
the allocator will select nodes for this instance automatically, so you
724
don't need to pass them with the ``-n`` option. For more information
725
please refer to the instance allocator documentation.
726

    
727
The ``-t (--disk-template)`` options specifies the disk layout type
728
for the instance.  The available choices are:
729

    
730
diskless
731
    This creates an instance with no disks. Its useful for testing only
732
    (or other special cases).
733

    
734
file
735
    Disk devices will be regular files.
736

    
737
sharedfile
738
    Disk devices will be regulare files on a shared directory.
739

    
740
plain
741
    Disk devices will be logical volumes.
742

    
743
drbd
744
    Disk devices will be drbd (version 8.x) on top of lvm volumes.
745

    
746
rbd
747
    Disk devices will be rbd volumes residing inside a RADOS cluster.
748

    
749
blockdev
750
    Disk devices will be adopted pre-existent block devices.
751

    
752
ext
753
    Disk devices will be provided by external shared storage,
754
    through the ExtStorage Interface using ExtStorage providers.
755

    
756
The optional second value of the ``-n (--node)`` is used for the drbd
757
template type and specifies the remote node.
758

    
759
If you do not want gnt-instance to wait for the disk mirror to be
760
synced, use the ``--no-wait-for-sync`` option.
761

    
762
The ``--file-storage-dir`` specifies the relative path under the
763
cluster-wide file storage directory to store file-based disks. It is
764
useful for having different subdirectories for different
765
instances. The full path of the directory where the disk files are
766
stored will consist of cluster-wide file storage directory + optional
767
subdirectory + instance name. Example:
768
``@RPL_FILE_STORAGE_DIR@/mysubdir/instance1.example.com``. This
769
option is only relevant for instances using the file storage backend.
770

    
771
The ``--file-driver`` specifies the driver to use for file-based
772
disks. Note that currently these drivers work with the xen hypervisor
773
only. This option is only relevant for instances using the file
774
storage backend. The available choices are:
775

    
776
loop
777
    Kernel loopback driver. This driver uses loopback devices to
778
    access the filesystem within the file. However, running I/O
779
    intensive applications in your instance using the loop driver
780
    might result in slowdowns. Furthermore, if you use the loopback
781
    driver consider increasing the maximum amount of loopback devices
782
    (on most systems it's 8) using the max\_loop param.
783

    
784
blktap
785
    The blktap driver (for Xen hypervisors). In order to be able to
786
    use the blktap driver you should check if the 'blktapctrl' user
787
    space disk agent is running (usually automatically started via
788
    xend).  This user-level disk I/O interface has the advantage of
789
    better performance. Especially if you use a network file system
790
    (e.g. NFS) to store your instances this is the recommended choice.
791

    
792
If ``--ignore-ipolicy`` is given any instance policy violations occuring
793
during this operation are ignored.
794

    
795
See **ganeti**\(7) for a description of ``--submit`` and other common
796
options.
797

    
798
Example::
799

    
800
    # gnt-instance add -t file --disk 0:size=30g -B maxmem=512 -o debian-etch \
801
      -n node1.example.com --file-storage-dir=mysubdir instance1.example.com
802
    # gnt-instance add -t plain --disk 0:size=30g -B maxmem=1024,minmem=512 \
803
      -o debian-etch -n node1.example.com instance1.example.com
804
    # gnt-instance add -t plain --disk 0:size=30g --disk 1:size=100g,vg=san \
805
      -B maxmem=512 -o debian-etch -n node1.example.com instance1.example.com
806
    # gnt-instance add -t drbd --disk 0:size=30g -B maxmem=512 -o debian-etch \
807
      -n node1.example.com:node2.example.com instance2.example.com
808
    # gnt-instance add -t rbd --disk 0:size=30g -B maxmem=512 -o debian-etch \
809
      -n node1.example.com instance1.example.com
810
    # gnt-instance add -t ext --disk 0:size=30g,provider=pvdr1 -B maxmem=512 \
811
      -o debian-etch -n node1.example.com instance1.example.com
812
    # gnt-instance add -t ext --disk 0:size=30g,provider=pvdr1,param1=val1 \
813
      --disk 1:size=40g,provider=pvdr2,param2=val2,param3=val3 -B maxmem=512 \
814
      -o debian-etch -n node1.example.com instance1.example.com
815

    
816

    
817
BATCH-CREATE
818
^^^^^^^^^^^^
819

    
820
**batch-create** {instances\_file.json}
821

    
822
This command (similar to the Ganeti 1.2 **batcher** tool) submits
823
multiple instance creation jobs based on a definition file. The
824
instance configurations do not encompass all the possible options for
825
the **add** command, but only a subset.
826

    
827
The instance file should be a valid-formed JSON file, containing a
828
dictionary with instance name and instance parameters. The accepted
829
parameters are:
830

    
831
disk\_size
832
    The size of the disks of the instance.
833

    
834
disk\_template
835
    The disk template to use for the instance, the same as in the
836
    **add** command.
837

    
838
backend
839
    A dictionary of backend parameters.
840

    
841
hypervisor
842
    A dictionary with a single key (the hypervisor name), and as value
843
    the hypervisor options. If not passed, the default hypervisor and
844
    hypervisor options will be inherited.
845

    
846
mac, ip, mode, link
847
    Specifications for the one NIC that will be created for the
848
    instance. 'bridge' is also accepted as a backwards compatible
849
    key.
850

    
851
nics
852
    List of NICs that will be created for the instance. Each entry
853
    should be a dict, with mac, ip, mode and link as possible keys.
854
    Please don't provide the "mac, ip, mode, link" parent keys if you
855
    use this method for specifying NICs.
856

    
857
primary\_node, secondary\_node
858
    The primary and optionally the secondary node to use for the
859
    instance (in case an iallocator script is not used).
860

    
861
iallocator
862
    Instead of specifying the nodes, an iallocator script can be used
863
    to automatically compute them.
864

    
865
start
866
    whether to start the instance
867

    
868
ip\_check
869
    Skip the check for already-in-use instance; see the description in
870
    the **add** command for details.
871

    
872
name\_check
873
    Skip the name check for instances; see the description in the
874
    **add** command for details.
875

    
876
file\_storage\_dir, file\_driver
877
    Configuration for the file disk type, see the **add** command for
878
    details.
879

    
880

    
881
A simple definition for one instance can be (with most of the
882
parameters taken from the cluster defaults)::
883

    
884
    {
885
      "instance3": {
886
        "template": "drbd",
887
        "os": "debootstrap",
888
        "disk_size": ["25G"],
889
        "iallocator": "dumb"
890
      },
891
      "instance5": {
892
        "template": "drbd",
893
        "os": "debootstrap",
894
        "disk_size": ["25G"],
895
        "iallocator": "dumb",
896
        "hypervisor": "xen-hvm",
897
        "hvparams": {"acpi": true},
898
        "backend": {"maxmem": 512, "minmem": 256}
899
      }
900
    }
901

    
902
The command will display the job id for each submitted instance, as
903
follows::
904

    
905
    # gnt-instance batch-create instances.json
906
    instance3: 11224
907
    instance5: 11225
908

    
909
REMOVE
910
^^^^^^
911

    
912
**remove** [\--ignore-failures] [\--shutdown-timeout=*N*] [\--submit]
913
[\--force] {*instance*}
914

    
915
Remove an instance. This will remove all data from the instance and
916
there is *no way back*. If you are not sure if you use an instance
917
again, use **shutdown** first and leave it in the shutdown state for a
918
while.
919

    
920
The ``--ignore-failures`` option will cause the removal to proceed
921
even in the presence of errors during the removal of the instance
922
(e.g. during the shutdown or the disk removal). If this option is not
923
given, the command will stop at the first error.
924

    
925
The ``--shutdown-timeout`` is used to specify how much time to wait
926
before forcing the shutdown (e.g. ``xm destroy`` in Xen, killing the
927
kvm process for KVM, etc.). By default two minutes are given to each
928
instance to stop.
929

    
930
The ``--force`` option is used to skip the interactive confirmation.
931

    
932
See **ganeti**\(7) for a description of ``--submit`` and other common
933
options.
934

    
935
Example::
936

    
937
    # gnt-instance remove instance1.example.com
938

    
939

    
940
LIST
941
^^^^
942

    
943
| **list**
944
| [\--no-headers] [\--separator=*SEPARATOR*] [\--units=*UNITS*] [-v]
945
| [{-o|\--output} *[+]FIELD,...*] [\--filter] [instance...]
946

    
947
Shows the currently configured instances with memory usage, disk
948
usage, the node they are running on, and their run status.
949

    
950
The ``--no-headers`` option will skip the initial header line. The
951
``--separator`` option takes an argument which denotes what will be
952
used between the output fields. Both these options are to help
953
scripting.
954

    
955
The units used to display the numeric values in the output varies,
956
depending on the options given. By default, the values will be
957
formatted in the most appropriate unit. If the ``--separator`` option
958
is given, then the values are shown in mebibytes to allow parsing by
959
scripts. In both cases, the ``--units`` option can be used to enforce
960
a given output unit.
961

    
962
The ``-v`` option activates verbose mode, which changes the display of
963
special field states (see **ganeti**\(7)).
964

    
965
The ``-o (--output)`` option takes a comma-separated list of output
966
fields. The available fields and their meaning are:
967

    
968
@QUERY_FIELDS_INSTANCE@
969

    
970
If the value of the option starts with the character ``+``, the new
971
field(s) will be added to the default list. This allows one to quickly
972
see the default list plus a few other fields, instead of retyping the
973
entire list of fields.
974

    
975
There is a subtle grouping about the available output fields: all
976
fields except for ``oper_state``, ``oper_ram``, ``oper_vcpus`` and
977
``status`` are configuration value and not run-time values. So if you
978
don't select any of the these fields, the query will be satisfied
979
instantly from the cluster configuration, without having to ask the
980
remote nodes for the data. This can be helpful for big clusters when
981
you only want some data and it makes sense to specify a reduced set of
982
output fields.
983

    
984
If exactly one argument is given and it appears to be a query filter
985
(see **ganeti**\(7)), the query result is filtered accordingly. For
986
ambiguous cases (e.g. a single field name as a filter) the ``--filter``
987
(``-F``) option forces the argument to be treated as a filter (e.g.
988
``gnt-instance list -F admin_state``).
989

    
990
The default output field list is: ``name``, ``os``, ``pnode``,
991
``admin_state``, ``oper_state``, ``oper_ram``.
992

    
993

    
994
LIST-FIELDS
995
^^^^^^^^^^^
996

    
997
**list-fields** [field...]
998

    
999
Lists available fields for instances.
1000

    
1001

    
1002
INFO
1003
^^^^
1004

    
1005
**info** [-s \| \--static] [\--roman] {\--all \| *instance*}
1006

    
1007
Show detailed information about the given instance(s). This is
1008
different from **list** as it shows detailed data about the instance's
1009
disks (especially useful for the drbd disk template).
1010

    
1011
If the option ``-s`` is used, only information available in the
1012
configuration file is returned, without querying nodes, making the
1013
operation faster.
1014

    
1015
Use the ``--all`` to get info about all instances, rather than
1016
explicitly passing the ones you're interested in.
1017

    
1018
The ``--roman`` option can be used to cause envy among people who like
1019
ancient cultures, but are stuck with non-latin-friendly cluster
1020
virtualization technologies.
1021

    
1022
MODIFY
1023
^^^^^^
1024

    
1025
| **modify**
1026
| [{-H|\--hypervisor-parameters} *HYPERVISOR\_PARAMETERS*]
1027
| [{-B|\--backend-parameters} *BACKEND\_PARAMETERS*]
1028
| [{-m|\--runtime-memory} *SIZE*]
1029
| [\--net add*[:options]* \| \--net [*N*:]remove \| \--net *N:options*]
1030
| [\--disk add:size=*SIZE*[,vg=*VG*][,metavg=*VG*] \|
1031
|  \--disk add:size=*SIZE*,provider=*PROVIDER*[,param=*value*... ] \|
1032
|  \--disk [*N*:]remove \|
1033
|  \--disk *N*:mode=*MODE*]
1034
| [{-t|\--disk-template} plain | {-t|\--disk-template} drbd -n *new_secondary*] [\--no-wait-for-sync]
1035
| [\--new-primary=*node*]
1036
| [\--os-type=*OS* [\--force-variant]]
1037
| [{-O|\--os-parameters} *param*=*value*... ]
1038
| [\--offline \| \--online]
1039
| [\--submit]
1040
| [\--ignore-ipolicy]
1041
| {*instance*}
1042

    
1043
Modifies the memory size, number of vcpus, ip address, MAC address
1044
and/or NIC parameters for an instance. It can also add and remove
1045
disks and NICs to/from the instance. Note that you need to give at
1046
least one of the arguments, otherwise the command complains.
1047

    
1048
The ``-H (--hypervisor-parameters)``, ``-B (--backend-parameters)``
1049
and ``-O (--os-parameters)`` options specifies hypervisor, backend and
1050
OS parameter options in the form of name=value[,...]. For details
1051
which options can be specified, see the **add** command.
1052

    
1053
The ``-t (--disk-template)`` option will change the disk template of
1054
the instance.  Currently only conversions between the plain and drbd
1055
disk templates are supported, and the instance must be stopped before
1056
attempting the conversion. When changing from the plain to the drbd
1057
disk template, a new secondary node must be specified via the ``-n``
1058
option. The option ``--no-wait-for-sync`` can be used when converting
1059
to the ``drbd`` template in order to make the instance available for
1060
startup before DRBD has finished resyncing.
1061

    
1062
The ``-m (--runtime-memory)`` option will change an instance's runtime
1063
memory to the given size (in MB if a different suffix is not specified),
1064
by ballooning it up or down to the new value.
1065

    
1066
The ``--disk add:size=``*SIZE* option adds a disk to the instance. The
1067
optional ``vg=``*VG* option specifies an LVM volume group other than the
1068
default volume group to create the disk on. For DRBD disks, the
1069
``metavg=``*VG* option specifies the volume group for the metadata
1070
device. When adding an ExtStorage disk the ``provider=``*PROVIDER*
1071
option is also mandatory and specifies the ExtStorage provider. Also,
1072
for ExtStorage disks arbitrary parameters can be passed as additional
1073
comma separated options, same as in the **add** command. ``--disk``
1074
*N*``:add,size=``**SIZE** can be used to add a disk at a specific index.
1075
The ``--disk remove`` option will remove the last disk of the instance.
1076
Use ``--disk `` *N*``:remove`` to remove a disk by its index. The
1077
``--disk`` *N*``:mode=``*MODE* option will change the mode of the Nth
1078
disk of the instance between read-only (``ro``) and read-write (``rw``).
1079

    
1080
The ``--net add:``*options* and ``--net`` *N*``:add,``*options* option
1081
will add a new network interface to the instance. The available options
1082
are the same as in the **add** command (``mac``, ``ip``, ``link``,
1083
``mode``, ``network``). The ``--net remove`` will remove the last network
1084
interface of the instance (``--net`` *N*``:remove`` for a specific index),
1085
while the ``--net`` *N*``:``*options* option will change the parameters of
1086
the Nth instance network interface.
1087

    
1088
The option ``-o (--os-type)`` will change the OS name for the instance
1089
(without reinstallation). In case an OS variant is specified that is
1090
not found, then by default the modification is refused, unless
1091
``--force-variant`` is passed. An invalid OS will also be refused,
1092
unless the ``--force`` option is given.
1093

    
1094
The option ``--new-primary`` will set the new primary node of an instance
1095
assuming the disks have already been moved manually. Unless the ``--force``
1096
option is given, it is verified that the instance is no longer running
1097
on its current primary node.
1098

    
1099
The ``--online`` and ``--offline`` options are used to transition an
1100
instance into and out of the ``offline`` state. An instance can be
1101
turned offline only if it was previously down. The ``--online`` option
1102
fails if the instance was not in the ``offline`` state, otherwise it
1103
changes instance's state to ``down``. These modifications take effect
1104
immediately.
1105

    
1106
If ``--ignore-ipolicy`` is given any instance policy violations occuring
1107
during this operation are ignored.
1108

    
1109
See **ganeti**\(7) for a description of ``--submit`` and other common
1110
options.
1111

    
1112
Most of the changes take effect at the next restart. If the instance is
1113
running, there is no effect on the instance.
1114

    
1115
REINSTALL
1116
^^^^^^^^^
1117

    
1118
| **reinstall** [{-o|\--os-type} *os-type*] [\--select-os] [-f *force*]
1119
| [\--force-multiple]
1120
| [\--instance \| \--node \| \--primary \| \--secondary \| \--all]
1121
| [{-O|\--os-parameters} *OS\_PARAMETERS*] [\--submit] {*instance*...}
1122

    
1123
Reinstalls the operating system on the given instance(s). The
1124
instance(s) must be stopped when running this command. If the ``-o
1125
(--os-type)`` is specified, the operating system is changed.
1126

    
1127
The ``--select-os`` option switches to an interactive OS reinstall.
1128
The user is prompted to select the OS template from the list of
1129
available OS templates. OS parameters can be overridden using ``-O
1130
(--os-parameters)`` (more documentation for this option under the
1131
**add** command).
1132

    
1133
Since this is a potentially dangerous command, the user will be
1134
required to confirm this action, unless the ``-f`` flag is passed.
1135
When multiple instances are selected (either by passing multiple
1136
arguments or by using the ``--node``, ``--primary``, ``--secondary``
1137
or ``--all`` options), the user must pass the ``--force-multiple``
1138
options to skip the interactive confirmation.
1139

    
1140
See **ganeti**\(7) for a description of ``--submit`` and other common
1141
options.
1142

    
1143
RENAME
1144
^^^^^^
1145

    
1146
| **rename** [\--no-ip-check] [\--no-name-check] [\--submit]
1147
| {*instance*} {*new\_name*}
1148

    
1149
Renames the given instance. The instance must be stopped when running
1150
this command. The requirements for the new name are the same as for
1151
adding an instance: the new name must be resolvable and the IP it
1152
resolves to must not be reachable (in order to prevent duplicate IPs
1153
the next time the instance is started). The IP test can be skipped if
1154
the ``--no-ip-check`` option is passed.
1155

    
1156
Note that you can rename an instance to its same name, to force
1157
re-executing the os-specific rename script for that instance, if
1158
needed.
1159

    
1160
The ``--no-name-check`` skips the check for the new instance name via
1161
the resolver (e.g. in DNS or /etc/hosts, depending on your setup) and
1162
that the resolved name matches the provided name. Since the name check
1163
is used to compute the IP address, if you pass this option you must also
1164
pass the ``--no-ip-check`` option.
1165

    
1166
See **ganeti**\(7) for a description of ``--submit`` and other common
1167
options.
1168

    
1169
Starting/stopping/connecting to console
1170
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1171

    
1172
STARTUP
1173
^^^^^^^
1174

    
1175
| **startup**
1176
| [\--force] [\--ignore-offline]
1177
| [\--force-multiple] [\--no-remember]
1178
| [\--instance \| \--node \| \--primary \| \--secondary \| \--all \|
1179
| \--tags \| \--node-tags \| \--pri-node-tags \| \--sec-node-tags]
1180
| [{-H|\--hypervisor-parameters} ``key=value...``]
1181
| [{-B|\--backend-parameters} ``key=value...``]
1182
| [\--submit] [\--paused]
1183
| {*name*...}
1184

    
1185
Starts one or more instances, depending on the following options.  The
1186
four available modes are:
1187

    
1188
\--instance
1189
    will start the instances given as arguments (at least one argument
1190
    required); this is the default selection
1191

    
1192
\--node
1193
    will start the instances who have the given node as either primary
1194
    or secondary
1195

    
1196
\--primary
1197
    will start all instances whose primary node is in the list of nodes
1198
    passed as arguments (at least one node required)
1199

    
1200
\--secondary
1201
    will start all instances whose secondary node is in the list of
1202
    nodes passed as arguments (at least one node required)
1203

    
1204
\--all
1205
    will start all instances in the cluster (no arguments accepted)
1206

    
1207
\--tags
1208
    will start all instances in the cluster with the tags given as
1209
    arguments
1210

    
1211
\--node-tags
1212
    will start all instances in the cluster on nodes with the tags
1213
    given as arguments
1214

    
1215
\--pri-node-tags
1216
    will start all instances in the cluster on primary nodes with the
1217
    tags given as arguments
1218

    
1219
\--sec-node-tags
1220
    will start all instances in the cluster on secondary nodes with the
1221
    tags given as arguments
1222

    
1223
Note that although you can pass more than one selection option, the
1224
last one wins, so in order to guarantee the desired result, don't pass
1225
more than one such option.
1226

    
1227
Use ``--force`` to start even if secondary disks are failing.
1228
``--ignore-offline`` can be used to ignore offline primary nodes and
1229
mark the instance as started even if the primary is not available.
1230

    
1231
The ``--force-multiple`` will skip the interactive confirmation in the
1232
case the more than one instance will be affected.
1233

    
1234
The ``--no-remember`` option will perform the startup but not change
1235
the state of the instance in the configuration file (if it was stopped
1236
before, Ganeti will still think it needs to be stopped). This can be
1237
used for testing, or for a one shot-start where you don't want the
1238
watcher to restart the instance if it crashes.
1239

    
1240
The ``-H (--hypervisor-parameters)`` and ``-B (--backend-parameters)``
1241
options specify temporary hypervisor and backend parameters that can
1242
be used to start an instance with modified parameters. They can be
1243
useful for quick testing without having to modify an instance back and
1244
forth, e.g.::
1245

    
1246
    # gnt-instance start -H kernel_args="single" instance1
1247
    # gnt-instance start -B maxmem=2048 instance2
1248

    
1249

    
1250
The first form will start the instance instance1 in single-user mode,
1251
and the instance instance2 with 2GB of RAM (this time only, unless
1252
that is the actual instance memory size already). Note that the values
1253
override the instance parameters (and not extend them): an instance
1254
with "kernel\_args=ro" when started with -H kernel\_args=single will
1255
result in "single", not "ro single".
1256

    
1257
The ``--paused`` option is only valid for Xen and kvm hypervisors.  This
1258
pauses the instance at the start of bootup, awaiting ``gnt-instance
1259
console`` to unpause it, allowing the entire boot process to be
1260
monitored for debugging.
1261

    
1262
See **ganeti**\(7) for a description of ``--submit`` and other common
1263
options.
1264

    
1265
Example::
1266

    
1267
    # gnt-instance start instance1.example.com
1268
    # gnt-instance start --node node1.example.com node2.example.com
1269
    # gnt-instance start --all
1270

    
1271

    
1272
SHUTDOWN
1273
^^^^^^^^
1274

    
1275
| **shutdown**
1276
| [\--timeout=*N*]
1277
| [\--force] [\--force-multiple] [\--ignore-offline] [\--no-remember]
1278
| [\--instance \| \--node \| \--primary \| \--secondary \| \--all \|
1279
| \--tags \| \--node-tags \| \--pri-node-tags \| \--sec-node-tags]
1280
| [\--submit]
1281
| {*name*...}
1282

    
1283
Stops one or more instances. If the instance cannot be cleanly stopped
1284
during a hardcoded interval (currently 2 minutes), it will forcibly
1285
stop the instance (equivalent to switching off the power on a physical
1286
machine).
1287

    
1288
The ``--timeout`` is used to specify how much time to wait before
1289
forcing the shutdown (e.g. ``xm destroy`` in Xen, killing the kvm
1290
process for KVM, etc.). By default two minutes are given to each
1291
instance to stop.
1292

    
1293
The ``--instance``, ``--node``, ``--primary``, ``--secondary``,
1294
``--all``, ``--tags``, ``--node-tags``, ``--pri-node-tags`` and
1295
``--sec-node-tags`` options are similar as for the **startup** command
1296
and they influence the actual instances being shutdown.
1297

    
1298
``--ignore-offline`` can be used to ignore offline primary nodes and
1299
force the instance to be marked as stopped. This option should be used
1300
with care as it can lead to an inconsistent cluster state.
1301

    
1302
Use ``--force`` to be able to shutdown an instance even when it's marked
1303
as offline. This is useful is an offline instance ends up in the
1304
``ERROR_up`` state, for example.
1305

    
1306
The ``--no-remember`` option will perform the shutdown but not change
1307
the state of the instance in the configuration file (if it was running
1308
before, Ganeti will still thinks it needs to be running). This can be
1309
useful for a cluster-wide shutdown, where some instances are marked as
1310
up and some as down, and you don't want to change the running state:
1311
you just need to disable the watcher, shutdown all instances with
1312
``--no-remember``, and when the watcher is activated again it will
1313
restore the correct runtime state for all instances.
1314

    
1315
See **ganeti**\(7) for a description of ``--submit`` and other common
1316
options.
1317

    
1318
Example::
1319

    
1320
    # gnt-instance shutdown instance1.example.com
1321
    # gnt-instance shutdown --all
1322

    
1323

    
1324
REBOOT
1325
^^^^^^
1326

    
1327
| **reboot**
1328
| [{-t|\--type} *REBOOT-TYPE*]
1329
| [\--ignore-secondaries]
1330
| [\--shutdown-timeout=*N*]
1331
| [\--force-multiple]
1332
| [\--instance \| \--node \| \--primary \| \--secondary \| \--all \|
1333
| \--tags \| \--node-tags \| \--pri-node-tags \| \--sec-node-tags]
1334
| [\--submit]
1335
| [*name*...]
1336

    
1337
Reboots one or more instances. The type of reboot depends on the value
1338
of ``-t (--type)``. A soft reboot does a hypervisor reboot, a hard reboot
1339
does a instance stop, recreates the hypervisor config for the instance
1340
and starts the instance. A full reboot does the equivalent of
1341
**gnt-instance shutdown && gnt-instance startup**.  The default is
1342
hard reboot.
1343

    
1344
For the hard reboot the option ``--ignore-secondaries`` ignores errors
1345
for the secondary node while re-assembling the instance disks.
1346

    
1347
The ``--instance``, ``--node``, ``--primary``, ``--secondary``,
1348
``--all``, ``--tags``, ``--node-tags``, ``--pri-node-tags`` and
1349
``--sec-node-tags`` options are similar as for the **startup** command
1350
and they influence the actual instances being rebooted.
1351

    
1352
The ``--shutdown-timeout`` is used to specify how much time to wait
1353
before forcing the shutdown (xm destroy in xen, killing the kvm
1354
process, for kvm). By default two minutes are given to each instance
1355
to stop.
1356

    
1357
The ``--force-multiple`` will skip the interactive confirmation in the
1358
case the more than one instance will be affected.
1359

    
1360
See **ganeti**\(7) for a description of ``--submit`` and other common
1361
options.
1362

    
1363
Example::
1364

    
1365
    # gnt-instance reboot instance1.example.com
1366
    # gnt-instance reboot --type=full instance1.example.com
1367

    
1368

    
1369
CONSOLE
1370
^^^^^^^
1371

    
1372
**console** [\--show-cmd] {*instance*}
1373

    
1374
Connects to the console of the given instance. If the instance is not
1375
up, an error is returned. Use the ``--show-cmd`` option to display the
1376
command instead of executing it.
1377

    
1378
For HVM instances, this will attempt to connect to the serial console
1379
of the instance. To connect to the virtualized "physical" console of a
1380
HVM instance, use a VNC client with the connection info from the
1381
**info** command.
1382

    
1383
For Xen/kvm instances, if the instance is paused, this attempts to
1384
unpause the instance after waiting a few seconds for the connection to
1385
the console to be made.
1386

    
1387
Example::
1388

    
1389
    # gnt-instance console instance1.example.com
1390

    
1391

    
1392
Disk management
1393
~~~~~~~~~~~~~~~
1394

    
1395
REPLACE-DISKS
1396
^^^^^^^^^^^^^
1397

    
1398
**replace-disks** [\--submit] [\--early-release] [\--ignore-ipolicy] {-p}
1399
[\--disks *idx*] {*instance*}
1400

    
1401
**replace-disks** [\--submit] [\--early-release] [\--ignore-ipolicy] {-s}
1402
[\--disks *idx*] {*instance*}
1403

    
1404
**replace-disks** [\--submit] [\--early-release] [\--ignore-ipolicy]
1405
{{-I\|\--iallocator} *name* \| {{-n|\--new-secondary} *node* } {*instance*}
1406

    
1407
**replace-disks** [\--submit] [\--early-release] [\--ignore-ipolicy]
1408
{-a\|\--auto} {*instance*}
1409

    
1410
This command is a generalized form for replacing disks. It is
1411
currently only valid for the mirrored (DRBD) disk template.
1412

    
1413
The first form (when passing the ``-p`` option) will replace the disks
1414
on the primary, while the second form (when passing the ``-s`` option
1415
will replace the disks on the secondary node. For these two cases (as
1416
the node doesn't change), it is possible to only run the replace for a
1417
subset of the disks, using the option ``--disks`` which takes a list
1418
of comma-delimited disk indices (zero-based), e.g. 0,2 to replace only
1419
the first and third disks.
1420

    
1421
The third form (when passing either the ``--iallocator`` or the
1422
``--new-secondary`` option) is designed to change secondary node of the
1423
instance. Specifying ``--iallocator`` makes the new secondary be
1424
selected automatically by the specified allocator plugin (use ``.`` to
1425
indicate the default allocator), otherwise the new secondary node will
1426
be the one chosen manually via the ``--new-secondary`` option.
1427

    
1428
Note that it is not possible to select an offline or drained node as a
1429
new secondary.
1430

    
1431
The fourth form (when using ``--auto``) will automatically determine
1432
which disks of an instance are faulty and replace them within the same
1433
node. The ``--auto`` option works only when an instance has only
1434
faulty disks on either the primary or secondary node; it doesn't work
1435
when both sides have faulty disks.
1436

    
1437
The ``--early-release`` changes the code so that the old storage on
1438
secondary node(s) is removed early (before the resync is completed)
1439
and the internal Ganeti locks for the current (and new, if any)
1440
secondary node are also released, thus allowing more parallelism in
1441
the cluster operation. This should be used only when recovering from a
1442
disk failure on the current secondary (thus the old storage is already
1443
broken) or when the storage on the primary node is known to be fine
1444
(thus we won't need the old storage for potential recovery).
1445

    
1446
The ``--ignore-ipolicy`` let the command ignore instance policy
1447
violations if replace-disks changes groups and the instance would
1448
violate the new groups instance policy.
1449

    
1450
See **ganeti**\(7) for a description of ``--submit`` and other common
1451
options.
1452

    
1453
ACTIVATE-DISKS
1454
^^^^^^^^^^^^^^
1455

    
1456
**activate-disks** [\--submit] [\--ignore-size] [\--wait-for-sync] {*instance*}
1457

    
1458
Activates the block devices of the given instance. If successful, the
1459
command will show the location and name of the block devices::
1460

    
1461
    node1.example.com:disk/0:/dev/drbd0
1462
    node1.example.com:disk/1:/dev/drbd1
1463

    
1464

    
1465
In this example, *node1.example.com* is the name of the node on which
1466
the devices have been activated. The *disk/0* and *disk/1* are the
1467
Ganeti-names of the instance disks; how they are visible inside the
1468
instance is hypervisor-specific. */dev/drbd0* and */dev/drbd1* are the
1469
actual block devices as visible on the node.
1470

    
1471
The ``--ignore-size`` option can be used to activate disks ignoring
1472
the currently configured size in Ganeti. This can be used in cases
1473
where the configuration has gotten out of sync with the real-world
1474
(e.g. after a partially-failed grow-disk operation or due to rounding
1475
in LVM devices). This should not be used in normal cases, but only
1476
when activate-disks fails without it.
1477

    
1478
The ``--wait-for-sync`` option will ensure that the command returns only
1479
after the instance's disks are synchronised (mostly for DRBD); this can
1480
be useful to ensure consistency, as otherwise there are no commands that
1481
can wait until synchronisation is done. However when passing this
1482
option, the command will have additional output, making it harder to
1483
parse the disk information.
1484

    
1485
Note that it is safe to run this command while the instance is already
1486
running.
1487

    
1488
See **ganeti**\(7) for a description of ``--submit`` and other common
1489
options.
1490

    
1491
DEACTIVATE-DISKS
1492
^^^^^^^^^^^^^^^^
1493

    
1494
**deactivate-disks** [-f] [\--submit] {*instance*}
1495

    
1496
De-activates the block devices of the given instance. Note that if you
1497
run this command for an instance with a drbd disk template, while it
1498
is running, it will not be able to shutdown the block devices on the
1499
primary node, but it will shutdown the block devices on the secondary
1500
nodes, thus breaking the replication.
1501

    
1502
The ``-f``/``--force`` option will skip checks that the instance is
1503
down; in case the hypervisor is confused and we can't talk to it,
1504
normally Ganeti will refuse to deactivate the disks, but with this
1505
option passed it will skip this check and directly try to deactivate
1506
the disks. This can still fail due to the instance actually running or
1507
other issues.
1508

    
1509
See **ganeti**\(7) for a description of ``--submit`` and other common
1510
options.
1511

    
1512
GROW-DISK
1513
^^^^^^^^^
1514

    
1515
| **grow-disk** [\--no-wait-for-sync] [\--submit] [\--absolute]
1516
| {*instance*} {*disk*} {*amount*}
1517

    
1518
Grows an instance's disk. This is only possible for instances having a
1519
plain, drbd, file, sharedfile, rbd or ext disk template. For the ext
1520
template to work, the ExtStorage provider should also support growing.
1521
This means having a ``grow`` script that actually grows the volume of
1522
the external shared storage.
1523

    
1524
Note that this command only change the block device size; it will not
1525
grow the actual filesystems, partitions, etc. that live on that
1526
disk. Usually, you will need to:
1527

    
1528
#. use **gnt-instance grow-disk**
1529

    
1530
#. reboot the instance (later, at a convenient time)
1531

    
1532
#. use a filesystem resizer, such as **ext2online**\(8) or
1533
   **xfs\_growfs**\(8) to resize the filesystem, or use **fdisk**\(8) to
1534
   change the partition table on the disk
1535

    
1536
The *disk* argument is the index of the instance disk to grow. The
1537
*amount* argument is given as a number which can have a suffix (like the
1538
disk size in instance create); if the suffix is missing, the value will
1539
be interpreted as mebibytes.
1540

    
1541
By default, the *amount* value represents the desired increase in the
1542
disk size (e.g. an amount of 1G will take a disk of size 3G to 4G). If
1543
the optional ``--absolute`` parameter is passed, then the *amount*
1544
argument doesn't represent the delta, but instead the desired final disk
1545
size (e.g. an amount of 8G will take a disk of size 4G to 8G).
1546

    
1547
For instances with a drbd template, note that the disk grow operation
1548
might complete on one node but fail on the other; this will leave the
1549
instance with different-sized LVs on the two nodes, but this will not
1550
create problems (except for unused space).
1551

    
1552
If you do not want gnt-instance to wait for the new disk region to be
1553
synced, use the ``--no-wait-for-sync`` option.
1554

    
1555
See **ganeti**\(7) for a description of ``--submit`` and other common
1556
options.
1557

    
1558
Example (increase the first disk for instance1 by 16GiB)::
1559

    
1560
    # gnt-instance grow-disk instance1.example.com 0 16g
1561

    
1562
Example for increasing the disk size to a certain size::
1563

    
1564
   # gnt-instance grow-disk --absolute instance1.example.com 0 32g
1565

    
1566
Also note that disk shrinking is not supported; use **gnt-backup
1567
export** and then **gnt-backup import** to reduce the disk size of an
1568
instance.
1569

    
1570
RECREATE-DISKS
1571
^^^^^^^^^^^^^^
1572

    
1573
| **recreate-disks** [\--submit]
1574
| [{-n node1:[node2] \| {-I\|\--iallocator *name*}}]
1575
| [\--disk=*N*[:[size=*VAL*][,mode=*ro\|rw*]]] {*instance*}
1576

    
1577
Recreates all or a subset of disks of the given instance.
1578

    
1579
Note that this functionality should only be used for missing disks; if
1580
any of the given disks already exists, the operation will fail.  While
1581
this is suboptimal, recreate-disks should hopefully not be needed in
1582
normal operation and as such the impact of this is low.
1583

    
1584
If only a subset should be recreated, any number of ``disk`` options can
1585
be specified. It expects a disk index and an optional list of disk
1586
parameters to change. Only ``size`` and ``mode`` can be changed while
1587
recreating disks. To recreate all disks while changing parameters on
1588
a subset only, a ``--disk`` option must be given for every disk of the
1589
instance.
1590

    
1591
Optionally the instance's disks can be recreated on different
1592
nodes. This can be useful if, for example, the original nodes of the
1593
instance have gone down (and are marked offline), so we can't recreate
1594
on the same nodes. To do this, pass the new node(s) via ``-n`` option,
1595
with a syntax similar to the **add** command. The number of nodes
1596
passed must equal the number of nodes that the instance currently
1597
has. Note that changing nodes is only allowed when all disks are
1598
replaced, e.g. when no ``--disk`` option is passed.
1599

    
1600
Another method of choosing which nodes to place the instance on is by
1601
using the specified iallocator, passing the ``--iallocator`` option.
1602
The primary and secondary nodes will be chosen by the specified
1603
iallocator plugin, or by the default allocator if ``.`` is specified.
1604

    
1605
See **ganeti**\(7) for a description of ``--submit`` and other common
1606
options.
1607

    
1608
Recovery/moving
1609
~~~~~~~~~~~~~~~
1610

    
1611
FAILOVER
1612
^^^^^^^^
1613

    
1614
| **failover** [-f] [\--ignore-consistency] [\--ignore-ipolicy]
1615
| [\--shutdown-timeout=*N*]
1616
| [{-n|\--target-node} *node* \| {-I|\--iallocator} *name*]
1617
| [\--submit]
1618
| {*instance*}
1619

    
1620
Failover will stop the instance (if running), change its primary node,
1621
and if it was originally running it will start it again (on the new
1622
primary). This works for instances with drbd template (in which case you
1623
can only fail to the secondary node) and for externally mirrored
1624
templates (sharedfile, blockdev, rbd and ext) (in which case you can
1625
fail to any other node).
1626

    
1627
If the instance's disk template is of type sharedfile, blockdev, rbd or
1628
ext, then you can explicitly specify the target node (which can be any
1629
node) using the ``-n`` or ``--target-node`` option, or specify an
1630
iallocator plugin using the ``-I`` or ``--iallocator`` option. If you
1631
omit both, the default iallocator will be used to specify the target
1632
node.
1633

    
1634
If the instance's disk template is of type drbd, the target node is
1635
automatically selected as the drbd's secondary node. Changing the
1636
secondary node is possible with a replace-disks operation.
1637

    
1638
Normally the failover will check the consistency of the disks before
1639
failing over the instance. If you are trying to migrate instances off
1640
a dead node, this will fail. Use the ``--ignore-consistency`` option
1641
for this purpose. Note that this option can be dangerous as errors in
1642
shutting down the instance will be ignored, resulting in possibly
1643
having the instance running on two machines in parallel (on
1644
disconnected DRBD drives).
1645

    
1646
The ``--shutdown-timeout`` is used to specify how much time to wait
1647
before forcing the shutdown (xm destroy in xen, killing the kvm
1648
process, for kvm). By default two minutes are given to each instance
1649
to stop.
1650

    
1651
If ``--ignore-ipolicy`` is given any instance policy violations occuring
1652
during this operation are ignored.
1653

    
1654
See **ganeti**\(7) for a description of ``--submit`` and other common
1655
options.
1656

    
1657
Example::
1658

    
1659
    # gnt-instance failover instance1.example.com
1660

    
1661
For externally mirrored templates also ``-n`` is available::
1662

    
1663
    # gnt-instance failover -n node3.example.com instance1.example.com
1664

    
1665

    
1666
MIGRATE
1667
^^^^^^^
1668

    
1669
| **migrate** [-f] [\--allow-failover] [\--non-live]
1670
| [\--migration-mode=live\|non-live] [\--ignore-ipolicy]
1671
| [\--no-runtime-changes] [\--submit]
1672
| [{-n|\--target-node} *node* \| {-I|\--iallocator} *name*] {*instance*}
1673

    
1674
| **migrate** [-f] \--cleanup [\--submit] {*instance*}
1675

    
1676
Migrate will move the instance to its secondary node without shutdown.
1677
As with failover, it works for instances having the drbd disk template
1678
or an externally mirrored disk template type such as sharedfile,
1679
blockdev, rbd or ext.
1680

    
1681
If the instance's disk template is of type sharedfile, blockdev, rbd or
1682
ext, then you can explicitly specify the target node (which can be any
1683
node) using the ``-n`` or ``--target-node`` option, or specify an
1684
iallocator plugin using the ``-I`` or ``--iallocator`` option. If you
1685
omit both, the default iallocator will be used to specify the target
1686
node.  Alternatively, the default iallocator can be requested by
1687
specifying ``.`` as the name of the plugin.
1688

    
1689
If the instance's disk template is of type drbd, the target node is
1690
automatically selected as the drbd's secondary node. Changing the
1691
secondary node is possible with a replace-disks operation.
1692

    
1693
The migration command needs a perfectly healthy instance for drbd
1694
instances, as we rely on the dual-master capability of drbd8 and the
1695
disks of the instance are not allowed to be degraded.
1696

    
1697
The ``--non-live`` and ``--migration-mode=non-live`` options will
1698
switch (for the hypervisors that support it) between a "fully live"
1699
(i.e. the interruption is as minimal as possible) migration and one in
1700
which the instance is frozen, its state saved and transported to the
1701
remote node, and then resumed there. This all depends on the
1702
hypervisor support for two different methods. In any case, it is not
1703
an error to pass this parameter (it will just be ignored if the
1704
hypervisor doesn't support it). The option ``--migration-mode=live``
1705
option will request a fully-live migration. The default, when neither
1706
option is passed, depends on the hypervisor parameters (and can be
1707
viewed with the **gnt-cluster info** command).
1708

    
1709
If the ``--cleanup`` option is passed, the operation changes from
1710
migration to attempting recovery from a failed previous migration. In
1711
this mode, Ganeti checks if the instance runs on the correct node (and
1712
updates its configuration if not) and ensures the instances' disks
1713
are configured correctly. In this mode, the ``--non-live`` option is
1714
ignored.
1715

    
1716
The option ``-f`` will skip the prompting for confirmation.
1717

    
1718
If ``--allow-failover`` is specified it tries to fallback to failover if
1719
it already can determine that a migration won't work (e.g. if the
1720
instance is shut down). Please note that the fallback will not happen
1721
during execution. If a migration fails during execution it still fails.
1722

    
1723
If ``--ignore-ipolicy`` is given any instance policy violations occuring
1724
during this operation are ignored.
1725

    
1726
The ``--no-runtime-changes`` option forbids migrate to alter an
1727
instance's runtime before migrating it (eg. ballooning an instance
1728
down because the target node doesn't have enough available memory).
1729

    
1730
If an instance has the backend parameter ``always_failover`` set to
1731
true, then the migration is automatically converted into a failover.
1732

    
1733
See **ganeti**\(7) for a description of ``--submit`` and other common
1734
options.
1735

    
1736
Example (and expected output)::
1737

    
1738
    # gnt-instance migrate instance1
1739
    Instance instance1 will be migrated. Note that migration
1740
    might impact the instance if anything goes wrong (e.g. due to bugs in
1741
    the hypervisor). Continue?
1742
    y/[n]/?: y
1743
    Migrating instance instance1.example.com
1744
    * checking disk consistency between source and target
1745
    * switching node node2.example.com to secondary mode
1746
    * changing into standalone mode
1747
    * changing disks into dual-master mode
1748
    * wait until resync is done
1749
    * preparing node2.example.com to accept the instance
1750
    * migrating instance to node2.example.com
1751
    * switching node node1.example.com to secondary mode
1752
    * wait until resync is done
1753
    * changing into standalone mode
1754
    * changing disks into single-master mode
1755
    * wait until resync is done
1756
    * done
1757
    #
1758

    
1759

    
1760
MOVE
1761
^^^^
1762

    
1763
| **move** [-f] [\--ignore-consistency]
1764
| [-n *node*] [\--shutdown-timeout=*N*] [\--submit] [\--ignore-ipolicy]
1765
| {*instance*}
1766

    
1767
Move will move the instance to an arbitrary node in the cluster. This
1768
works only for instances having a plain or file disk template.
1769

    
1770
Note that since this operation is done via data copy, it will take a
1771
long time for big disks (similar to replace-disks for a drbd
1772
instance).
1773

    
1774
The ``--shutdown-timeout`` is used to specify how much time to wait
1775
before forcing the shutdown (e.g. ``xm destroy`` in XEN, killing the
1776
kvm process for KVM, etc.). By default two minutes are given to each
1777
instance to stop.
1778

    
1779
The ``--ignore-consistency`` option will make Ganeti ignore any errors
1780
in trying to shutdown the instance on its node; useful if the
1781
hypervisor is broken and you want to recover the data.
1782

    
1783
If ``--ignore-ipolicy`` is given any instance policy violations occuring
1784
during this operation are ignored.
1785

    
1786
See **ganeti**\(7) for a description of ``--submit`` and other common
1787
options.
1788

    
1789
Example::
1790

    
1791
    # gnt-instance move -n node3.example.com instance1.example.com
1792

    
1793

    
1794
CHANGE-GROUP
1795
^^^^^^^^^^^^
1796

    
1797
| **change-group** [\--submit]
1798
| [\--iallocator *NAME*] [\--to *GROUP*...] {*instance*}
1799

    
1800
This command moves an instance to another node group. The move is
1801
calculated by an iallocator, either given on the command line or as a
1802
cluster default.
1803

    
1804
If no specific destination groups are specified using ``--to``, all
1805
groups except the one containing the instance are considered.
1806

    
1807
See **ganeti**\(7) for a description of ``--submit`` and other common
1808
options.
1809

    
1810
Example::
1811

    
1812
    # gnt-instance change-group -I hail --to rack2 inst1.example.com
1813

    
1814

    
1815
Tags
1816
~~~~
1817

    
1818
ADD-TAGS
1819
^^^^^^^^
1820

    
1821
**add-tags** [\--from *file*] {*instancename*} {*tag*...}
1822

    
1823
Add tags to the given instance. If any of the tags contains invalid
1824
characters, the entire operation will abort.
1825

    
1826
If the ``--from`` option is given, the list of tags will be extended
1827
with the contents of that file (each line becomes a tag).  In this
1828
case, there is not need to pass tags on the command line (if you do,
1829
both sources will be used). A file name of ``-`` will be interpreted
1830
as stdin.
1831

    
1832
LIST-TAGS
1833
^^^^^^^^^
1834

    
1835
**list-tags** {*instancename*}
1836

    
1837
List the tags of the given instance.
1838

    
1839
REMOVE-TAGS
1840
^^^^^^^^^^^
1841

    
1842
**remove-tags** [\--from *file*] {*instancename*} {*tag*...}
1843

    
1844
Remove tags from the given instance. If any of the tags are not
1845
existing on the node, the entire operation will abort.
1846

    
1847
If the ``--from`` option is given, the list of tags to be removed will
1848
be extended with the contents of that file (each line becomes a tag).
1849
In this case, there is not need to pass tags on the command line (if
1850
you do, tags from both sources will be removed). A file name of ``-``
1851
will be interpreted as stdin.
1852

    
1853
.. vim: set textwidth=72 :
1854
.. Local Variables:
1855
.. mode: rst
1856
.. fill-column: 72
1857
.. End: