1 <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
3 <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4 <!-- Please adjust the date whenever revising the manpage. -->
5 <!ENTITY dhdate "<date>January 22, 2010</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">
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">
26 <holder>Google Inc.</holder>
34 <refmiscinfo>ganeti 2.0</refmiscinfo>
37 <refname>&dhpackage;</refname>
39 <refpurpose>ganeti instance administration</refpurpose>
43 <command>&dhpackage; </command>
45 <arg choice="req">command</arg>
46 <arg>arguments...</arg>
50 <title>DESCRIPTION</title>
53 The <command>&dhpackage;</command> is used for instance
54 administration in the ganeti system.
59 <title>COMMANDS</title>
62 <title>Creation/removal/querying</title>
67 <command>add</command>
69 <arg choice="req">-t<group choice="req">
78 <arg rep="repeat">--disk=<replaceable>N</replaceable>:size=<replaceable>VAL</replaceable><arg>,mode=<replaceable>ro|rw</replaceable></arg></arg>
79 <arg>-s <replaceable>SIZE</replaceable></arg>
82 <arg>--no-ip-check</arg>
83 <arg>--no-name-check</arg>
87 <arg rep="repeat">--net=<replaceable>N</replaceable><arg rep="repeat">:options</arg></arg>
91 <arg>-B <replaceable>BEPARAMS</replaceable></arg>
94 <arg>-H <replaceable>HYPERVISOR</replaceable><arg>:<arg choice="plain" rep="repeat">option=<replaceable>value</replaceable></arg></arg></arg>
97 <arg>--file-storage-dir <replaceable>dir_path</replaceable></arg>
98 <arg>--file-driver<group choice="req">
105 <arg>-n <replaceable>node<optional>:secondary-node</optional></replaceable></arg>
106 <arg>--iallocator <replaceable>name</replaceable></arg>
110 <arg choice="req">-o <replaceable>os-type</replaceable></arg>
115 <arg choice="req"><replaceable>instance</replaceable></arg>
119 Creates a new instance on the specified host. The
120 <replaceable>instance</replaceable> argument must be in DNS,
121 but depending on the bridge/routing setup, need not be in
122 the same network as the nodes in the cluster.
126 The <option>disk</option> option specifies the parameters
127 for the disks of the instance. The numbering of disks starts
128 at zero, and at least one disk needs to be passed. For each
129 disk, at least the size needs to be given, and optionally
130 the access mode (read-only or the default of read-write) can
131 also be specified. The size is interpreted (when no unit is
132 given) in mebibytes. You can also use one of the suffixes
133 <literal>m</literal>, <literal>g</literal> or
134 <literal>t</literal> to specificy the exact the units used;
135 these suffixes map to mebibytes, gibibytes and tebibytes.
139 Alternatively, a single-disk instance can be created via the
140 <option>-s</option> option which takes a single argument,
141 the size of the disk. This is similar to the Ganeti 1.2
142 version (but will only create one disk).
146 The minimum disk specification is therefore
147 <userinput>--disk 0:size=20G</userinput> (or <userinput>-s
148 20G</userinput> when using the <option>-s</option> option),
149 and a three-disk instance can be specified as
150 <userinput>--disk 0:size=20G --disk 1:size=4G --disk
151 2:size=100G</userinput>.
155 The <option>--no-ip-check</option> skips the checks that are
156 done to see if the instance's IP is not already alive
157 (i.e. reachable from the master node).
161 The <option>--no-name-check</option> skips the check for the
162 instance name via the resolver (e.g. in DNS or /etc/hosts,
163 depending on your setup). Since the name check is used to
164 compute the IP address, if you pass this option you must
165 also pass the <option>--no-ip-check</option> option.
169 If you don't wat the instance to automatically start after
170 creation, this is possible via the
171 <option>--no-start</option> option. This will leave the
172 instance down until a subsequent <command>gnt-instance
173 start</command> command.
177 The NICs of the instances can be specified via the
178 <option>--net</option> option. By default, one NIC is
179 created for the instance, with a random MAC, and set
180 up according the the cluster level nic parameters.
181 Each NIC can take these parameters (all optional):
186 <simpara>either a value or <constant>GENERATE</constant>
187 to generate a new unique MAC</simpara>
193 <simpara>specifies the IP address assigned to the
194 instance from the Ganeti side (this is not necessarily
195 what the instance will use, but what the node expects
196 the instance to use)</simpara>
202 <simpara>specifies the connection mode for this nic:
203 routed or bridged.</simpara>
209 <simpara>in bridged mode specifies the bridge to attach
210 this NIC to, in routed mode it's intended to
211 differentiate between different routing tables/instance
212 groups (but the meaning is dependent on the network
213 script, see gnt-cluster(8) for more details)</simpara>
217 Of these "mode" and "link" are nic parameters, and inherit their
218 default at cluster level.
222 Alternatively, if no network is desired for the instance, you
223 can prevent the default of one NIC with the
224 <option>--no-nics</option> option.
228 The <option>-o</option> options specifies the operating
229 system to be installed. The available operating systems can
230 be listed with <command>gnt-os list</command>.
234 The <option>-B</option> option specifies the backend
235 parameters for the instance. If no such parameters are
236 specified, the values are inherited from the cluster. Possible
242 <simpara>the memory size of the instance; as usual,
243 suffixes can be used to denote the unit, otherwise the
244 value is taken in mebibites</simpara>
250 <simpara>the number of VCPUs to assign to the instance
251 (if this value makes sense for the hypervisor)</simpara>
255 <term>auto_balance</term>
257 <simpara>whether the instance is considered in the N+1
258 cluster checks (enough redundancy in the cluster to
259 survive a node failure)</simpara>
266 The <option>-H</option> option specified the hypervisor to
267 use for the instance (must be one of the enabled hypervisors
268 on the cluster) and optionally custom parameters for this
269 instance. If not other options are used (i.e. the invocation
270 is just <userinput>-H
271 <replaceable>NAME</replaceable></userinput>) the instance
272 will inherit the cluster options. The defaults below show
273 the cluster defaults at cluster creation time.
277 The possible hypervisor options are as follows:
280 <term>boot_order</term>
282 <simpara>Valid for the Xen HVM and KVM
283 hypervisors.</simpara>
285 <simpara>A string value denoting the boot order. This
286 has different meaning for the Xen HVM hypervisor and
287 for the KVM one.</simpara>
290 For Xen HVM, The boot order is a string of letters
291 listing the boot devices, with valid device letters
329 The default is not to set an HVM boot order which is
336 <term>cdrom_image_path</term>
338 <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
340 <simpara>The path to a CDROM image to attach to the
346 <term>nic_type</term>
348 <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
351 This parameter determines the way the network cards
352 are presented to the instance. The possible options are:
354 <member>rtl8139 (default for Xen HVM) (HVM & KVM)</member>
355 <member>ne2k_isa (HVM & KVM)</member>
356 <member>ne2k_pci (HVM & KVM)</member>
357 <member>i82551 (KVM)</member>
358 <member>i82557b (KVM)</member>
359 <member>i82559er (KVM)</member>
360 <member>pcnet (KVM)</member>
361 <member>e1000 (KVM)</member>
362 <member>paravirtual (default for KVM) (HVM & KVM)</member>
368 <term>disk_type</term>
370 <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
373 This parameter determines the way the disks are
374 presented to the instance. The possible options are:
376 <member>ioemu (default for HVM & KVM) (HVM & KVM)</member>
377 <member>ide (HVM & KVM)</member>
378 <member>scsi (KVM)</member>
379 <member>sd (KVM)</member>
380 <member>mtd (KVM)</member>
381 <member>pflash (KVM)</member>
387 <term>vnc_bind_address</term>
389 <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
391 <para>Specifies the address that the VNC listener for
392 this instance should bind to. Valid values are IPv4
393 addresses. Use the address 0.0.0.0 to bind to all
394 available interfaces (this is the default) or specify
395 the address of one of the interfaces on the node to
396 restrict listening to that interface.</para>
403 <simpara>Valid for the KVM hypervisor.</simpara>
405 <simpara>A boolean option that controls whether the
406 VNC connection is secured with TLS.</simpara>
411 <term>vnc_x509_path</term>
413 <simpara>Valid for the KVM hypervisor.</simpara>
415 <para>If <option>vnc_tls</option> is enabled, this
416 options specifies the path to the x509 certificate to
422 <term>vnc_x509_verify</term>
424 <simpara>Valid for the KVM hypervisor.</simpara>
431 <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
434 A boolean option that specifies if the hypervisor
435 should enable ACPI support for this instance. By
436 default, ACPI is disabled.
444 <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
447 A boolean option that specifies if the hypervisor
448 should enabled PAE support for this instance. The
449 default is false, disabling PAE support.
455 <term>use_localtime</term>
457 <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
460 A boolean option that specifies if the instance
461 should be started with its clock set to the
462 localtime of the machine (when true) or to the UTC
463 (When false). The default is false, which is useful
464 for Linux/Unix machines; for Windows OSes, it is
465 recommended to enable this parameter.
471 <term>kernel_path</term>
473 <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara>
476 This option specifies the path (on the node) to the
477 kernel to boot the instance with. Xen PVM instances
478 always require this, while for KVM if this option is
479 empty, it will cause the machine to load the kernel
486 <term>kernel_args</term>
488 <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara>
491 This options specifies extra arguments to the kernel
492 that will be loaded. device. This is always used
493 for Xen PVM, while for KVM it is only used if the
494 <option>kernel_path</option> option is also
499 The default setting for this value is simply
500 <constant>"ro"</constant>, which mounts the root
501 disk (initially) in read-only one. For example,
502 setting this to <userinput>single</userinput> will
503 cause the instance to start in single-user mode.
509 <term>initrd_path</term>
511 <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara>
514 This option specifies the path (on the node) to the
515 initrd to boot the instance with. Xen PVM instances
516 can use this always, while for KVM if this option is
517 only used if the <option>kernel_path</option> option
518 is also specified. You can pass here either an
519 absolute filename (the path to the initrd) if you
520 want to use an initrd, or use the format
521 <userinput>no_initrd_path</userinput> for no initrd.
527 <term>root_path</term>
529 <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara>
532 This options specifies the name of the root
533 device. This is always needed for Xen PVM, while for
534 KVM it is only used if the
535 <option>kernel_path</option> option is also
542 <term>serial_console</term>
544 <simpara>Valid for the KVM hypervisor.</simpara>
546 <simpara>This boolean option specifies whether to
547 emulate a serial console for the instance.</simpara>
552 <term>disk_cache</term>
554 <simpara>Valid for the KVM hypervisor.</simpara>
556 <simpara>The disk cache mode. It can be either
557 <userinput>default</userinput> to not pass any cache
558 option to KVM, or one of the KVM cache modes: none
559 (for direct I/O), writethrough (to use the host cache
560 but report completion to the guest only when the host
561 has commited the changes to disk) or writeback (to use
562 the host cache and report completion as soon as the
563 data is in the host cache). Note that there are
564 special considerations for the cache mode depending on
565 version of KVM used and disk type (always raw file
566 under Ganeti), please refer to the KVM documentation
577 The <option>--iallocator</option> option specifies the instance
578 allocator plugin to use. If you pass in this option the allocator
579 will select nodes for this instance automatically, so you don't need
580 to pass them with the <option>-n</option> option. For more
581 information please refer to the instance allocator documentation.
585 The <option>-t</option> options specifies the disk layout type for
586 the instance. The available choices are:
589 <term>diskless</term>
592 This creates an instance with no disks. Its useful for
593 testing only (or other special cases).
600 <para>Disk devices will be regular files.</para>
606 <para>Disk devices will be logical volumes.</para>
613 Disk devices will be drbd (version 8.x) on top of
622 The optional second value of the <option>--node</option> is used for
623 the drbd template type and specifies the remote node.
627 If you do not want gnt-instance to wait for the disk mirror
628 to be synced, use the <option>--no-wait-for-sync</option>
633 The <option>--file-storage-dir</option> specifies the relative path
634 under the cluster-wide file storage directory to store file-based
635 disks. It is useful for having different subdirectories for
636 different instances. The full path of the directory where the disk
637 files are stored will consist of cluster-wide file storage directory
638 + optional subdirectory + instance name. Example:
639 /srv/ganeti/file-storage/mysubdir/instance1.example.com. This option
640 is only relevant for instances using the file storage backend.
644 The <option>--file-driver</option> specifies the driver to use for
645 file-based disks. Note that currently these drivers work with the
646 xen hypervisor only. This option is only relevant for instances using
647 the file storage backend. The available choices are:
653 Kernel loopback driver. This driver uses loopback
654 devices to access the filesystem within the
655 file. However, running I/O intensive applications in
656 your instance using the loop driver might result in
657 slowdowns. Furthermore, if you use the loopback
658 driver consider increasing the maximum amount of
659 loopback devices (on most systems it's 8) using the
667 <para>The blktap driver (for Xen hypervisors). In
668 order to be able to use the blktap driver you should
669 check if the 'blktapctrl' user space disk agent is
670 running (usually automatically started via xend). This
671 user-level disk I/O interface has the advantage of
672 better performance. Especially if you use a network
673 file system (e.g. NFS) to store your instances this is
674 the recommended choice.
682 The <option>--submit</option> option is used to send the job to
683 the master daemon but not wait for its completion. The job
684 ID will be shown so that it can be examined via
685 <command>gnt-job info</command>.
691 # gnt-instance add -t file --disk 0:size=30g -B memory=512 -o debian-etch \
692 -n node1.example.com --file-storage-dir=mysubdir instance1.example.com
693 # gnt-instance add -t plain --disk 0:size=30g -B memory=512 -o debian-etch \
694 -n node1.example.com instance1.example.com
695 # gnt-instance add -t drbd --disk 0:size=30g -B memory=512 -o debian-etch \
696 -n node1.example.com:node2.example.com instance2.example.com
702 <title>BATCH-CREATE</title>
704 <command>batch-create</command>
705 <arg choice="req">instances_file.json</arg>
709 This command (similar to the Ganeti 1.2
710 <command>batcher</command> tool) submits multiple instance
711 creation jobs based on a definition file. The instance
712 configurations do not encompass all the possible options for
713 the <command>add</command> command, but only a subset.
717 The instance file should be a valid-formed JSON file,
718 containing a dictionary with instance name and instance
719 parameters. The accepted parameters are:
723 <term>disk_size</term>
725 <simpara>The size of the disks of the instance.</simpara>
729 <term>disk_templace</term>
731 <simpara>The disk template to use for the instance,
732 the same as in the <command>add</command>
739 <simpara>A dictionary of backend parameters.</simpara>
743 <term>hypervisor</term>
745 <simpara>A dictionary with a single key (the
746 hypervisor name), and as value the hypervisor
747 options. If not passed, the default hypervisor and
748 hypervisor options will be inherited.</simpara>
752 <term>mac, ip, mode, link</term>
754 <simpara>Specifications for the one NIC that will be
755 created for the instance. 'bridge' is also accepted
756 as a backwards compatibile key.</simpara>
762 <simpara>List of nics that will be created for the
763 instance. Each entry should be a dict, with mac, ip, mode
764 and link as possible keys. Please don't provide the "mac,
765 ip, mode, link" parent keys if you use this method for
766 specifying nics.</simpara>
770 <term>primary_node, secondary_node</term>
772 <simpara>The primary and optionally the secondary node
773 to use for the instance (in case an iallocator script
774 is not used).</simpara>
778 <term>iallocator</term>
780 <simpara>Instead of specifying the nodes, an
781 iallocator script can be used to automatically compute
788 <simpara>whether to start the instance</simpara>
792 <term>ip_check</term>
794 <simpara>Skip the check for already-in-use instance;
795 see the description in the <command>add</command>
796 command for details.</simpara>
800 <term>name_check</term>
802 <simpara>Skip the name check for instances;
803 see the description in the <command>add</command>
804 command for details.</simpara>
808 <term>file_storage_dir, file_driver</term>
810 <simpara>Configuration for the <literal>file</literal>
811 disk type, see the <command>add</command> command for
819 A simple definition for one instance can be (with most of
820 the parameters taken from the cluster defaults):
826 "disk_size": ["25G"],
832 "disk_size": ["25G"],
833 "iallocator": "dumb",
834 "hypervisor": "xen-hvm",
835 "hvparams": {"acpi": true},
836 "backend": {"memory": 512}
843 The command will display the job id for each submitted instance, as follows:
845 # gnt-instance batch-create instances.json
854 <title>REMOVE</title>
857 <command>remove</command>
858 <arg>--ignore-failures</arg>
859 <arg>--shutdown-timeout=<replaceable>N</replaceable></arg>
861 <arg choice="req"><replaceable>instance</replaceable></arg>
865 Remove an instance. This will remove all data from the
866 instance and there is <emphasis>no way back</emphasis>. If
867 you are not sure if you use an instance again, use
868 <command>shutdown</command> first and leave it in the
869 shutdown state for a while.
874 The <option>--ignore-failures</option> option will cause the
875 removal to proceed even in the presence of errors during the
876 removal of the instance (e.g. during the shutdown or the
877 disk removal). If this option is not given, the command will
878 stop at the first error.
882 The <option>--shutdown-timeout</option> is used to specify how
883 much time to wait before forcing the shutdown (xm destroy in xen,
884 killing the kvm process, for kvm). By default two minutes are
885 given to each instance to stop.
889 The <option>--submit</option> option is used to send the job to
890 the master daemon but not wait for its completion. The job
891 ID will be shown so that it can be examined via
892 <command>gnt-job info</command>.
898 # gnt-instance remove instance1.example.com
907 <command>list</command>
908 <arg>--no-headers</arg>
909 <arg>--separator=<replaceable>SEPARATOR</replaceable></arg>
910 <arg>-o <replaceable>[+]FIELD,...</replaceable></arg>
911 <arg rep="repeat">instance</arg>
915 Shows the currently configured instances with memory usage,
916 disk usage, the node they are running on, and their run
921 The <option>--no-headers</option> option will skip the
922 initial header line. The <option>--separator</option> option
923 takes an argument which denotes what will be used between
924 the output fields. Both these options are to help scripting.
928 The <option>-o</option> option takes a comma-separated list
929 of output fields. The available fields and their meaning
935 <simpara>the instance name</simpara>
941 <simpara>the OS of the instance</simpara>
947 <simpara>the primary node of the instance</simpara>
953 <simpara>comma-separated list of secondary nodes for the
954 instance; usually this will be just one node</simpara>
958 <term>admin_state</term>
960 <simpara>the desired state of the instance (either "yes"
961 or "no" denoting the instance should run or
966 <term>disk_template</term>
968 <simpara>the disk template of the instance</simpara>
972 <term>oper_state</term>
974 <simpara>the actual state of the instance; can be
975 one of the values "running", "stopped", "(node
982 <simpara>combined form of admin_state and oper_stat;
984 <computeroutput>ERROR_nodedown</computeroutput> if the
985 node of the instance is down,
986 <computeroutput>ERROR_down</computeroutput> if the
987 instance should run but is down,
988 <computeroutput>ERROR_up</computeroutput> if the
989 instance should be stopped but is actually running,
990 <computeroutput>ADMIN_down</computeroutput> if the
991 instance has been stopped (and is stopped) and
992 <computeroutput>running</computeroutput> if the
993 instance is set to be running (and is
998 <term>oper_ram</term>
1000 <simpara>the actual memory usage of the instance as seen
1001 by the hypervisor</simpara>
1007 <simpara>the ip address ganeti recognizes as associated with
1008 the first instance interface</simpara>
1014 <simpara>the first instance interface MAC address</simpara>
1019 <term>nic_mode</term>
1021 <simpara>the mode of the first instance NIC
1022 (routed or bridged)</simpara>
1026 <term>nic_link</term>
1028 <simpara>the link of the first instance NIC
1033 <term>sda_size</term>
1035 <simpara>the size of the instance's first disk</simpara>
1039 <term>sdb_size</term>
1041 <simpara>the size of the instance's second disk, if
1048 <simpara>the number of VCPUs allocated to the
1055 <simpara>comma-separated list of the instances's
1060 <term>serial_no</term>
1062 <simpara>the so called 'serial number' of the
1063 instance; this is a numeric field that is incremented
1064 each time the instance is modified, and it can be used
1065 to track modifications</simpara>
1072 the creation time of the instance; note that this
1073 field contains spaces and as such it's harder to
1077 if this attribute is not present (e.g. when
1078 upgrading from older versions), then "N/A" will be
1087 the last modification time of the instance; note
1088 that this field contains spaces and as such it's
1092 if this attribute is not present (e.g. when
1093 upgrading from older versions), then "N/A" will be
1102 <simpara>Show the UUID of the instance (generated
1103 automatically by Ganeti)</simpara>
1108 <term>network_port</term>
1110 <simpara>If the instance has a network port assigned
1111 to it (e.g. for VNC connections), this will be shown,
1112 otherwise <literal>-</literal> will be
1113 displayed.</simpara>
1117 <term>beparams</term>
1119 <simpara>A text format of the entire beparams for the
1120 instance. It's more useful to select individual fields
1121 from this dictionary, see below.</simpara>
1125 <term>disk.count</term>
1127 <simpara>The number of instance disks.</simpara>
1131 <term>disk.size/N</term>
1133 <simpara>The size of the instance's Nth disk. This is
1134 a more generic form of the <literal>sda_size</literal>
1135 and <literal>sdb_size</literal> fields.</simpara>
1139 <term>disk.sizes</term>
1141 <simpara>A comma-separated list of the disk sizes for
1142 this instance.</simpara>
1146 <term>disk_usage</term>
1148 <simpara>The total disk space used by this instance on
1149 each of its nodes. This is not the instance-visible
1150 disk size, but the actual disk "cost" of the
1155 <term>nic.mac/N</term>
1157 <simpara>The MAC of the Nth instance NIC.</simpara>
1161 <term>nic.ip/N</term>
1163 <simpara>The IP address of the Nth instance NIC.</simpara>
1167 <term>nic.mode/N</term>
1169 <simpara>The mode of the Nth instance NIC</simpara>
1173 <term>nic.link/N</term>
1175 <simpara>The link of the Nth instance NIC</simpara>
1179 <term>nic.macs</term>
1181 <simpara>A comma-separated list of all the MACs of the
1182 instance's NICs.</simpara>
1186 <term>nic.ips</term>
1188 <simpara>A comma-separated list of all the IP
1189 addresses of the instance's NICs.</simpara>
1193 <term>nic.modes</term>
1195 <simpara>A comma-separated list of all the modes of the
1196 instance's NICs.</simpara>
1200 <term>nic.links</term>
1202 <simpara>A comma-separated list of all the link parameters
1203 of the instance's NICs.</simpara>
1207 <term>nic.count</term>
1209 <simpara>The number of instance nics.</simpara>
1213 <term>hv/<replaceable>NAME</replaceable></term>
1215 <simpara>The value of the hypervisor parameter called
1216 <replaceable>NAME</replaceable>. For details of what
1217 hypervisor parameters exist and their meaning, see the
1218 <command>add</command> command.</simpara>
1222 <term>be/memory</term>
1224 <simpara>The configured memory for the instance.</simpara>
1228 <term>be/vcpus</term>
1230 <simpara>The configured number of VCPUs for the
1235 <term>be/auto_balance</term>
1237 <simpara>Whether the instance is considered in N+1
1245 If the value of the option starts with the character
1246 <constant>+</constant>, the new field(s) will be added to the
1247 default list. This allows to quickly see the default list
1248 plus a few other fields, instead of retyping the entire list
1253 There is a subtle grouping about the available output
1254 fields: all fields except for <option>oper_state</option>,
1255 <option>oper_ram</option> and <option>status</option> are
1256 configuration value and not run-time values. So if you don't
1257 select any of the these fields, the query will be satisfied
1258 instantly from the cluster configuration, without having to
1259 ask the remote nodes for the data. This can be helpful for
1260 big clusters when you only want some data and it makes sense
1261 to specify a reduced set of output fields.
1264 <para>The default output field list is:
1265 <simplelist type="inline">
1266 <member>name</member>
1268 <member>pnode</member>
1269 <member>admin_state</member>
1270 <member>oper_state</member>
1271 <member>oper_ram</member>
1280 <command>info</command>
1285 <group choice="req">
1287 <arg rep="repeat"><replaceable>instance</replaceable></arg>
1292 Show detailed information about the given instance(s). This is
1293 different from <command>list</command> as it shows detailed data
1294 about the instance's disks (especially useful for the drbd disk
1299 If the option <option>-s</option> is used, only information
1300 available in the configuration file is returned, without
1301 querying nodes, making the operation faster.
1305 Use the <option>--all</option> to get info about all instances,
1306 rather than explicitely passing the ones you're interested in.
1311 <title>MODIFY</title>
1314 <command>modify</command>
1316 <arg choice="opt">-H <replaceable>HYPERVISOR_PARAMETERS</replaceable></arg>
1318 <arg choice="opt">-B <replaceable>BACKEND_PARAMETERS</replaceable></arg>
1321 <arg>--net add<replaceable><optional>:options</optional></replaceable></arg>
1322 <arg>--net remove</arg>
1323 <arg>--net <replaceable>N:options</replaceable></arg>
1327 <arg>--disk add:size=<replaceable>SIZE</replaceable></arg>
1328 <arg>--disk remove</arg>
1329 <arg>--disk <replaceable>N</replaceable>:mode=<replaceable>MODE</replaceable></arg>
1335 <arg choice="req"><replaceable>instance</replaceable></arg>
1339 Modifies the memory size, number of vcpus, ip address, MAC
1340 address and/or nic parameters for an instance. It can also
1341 add and remove disks and NICs to/from the instance. Note
1342 that you need to give at least one of the arguments, otherwise
1343 the command complains.
1347 The <option>-H</option> option specifies hypervisor options
1348 in the form of <userinput>name=value[,...]</userinput>. For details which options can be specified, see the <command>add</command> command.
1353 add:size=<replaceable>SIZE</replaceable></option> option
1354 adds a disk to the instance. The <option>--disk
1355 remove</option> will remove the last disk of the
1356 instance. The <option>--disk
1357 <replaceable>N</replaceable>:mode=<replaceable>MODE</replaceable></option>
1358 option will change the mode of the Nth disk of the instance
1359 between read-only (<literal>ro</literal>) and read-write
1360 (<literal>rw</literal>).
1365 add:<replaceable>options</replaceable></option> option will
1366 add a new NIC to the instance. The available options are the
1367 same as in the <command>add</command> command (mac, ip, link,
1368 mode). The <option>--net remove</option> will remove the
1369 last NIC of the instance, while the <option>--net
1370 <replaceable>N</replaceable>:<replaceable>options</replaceable></option>
1371 option will change the parameters of the Nth instance NIC.
1375 The <option>--submit</option> option is used to send the job to
1376 the master daemon but not wait for its completion. The job
1377 ID will be shown so that it can be examined via
1378 <command>gnt-job info</command>.
1382 All the changes take effect at the next restart. If the
1383 instance is running, there is no effect on the instance.
1388 <title>REINSTALL</title>
1391 <command>reinstall</command>
1392 <arg choice="opt">-o <replaceable>os-type</replaceable></arg>
1393 <arg>--select-os</arg>
1394 <arg choice="opt">-f <replaceable>force</replaceable></arg>
1395 <arg>--force-multiple</arg>
1397 <group choice="opt">
1398 <arg>--instance</arg>
1400 <arg>--primary</arg>
1401 <arg>--secondary</arg>
1405 <arg choice="opt" rep="repeat"><replaceable>instance</replaceable></arg>
1409 Reinstalls the operating system on the given instance(s). The
1410 instance(s) must be stopped when running this command. If the
1411 <option>--os-type</option> is specified, the operating
1416 The <option>--select-os</option> option switches to an
1417 interactive OS reinstall. The user is prompted to select the OS
1418 template from the list of available OS templates.
1422 Since this is a potentially dangerous command, the user will
1423 be required to confirm this action, unless the
1424 <option>-f</option> flag is passed. When multiple instances
1425 are selected (either by passing multiple arguments or by
1426 using the <option>--node</option>,
1427 <option>--primary</option>, <option>--secondary</option> or
1428 <option>--all</option> options), the user must pass both the
1429 <option>--force</option> and
1430 <option>--force-multiple</option> options to skip the
1431 interactive confirmation.
1435 The <option>--submit</option> option is used to send the job to
1436 the master daemon but not wait for its completion. The job
1437 ID will be shown so that it can be examined via
1438 <command>gnt-job info</command>.
1445 <title>RENAME</title>
1448 <command>rename</command>
1449 <arg>--no-ip-check</arg>
1451 <arg choice="req"><replaceable>instance</replaceable></arg>
1452 <arg choice="req"><replaceable>new_name</replaceable></arg>
1456 Renames the given instance. The instance must be stopped
1457 when running this command. The requirements for the new name
1458 are the same as for adding an instance: the new name must be
1459 resolvable and the IP it resolves to must not be reachable
1460 (in order to prevent duplicate IPs the next time the
1461 instance is started). The IP test can be skipped if the
1462 <option>--no-ip-check</option> option is passed.
1466 The <option>--submit</option> option is used to send the job to
1467 the master daemon but not wait for its completion. The job
1468 ID will be shown so that it can be examined via
1469 <command>gnt-job info</command>.
1477 <title>Starting/stopping/connecting to console</title>
1480 <title>STARTUP</title>
1483 <command>startup</command>
1487 <arg>--force-multiple</arg>
1489 <group choice="opt">
1490 <arg>--instance</arg>
1492 <arg>--primary</arg>
1493 <arg>--secondary</arg>
1496 <arg>--node-tags</arg>
1497 <arg>--pri-node-tags</arg>
1498 <arg>--sec-node-tags</arg>
1501 <arg>-H <option>key=value...</option></arg>
1502 <arg>-B <option>key=value...</option></arg>
1507 rep="repeat"><replaceable>name</replaceable></arg>
1511 Starts one or more instances, depending on the following
1512 options. The four available modes are:
1515 <term><option>--instance</option></term>
1517 <simpara>will start the instances given as arguments
1518 (at least one argument required); this is the default
1525 <simpara>will start the instances who have the given
1526 node as either primary or secondary</simpara>
1530 <term><option>--primary</option></term>
1532 <simpara>will start all instances whose primary node
1533 is in the list of nodes passed as arguments (at least
1534 one node required)</simpara>
1538 <term><option>--secondary</option></term>
1540 <simpara>will start all instances whose secondary node
1541 is in the list of nodes passed as arguments (at least
1542 one node required)</simpara>
1548 <simpara>will start all instances in the cluster (no
1549 arguments accepted)</simpara>
1555 <simpara>will start all instances in the cluster with
1556 the tags given as arguments</simpara>
1560 <term>--node-tags</term>
1562 <simpara>will start all instances in the cluster on
1563 nodes with the tags given as arguments</simpara>
1567 <term>--pri-node-tags</term>
1569 <simpara>will start all instances in the cluster on
1570 primary nodes with the tags given as
1575 <term>--sec-node-tags</term>
1577 <simpara>will start all instances in the cluster on
1578 secondary nodes with the tags given as
1586 Note that although you can pass more than one selection
1587 option, the last one wins, so in order to guarantee the
1588 desired result, don't pass more than one such option.
1592 Use <option>--force</option> to start even if secondary disks are
1597 The <option>--force-multiple</option> will skip the
1598 interactive confirmation in the case the more than one
1599 instance will be affected.
1603 The <option>-H</option> and <option>-B</option> options
1604 specify temporary hypervisor and backend parameters that can
1605 be used to start an instance with modified parameters. They
1606 can be useful for quick testing without having to modify an
1607 instance back and forth, e.g.:
1609 # gnt-instance start -H root_args="single" instance1
1610 # gnt-instance start -B memory=2048 instance2
1612 The first form will start the instance
1613 <userinput>instance1</userinput> in single-user mode, and
1614 the instance <userinput>instance2</userinput> with 2GB of
1615 RAM (this time only, unless that is the actual instance
1616 memory size already). Note that the values override the
1617 instance parameters (and not extend them): an instance with
1618 "root_args=ro" when started with <userinput>-H
1619 root_args=single</userinput> will result in "single", not
1624 The <option>--submit</option> option is used to send the job to
1625 the master daemon but not wait for its completion. The job
1626 ID will be shown so that it can be examined via
1627 <command>gnt-job info</command>.
1633 # gnt-instance start instance1.example.com
1634 # gnt-instance start --node node1.example.com node2.example.com
1635 # gnt-instance start --all
1641 <title>SHUTDOWN</title>
1644 <command>shutdown</command>
1646 <arg>--timeout=<replaceable>N</replaceable></arg>
1648 <arg>--force-multiple</arg>
1650 <group choice="opt">
1651 <arg>--instance</arg>
1653 <arg>--primary</arg>
1654 <arg>--secondary</arg>
1657 <arg>--node-tags</arg>
1658 <arg>--pri-node-tags</arg>
1659 <arg>--sec-node-tags</arg>
1665 rep="repeat"><replaceable>name</replaceable></arg>
1669 Stops one or more instances. If the instance cannot be
1670 cleanly stopped during a hardcoded interval (currently 2
1671 minutes), it will forcibly stop the instance (equivalent to
1672 switching off the power on a physical machine).
1676 The <option>--timeout</option> is used to specify how much time to
1677 wait before forcing the shutdown (xm destroy in xen, killing the kvm
1678 process, for kvm). By default two minutes are given to each instance
1683 The <option>--instance</option>, <option>--node</option>,
1684 <option>--primary</option>, <option>--secondary</option>,
1685 <option>--all</option>, <option>--tags</option>,
1686 <option>--node-tags</option>, <option>--pri-node-tags</option> and
1687 <option>--sec-node-tags</option> options are similar as for the
1688 <command>startup</command> command and they influence the
1689 actual instances being shutdown.
1693 The <option>--submit</option> option is used to send the job to
1694 the master daemon but not wait for its completion. The job
1695 ID will be shown so that it can be examined via
1696 <command>gnt-job info</command>.
1703 # gnt-instance shutdown instance1.example.com
1704 # gnt-instance shutdown --all
1710 <title>REBOOT</title>
1713 <command>reboot</command>
1715 <arg>--type=<replaceable>REBOOT-TYPE</replaceable></arg>
1717 <arg>--ignore-secondaries</arg>
1719 <arg>--shutdown-timeout=<replaceable>N</replaceable></arg>
1721 <arg>--force-multiple</arg>
1723 <group choice="opt">
1724 <arg>--instance</arg>
1726 <arg>--primary</arg>
1727 <arg>--secondary</arg>
1730 <arg>--node-tags</arg>
1731 <arg>--pri-node-tags</arg>
1732 <arg>--sec-node-tags</arg>
1738 rep="repeat"><replaceable>name</replaceable></arg>
1742 Reboots one or more instances. The type of reboot depends on
1743 the value of <option>--type</option>. A soft reboot does a
1744 hypervisor reboot, a hard reboot does a instance stop,
1745 recreates the hypervisor config for the instance and
1746 starts the instance. A full reboot does the equivalent
1747 of <command>gnt-instance shutdown && gnt-instance
1748 startup</command>. The default is hard reboot.
1752 For the hard reboot the option
1753 <option>--ignore-secondaries</option> ignores errors for the
1754 secondary node while re-assembling the instance disks.
1758 The <option>--instance</option>, <option>--node</option>,
1759 <option>--primary</option>, <option>--secondary</option>,
1760 <option>--all</option>, <option>--tags</option>,
1761 <option>--node-tags</option>, <option>--pri-node-tags</option> and
1762 <option>--sec-node-tags</option> options are similar as for the
1763 <command>startup</command> command and they influence the
1764 actual instances being rebooted.
1768 The <option>--shutdown-timeout</option> is used to specify how
1769 much time to wait before forcing the shutdown (xm destroy in xen,
1770 killing the kvm process, for kvm). By default two minutes are
1771 given to each instance to stop.
1775 The <option>--force-multiple</option> will skip the
1776 interactive confirmation in the case the more than one
1777 instance will be affected.
1783 # gnt-instance reboot instance1.example.com
1784 # gnt-instance reboot --type=full instance1.example.com
1790 <title>CONSOLE</title>
1792 <command>console</command>
1793 <arg choice="opt">--show-cmd</arg>
1794 <arg choice="req"><replaceable>instance</replaceable></arg>
1798 Connects to the console of the given instance. If the
1799 instance is not up, an error is returned. Use the
1800 <option>--show-cmd</option> option to display the command
1801 instead of executing it.
1805 For HVM instances, this will attempt to connect to the
1806 serial console of the instance. To connect to the
1807 virtualized "physical" console of a HVM instance, use a VNC
1808 client with the connection info from the
1809 <command>info</command> command.
1815 # gnt-instance console instance1.example.com
1823 <title>Disk management</title>
1826 <title>REPLACE-DISKS</title>
1829 <command>replace-disks</command>
1831 <arg choice="req">-p</arg>
1832 <arg>--disks <replaceable>idx</replaceable></arg>
1833 <arg choice="req"><replaceable>instance</replaceable></arg>
1837 <command>replace-disks</command>
1839 <arg choice="req">-s</arg>
1840 <arg>--disks <replaceable>idx</replaceable></arg>
1841 <arg choice="req"><replaceable>instance</replaceable></arg>
1845 <command>replace-disks</command>
1847 <group choice="req">
1848 <arg>--iallocator <replaceable>name</replaceable></arg>
1849 <arg>--new-secondary <replaceable>NODE</replaceable></arg>
1852 <arg choice="req"><replaceable>instance</replaceable></arg>
1856 <command>replace-disks</command>
1858 <arg choice="req">--auto</arg>
1859 <arg choice="req"><replaceable>instance</replaceable></arg>
1863 This command is a generalized form for replacing disks. It
1864 is currently only valid for the mirrored (DRBD) disk
1869 The first form (when passing the <option>-p</option> option)
1870 will replace the disks on the primary, while the second form
1871 (when passing the <option>-s</option> option will replace
1872 the disks on the secondary node. For these two cases (as the
1873 node doesn't change), it is possible to only run the replace
1874 for a subset of the disks, using the option
1875 <option>--disks</option> which takes a list of
1876 comma-delimited disk indices (zero-based),
1877 e.g. <userinput>0,2</userinput> to replace only the first
1882 The third form (when passing either the
1883 <option>--iallocator</option> or the
1884 <option>--new-secondary</option> option) is designed to
1885 change secondary node of the instance. Specifying
1886 <option>--iallocator</option> makes the new secondary be
1887 selected automatically by the specified allocator plugin,
1888 otherwise the new secondary node will be the one chosen
1889 manually via the <option>--new-secondary</option> option.
1893 The fourth form (when using <option>--auto</option>) will
1894 automatically determine which disks of an instance are faulty and
1895 replace them within the same node. The <option>--auto</option>
1896 option works only when an instance has only faulty disks on
1897 either the primary or secondary node; it doesn't work when
1898 both sides have faulty disks.
1902 The <option>--submit</option> option is used to send the job to
1903 the master daemon but not wait for its completion. The job
1904 ID will be shown so that it can be examined via
1905 <command>gnt-job info</command>.
1909 Note that it is not possible to select an offline or drained
1910 node as a new secondary.
1916 <title>ACTIVATE-DISKS</title>
1919 <command>activate-disks</command>
1921 <arg>--ignore-size</arg>
1922 <arg choice="req"><replaceable>instance</replaceable></arg>
1925 Activates the block devices of the given instance. If
1926 successful, the command will show the location and name of
1929 node1.example.com:disk/0:/dev/drbd0
1930 node1.example.com:disk/1:/dev/drbd1
1933 In this example, <emphasis>node1.example.com</emphasis> is
1934 the name of the node on which the devices have been
1935 activated. The <emphasis>disk/0</emphasis> and
1936 <emphasis>disk/1</emphasis> are the Ganeti-names of the
1937 instance disks; how they are visible inside the instance is
1938 hypervisor-specific. <emphasis>/dev/drbd0</emphasis> and
1939 <emphasis>/dev/drbd1</emphasis> are the actual block devices
1940 as visible on the node.
1944 The <option>--submit</option> option is used to send the job to
1945 the master daemon but not wait for its completion. The job
1946 ID will be shown so that it can be examined via
1947 <command>gnt-job info</command>.
1951 The <option>--ignore-size</option> option can be used to
1952 activate disks ignoring the currently configured size in
1953 Ganeti. This can be used in cases where the configuration
1954 has gotten out of sync with the real-world (e.g. after a
1955 partially-failed grow-disk operation or due to rounding in
1956 LVM devices). This should not be used in normal cases, but
1957 only when activate-disks fails without it.
1961 Note that it is safe to run this command while the instance
1967 <title>DEACTIVATE-DISKS</title>
1970 <command>deactivate-disks</command>
1972 <arg choice="req"><replaceable>instance</replaceable></arg>
1975 De-activates the block devices of the given instance. Note
1976 that if you run this command for an instance with a drbd
1977 disk template, while it is running, it will not be able to
1978 shutdown the block devices on the primary node, but it will
1979 shutdown the block devices on the secondary nodes, thus
1980 breaking the replication.
1984 The <option>--submit</option> option is used to send the job to
1985 the master daemon but not wait for its completion. The job
1986 ID will be shown so that it can be examined via
1987 <command>gnt-job info</command>.
1993 <title>GROW-DISK</title>
1995 <command>grow-disk</command>
1996 <arg>--no-wait-for-sync</arg>
1998 <arg choice="req"><replaceable>instance</replaceable></arg>
1999 <arg choice="req"><replaceable>disk</replaceable></arg>
2000 <arg choice="req"><replaceable>amount</replaceable></arg>
2004 Grows an instance's disk. This is only possible for
2005 instances having a <literal>plain</literal> or
2006 <literal>drbd</literal> disk template.
2010 Note that this command only change the block device size; it
2011 will not grow the actual filesystems, partitions, etc. that
2012 live on that disk. Usually, you will need to:
2015 <simpara>use <command>gnt-instance grow-disk</command></simpara>
2018 <simpara>reboot the instance (later, at a convenient
2022 <simpara>use a filesystem resizer, such as
2023 <citerefentry> <refentrytitle>ext2online</refentrytitle>
2024 <manvolnum>8</manvolnum> </citerefentry> or
2025 <citerefentry> <refentrytitle>xfs_growfs</refentrytitle>
2026 <manvolnum>8</manvolnum> </citerefentry> to resize the
2027 filesystem, or use <citerefentry>
2028 <refentrytitle>fdisk</refentrytitle>
2029 <manvolnum>8</manvolnum> </citerefentry> to change the
2030 partition table on the disk
2038 The <replaceable>disk</replaceable> argument is the index of
2039 the instance disk to grow. The
2040 <replaceable>amount</replaceable> argument is given either
2041 as a number (and it represents the amount to increase the
2042 disk with in mebibytes) or can be given similar to the
2043 arguments in the create instance operation, with a suffix
2048 Note that the disk grow operation might complete on one node
2049 but fail on the other; this will leave the instance with
2050 different-sized LVs on the two nodes, but this will not
2051 create problems (except for unused space).
2055 If you do not want gnt-instance to wait for the new disk
2056 region to be synced, use the
2057 <option>--no-wait-for-sync</option> option.
2061 The <option>--submit</option> option is used to send the job to
2062 the master daemon but not wait for its completion. The job
2063 ID will be shown so that it can be examined via
2064 <command>gnt-job info</command>.
2068 <para>Example (increase the first disk for instance1 by 16GiB):
2070 # gnt-instance grow-disk instance1.example.com 0 16g
2075 Also note that disk shrinking is not supported; use
2076 <command>gnt-backup export</command> and then
2077 <command>gnt-backup import</command> to reduce the disk size
2083 <title>RECREATE-DISKS</title>
2086 <command>recreate-disks</command>
2088 <arg>--disks=<option>indices</option></arg>
2089 <arg choice="req"><replaceable>instance</replaceable></arg>
2092 Recreates the disks of the given instance, or only a subset
2093 of the disks (if the option <option>disks</option> is
2094 passed, which must be a comma-separated list of disk
2095 indices, starting from zero).
2099 Note that this functionality should only be used for missing
2100 disks; if any of the given disks already exists, the
2101 operation will fail. While this is suboptimal,
2102 recreate-disks should hopefully not be needed in normal
2103 operation and as such the impact of this is low.
2107 The <option>--submit</option> option is used to send the job to
2108 the master daemon but not wait for its completion. The job
2109 ID will be shown so that it can be examined via
2110 <command>gnt-job info</command>.
2118 <title>Recovery</title>
2121 <title>FAILOVER</title>
2124 <command>failover</command>
2126 <arg>--ignore-consistency</arg>
2127 <arg>--shutdown-timeout=<replaceable>N</replaceable></arg>
2129 <arg choice="req"><replaceable>instance</replaceable></arg>
2133 Failover will fail the instance over its secondary
2134 node. This works only for instances having a drbd disk
2139 Normally the failover will check the consistency of the
2140 disks before failing over the instance. If you are trying to
2141 migrate instances off a dead node, this will fail. Use the
2142 <option>--ignore-consistency</option> option for this
2143 purpose. Note that this option can be dangerous as errors in
2144 shutting down the instance will be ignored, resulting in
2145 possibly having the instance running on two machines in
2146 parallel (on disconnected DRBD drives).
2150 The <option>--shutdown-timeout</option> is used to specify how
2151 much time to wait before forcing the shutdown (xm destroy in xen,
2152 killing the kvm process, for kvm). By default two minutes are
2153 given to each instance to stop.
2157 The <option>--submit</option> option is used to send the job to
2158 the master daemon but not wait for its completion. The job
2159 ID will be shown so that it can be examined via
2160 <command>gnt-job info</command>.
2166 # gnt-instance failover instance1.example.com
2172 <title>MIGRATE</title>
2175 <command>migrate</command>
2177 <arg choice="req">--cleanup</arg>
2178 <arg choice="req"><replaceable>instance</replaceable></arg>
2182 <command>migrate</command>
2184 <arg>--non-live</arg>
2185 <arg choice="req"><replaceable>instance</replaceable></arg>
2189 Migrate will move the instance to its secondary node without
2190 shutdown. It only works for instances having the drbd8 disk
2195 The migration command needs a perfectly healthy instance, as
2196 we rely on the dual-master capability of drbd8 and the disks
2197 of the instance are not allowed to be degraded.
2201 The <option>--non-live</option> option will switch (for the
2202 hypervisors that support it) between a "fully live"
2203 (i.e. the interruption is as minimal as possible) migration
2204 and one in which the instance is frozen, its state saved and
2205 transported to the remote node, and then resumed there. This
2206 all depends on the hypervisor support for two different
2207 methods. In any case, it is not an error to pass this
2208 parameter (it will just be ignored if the hypervisor doesn't
2213 If the <option>--cleanup</option> option is passed, the
2214 operation changes from migration to attempting recovery from
2215 a failed previous migration. In this mode, ganeti checks if
2216 the instance runs on the correct node (and updates its
2217 configuration if not) and ensures the instances's disks are
2218 configured correctly. In this mode, the
2219 <option>--non-live</option> option is ignored.
2223 The option <option>-f</option> will skip the prompting for
2227 Example (and expected output):
2229 # gnt-instance migrate instance1
2230 Migrate will happen to the instance instance1. Note that migration is
2231 **experimental** in this version. This might impact the instance if
2232 anything goes wrong. Continue?
2234 * checking disk consistency between source and target
2235 * ensuring the target is in secondary mode
2236 * changing disks into dual-master mode
2237 - INFO: Waiting for instance instance1 to sync disks.
2238 - INFO: Instance instance1's disks are in sync.
2239 * migrating instance to node2.example.com
2240 * changing the instance's disks on source node to secondary
2241 - INFO: Waiting for instance instance1 to sync disks.
2242 - INFO: Instance instance1's disks are in sync.
2243 * changing the instance's disks to single-master
2253 <command>move</command>
2255 <arg>-n <replaceable>node</replaceable></arg>
2256 <arg>--shutdown-timeout=<replaceable>N</replaceable></arg>
2258 <arg choice="req"><replaceable>instance</replaceable></arg>
2262 Move will move the instance to an arbitrary node in the
2263 cluster. This works only for instances having a plain or
2268 Note that since this operation is done via data copy, it
2269 will take a long time for big disks (similar to
2270 replace-disks for a drbd instance).
2274 The <option>--shutdown-timeout</option> is used to specify how
2275 much time to wait before forcing the shutdown (xm destroy in xen,
2276 killing the kvm process, for kvm). By default two minutes are
2277 given to each instance to stop.
2281 The <option>--submit</option> option is used to send the job to
2282 the master daemon but not wait for its completion. The job
2283 ID will be shown so that it can be examined via
2284 <command>gnt-job info</command>.
2290 # gnt-instance move -n node3.example.com instance1.example.com
2301 <title>ADD-TAGS</title>
2304 <command>add-tags</command>
2305 <arg choice="opt">--from <replaceable>file</replaceable></arg>
2306 <arg choice="req"><replaceable>instancename</replaceable></arg>
2308 rep="repeat"><replaceable>tag</replaceable></arg>
2312 Add tags to the given instance. If any of the tags contains
2313 invalid characters, the entire operation will abort.
2316 If the <option>--from</option> option is given, the list of
2317 tags will be extended with the contents of that file (each
2318 line becomes a tag). In this case, there is not need to pass
2319 tags on the command line (if you do, both sources will be
2320 used). A file name of - will be interpreted as stdin.
2325 <title>LIST-TAGS</title>
2328 <command>list-tags</command>
2329 <arg choice="req"><replaceable>instancename</replaceable></arg>
2332 <para>List the tags of the given instance.</para>
2336 <title>REMOVE-TAGS</title>
2338 <command>remove-tags</command>
2339 <arg choice="opt">--from <replaceable>file</replaceable></arg>
2340 <arg choice="req"><replaceable>instancename</replaceable></arg>
2342 rep="repeat"><replaceable>tag</replaceable></arg>
2346 Remove tags from the given instance. If any of the tags are
2347 not existing on the node, the entire operation will abort.
2351 If the <option>--from</option> option is given, the list of
2352 tags will be extended with the contents of that file (each
2353 line becomes a tag). In this case, there is not need to pass
2354 tags on the command line (if you do, both sources will be
2355 used). A file name of - will be interpreted as stdin.
2367 <!-- Keep this comment at the end of the file
2372 sgml-minimize-attributes:nil
2373 sgml-always-quote-attributes:t
2376 sgml-parent-document:nil
2377 sgml-default-dtd-file:nil
2378 sgml-exposed-tags:nil
2379 sgml-local-catalogs:nil
2380 sgml-local-ecat-files:nil