Statistics
| Branch: | Tag: | Revision:

root / man / gnt-instance.sgml @ 36e23a40

History | View | Annotate | Download (69.2 kB)

1 a8083063 Iustin Pop
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2 a8083063 Iustin Pop
3 a8083063 Iustin Pop
  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4 a8083063 Iustin Pop
  <!-- Please adjust the date whenever revising the manpage. -->
5 d3b4cf9f Iustin Pop
  <!ENTITY dhdate      "<date>February 11, 2009</date>">
6 a8083063 Iustin Pop
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7 a8083063 Iustin Pop
       allowed: see man(7), man(1). -->
8 a8083063 Iustin Pop
  <!ENTITY dhsection   "<manvolnum>8</manvolnum>">
9 a8083063 Iustin Pop
  <!ENTITY dhucpackage "<refentrytitle>gnt-instance</refentrytitle>">
10 a8083063 Iustin Pop
  <!ENTITY dhpackage   "gnt-instance">
11 a8083063 Iustin Pop
12 a8083063 Iustin Pop
  <!ENTITY debian      "<productname>Debian</productname>">
13 a8083063 Iustin Pop
  <!ENTITY gnu         "<acronym>GNU</acronym>">
14 a8083063 Iustin Pop
  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
15 a8083063 Iustin Pop
  <!ENTITY footer SYSTEM "footer.sgml">
16 a8083063 Iustin Pop
]>
17 a8083063 Iustin Pop
18 a8083063 Iustin Pop
<refentry>
19 a8083063 Iustin Pop
  <refentryinfo>
20 a8083063 Iustin Pop
    <copyright>
21 a8083063 Iustin Pop
      <year>2006</year>
22 a8083063 Iustin Pop
      <year>2007</year>
23 a53a1b18 Michael Hanselmann
      <year>2008</year>
24 d3b4cf9f Iustin Pop
      <year>2009</year>
25 a8083063 Iustin Pop
      <holder>Google Inc.</holder>
26 a8083063 Iustin Pop
    </copyright>
27 a8083063 Iustin Pop
    &dhdate;
28 a8083063 Iustin Pop
  </refentryinfo>
29 a8083063 Iustin Pop
  <refmeta>
30 a8083063 Iustin Pop
    &dhucpackage;
31 a8083063 Iustin Pop
32 a8083063 Iustin Pop
    &dhsection;
33 d3b4cf9f Iustin Pop
    <refmiscinfo>ganeti 2.0</refmiscinfo>
34 a8083063 Iustin Pop
  </refmeta>
35 a8083063 Iustin Pop
  <refnamediv>
36 a8083063 Iustin Pop
    <refname>&dhpackage;</refname>
37 a8083063 Iustin Pop
38 a8083063 Iustin Pop
    <refpurpose>ganeti instance administration</refpurpose>
39 a8083063 Iustin Pop
  </refnamediv>
40 a8083063 Iustin Pop
  <refsynopsisdiv>
41 a8083063 Iustin Pop
    <cmdsynopsis>
42 a8083063 Iustin Pop
      <command>&dhpackage; </command>
43 a8083063 Iustin Pop
44 a8083063 Iustin Pop
      <arg choice="req">command</arg>
45 a8083063 Iustin Pop
      <arg>arguments...</arg>
46 a8083063 Iustin Pop
    </cmdsynopsis>
47 a8083063 Iustin Pop
  </refsynopsisdiv>
48 a8083063 Iustin Pop
  <refsect1>
49 a8083063 Iustin Pop
    <title>DESCRIPTION</title>
50 a8083063 Iustin Pop
51 a8083063 Iustin Pop
    <para>
52 a8083063 Iustin Pop
      The <command>&dhpackage;</command> is used for instance
53 a8083063 Iustin Pop
      administration in the ganeti system.
54 a8083063 Iustin Pop
    </para>
55 a8083063 Iustin Pop
56 a8083063 Iustin Pop
  </refsect1>
57 a8083063 Iustin Pop
  <refsect1>
58 a8083063 Iustin Pop
    <title>COMMANDS</title>
59 a8083063 Iustin Pop
60 a8083063 Iustin Pop
    <refsect2>
61 a8083063 Iustin Pop
      <title>Creation/removal/querying</title>
62 a8083063 Iustin Pop
63 a8083063 Iustin Pop
      <refsect3>
64 a8083063 Iustin Pop
        <title>ADD</title>
65 a8083063 Iustin Pop
        <cmdsynopsis>
66 a8083063 Iustin Pop
          <command>add</command>
67 b9ac33e9 Iustin Pop
          <sbr>
68 c0e4a2c3 Iustin Pop
          <arg choice="req">-t<group choice="req">
69 c0e4a2c3 Iustin Pop
              <arg>diskless</arg>
70 c0e4a2c3 Iustin Pop
              <arg>file</arg>
71 c0e4a2c3 Iustin Pop
              <arg>plain</arg>
72 c0e4a2c3 Iustin Pop
              <arg>drbd</arg>
73 c0e4a2c3 Iustin Pop
            </group></arg>
74 c0e4a2c3 Iustin Pop
          <sbr>
75 c0e4a2c3 Iustin Pop
76 c0e4a2c3 Iustin Pop
          <group choice="req">
77 c0e4a2c3 Iustin Pop
            <arg rep="repeat">--disk=<replaceable>N</replaceable>:size=<replaceable>VAL</replaceable><arg>,mode=<replaceable>ro|rw</replaceable></arg></arg>
78 c0e4a2c3 Iustin Pop
            <arg>-s <replaceable>SIZE</replaceable></arg>
79 c0e4a2c3 Iustin Pop
          </group>
80 783583e9 Michael Hanselmann
          <sbr>
81 d3b4cf9f Iustin Pop
          <group>
82 d3b4cf9f Iustin Pop
            <arg rep="repeat">--net=<replaceable>N</replaceable><arg rep="repeat">:options</arg></arg>
83 d3b4cf9f Iustin Pop
            <arg>--no-nics</arg>
84 d3b4cf9f Iustin Pop
          </group>
85 a8083063 Iustin Pop
          <sbr>
86 d3b4cf9f Iustin Pop
          <arg>-B <replaceable>BEPARAMS</replaceable></arg>
87 00f98619 Iustin Pop
          <sbr>
88 bdb7d4e8 Michael Hanselmann
89 d3b4cf9f Iustin Pop
          <arg>-H <replaceable>HYPERVISOR</replaceable><arg>:<arg choice="plain" rep="repeat">option=<replaceable>value</replaceable></arg></arg></arg>
90 00f98619 Iustin Pop
          <sbr>
91 bdb7d4e8 Michael Hanselmann
92 495beb42 Manuel Franceschini
          <arg>--file-storage-dir <replaceable>dir_path</replaceable></arg>
93 bdb7d4e8 Michael Hanselmann
          <arg>--file-driver<group choice="req">
94 495beb42 Manuel Franceschini
              <arg>loop</arg>
95 495beb42 Manuel Franceschini
              <arg>blktap</arg>
96 495beb42 Manuel Franceschini
            </group></arg>
97 495beb42 Manuel Franceschini
          <sbr>
98 bdb7d4e8 Michael Hanselmann
99 a53a1b18 Michael Hanselmann
          <group choice="req">
100 a53a1b18 Michael Hanselmann
            <arg>-n <replaceable>node<optional>:secondary-node</optional></replaceable></arg>
101 a53a1b18 Michael Hanselmann
            <arg>--iallocator <replaceable>name</replaceable></arg>
102 a53a1b18 Michael Hanselmann
          </group>
103 a53a1b18 Michael Hanselmann
          <sbr>
104 a53a1b18 Michael Hanselmann
105 bdb7d4e8 Michael Hanselmann
          <arg choice="req">-o <replaceable>os-type</replaceable></arg>
106 bdb7d4e8 Michael Hanselmann
          <sbr>
107 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
108 d3b4cf9f Iustin Pop
          <sbr>
109 bdb7d4e8 Michael Hanselmann
110 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
111 a8083063 Iustin Pop
        </cmdsynopsis>
112 00f98619 Iustin Pop
113 a8083063 Iustin Pop
        <para>
114 d3b4cf9f Iustin Pop
          Creates a new instance on the specified host. The
115 d3b4cf9f Iustin Pop
          <replaceable>instance</replaceable> argument must be in DNS,
116 d3b4cf9f Iustin Pop
          but depending on the bridge setup, need not be in the same
117 d3b4cf9f Iustin Pop
          network as the nodes in the cluster.
118 a8083063 Iustin Pop
        </para>
119 a8083063 Iustin Pop
120 a8083063 Iustin Pop
        <para>
121 d3b4cf9f Iustin Pop
          The <option>disk</option> option specifies the parameters
122 d3b4cf9f Iustin Pop
          for the disks of the instance. The numbering of disks starts
123 d3b4cf9f Iustin Pop
          at zero, and at least one disk needs to be passed. For each
124 d3b4cf9f Iustin Pop
          disk, at least the size needs to be given, and optionally
125 d3b4cf9f Iustin Pop
          the access mode (read-only or the default of read-write) can
126 d3b4cf9f Iustin Pop
          also be specified.  The size is interpreted (when no unit is
127 d3b4cf9f Iustin Pop
          given) in mebibytes. You can also use one of the suffixes
128 d3b4cf9f Iustin Pop
          <literal>m</literal>, <literal>g</literal> or
129 b9ac33e9 Iustin Pop
          <literal>t</literal> to specificy the exact the units used;
130 b9ac33e9 Iustin Pop
          these suffixes map to mebibytes, gibibytes and tebibytes.
131 a8083063 Iustin Pop
        </para>
132 a8083063 Iustin Pop
133 a8083063 Iustin Pop
        <para>
134 c0e4a2c3 Iustin Pop
          Alternatively, a single-disk instance can be created via the
135 c0e4a2c3 Iustin Pop
          <option>-s</option> option which takes a single argument,
136 c0e4a2c3 Iustin Pop
          the size of the disk. This is similar to the Ganeti 1.2
137 c0e4a2c3 Iustin Pop
          version (but will only create one disk).
138 c0e4a2c3 Iustin Pop
        </para>
139 c0e4a2c3 Iustin Pop
140 c0e4a2c3 Iustin Pop
        <para>
141 d3b4cf9f Iustin Pop
          The minimum disk specification is therefore
142 c0e4a2c3 Iustin Pop
          <userinput>--disk 0:size=20G</userinput> (or <userinput>-s
143 c0e4a2c3 Iustin Pop
          20G</userinput> when using the <option>-s</option> option),
144 c0e4a2c3 Iustin Pop
          and a three-disk instance can be specified as
145 c0e4a2c3 Iustin Pop
          <userinput>--disk 0:size=20G --disk 1:size=4G --disk
146 c0e4a2c3 Iustin Pop
          2:size=100G</userinput>.
147 a8083063 Iustin Pop
        </para>
148 a8083063 Iustin Pop
149 a8083063 Iustin Pop
        <para>
150 d3b4cf9f Iustin Pop
          The NICs of the instances can be specified via the
151 d3b4cf9f Iustin Pop
          <option>--nic</option> option. By default, one NIC is
152 d3b4cf9f Iustin Pop
          created for the instance, with a random MAC, and connected
153 d3b4cf9f Iustin Pop
          to the default bridge. Each NIC can take up to three
154 d3b4cf9f Iustin Pop
          parameters (all optional):
155 d3b4cf9f Iustin Pop
          <variablelist>
156 d3b4cf9f Iustin Pop
            <varlistentry>
157 d3b4cf9f Iustin Pop
              <term>mac</term>
158 d3b4cf9f Iustin Pop
              <listitem>
159 d3b4cf9f Iustin Pop
                <simpara>either a value or <constant>GENERATE</constant>
160 d3b4cf9f Iustin Pop
                  to generate a new unique MAC</simpara>
161 d3b4cf9f Iustin Pop
              </listitem>
162 d3b4cf9f Iustin Pop
            </varlistentry>
163 d3b4cf9f Iustin Pop
            <varlistentry>
164 d3b4cf9f Iustin Pop
              <term>ip</term>
165 d3b4cf9f Iustin Pop
              <listitem>
166 d3b4cf9f Iustin Pop
                <simpara>specifies the IP address assigned to the
167 d3b4cf9f Iustin Pop
                  instance from the Ganeti side (this is not necessarily
168 d3b4cf9f Iustin Pop
                  what the instance will use, but what the node expects
169 d3b4cf9f Iustin Pop
                  the instance to use)</simpara>
170 d3b4cf9f Iustin Pop
              </listitem>
171 d3b4cf9f Iustin Pop
            </varlistentry>
172 d3b4cf9f Iustin Pop
            <varlistentry>
173 d3b4cf9f Iustin Pop
              <term>bridge</term>
174 d3b4cf9f Iustin Pop
              <listitem>
175 d3b4cf9f Iustin Pop
                <simpara>specifies the bridge to attach this NIC
176 d3b4cf9f Iustin Pop
                  to</simpara>
177 d3b4cf9f Iustin Pop
              </listitem>
178 d3b4cf9f Iustin Pop
            </varlistentry>
179 d3b4cf9f Iustin Pop
          </variablelist>
180 b9ac33e9 Iustin Pop
        </para>
181 b9ac33e9 Iustin Pop
182 b9ac33e9 Iustin Pop
        <para>
183 d3b4cf9f Iustin Pop
          Alternatively, if no network is desired for the instance, you
184 d3b4cf9f Iustin Pop
          can prevent the default of one NIC with the
185 d3b4cf9f Iustin Pop
          <option>--no-nics</option> option.
186 a8083063 Iustin Pop
        </para>
187 a8083063 Iustin Pop
188 a8083063 Iustin Pop
        <para>
189 d3b4cf9f Iustin Pop
          The <option>-o</option> options specifies the operating
190 d3b4cf9f Iustin Pop
          system to be installed. The available operating systems can
191 d3b4cf9f Iustin Pop
          be listed with <command>gnt-os list</command>.
192 a8083063 Iustin Pop
        </para>
193 a8083063 Iustin Pop
194 a8083063 Iustin Pop
        <para>
195 d3b4cf9f Iustin Pop
          The <option>-B</option> option specifies the backend
196 d3b4cf9f Iustin Pop
          parameters for the instance. If no such parameters are
197 d3b4cf9f Iustin Pop
          specified, the values are inherited from the cluster. Possible
198 d3b4cf9f Iustin Pop
          parameters are:
199 d3b4cf9f Iustin Pop
          <variablelist>
200 d3b4cf9f Iustin Pop
            <varlistentry>
201 d3b4cf9f Iustin Pop
              <term>memory</term>
202 d3b4cf9f Iustin Pop
              <listitem>
203 d3b4cf9f Iustin Pop
                <simpara>the memory size of the instance; as usual,
204 d3b4cf9f Iustin Pop
                  suffixes can be used to denote the unit, otherwise the
205 d3b4cf9f Iustin Pop
                  value is taken in mebibites</simpara>
206 d3b4cf9f Iustin Pop
              </listitem>
207 d3b4cf9f Iustin Pop
            </varlistentry>
208 d3b4cf9f Iustin Pop
            <varlistentry>
209 d3b4cf9f Iustin Pop
              <term>vcpus</term>
210 d3b4cf9f Iustin Pop
              <listitem>
211 d3b4cf9f Iustin Pop
                <simpara>the number of VCPUs to assign to the instance
212 d3b4cf9f Iustin Pop
                  (if this value makes sense for the hypervisor)</simpara>
213 d3b4cf9f Iustin Pop
              </listitem>
214 d3b4cf9f Iustin Pop
            </varlistentry>
215 d3b4cf9f Iustin Pop
            <varlistentry>
216 d3b4cf9f Iustin Pop
              <term>auto_balance</term>
217 d3b4cf9f Iustin Pop
              <listitem>
218 d3b4cf9f Iustin Pop
                <simpara>whether the instance is considered in the N+1
219 d3b4cf9f Iustin Pop
                  cluster checks (enough redundancy in the cluster to
220 d3b4cf9f Iustin Pop
                  survive a node failure)</simpara>
221 d3b4cf9f Iustin Pop
              </listitem>
222 d3b4cf9f Iustin Pop
            </varlistentry>
223 d3b4cf9f Iustin Pop
          </variablelist>
224 f3a55c90 Alexander Schreiber
        </para>
225 f3a55c90 Alexander Schreiber
226 f3a55c90 Alexander Schreiber
        <para>
227 d3b4cf9f Iustin Pop
          The <option>-H</option> option specified the hypervisor to
228 d3b4cf9f Iustin Pop
          use for the instance (must be one of the enabled hypervisors
229 d3b4cf9f Iustin Pop
          on the cluster) and optionally custom parameters for this
230 d3b4cf9f Iustin Pop
          instance. If not other options are used (i.e. the invocation
231 d3b4cf9f Iustin Pop
          is just <userinput>-H
232 d3b4cf9f Iustin Pop
          <replaceable>NAME</replaceable></userinput>) the instance
233 d3b4cf9f Iustin Pop
          will inherit the cluster options. The defaults below show
234 d3b4cf9f Iustin Pop
          the cluster defaults at cluster creation time.
235 25c5878d Alexander Schreiber
        </para>
236 25c5878d Alexander Schreiber
237 25c5878d Alexander Schreiber
        <para>
238 d3b4cf9f Iustin Pop
          The possible hypervisor options are as follows:
239 25c5878d Alexander Schreiber
          <variablelist>
240 25c5878d Alexander Schreiber
            <varlistentry>
241 d3b4cf9f Iustin Pop
              <term>boot_order</term>
242 25c5878d Alexander Schreiber
              <listitem>
243 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen HVM and KVM
244 d3b4cf9f Iustin Pop
                hypervisors.</simpara>
245 d3b4cf9f Iustin Pop
246 d3b4cf9f Iustin Pop
                <simpara>A string value denoting the boot order. This
247 d3b4cf9f Iustin Pop
                has different meaning for the Xen HVM hypervisor and
248 d3b4cf9f Iustin Pop
                for the KVM one.</simpara>
249 d3b4cf9f Iustin Pop
250 d3b4cf9f Iustin Pop
                <simpara>
251 d3b4cf9f Iustin Pop
                  For Xen HVM, The boot order is a string of letters
252 d3b4cf9f Iustin Pop
                  listing the boot devices, with valid device letters
253 d3b4cf9f Iustin Pop
                  being:
254 d3b4cf9f Iustin Pop
                </simpara>
255 d3b4cf9f Iustin Pop
                  <variablelist>
256 d3b4cf9f Iustin Pop
                    <varlistentry>
257 d3b4cf9f Iustin Pop
                      <term>a</term>
258 d3b4cf9f Iustin Pop
                      <listitem>
259 d3b4cf9f Iustin Pop
                        <para>
260 d3b4cf9f Iustin Pop
                          floppy drive
261 d3b4cf9f Iustin Pop
                        </para>
262 d3b4cf9f Iustin Pop
                      </listitem>
263 d3b4cf9f Iustin Pop
                    </varlistentry>
264 d3b4cf9f Iustin Pop
                    <varlistentry>
265 d3b4cf9f Iustin Pop
                      <term>c</term>
266 d3b4cf9f Iustin Pop
                      <listitem>
267 d3b4cf9f Iustin Pop
                        <para>
268 d3b4cf9f Iustin Pop
                          hard disk
269 d3b4cf9f Iustin Pop
                        </para>
270 d3b4cf9f Iustin Pop
                      </listitem>
271 d3b4cf9f Iustin Pop
                    </varlistentry>
272 d3b4cf9f Iustin Pop
                    <varlistentry>
273 d3b4cf9f Iustin Pop
                      <term>d</term>
274 d3b4cf9f Iustin Pop
                      <listitem>
275 d3b4cf9f Iustin Pop
                        <para>
276 d3b4cf9f Iustin Pop
                          CDROM drive
277 d3b4cf9f Iustin Pop
                        </para>
278 d3b4cf9f Iustin Pop
                      </listitem>
279 d3b4cf9f Iustin Pop
                    </varlistentry>
280 d3b4cf9f Iustin Pop
                    <varlistentry>
281 d3b4cf9f Iustin Pop
                      <term>n</term>
282 d3b4cf9f Iustin Pop
                      <listitem>
283 d3b4cf9f Iustin Pop
                        <para>
284 d3b4cf9f Iustin Pop
                          network boot (PXE)
285 d3b4cf9f Iustin Pop
                        </para>
286 d3b4cf9f Iustin Pop
                      </listitem>
287 d3b4cf9f Iustin Pop
                    </varlistentry>
288 d3b4cf9f Iustin Pop
                  </variablelist>
289 d3b4cf9f Iustin Pop
                <simpara>
290 d3b4cf9f Iustin Pop
                  The default is not to set an HVM boot order which is
291 d3b4cf9f Iustin Pop
                  interpreted as 'dc'.
292 d3b4cf9f Iustin Pop
                </simpara>
293 d3b4cf9f Iustin Pop
294 d3b4cf9f Iustin Pop
              </listitem>
295 d3b4cf9f Iustin Pop
            </varlistentry>
296 d3b4cf9f Iustin Pop
            <varlistentry>
297 d3b4cf9f Iustin Pop
              <term>cdrom_image_path</term>
298 d3b4cf9f Iustin Pop
              <listitem>
299 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
300 d3b4cf9f Iustin Pop
301 d3b4cf9f Iustin Pop
                <simpara>The path to a CDROM image to attach to the
302 d3b4cf9f Iustin Pop
                instance.</simpara>
303 d3b4cf9f Iustin Pop
304 d3b4cf9f Iustin Pop
              </listitem>
305 d3b4cf9f Iustin Pop
            </varlistentry>
306 d3b4cf9f Iustin Pop
            <varlistentry>
307 d3b4cf9f Iustin Pop
              <term>nic_type</term>
308 d3b4cf9f Iustin Pop
              <listitem>
309 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
310 d3b4cf9f Iustin Pop
311 25c5878d Alexander Schreiber
                <para>
312 d3b4cf9f Iustin Pop
                  This parameter determines the way the network cards
313 d3b4cf9f Iustin Pop
                  are presented to the instance. The possible options are:
314 d3b4cf9f Iustin Pop
                  <simplelist>
315 d3b4cf9f Iustin Pop
                    <member>rtl8139 (default for Xen HVM) (HVM & KVM)</member>
316 d3b4cf9f Iustin Pop
                    <member>ne2k_isa (HVM & KVM)</member>
317 d3b4cf9f Iustin Pop
                    <member>ne2k_pci (HVM & KVM)</member>
318 d3b4cf9f Iustin Pop
                    <member>i82551 (KVM)</member>
319 d3b4cf9f Iustin Pop
                    <member>i82557b (KVM)</member>
320 d3b4cf9f Iustin Pop
                    <member>i82559er (KVM)</member>
321 d3b4cf9f Iustin Pop
                    <member>pcnet (KVM)</member>
322 d3b4cf9f Iustin Pop
                    <member>e1000 (KVM)</member>
323 d3b4cf9f Iustin Pop
                    <member>paravirtual (default for KVM) (HVM & KVM)</member>
324 d3b4cf9f Iustin Pop
                  </simplelist>
325 25c5878d Alexander Schreiber
                </para>
326 25c5878d Alexander Schreiber
              </listitem>
327 25c5878d Alexander Schreiber
            </varlistentry>
328 25c5878d Alexander Schreiber
            <varlistentry>
329 d3b4cf9f Iustin Pop
              <term>disk_type</term>
330 25c5878d Alexander Schreiber
              <listitem>
331 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
332 d3b4cf9f Iustin Pop
333 25c5878d Alexander Schreiber
                <para>
334 d3b4cf9f Iustin Pop
                  This parameter determines the way the disks are
335 d3b4cf9f Iustin Pop
                  presented to the instance. The possible options are:
336 d3b4cf9f Iustin Pop
                  <simplelist>
337 d3b4cf9f Iustin Pop
                    <member>ioemu (default for HVM & KVM) (HVM & KVM)</member>
338 d3b4cf9f Iustin Pop
                    <member>ide (HVM & KVM)</member>
339 d3b4cf9f Iustin Pop
                    <member>scsi (KVM)</member>
340 d3b4cf9f Iustin Pop
                    <member>sd (KVM)</member>
341 d3b4cf9f Iustin Pop
                    <member>mtd (KVM)</member>
342 d3b4cf9f Iustin Pop
                    <member>pflash (KVM)</member>
343 d3b4cf9f Iustin Pop
                  </simplelist>
344 25c5878d Alexander Schreiber
                </para>
345 25c5878d Alexander Schreiber
              </listitem>
346 25c5878d Alexander Schreiber
            </varlistentry>
347 25c5878d Alexander Schreiber
            <varlistentry>
348 d3b4cf9f Iustin Pop
              <term>vnc_bind_address</term>
349 25c5878d Alexander Schreiber
              <listitem>
350 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
351 d3b4cf9f Iustin Pop
352 d3b4cf9f Iustin Pop
                <para>Specifies the address that the VNC listener for
353 d3b4cf9f Iustin Pop
                this instance should bind to. Valid values are IPv4
354 d3b4cf9f Iustin Pop
                addresses. Use the address 0.0.0.0 to bind to all
355 d3b4cf9f Iustin Pop
                available interfaces (this is the default) or specify
356 d3b4cf9f Iustin Pop
                the address of one of the interfaces on the node to
357 d3b4cf9f Iustin Pop
                restrict listening to that interface.</para>
358 d3b4cf9f Iustin Pop
              </listitem>
359 d3b4cf9f Iustin Pop
            </varlistentry>
360 d3b4cf9f Iustin Pop
361 d3b4cf9f Iustin Pop
            <varlistentry>
362 d3b4cf9f Iustin Pop
              <term>vnc_tls</term>
363 d3b4cf9f Iustin Pop
              <listitem>
364 d3b4cf9f Iustin Pop
                <simpara>Valid for the KVM hypervisor.</simpara>
365 d3b4cf9f Iustin Pop
366 d3b4cf9f Iustin Pop
                <simpara>A boolean option that controls whether the
367 d3b4cf9f Iustin Pop
                VNC connection is secured with TLS.</simpara>
368 d3b4cf9f Iustin Pop
              </listitem>
369 d3b4cf9f Iustin Pop
            </varlistentry>
370 d3b4cf9f Iustin Pop
371 d3b4cf9f Iustin Pop
            <varlistentry>
372 d3b4cf9f Iustin Pop
              <term>vnc_x509_path</term>
373 d3b4cf9f Iustin Pop
              <listitem>
374 d3b4cf9f Iustin Pop
                <simpara>Valid for the KVM hypervisor.</simpara>
375 d3b4cf9f Iustin Pop
376 d3b4cf9f Iustin Pop
                <para>If <option>vnc_tls</option> is enabled, this
377 d3b4cf9f Iustin Pop
                options specifies the path to the x509 certificate to
378 d3b4cf9f Iustin Pop
                use.</para>
379 d3b4cf9f Iustin Pop
              </listitem>
380 d3b4cf9f Iustin Pop
            </varlistentry>
381 d3b4cf9f Iustin Pop
382 d3b4cf9f Iustin Pop
            <varlistentry>
383 d3b4cf9f Iustin Pop
              <term>vnc_x509_verify</term>
384 d3b4cf9f Iustin Pop
              <listitem>
385 d3b4cf9f Iustin Pop
                <simpara>Valid for the KVM hypervisor.</simpara>
386 d3b4cf9f Iustin Pop
              </listitem>
387 d3b4cf9f Iustin Pop
            </varlistentry>
388 d3b4cf9f Iustin Pop
389 d3b4cf9f Iustin Pop
            <varlistentry>
390 d3b4cf9f Iustin Pop
              <term>acpi</term>
391 d3b4cf9f Iustin Pop
              <listitem>
392 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
393 d3b4cf9f Iustin Pop
394 25c5878d Alexander Schreiber
                <para>
395 d3b4cf9f Iustin Pop
                  A boolean option that specifies if the hypervisor
396 d3b4cf9f Iustin Pop
                  should enable ACPI support for this instance. By
397 d3b4cf9f Iustin Pop
                  default, ACPI is disabled.
398 25c5878d Alexander Schreiber
                </para>
399 25c5878d Alexander Schreiber
              </listitem>
400 25c5878d Alexander Schreiber
            </varlistentry>
401 d3b4cf9f Iustin Pop
402 25c5878d Alexander Schreiber
            <varlistentry>
403 d3b4cf9f Iustin Pop
              <term>pae</term>
404 25c5878d Alexander Schreiber
              <listitem>
405 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
406 d3b4cf9f Iustin Pop
407 25c5878d Alexander Schreiber
                <para>
408 d3b4cf9f Iustin Pop
                  A boolean option that specifies if the hypervisor
409 d3b4cf9f Iustin Pop
                  should enabled PAE support for this instance. The
410 d3b4cf9f Iustin Pop
                  default is false, disabling PAE support.
411 25c5878d Alexander Schreiber
                </para>
412 25c5878d Alexander Schreiber
              </listitem>
413 25c5878d Alexander Schreiber
            </varlistentry>
414 25c5878d Alexander Schreiber
415 d3b4cf9f Iustin Pop
            <varlistentry>
416 d3b4cf9f Iustin Pop
              <term>kernel_path</term>
417 d3b4cf9f Iustin Pop
              <listitem>
418 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara>
419 25c5878d Alexander Schreiber
420 d3b4cf9f Iustin Pop
                <para>
421 d3b4cf9f Iustin Pop
                  This option specifies the path (on the node) to the
422 d3b4cf9f Iustin Pop
                  kernel to boot the instance with. Xen PVM instances
423 d3b4cf9f Iustin Pop
                  always require this, while for KVM if this option is
424 d3b4cf9f Iustin Pop
                  empty, it will cause the machine to load the kernel
425 d3b4cf9f Iustin Pop
                  from its disks.
426 d3b4cf9f Iustin Pop
                </para>
427 d3b4cf9f Iustin Pop
              </listitem>
428 d3b4cf9f Iustin Pop
            </varlistentry>
429 ca9c49d5 Iustin Pop
430 d3b4cf9f Iustin Pop
            <varlistentry>
431 d3b4cf9f Iustin Pop
              <term>initrd_path</term>
432 d3b4cf9f Iustin Pop
              <listitem>
433 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara>
434 ca9c49d5 Iustin Pop
435 d3b4cf9f Iustin Pop
                <para>
436 d3b4cf9f Iustin Pop
                  This option specifies the path (on the node) to the
437 d3b4cf9f Iustin Pop
                  initrd to boot the instance with. Xen PVM instances
438 d3b4cf9f Iustin Pop
                  can use this always, while for KVM if this option is
439 d3b4cf9f Iustin Pop
                  only used if the <option>kernel_path</option> option
440 d3b4cf9f Iustin Pop
                  is also specified.
441 d3b4cf9f Iustin Pop
                </para>
442 d3b4cf9f Iustin Pop
              </listitem>
443 d3b4cf9f Iustin Pop
            </varlistentry>
444 ca9c49d5 Iustin Pop
445 d3b4cf9f Iustin Pop
            <varlistentry>
446 d3b4cf9f Iustin Pop
              <term>root_path</term>
447 d3b4cf9f Iustin Pop
              <listitem>
448 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara>
449 02d2adf4 Alexander Schreiber
450 d3b4cf9f Iustin Pop
                <para>
451 d3b4cf9f Iustin Pop
                  This options specifies the name of the root
452 d3b4cf9f Iustin Pop
                  device. This is always needed for Xen PVM, while for
453 d3b4cf9f Iustin Pop
                  KVM it is only used if the
454 d3b4cf9f Iustin Pop
                  <option>kernel_path</option> option is also
455 d3b4cf9f Iustin Pop
                  specified.
456 d3b4cf9f Iustin Pop
                </para>
457 d3b4cf9f Iustin Pop
              </listitem>
458 d3b4cf9f Iustin Pop
            </varlistentry>
459 d3b4cf9f Iustin Pop
460 d3b4cf9f Iustin Pop
            <varlistentry>
461 d3b4cf9f Iustin Pop
              <term>serial_console</term>
462 d3b4cf9f Iustin Pop
              <listitem>
463 d3b4cf9f Iustin Pop
                <simpara>Valid for the KVM hypervisor.</simpara>
464 d3b4cf9f Iustin Pop
465 d3b4cf9f Iustin Pop
                <simpara>This boolean option specifies whether to
466 d3b4cf9f Iustin Pop
                emulate a serial console for the instance.</simpara>
467 d3b4cf9f Iustin Pop
              </listitem>
468 d3b4cf9f Iustin Pop
            </varlistentry>
469 d3b4cf9f Iustin Pop
          </variablelist>
470 02d2adf4 Alexander Schreiber
        </para>
471 02d2adf4 Alexander Schreiber
472 02d2adf4 Alexander Schreiber
        <para>
473 ca9c49d5 Iustin Pop
        </para>
474 ca9c49d5 Iustin Pop
475 ca9c49d5 Iustin Pop
        <para>
476 a53a1b18 Michael Hanselmann
          The <option>--iallocator</option> option specifies the instance
477 a53a1b18 Michael Hanselmann
          allocator plugin to use. If you pass in this option the allocator
478 a53a1b18 Michael Hanselmann
          will select nodes for this instance automatically, so you don't need
479 a53a1b18 Michael Hanselmann
          to pass them with the <option>-n</option> option. For more
480 a53a1b18 Michael Hanselmann
          information please refer to the instance allocator documentation.
481 a53a1b18 Michael Hanselmann
        </para>
482 a53a1b18 Michael Hanselmann
483 a53a1b18 Michael Hanselmann
        <para>
484 a8083063 Iustin Pop
          The <option>-t</option> options specifies the disk layout type for
485 a8083063 Iustin Pop
          the instance. The available choices are:
486 a8083063 Iustin Pop
          <variablelist>
487 a8083063 Iustin Pop
            <varlistentry>
488 a8083063 Iustin Pop
              <term>diskless</term>
489 a8083063 Iustin Pop
              <listitem>
490 a8083063 Iustin Pop
                <para>
491 a8083063 Iustin Pop
                  This creates an instance with no disks. Its useful for
492 a8083063 Iustin Pop
                  testing only (or other special cases).
493 a8083063 Iustin Pop
                </para>
494 a8083063 Iustin Pop
              </listitem>
495 a8083063 Iustin Pop
            </varlistentry>
496 a8083063 Iustin Pop
            <varlistentry>
497 495beb42 Manuel Franceschini
              <term>file</term>
498 495beb42 Manuel Franceschini
              <listitem>
499 495beb42 Manuel Franceschini
                <para>Disk devices will be regular files.</para>
500 495beb42 Manuel Franceschini
              </listitem>
501 495beb42 Manuel Franceschini
            </varlistentry>
502 495beb42 Manuel Franceschini
            <varlistentry>
503 a8083063 Iustin Pop
              <term>plain</term>
504 a8083063 Iustin Pop
              <listitem>
505 a8083063 Iustin Pop
                <para>Disk devices will be logical volumes.</para>
506 a8083063 Iustin Pop
              </listitem>
507 a8083063 Iustin Pop
            </varlistentry>
508 a8083063 Iustin Pop
            <varlistentry>
509 f69dab6d Iustin Pop
              <term>drbd</term>
510 f69dab6d Iustin Pop
              <listitem>
511 f69dab6d Iustin Pop
                <para>
512 f69dab6d Iustin Pop
                  Disk devices will be drbd (version 8.x) on top of
513 f9193417 Iustin Pop
                  lvm volumes.
514 a8083063 Iustin Pop
                </para>
515 a8083063 Iustin Pop
              </listitem>
516 a8083063 Iustin Pop
            </varlistentry>
517 a8083063 Iustin Pop
          </variablelist>
518 a8083063 Iustin Pop
        </para>
519 a8083063 Iustin Pop
520 a8083063 Iustin Pop
        <para>
521 4677a909 Michael Hanselmann
          The optional second value of the <option>--node</option> is used for
522 bd028152 Iustin Pop
          the drbd template type and specifies the remote node.
523 a8083063 Iustin Pop
        </para>
524 a8083063 Iustin Pop
525 a8083063 Iustin Pop
        <para>
526 a8083063 Iustin Pop
          If you do not want gnt-instance to wait for the disk mirror
527 a8083063 Iustin Pop
          to be synced, use the <option>--no-wait-for-sync</option>
528 a8083063 Iustin Pop
          option.
529 a8083063 Iustin Pop
        </para>
530 a8083063 Iustin Pop
531 a8083063 Iustin Pop
        <para>
532 495beb42 Manuel Franceschini
          The <option>--file-storage-dir</option> specifies the relative path
533 495beb42 Manuel Franceschini
          under the cluster-wide file storage directory to store file-based
534 495beb42 Manuel Franceschini
          disks. It is useful for having different subdirectories for
535 495beb42 Manuel Franceschini
          different instances. The full path of the directory where the disk
536 495beb42 Manuel Franceschini
          files are stored will consist of cluster-wide file storage directory
537 495beb42 Manuel Franceschini
          + optional subdirectory + instance name. Example:
538 495beb42 Manuel Franceschini
          /srv/ganeti/file-storage/mysubdir/instance1.example.com. This option
539 495beb42 Manuel Franceschini
          is only relevant for instances using the file storage backend.
540 495beb42 Manuel Franceschini
        </para>
541 495beb42 Manuel Franceschini
542 495beb42 Manuel Franceschini
        <para>
543 495beb42 Manuel Franceschini
          The <option>--file-driver</option> specifies the driver to use for
544 495beb42 Manuel Franceschini
          file-based disks. Note that currently these drivers work with the
545 495beb42 Manuel Franceschini
          xen hypervisor only. This option is only relevant for instances using
546 495beb42 Manuel Franceschini
          the file storage backend. The available choices are:
547 495beb42 Manuel Franceschini
          <variablelist>
548 495beb42 Manuel Franceschini
            <varlistentry>
549 495beb42 Manuel Franceschini
              <term>loop</term>
550 495beb42 Manuel Franceschini
              <listitem>
551 d3b4cf9f Iustin Pop
                <para>
552 d3b4cf9f Iustin Pop
                  Kernel loopback driver. This driver uses loopback
553 d3b4cf9f Iustin Pop
                  devices to access the filesystem within the
554 d3b4cf9f Iustin Pop
                  file. However, running I/O intensive applications in
555 d3b4cf9f Iustin Pop
                  your instance using the loop driver might result in
556 d3b4cf9f Iustin Pop
                  slowdowns.  Furthermore, if you use the loopback
557 d3b4cf9f Iustin Pop
                  driver consider increasing the maximum amount of
558 d3b4cf9f Iustin Pop
                  loopback devices (on most systems it's 8) using the
559 d3b4cf9f Iustin Pop
                  max_loop param.
560 d3b4cf9f Iustin Pop
                </para>
561 495beb42 Manuel Franceschini
              </listitem>
562 495beb42 Manuel Franceschini
            </varlistentry>
563 495beb42 Manuel Franceschini
            <varlistentry>
564 495beb42 Manuel Franceschini
              <term>blktap</term>
565 495beb42 Manuel Franceschini
              <listitem>
566 d3b4cf9f Iustin Pop
                <para>The blktap driver (for Xen hypervisors). In
567 d3b4cf9f Iustin Pop
                order to be able to use the blktap driver you should
568 d3b4cf9f Iustin Pop
                check if the 'blktapctrl' user space disk agent is
569 d3b4cf9f Iustin Pop
                running (usually automatically started via xend). This
570 d3b4cf9f Iustin Pop
                user-level disk I/O interface has the advantage of
571 d3b4cf9f Iustin Pop
                better performance. Especially if you use a network
572 d3b4cf9f Iustin Pop
                file system (e.g. NFS) to store your instances this is
573 d3b4cf9f Iustin Pop
                the recommended choice.
574 d3b4cf9f Iustin Pop
                </para>
575 495beb42 Manuel Franceschini
              </listitem>
576 495beb42 Manuel Franceschini
            </varlistentry>
577 67470f58 Iustin Pop
          </variablelist>
578 495beb42 Manuel Franceschini
        </para>
579 495beb42 Manuel Franceschini
580 495beb42 Manuel Franceschini
        <para>
581 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
582 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
583 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
584 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
585 bd028152 Iustin Pop
        </para>
586 495beb42 Manuel Franceschini
587 495beb42 Manuel Franceschini
        <para>
588 a8083063 Iustin Pop
          Example:
589 a8083063 Iustin Pop
          <screen>
590 d3b4cf9f Iustin Pop
# gnt-instance add -t file --disk 0:size=30g -B memory=512 -o debian-etch \
591 495beb42 Manuel Franceschini
  -n node1.example.com --file-storage-dir=mysubdir instance1.example.com
592 d3b4cf9f Iustin Pop
# gnt-instance add -t plain --disk 0:size=30g -B memory=512 -o debian-etch \
593 b9ac33e9 Iustin Pop
  -n node1.example.com instance1.example.com
594 d3b4cf9f Iustin Pop
# gnt-instance add -t drbd --disk 0:size=30g -B memory=512 -o debian-etch \
595 4677a909 Michael Hanselmann
  -n node1.example.com:node2.example.com instance2.example.com
596 a8083063 Iustin Pop
          </screen>
597 a8083063 Iustin Pop
        </para>
598 a8083063 Iustin Pop
      </refsect3>
599 a8083063 Iustin Pop
600 a8083063 Iustin Pop
      <refsect3>
601 d3b4cf9f Iustin Pop
        <title>BATCH-CREATE</title>
602 d3b4cf9f Iustin Pop
        <cmdsynopsis>
603 d3b4cf9f Iustin Pop
          <command>batch-create</command>
604 d3b4cf9f Iustin Pop
          <arg choice="req">instances_file.json</arg>
605 d3b4cf9f Iustin Pop
        </cmdsynopsis>
606 d3b4cf9f Iustin Pop
607 d3b4cf9f Iustin Pop
        <para>
608 d3b4cf9f Iustin Pop
          This command (similar to the Ganeti 1.2
609 d3b4cf9f Iustin Pop
          <command>batcher</command> tool) submits multiple instance
610 d3b4cf9f Iustin Pop
          creation jobs based on a definition file. The instance
611 d3b4cf9f Iustin Pop
          configurations do not encompass all the possible options for
612 d3b4cf9f Iustin Pop
          the <command>add</command> command, but only a subset.
613 d3b4cf9f Iustin Pop
        </para>
614 d3b4cf9f Iustin Pop
615 d3b4cf9f Iustin Pop
        <para>
616 d3b4cf9f Iustin Pop
          The instance file should be a valid-formed JSON file,
617 d3b4cf9f Iustin Pop
          containing a dictionary with instance name and instance
618 d3b4cf9f Iustin Pop
          parameters. The accepted parameters are:
619 d3b4cf9f Iustin Pop
620 d3b4cf9f Iustin Pop
          <variablelist>
621 d3b4cf9f Iustin Pop
            <varlistentry>
622 d3b4cf9f Iustin Pop
              <term>disk_size</term>
623 d3b4cf9f Iustin Pop
              <listitem>
624 d3b4cf9f Iustin Pop
                <simpara>The size of the disks of the instance.</simpara>
625 d3b4cf9f Iustin Pop
              </listitem>
626 d3b4cf9f Iustin Pop
            </varlistentry>
627 d3b4cf9f Iustin Pop
            <varlistentry>
628 d3b4cf9f Iustin Pop
              <term>disk_templace</term>
629 d3b4cf9f Iustin Pop
              <listitem>
630 d3b4cf9f Iustin Pop
                <simpara>The disk template to use for the instance,
631 d3b4cf9f Iustin Pop
                the same as in the <command>add</command>
632 d3b4cf9f Iustin Pop
                command.</simpara>
633 d3b4cf9f Iustin Pop
              </listitem>
634 d3b4cf9f Iustin Pop
            </varlistentry>
635 d3b4cf9f Iustin Pop
            <varlistentry>
636 d3b4cf9f Iustin Pop
              <term>backend</term>
637 d3b4cf9f Iustin Pop
              <listitem>
638 d3b4cf9f Iustin Pop
                <simpara>A dictionary of backend parameters.</simpara>
639 d3b4cf9f Iustin Pop
              </listitem>
640 d3b4cf9f Iustin Pop
            </varlistentry>
641 d3b4cf9f Iustin Pop
            <varlistentry>
642 d3b4cf9f Iustin Pop
              <term>hypervisor</term>
643 d3b4cf9f Iustin Pop
              <listitem>
644 d3b4cf9f Iustin Pop
                <simpara>A dictionary with a single key (the
645 d3b4cf9f Iustin Pop
                hypervisor name), and as value the hypervisor
646 d3b4cf9f Iustin Pop
                options. If not passed, the default hypervisor and
647 d3b4cf9f Iustin Pop
                hypervisor options will be inherited.</simpara>
648 d3b4cf9f Iustin Pop
              </listitem>
649 d3b4cf9f Iustin Pop
            </varlistentry>
650 d3b4cf9f Iustin Pop
            <varlistentry>
651 d3b4cf9f Iustin Pop
              <term>mac, ip, bridge</term>
652 d3b4cf9f Iustin Pop
              <listitem>
653 d3b4cf9f Iustin Pop
                <simpara>Specifications for the one NIC that will be
654 d3b4cf9f Iustin Pop
                created for the instance.</simpara>
655 d3b4cf9f Iustin Pop
              </listitem>
656 d3b4cf9f Iustin Pop
            </varlistentry>
657 d3b4cf9f Iustin Pop
            <varlistentry>
658 d3b4cf9f Iustin Pop
              <term>primary_node, secondary_node</term>
659 d3b4cf9f Iustin Pop
              <listitem>
660 d3b4cf9f Iustin Pop
                <simpara>The primary and optionally the secondary node
661 d3b4cf9f Iustin Pop
                to use for the instance (in case an iallocator script
662 d3b4cf9f Iustin Pop
                is not used).</simpara>
663 d3b4cf9f Iustin Pop
              </listitem>
664 d3b4cf9f Iustin Pop
            </varlistentry>
665 d3b4cf9f Iustin Pop
            <varlistentry>
666 d3b4cf9f Iustin Pop
              <term>iallocator</term>
667 d3b4cf9f Iustin Pop
              <listitem>
668 d3b4cf9f Iustin Pop
                <simpara>Instead of specifying the nodes, an
669 d3b4cf9f Iustin Pop
                iallocator script can be used to automatically compute
670 d3b4cf9f Iustin Pop
                them.</simpara>
671 d3b4cf9f Iustin Pop
              </listitem>
672 d3b4cf9f Iustin Pop
            </varlistentry>
673 d3b4cf9f Iustin Pop
            <varlistentry>
674 d3b4cf9f Iustin Pop
              <term>start</term>
675 d3b4cf9f Iustin Pop
              <listitem>
676 d3b4cf9f Iustin Pop
                <simpara>whether to start the instance</simpara>
677 d3b4cf9f Iustin Pop
              </listitem>
678 d3b4cf9f Iustin Pop
            </varlistentry>
679 d3b4cf9f Iustin Pop
            <varlistentry>
680 d3b4cf9f Iustin Pop
              <term>ip_check</term>
681 d3b4cf9f Iustin Pop
              <listitem>
682 d3b4cf9f Iustin Pop
                <simpara>Skip the check for already-in-use instance;
683 d3b4cf9f Iustin Pop
                see the description in the <command>add</command>
684 d3b4cf9f Iustin Pop
                command for details.</simpara>
685 d3b4cf9f Iustin Pop
              </listitem>
686 d3b4cf9f Iustin Pop
            </varlistentry>
687 d3b4cf9f Iustin Pop
            <varlistentry>
688 d3b4cf9f Iustin Pop
              <term>file_storage_dir, file_driver</term>
689 d3b4cf9f Iustin Pop
              <listitem>
690 d3b4cf9f Iustin Pop
                <simpara>Configuration for the <literal>file</literal>
691 d3b4cf9f Iustin Pop
                disk type, see the <command>add</command> command for
692 d3b4cf9f Iustin Pop
                details.</simpara>
693 d3b4cf9f Iustin Pop
              </listitem>
694 d3b4cf9f Iustin Pop
            </varlistentry>
695 d3b4cf9f Iustin Pop
          </variablelist>
696 d3b4cf9f Iustin Pop
        </para>
697 d3b4cf9f Iustin Pop
698 d3b4cf9f Iustin Pop
        <para>
699 d3b4cf9f Iustin Pop
          A simple definition for one instance can be (with most of
700 d3b4cf9f Iustin Pop
          the parameters taken from the cluster defaults):
701 d3b4cf9f Iustin Pop
          <screen>
702 d3b4cf9f Iustin Pop
{
703 d3b4cf9f Iustin Pop
  "instance3": {
704 d3b4cf9f Iustin Pop
    "template": "drbd",
705 d3b4cf9f Iustin Pop
    "os": "debootstrap",
706 d3b4cf9f Iustin Pop
    "disk_size": ["25G"],
707 d3b4cf9f Iustin Pop
    "iallocator": "dumb"
708 d3b4cf9f Iustin Pop
  },
709 d3b4cf9f Iustin Pop
  "instance5": {
710 d3b4cf9f Iustin Pop
    "template": "drbd",
711 d3b4cf9f Iustin Pop
    "os": "debootstrap",
712 d3b4cf9f Iustin Pop
    "disk_size": ["25G"],
713 d3b4cf9f Iustin Pop
    "iallocator": "dumb",
714 d3b4cf9f Iustin Pop
    "hypervisor": "xen-hvm",
715 d3b4cf9f Iustin Pop
    "hvparams": {"acpi": true},
716 d3b4cf9f Iustin Pop
    "backend": {"memory": 512}
717 d3b4cf9f Iustin Pop
  }
718 d3b4cf9f Iustin Pop
}
719 d3b4cf9f Iustin Pop
</screen>
720 d3b4cf9f Iustin Pop
        </para>
721 d3b4cf9f Iustin Pop
722 d3b4cf9f Iustin Pop
        <para>
723 d3b4cf9f Iustin Pop
          The command will display the job id for each submitted instance, as follows:
724 d3b4cf9f Iustin Pop
          <screen>
725 d3b4cf9f Iustin Pop
# gnt-instance batch-create instances.json
726 d3b4cf9f Iustin Pop
instance3: 11224
727 d3b4cf9f Iustin Pop
instance5: 11225
728 d3b4cf9f Iustin Pop
</screen>
729 d3b4cf9f Iustin Pop
        </para>
730 d3b4cf9f Iustin Pop
731 d3b4cf9f Iustin Pop
      </refsect3>
732 d3b4cf9f Iustin Pop
733 d3b4cf9f Iustin Pop
      <refsect3>
734 a8083063 Iustin Pop
        <title>REMOVE</title>
735 a8083063 Iustin Pop
736 a8083063 Iustin Pop
        <cmdsynopsis>
737 a8083063 Iustin Pop
          <command>remove</command>
738 1d67656e Iustin Pop
          <arg>--ignore-failures</arg>
739 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
740 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
741 a8083063 Iustin Pop
        </cmdsynopsis>
742 a8083063 Iustin Pop
743 a8083063 Iustin Pop
        <para>
744 a8083063 Iustin Pop
          Remove an instance. This will remove all data from the
745 a8083063 Iustin Pop
          instance and there is <emphasis>no way back</emphasis>. If
746 a8083063 Iustin Pop
          you are not sure if you use an instance again, use
747 a8083063 Iustin Pop
          <command>shutdown</command> first and leave it in the
748 a8083063 Iustin Pop
          shutdown state for a while.
749 1d67656e Iustin Pop
750 1d67656e Iustin Pop
        </para>
751 1d67656e Iustin Pop
752 1d67656e Iustin Pop
        <para>
753 1d67656e Iustin Pop
          The <option>--ignore-failures</option> option will cause the
754 1d67656e Iustin Pop
          removal to proceed even in the presence of errors during the
755 1d67656e Iustin Pop
          removal of the instance (e.g. during the shutdown or the
756 1d67656e Iustin Pop
          disk removal). If this option is not given, the command will
757 1d67656e Iustin Pop
          stop at the first error.
758 a8083063 Iustin Pop
        </para>
759 a8083063 Iustin Pop
760 a8083063 Iustin Pop
        <para>
761 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
762 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
763 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
764 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
765 d3b4cf9f Iustin Pop
        </para>
766 d3b4cf9f Iustin Pop
767 d3b4cf9f Iustin Pop
        <para>
768 a8083063 Iustin Pop
          Example:
769 a8083063 Iustin Pop
          <screen>
770 a8083063 Iustin Pop
# gnt-instance remove instance1.example.com
771 a8083063 Iustin Pop
          </screen>
772 a8083063 Iustin Pop
        </para>
773 a8083063 Iustin Pop
      </refsect3>
774 a8083063 Iustin Pop
775 a8083063 Iustin Pop
      <refsect3>
776 a8083063 Iustin Pop
        <title>LIST</title>
777 a8083063 Iustin Pop
778 a8083063 Iustin Pop
        <cmdsynopsis>
779 a8083063 Iustin Pop
          <command>list</command>
780 a8083063 Iustin Pop
          <arg>--no-headers</arg>
781 a8083063 Iustin Pop
          <arg>--separator=<replaceable>SEPARATOR</replaceable></arg>
782 48c4dfa8 Iustin Pop
          <arg>-o <replaceable>[+]FIELD,...</replaceable></arg>
783 d3b4cf9f Iustin Pop
          <arg rep="repeat">instance</arg>
784 a8083063 Iustin Pop
        </cmdsynopsis>
785 a8083063 Iustin Pop
786 a8083063 Iustin Pop
        <para>
787 a8083063 Iustin Pop
          Shows the currently configured instances with memory usage,
788 d3b4cf9f Iustin Pop
          disk usage, the node they are running on, and their run
789 d3b4cf9f Iustin Pop
          status.
790 a8083063 Iustin Pop
        </para>
791 a8083063 Iustin Pop
792 a8083063 Iustin Pop
        <para>
793 a8083063 Iustin Pop
          The <option>--no-headers</option> option will skip the
794 a8083063 Iustin Pop
          initial header line. The <option>--separator</option> option
795 a8083063 Iustin Pop
          takes an argument which denotes what will be used between
796 a8083063 Iustin Pop
          the output fields. Both these options are to help scripting.
797 a8083063 Iustin Pop
        </para>
798 a8083063 Iustin Pop
799 a8083063 Iustin Pop
        <para>
800 a8083063 Iustin Pop
          The <option>-o</option> option takes a comma-separated list
801 a8083063 Iustin Pop
          of output fields. The available fields and their meaning
802 a8083063 Iustin Pop
          are:
803 a8083063 Iustin Pop
          <variablelist>
804 a8083063 Iustin Pop
            <varlistentry>
805 a8083063 Iustin Pop
              <term>name</term>
806 a8083063 Iustin Pop
              <listitem>
807 a8083063 Iustin Pop
                <simpara>the instance name</simpara>
808 a8083063 Iustin Pop
              </listitem>
809 a8083063 Iustin Pop
            </varlistentry>
810 a8083063 Iustin Pop
            <varlistentry>
811 a8083063 Iustin Pop
              <term>os</term>
812 a8083063 Iustin Pop
              <listitem>
813 a8083063 Iustin Pop
                <simpara>the OS of the instance</simpara>
814 a8083063 Iustin Pop
              </listitem>
815 a8083063 Iustin Pop
            </varlistentry>
816 a8083063 Iustin Pop
            <varlistentry>
817 a8083063 Iustin Pop
              <term>pnode</term>
818 a8083063 Iustin Pop
              <listitem>
819 a8083063 Iustin Pop
                <simpara>the primary node of the instance</simpara>
820 a8083063 Iustin Pop
              </listitem>
821 a8083063 Iustin Pop
            </varlistentry>
822 a8083063 Iustin Pop
            <varlistentry>
823 a8083063 Iustin Pop
              <term>snodes</term>
824 a8083063 Iustin Pop
              <listitem>
825 4677a909 Michael Hanselmann
                <simpara>comma-separated list of secondary nodes for the
826 a8083063 Iustin Pop
                  instance; usually this will be just one node</simpara>
827 a8083063 Iustin Pop
              </listitem>
828 a8083063 Iustin Pop
            </varlistentry>
829 a8083063 Iustin Pop
            <varlistentry>
830 a8083063 Iustin Pop
              <term>admin_state</term>
831 a8083063 Iustin Pop
              <listitem>
832 a8083063 Iustin Pop
                <simpara>the desired state of the instance (either "yes"
833 a8083063 Iustin Pop
                  or "no" denoting the instance should run or
834 a8083063 Iustin Pop
                  not)</simpara>
835 a8083063 Iustin Pop
              </listitem>
836 a8083063 Iustin Pop
            </varlistentry>
837 a8083063 Iustin Pop
            <varlistentry>
838 a8083063 Iustin Pop
              <term>disk_template</term>
839 a8083063 Iustin Pop
              <listitem>
840 a8083063 Iustin Pop
                <simpara>the disk template of the instance</simpara>
841 a8083063 Iustin Pop
              </listitem>
842 a8083063 Iustin Pop
            </varlistentry>
843 a8083063 Iustin Pop
            <varlistentry>
844 a8083063 Iustin Pop
              <term>oper_state</term>
845 a8083063 Iustin Pop
              <listitem>
846 d8052456 Iustin Pop
                <simpara>the actual state of the instance; can be
847 d8052456 Iustin Pop
                one of the values "running", "stopped", "(node
848 d8052456 Iustin Pop
                down)"</simpara>
849 d8052456 Iustin Pop
              </listitem>
850 d8052456 Iustin Pop
            </varlistentry>
851 d8052456 Iustin Pop
            <varlistentry>
852 d8052456 Iustin Pop
              <term>status</term>
853 d8052456 Iustin Pop
              <listitem>
854 d8052456 Iustin Pop
                <simpara>combined form of admin_state and oper_stat;
855 d8052456 Iustin Pop
                this can be one of:
856 d8052456 Iustin Pop
                <computeroutput>ERROR_nodedown</computeroutput> if the
857 d8052456 Iustin Pop
                node of the instance is down,
858 d8052456 Iustin Pop
                <computeroutput>ERROR_down</computeroutput> if the
859 d8052456 Iustin Pop
                instance should run but is down,
860 d8052456 Iustin Pop
                <computeroutput>ERROR_up</computeroutput> if the
861 d8052456 Iustin Pop
                instance should be stopped but is actually running,
862 d8052456 Iustin Pop
                <computeroutput>ADMIN_down</computeroutput> if the
863 d8052456 Iustin Pop
                instance has been stopped (and is stopped) and
864 d8052456 Iustin Pop
                <computeroutput>running</computeroutput> if the
865 d8052456 Iustin Pop
                instance is set to be running (and is
866 d8052456 Iustin Pop
                running)</simpara>
867 a8083063 Iustin Pop
              </listitem>
868 a8083063 Iustin Pop
            </varlistentry>
869 a8083063 Iustin Pop
            <varlistentry>
870 a8083063 Iustin Pop
              <term>oper_ram</term>
871 a8083063 Iustin Pop
              <listitem>
872 a8083063 Iustin Pop
                <simpara>the actual memory usage of the instance as seen
873 a8083063 Iustin Pop
                  by the hypervisor</simpara>
874 a8083063 Iustin Pop
              </listitem>
875 a8083063 Iustin Pop
            </varlistentry>
876 a8083063 Iustin Pop
            <varlistentry>
877 a8083063 Iustin Pop
              <term>ip</term>
878 a8083063 Iustin Pop
              <listitem>
879 a8083063 Iustin Pop
                <simpara>the ip address ganeti recognizes as associated with
880 d3b4cf9f Iustin Pop
                the first instance interface</simpara>
881 a8083063 Iustin Pop
              </listitem>
882 a8083063 Iustin Pop
            </varlistentry>
883 a8083063 Iustin Pop
            <varlistentry>
884 a8083063 Iustin Pop
              <term>mac</term>
885 a8083063 Iustin Pop
              <listitem>
886 d3b4cf9f Iustin Pop
                <simpara>the first instance interface MAC address</simpara>
887 a8083063 Iustin Pop
              </listitem>
888 a8083063 Iustin Pop
            </varlistentry>
889 a8083063 Iustin Pop
            <varlistentry>
890 a8083063 Iustin Pop
              <term>bridge</term>
891 a8083063 Iustin Pop
              <listitem>
892 d3b4cf9f Iustin Pop
                <simpara>the bridge of the first instance NIC
893 a8083063 Iustin Pop
                </simpara>
894 a8083063 Iustin Pop
              </listitem>
895 a8083063 Iustin Pop
            </varlistentry>
896 d8a4b51d Iustin Pop
            <varlistentry>
897 d8a4b51d Iustin Pop
              <term>sda_size</term>
898 d8a4b51d Iustin Pop
              <listitem>
899 d8a4b51d Iustin Pop
                <simpara>the size of the instance's first disk</simpara>
900 d8a4b51d Iustin Pop
              </listitem>
901 d8a4b51d Iustin Pop
            </varlistentry>
902 d8a4b51d Iustin Pop
            <varlistentry>
903 d8a4b51d Iustin Pop
              <term>sdb_size</term>
904 d8a4b51d Iustin Pop
              <listitem>
905 d3b4cf9f Iustin Pop
                <simpara>the size of the instance's second disk, if
906 d3b4cf9f Iustin Pop
                any</simpara>
907 d8a4b51d Iustin Pop
              </listitem>
908 d8a4b51d Iustin Pop
            </varlistentry>
909 d8a4b51d Iustin Pop
            <varlistentry>
910 d8a4b51d Iustin Pop
              <term>vcpus</term>
911 d8a4b51d Iustin Pop
              <listitem>
912 d8a4b51d Iustin Pop
                <simpara>the number of VCPUs allocated to the
913 d8a4b51d Iustin Pop
                instance</simpara>
914 d8a4b51d Iustin Pop
              </listitem>
915 d8a4b51d Iustin Pop
            </varlistentry>
916 130a6a6f Iustin Pop
            <varlistentry>
917 130a6a6f Iustin Pop
              <term>tags</term>
918 130a6a6f Iustin Pop
              <listitem>
919 130a6a6f Iustin Pop
                <simpara>comma-separated list of the instances's
920 130a6a6f Iustin Pop
                tags</simpara>
921 130a6a6f Iustin Pop
              </listitem>
922 130a6a6f Iustin Pop
            </varlistentry>
923 38d7239a Iustin Pop
            <varlistentry>
924 38d7239a Iustin Pop
              <term>serial_no</term>
925 38d7239a Iustin Pop
              <listitem>
926 38d7239a Iustin Pop
                <simpara>the so called 'serial number' of the
927 38d7239a Iustin Pop
                instance; this is a numeric field that is incremented
928 38d7239a Iustin Pop
                each time the instance is modified, and it can be used
929 d3b4cf9f Iustin Pop
                to track modifications</simpara>
930 d3b4cf9f Iustin Pop
              </listitem>
931 d3b4cf9f Iustin Pop
            </varlistentry>
932 d3b4cf9f Iustin Pop
            <varlistentry>
933 d3b4cf9f Iustin Pop
              <term>network_port</term>
934 d3b4cf9f Iustin Pop
              <listitem>
935 d3b4cf9f Iustin Pop
                <simpara>If the instance has a network port assigned
936 d3b4cf9f Iustin Pop
                to it (e.g. for VNC connections), this will be shown,
937 d3b4cf9f Iustin Pop
                otherwise <literal>-</literal> will be
938 d3b4cf9f Iustin Pop
                displayed.</simpara>
939 d3b4cf9f Iustin Pop
              </listitem>
940 d3b4cf9f Iustin Pop
            </varlistentry>
941 d3b4cf9f Iustin Pop
            <varlistentry>
942 d3b4cf9f Iustin Pop
              <term>beparams</term>
943 d3b4cf9f Iustin Pop
              <listitem>
944 d3b4cf9f Iustin Pop
                <simpara>A text format of the entire beparams for the
945 d3b4cf9f Iustin Pop
                instance. It's more useful to select individual fields
946 d3b4cf9f Iustin Pop
                from this dictionary, see below.</simpara>
947 d3b4cf9f Iustin Pop
              </listitem>
948 d3b4cf9f Iustin Pop
            </varlistentry>
949 d3b4cf9f Iustin Pop
            <varlistentry>
950 d3b4cf9f Iustin Pop
              <term>disk.count</term>
951 d3b4cf9f Iustin Pop
              <listitem>
952 d3b4cf9f Iustin Pop
                <simpara>The number of instance disks.</simpara>
953 d3b4cf9f Iustin Pop
              </listitem>
954 d3b4cf9f Iustin Pop
            </varlistentry>
955 d3b4cf9f Iustin Pop
            <varlistentry>
956 d3b4cf9f Iustin Pop
              <term>disk.size/N</term>
957 d3b4cf9f Iustin Pop
              <listitem>
958 d3b4cf9f Iustin Pop
                <simpara>The size of the instance's Nth disk. This is
959 d3b4cf9f Iustin Pop
                a more generic form of the <literal>sda_size</literal>
960 d3b4cf9f Iustin Pop
                and <literal>sdb_size</literal> fields.</simpara>
961 d3b4cf9f Iustin Pop
              </listitem>
962 d3b4cf9f Iustin Pop
            </varlistentry>
963 d3b4cf9f Iustin Pop
            <varlistentry>
964 d3b4cf9f Iustin Pop
              <term>disk.sizes</term>
965 d3b4cf9f Iustin Pop
              <listitem>
966 d3b4cf9f Iustin Pop
                <simpara>A comma-separated list of the disk sizes for
967 d3b4cf9f Iustin Pop
                this instance.</simpara>
968 d3b4cf9f Iustin Pop
              </listitem>
969 d3b4cf9f Iustin Pop
            </varlistentry>
970 d3b4cf9f Iustin Pop
            <varlistentry>
971 d3b4cf9f Iustin Pop
              <term>disk_usage</term>
972 d3b4cf9f Iustin Pop
              <listitem>
973 d3b4cf9f Iustin Pop
                <simpara>The total disk space used by this instance on
974 d3b4cf9f Iustin Pop
                each of its nodes. This is not the instance-visible
975 d3b4cf9f Iustin Pop
                disk size, but the actual disk "cost" of the
976 d3b4cf9f Iustin Pop
                instance.</simpara>
977 d3b4cf9f Iustin Pop
              </listitem>
978 d3b4cf9f Iustin Pop
            </varlistentry>
979 d3b4cf9f Iustin Pop
            <varlistentry>
980 d3b4cf9f Iustin Pop
              <term>nic.mac/N</term>
981 d3b4cf9f Iustin Pop
              <listitem>
982 d3b4cf9f Iustin Pop
                <simpara>The MAC of the Nth instance NIC.</simpara>
983 d3b4cf9f Iustin Pop
              </listitem>
984 d3b4cf9f Iustin Pop
            </varlistentry>
985 d3b4cf9f Iustin Pop
            <varlistentry>
986 d3b4cf9f Iustin Pop
              <term>nic.ip/N</term>
987 d3b4cf9f Iustin Pop
              <listitem>
988 d3b4cf9f Iustin Pop
                <simpara>The IP address of the Nth instance NIC.</simpara>
989 d3b4cf9f Iustin Pop
              </listitem>
990 d3b4cf9f Iustin Pop
            </varlistentry>
991 d3b4cf9f Iustin Pop
            <varlistentry>
992 d3b4cf9f Iustin Pop
              <term>nic.bridge/N</term>
993 d3b4cf9f Iustin Pop
              <listitem>
994 d3b4cf9f Iustin Pop
                <simpara>The bridge the Nth instance NIC is attached
995 d3b4cf9f Iustin Pop
                to.</simpara>
996 d3b4cf9f Iustin Pop
              </listitem>
997 d3b4cf9f Iustin Pop
            </varlistentry>
998 d3b4cf9f Iustin Pop
            <varlistentry>
999 d3b4cf9f Iustin Pop
              <term>nic.macs</term>
1000 d3b4cf9f Iustin Pop
              <listitem>
1001 d3b4cf9f Iustin Pop
                <simpara>A comma-separated list of all the MACs of the
1002 d3b4cf9f Iustin Pop
                instance's NICs.</simpara>
1003 d3b4cf9f Iustin Pop
              </listitem>
1004 d3b4cf9f Iustin Pop
            </varlistentry>
1005 d3b4cf9f Iustin Pop
            <varlistentry>
1006 d3b4cf9f Iustin Pop
              <term>nic.ips</term>
1007 d3b4cf9f Iustin Pop
              <listitem>
1008 d3b4cf9f Iustin Pop
                <simpara>A comma-separated list of all the IP
1009 d3b4cf9f Iustin Pop
                addresses of the instance's NICs.</simpara>
1010 d3b4cf9f Iustin Pop
              </listitem>
1011 d3b4cf9f Iustin Pop
            </varlistentry>
1012 d3b4cf9f Iustin Pop
            <varlistentry>
1013 d3b4cf9f Iustin Pop
              <term>nic.bridges</term>
1014 d3b4cf9f Iustin Pop
              <listitem>
1015 d3b4cf9f Iustin Pop
                <simpara>A comma-separated list of all the bridges of the
1016 d3b4cf9f Iustin Pop
                instance's NICs.</simpara>
1017 d3b4cf9f Iustin Pop
              </listitem>
1018 d3b4cf9f Iustin Pop
            </varlistentry>
1019 d3b4cf9f Iustin Pop
            <varlistentry>
1020 d3b4cf9f Iustin Pop
              <term>nic.count</term>
1021 d3b4cf9f Iustin Pop
              <listitem>
1022 d3b4cf9f Iustin Pop
                <simpara>The number of instance nics.</simpara>
1023 d3b4cf9f Iustin Pop
              </listitem>
1024 d3b4cf9f Iustin Pop
            </varlistentry>
1025 d3b4cf9f Iustin Pop
            <varlistentry>
1026 d3b4cf9f Iustin Pop
              <term>hv/<replaceable>NAME</replaceable></term>
1027 d3b4cf9f Iustin Pop
              <listitem>
1028 d3b4cf9f Iustin Pop
                <simpara>The value of the hypervisor parameter called
1029 d3b4cf9f Iustin Pop
                <replaceable>NAME</replaceable>. For details of what
1030 d3b4cf9f Iustin Pop
                hypervisor parameters exist and their meaning, see the
1031 d3b4cf9f Iustin Pop
                <command>add</command> command.</simpara>
1032 d3b4cf9f Iustin Pop
              </listitem>
1033 d3b4cf9f Iustin Pop
            </varlistentry>
1034 d3b4cf9f Iustin Pop
            <varlistentry>
1035 d3b4cf9f Iustin Pop
              <term>be/memory</term>
1036 d3b4cf9f Iustin Pop
              <listitem>
1037 d3b4cf9f Iustin Pop
                <simpara>The configured memory for the instance.</simpara>
1038 d3b4cf9f Iustin Pop
              </listitem>
1039 d3b4cf9f Iustin Pop
            </varlistentry>
1040 d3b4cf9f Iustin Pop
            <varlistentry>
1041 d3b4cf9f Iustin Pop
              <term>be/vcpus</term>
1042 d3b4cf9f Iustin Pop
              <listitem>
1043 d3b4cf9f Iustin Pop
                <simpara>The configured number of VCPUs for the
1044 d3b4cf9f Iustin Pop
                instance.</simpara>
1045 d3b4cf9f Iustin Pop
              </listitem>
1046 d3b4cf9f Iustin Pop
            </varlistentry>
1047 d3b4cf9f Iustin Pop
            <varlistentry>
1048 d3b4cf9f Iustin Pop
              <term>be/auto_balance</term>
1049 d3b4cf9f Iustin Pop
              <listitem>
1050 d3b4cf9f Iustin Pop
                <simpara>Whether the instance is considered in N+1
1051 d3b4cf9f Iustin Pop
                checks.</simpara>
1052 38d7239a Iustin Pop
              </listitem>
1053 38d7239a Iustin Pop
            </varlistentry>
1054 a8083063 Iustin Pop
          </variablelist>
1055 a8083063 Iustin Pop
        </para>
1056 a8083063 Iustin Pop
1057 a8083063 Iustin Pop
        <para>
1058 48c4dfa8 Iustin Pop
          If the value of the option starts with the character
1059 d3b4cf9f Iustin Pop
          <constant>+</constant>, the new field(s) will be added to the
1060 48c4dfa8 Iustin Pop
          default list. This allows to quickly see the default list
1061 48c4dfa8 Iustin Pop
          plus a few other fields, instead of retyping the entire list
1062 48c4dfa8 Iustin Pop
          of fields.
1063 48c4dfa8 Iustin Pop
        </para>
1064 48c4dfa8 Iustin Pop
1065 48c4dfa8 Iustin Pop
        <para>
1066 a8083063 Iustin Pop
          There is a subtle grouping about the available output
1067 872c949f Iustin Pop
          fields: all fields except for <option>oper_state</option>,
1068 872c949f Iustin Pop
          <option>oper_ram</option> and <option>status</option> are
1069 872c949f Iustin Pop
          configuration value and not run-time values. So if you don't
1070 872c949f Iustin Pop
          select any of the these fields, the query will be satisfied
1071 a8083063 Iustin Pop
          instantly from the cluster configuration, without having to
1072 a8083063 Iustin Pop
          ask the remote nodes for the data. This can be helpful for
1073 a8083063 Iustin Pop
          big clusters when you only want some data and it makes sense
1074 a8083063 Iustin Pop
          to specify a reduced set of output fields.
1075 a8083063 Iustin Pop
        </para>
1076 a8083063 Iustin Pop
1077 a8083063 Iustin Pop
        <para>The default output field list is:
1078 a8083063 Iustin Pop
          <simplelist type="inline">
1079 a8083063 Iustin Pop
            <member>name</member>
1080 a8083063 Iustin Pop
            <member>os</member>
1081 a8083063 Iustin Pop
            <member>pnode</member>
1082 a8083063 Iustin Pop
            <member>admin_state</member>
1083 a8083063 Iustin Pop
            <member>oper_state</member>
1084 a8083063 Iustin Pop
            <member>oper_ram</member>
1085 a8083063 Iustin Pop
          </simplelist>.
1086 a8083063 Iustin Pop
        </para>
1087 a8083063 Iustin Pop
      </refsect3>
1088 a8083063 Iustin Pop
1089 a8083063 Iustin Pop
      <refsect3>
1090 a8083063 Iustin Pop
        <title>INFO</title>
1091 a8083063 Iustin Pop
1092 a8083063 Iustin Pop
        <cmdsynopsis>
1093 a8083063 Iustin Pop
          <command>info</command>
1094 57821cac Iustin Pop
          <group>
1095 57821cac Iustin Pop
            <arg>-s</arg>
1096 57821cac Iustin Pop
            <arg>--static</arg>
1097 57821cac Iustin Pop
          </group>
1098 a8083063 Iustin Pop
          <arg rep="repeat"><replaceable>instance</replaceable></arg>
1099 a8083063 Iustin Pop
        </cmdsynopsis>
1100 a8083063 Iustin Pop
1101 a8083063 Iustin Pop
        <para>
1102 a8083063 Iustin Pop
          Show detailed information about the (given) instances. This
1103 a8083063 Iustin Pop
          is different from <command>list</command> as it shows
1104 a8083063 Iustin Pop
          detailed data about the instance's disks (especially useful
1105 bd028152 Iustin Pop
          for drbd disk template).
1106 a8083063 Iustin Pop
        </para>
1107 57821cac Iustin Pop
1108 57821cac Iustin Pop
        <para>
1109 57821cac Iustin Pop
          If the option <option>-s</option> is used, only information
1110 57821cac Iustin Pop
          available in the configuration file is returned, without
1111 57821cac Iustin Pop
          querying nodes, making the operation faster.
1112 57821cac Iustin Pop
        </para>
1113 a8083063 Iustin Pop
      </refsect3>
1114 a8083063 Iustin Pop
1115 a8083063 Iustin Pop
      <refsect3>
1116 a8083063 Iustin Pop
        <title>MODIFY</title>
1117 a8083063 Iustin Pop
1118 a8083063 Iustin Pop
        <cmdsynopsis>
1119 a8083063 Iustin Pop
          <command>modify</command>
1120 00f98619 Iustin Pop
          <sbr>
1121 d3b4cf9f Iustin Pop
          <arg choice="opt">-H <replaceable>HYPERVISOR_PARAMETERS</replaceable></arg>
1122 d3b4cf9f Iustin Pop
          <sbr>
1123 d3b4cf9f Iustin Pop
          <arg choice="opt">-B <replaceable>BACKEND_PARAMETERS</replaceable></arg>
1124 d3b4cf9f Iustin Pop
          <sbr>
1125 d3b4cf9f Iustin Pop
          <group>
1126 d3b4cf9f Iustin Pop
            <arg>--net add<replaceable><optional>:options</optional></replaceable></arg>
1127 d3b4cf9f Iustin Pop
            <arg>--net remove</arg>
1128 d3b4cf9f Iustin Pop
            <arg>--net <replaceable>N:options</replaceable></arg>
1129 d3b4cf9f Iustin Pop
          </group>
1130 d3b4cf9f Iustin Pop
          <sbr>
1131 d3b4cf9f Iustin Pop
          <group>
1132 d3b4cf9f Iustin Pop
            <arg>--disk add:size=<replaceable>SIZE</replaceable></arg>
1133 d3b4cf9f Iustin Pop
            <arg>--disk remove</arg>
1134 d3b4cf9f Iustin Pop
            <arg>--disk <replaceable>N</replaceable>:mode=<replaceable>MODE</replaceable></arg>
1135 d3b4cf9f Iustin Pop
          </group>
1136 d3b4cf9f Iustin Pop
1137 00f98619 Iustin Pop
          <sbr>
1138 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1139 00f98619 Iustin Pop
          <sbr>
1140 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1141 a8083063 Iustin Pop
        </cmdsynopsis>
1142 a8083063 Iustin Pop
1143 a8083063 Iustin Pop
        <para>
1144 d3b4cf9f Iustin Pop
          Modifies the memory size, number of vcpus, ip address, MAC
1145 d3b4cf9f Iustin Pop
          address and/or bridge for an instance. It can also add and
1146 d3b4cf9f Iustin Pop
          remove disks and NICs to/from the instance. Note that you
1147 d3b4cf9f Iustin Pop
          need to give at least one of the arguments, otherwise the
1148 d3b4cf9f Iustin Pop
          command complains.
1149 a8083063 Iustin Pop
        </para>
1150 a8083063 Iustin Pop
1151 a8083063 Iustin Pop
        <para>
1152 d3b4cf9f Iustin Pop
          The <option>-H</option> option specifies hypervisor options
1153 d3b4cf9f Iustin Pop
          in the form of <userinput>name=value[,...]</userinput>. For details which options can be specified, see the <command>add</command> command.
1154 a8083063 Iustin Pop
        </para>
1155 a8083063 Iustin Pop
1156 a8083063 Iustin Pop
        <para>
1157 d3b4cf9f Iustin Pop
          The <option>--disk
1158 d3b4cf9f Iustin Pop
          add:size=<replaceable>SIZE</replaceable></option> option
1159 d3b4cf9f Iustin Pop
          adds a disk to the instance. The <option>--disk
1160 d3b4cf9f Iustin Pop
          remove</option> will remove the last disk of the
1161 d3b4cf9f Iustin Pop
          instance. The <option>--disk
1162 d3b4cf9f Iustin Pop
          <replaceable>N</replaceable>:mode=<replaceable>MODE</replaceable></option>
1163 d3b4cf9f Iustin Pop
          option will change the mode of the Nth disk of the instance
1164 d3b4cf9f Iustin Pop
          between read-only (<literal>ro</literal>) and read-write
1165 d3b4cf9f Iustin Pop
          (<literal>rw</literal>).
1166 00f98619 Iustin Pop
        </para>
1167 00f98619 Iustin Pop
1168 00f98619 Iustin Pop
        <para>
1169 d3b4cf9f Iustin Pop
          The <option>--nic
1170 d3b4cf9f Iustin Pop
          add:<replaceable>options</replaceable></option> option will
1171 d3b4cf9f Iustin Pop
          add a new NIC to the instance. The available options are the
1172 d3b4cf9f Iustin Pop
          same as in the <command>add</command> command (mac, ip,
1173 d3b4cf9f Iustin Pop
          bridge). The <option>--nice remove</option> will remove the
1174 d3b4cf9f Iustin Pop
          last NIC of the instance, while the <option>--nic
1175 d3b4cf9f Iustin Pop
          <replaceable>N</replaceable>:<replaceable>options</replaceable></option>
1176 d3b4cf9f Iustin Pop
          option will change the parameters of the Nth instance NIC.
1177 25c5878d Alexander Schreiber
        </para>
1178 25c5878d Alexander Schreiber
1179 25c5878d Alexander Schreiber
        <para>
1180 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1181 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1182 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1183 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1184 ca9c49d5 Iustin Pop
        </para>
1185 ca9c49d5 Iustin Pop
1186 ca9c49d5 Iustin Pop
        <para>
1187 a8083063 Iustin Pop
          All the changes take effect at the next restart. If the
1188 a8083063 Iustin Pop
          instance is running, there is no effect on the instance.
1189 a8083063 Iustin Pop
        </para>
1190 a8083063 Iustin Pop
      </refsect3>
1191 a8083063 Iustin Pop
1192 d0834de3 Michael Hanselmann
      <refsect3>
1193 d0834de3 Michael Hanselmann
        <title>REINSTALL</title>
1194 d0834de3 Michael Hanselmann
1195 d0834de3 Michael Hanselmann
        <cmdsynopsis>
1196 d0834de3 Michael Hanselmann
          <command>reinstall</command>
1197 d0834de3 Michael Hanselmann
          <arg choice="opt">-o <replaceable>os-type</replaceable></arg>
1198 d0834de3 Michael Hanselmann
          <arg choice="opt">-f <replaceable>force</replaceable></arg>
1199 20e23543 Alexander Schreiber
          <arg>--select-os</arg>
1200 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1201 d0834de3 Michael Hanselmann
          <arg choice="req"><replaceable>instance</replaceable></arg>
1202 d0834de3 Michael Hanselmann
        </cmdsynopsis>
1203 d0834de3 Michael Hanselmann
1204 d0834de3 Michael Hanselmann
        <para>
1205 d0834de3 Michael Hanselmann
          Reinstalls the operating system on the given instance. The instance
1206 d0834de3 Michael Hanselmann
          must be stopped when running this command. If the
1207 d0834de3 Michael Hanselmann
          <option>--os-type</option> is specified, the operating system is
1208 d0834de3 Michael Hanselmann
          changed.
1209 d0834de3 Michael Hanselmann
        </para>
1210 20e23543 Alexander Schreiber
1211 20e23543 Alexander Schreiber
        <para>
1212 20e23543 Alexander Schreiber
          The <option>--select-os</option> option switches to an
1213 20e23543 Alexander Schreiber
          interactive OS reinstall. The user is prompted to select the OS
1214 20e23543 Alexander Schreiber
          template from the list of available OS templates.
1215 20e23543 Alexander Schreiber
        </para>
1216 d3b4cf9f Iustin Pop
1217 d3b4cf9f Iustin Pop
        <para>
1218 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1219 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1220 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1221 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1222 d3b4cf9f Iustin Pop
        </para>
1223 d3b4cf9f Iustin Pop
1224 d3b4cf9f Iustin Pop
1225 d0834de3 Michael Hanselmann
      </refsect3>
1226 d0834de3 Michael Hanselmann
1227 decd5f45 Iustin Pop
      <refsect3>
1228 decd5f45 Iustin Pop
        <title>RENAME</title>
1229 decd5f45 Iustin Pop
1230 decd5f45 Iustin Pop
        <cmdsynopsis>
1231 decd5f45 Iustin Pop
          <command>rename</command>
1232 decd5f45 Iustin Pop
          <arg>--no-ip-check</arg>
1233 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1234 decd5f45 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1235 decd5f45 Iustin Pop
          <arg choice="req"><replaceable>new_name</replaceable></arg>
1236 decd5f45 Iustin Pop
        </cmdsynopsis>
1237 decd5f45 Iustin Pop
1238 decd5f45 Iustin Pop
        <para>
1239 decd5f45 Iustin Pop
          Renames the given instance. The instance must be stopped
1240 decd5f45 Iustin Pop
          when running this command. The requirements for the new name
1241 decd5f45 Iustin Pop
          are the same as for adding an instance: the new name must be
1242 decd5f45 Iustin Pop
          resolvable and the IP it resolves to must not be reachable
1243 decd5f45 Iustin Pop
          (in order to prevent duplicate IPs the next time the
1244 decd5f45 Iustin Pop
          instance is started). The IP test can be skipped if the
1245 decd5f45 Iustin Pop
          <option>--no-ip-check</option> option is passed.
1246 decd5f45 Iustin Pop
        </para>
1247 d3b4cf9f Iustin Pop
1248 d3b4cf9f Iustin Pop
        <para>
1249 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1250 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1251 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1252 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1253 d3b4cf9f Iustin Pop
        </para>
1254 d3b4cf9f Iustin Pop
1255 decd5f45 Iustin Pop
      </refsect3>
1256 decd5f45 Iustin Pop
1257 a8083063 Iustin Pop
    </refsect2>
1258 a8083063 Iustin Pop
1259 a8083063 Iustin Pop
    <refsect2>
1260 a8083063 Iustin Pop
      <title>Starting/stopping/connecting to console</title>
1261 a8083063 Iustin Pop
1262 a8083063 Iustin Pop
      <refsect3>
1263 a8083063 Iustin Pop
        <title>STARTUP</title>
1264 a8083063 Iustin Pop
1265 a8083063 Iustin Pop
        <cmdsynopsis>
1266 a8083063 Iustin Pop
          <command>startup</command>
1267 d3b4cf9f Iustin Pop
          <sbr>
1268 a8083063 Iustin Pop
          <arg>--extra=<replaceable>PARAMS</replaceable></arg>
1269 3bd5f059 Michael Hanselmann
          <arg>--force</arg>
1270 312ac745 Iustin Pop
          <sbr>
1271 d3b4cf9f Iustin Pop
          <arg>--force-multiple</arg>
1272 d3b4cf9f Iustin Pop
          <sbr>
1273 312ac745 Iustin Pop
          <group choice="opt">
1274 312ac745 Iustin Pop
            <arg>--instance</arg>
1275 312ac745 Iustin Pop
            <arg>--node</arg>
1276 312ac745 Iustin Pop
            <arg>--primary</arg>
1277 312ac745 Iustin Pop
            <arg>--secondary</arg>
1278 312ac745 Iustin Pop
            <arg>--all</arg>
1279 312ac745 Iustin Pop
          </group>
1280 312ac745 Iustin Pop
          <sbr>
1281 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1282 d3b4cf9f Iustin Pop
          <sbr>
1283 312ac745 Iustin Pop
          <arg choice="opt"
1284 312ac745 Iustin Pop
          rep="repeat"><replaceable>name</replaceable></arg>
1285 a8083063 Iustin Pop
        </cmdsynopsis>
1286 a8083063 Iustin Pop
1287 a8083063 Iustin Pop
        <para>
1288 bcee9cb4 Iustin Pop
          Starts one or more instances, depending on the following
1289 bcee9cb4 Iustin Pop
          options. The four available modes are:
1290 312ac745 Iustin Pop
          <variablelist>
1291 312ac745 Iustin Pop
            <varlistentry>
1292 312ac745 Iustin Pop
              <term><option>--instance</option></term>
1293 312ac745 Iustin Pop
              <listitem>
1294 312ac745 Iustin Pop
                <simpara>will start the instances given as arguments
1295 312ac745 Iustin Pop
                (at least one argument required); this is the default
1296 312ac745 Iustin Pop
                selection</simpara>
1297 312ac745 Iustin Pop
              </listitem>
1298 312ac745 Iustin Pop
            </varlistentry>
1299 312ac745 Iustin Pop
            <varlistentry>
1300 312ac745 Iustin Pop
              <term>--node</term>
1301 312ac745 Iustin Pop
              <listitem>
1302 312ac745 Iustin Pop
                <simpara>will start the instances who have the given
1303 312ac745 Iustin Pop
                node as either primary or secondary</simpara>
1304 312ac745 Iustin Pop
              </listitem>
1305 312ac745 Iustin Pop
            </varlistentry>
1306 312ac745 Iustin Pop
            <varlistentry>
1307 312ac745 Iustin Pop
              <term><option>--primary</option></term>
1308 312ac745 Iustin Pop
              <listitem>
1309 312ac745 Iustin Pop
                <simpara>will start all instances whose primary node
1310 312ac745 Iustin Pop
                is in the list of nodes passed as arguments (at least
1311 312ac745 Iustin Pop
                one node required)</simpara>
1312 312ac745 Iustin Pop
              </listitem>
1313 312ac745 Iustin Pop
            </varlistentry>
1314 312ac745 Iustin Pop
            <varlistentry>
1315 312ac745 Iustin Pop
              <term><option>--secondary</option></term>
1316 312ac745 Iustin Pop
              <listitem>
1317 312ac745 Iustin Pop
                <simpara>will start all instances whose secondary node
1318 312ac745 Iustin Pop
                is in the list of nodes passed as arguments (at least
1319 312ac745 Iustin Pop
                one node required)</simpara>
1320 312ac745 Iustin Pop
              </listitem>
1321 312ac745 Iustin Pop
            </varlistentry>
1322 312ac745 Iustin Pop
            <varlistentry>
1323 312ac745 Iustin Pop
              <term>--all</term>
1324 312ac745 Iustin Pop
              <listitem>
1325 312ac745 Iustin Pop
                <simpara>will start all instances in the cluster (no
1326 312ac745 Iustin Pop
                arguments accepted)</simpara>
1327 312ac745 Iustin Pop
              </listitem>
1328 312ac745 Iustin Pop
            </varlistentry>
1329 312ac745 Iustin Pop
          </variablelist>
1330 312ac745 Iustin Pop
        </para>
1331 312ac745 Iustin Pop
1332 312ac745 Iustin Pop
        <para>
1333 bcee9cb4 Iustin Pop
          Note that although you can pass more than one selection
1334 bcee9cb4 Iustin Pop
          option, the last one wins, so in order to guarantee the
1335 bcee9cb4 Iustin Pop
          desired result, don't pass more than one such option.
1336 a8083063 Iustin Pop
        </para>
1337 a8083063 Iustin Pop
1338 a8083063 Iustin Pop
        <para>
1339 a8083063 Iustin Pop
          The <option>--extra</option> option is used to pass
1340 a8083063 Iustin Pop
          additional argument to the instance's kernel for this start
1341 a8083063 Iustin Pop
          only. Currently there is no way to specify a persistent set
1342 a8083063 Iustin Pop
          of arguments (beside the one hardcoded). Note that this may
1343 a8083063 Iustin Pop
          not apply to all virtualization types.
1344 a8083063 Iustin Pop
        </para>
1345 a8083063 Iustin Pop
1346 3bd5f059 Michael Hanselmann
        <para>
1347 3bd5f059 Michael Hanselmann
          Use <option>--force</option> to start even if secondary disks are
1348 3bd5f059 Michael Hanselmann
          failing.
1349 3bd5f059 Michael Hanselmann
        </para>
1350 a8083063 Iustin Pop
1351 a8083063 Iustin Pop
        <para>
1352 d3b4cf9f Iustin Pop
          The <option>--force-multiple</option> will skip the
1353 d3b4cf9f Iustin Pop
          interactive confirmation in the case the more than one
1354 d3b4cf9f Iustin Pop
          instance will be affected.
1355 d3b4cf9f Iustin Pop
        </para>
1356 d3b4cf9f Iustin Pop
1357 d3b4cf9f Iustin Pop
        <para>
1358 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1359 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1360 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1361 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1362 d3b4cf9f Iustin Pop
        </para>
1363 d3b4cf9f Iustin Pop
1364 d3b4cf9f Iustin Pop
        <para>
1365 a8083063 Iustin Pop
          Example:
1366 a8083063 Iustin Pop
          <screen>
1367 a8083063 Iustin Pop
# gnt-instance start instance1.example.com
1368 a8083063 Iustin Pop
# gnt-instance start --extra single test1.example.com
1369 bcee9cb4 Iustin Pop
# gnt-instance start --node node1.example.com node2.example.com
1370 bcee9cb4 Iustin Pop
# gnt-instance start --all
1371 a8083063 Iustin Pop
          </screen>
1372 a8083063 Iustin Pop
        </para>
1373 a8083063 Iustin Pop
      </refsect3>
1374 a8083063 Iustin Pop
1375 a8083063 Iustin Pop
      <refsect3>
1376 a8083063 Iustin Pop
        <title>SHUTDOWN</title>
1377 a8083063 Iustin Pop
1378 a8083063 Iustin Pop
        <cmdsynopsis>
1379 a8083063 Iustin Pop
          <command>shutdown</command>
1380 312ac745 Iustin Pop
          <sbr>
1381 d3b4cf9f Iustin Pop
          <arg>--force-multiple</arg>
1382 d3b4cf9f Iustin Pop
          <sbr>
1383 312ac745 Iustin Pop
          <group choice="opt">
1384 312ac745 Iustin Pop
            <arg>--instance</arg>
1385 312ac745 Iustin Pop
            <arg>--node</arg>
1386 312ac745 Iustin Pop
            <arg>--primary</arg>
1387 312ac745 Iustin Pop
            <arg>--secondary</arg>
1388 312ac745 Iustin Pop
            <arg>--all</arg>
1389 312ac745 Iustin Pop
          </group>
1390 312ac745 Iustin Pop
          <sbr>
1391 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1392 d3b4cf9f Iustin Pop
          <sbr>
1393 312ac745 Iustin Pop
          <arg choice="opt"
1394 312ac745 Iustin Pop
          rep="repeat"><replaceable>name</replaceable></arg>
1395 a8083063 Iustin Pop
        </cmdsynopsis>
1396 a8083063 Iustin Pop
1397 a8083063 Iustin Pop
        <para>
1398 312ac745 Iustin Pop
          Stops one or more instances. If the instance cannot be
1399 312ac745 Iustin Pop
          cleanly stopped during a hardcoded interval (currently 2
1400 312ac745 Iustin Pop
          minutes), it will forcibly stop the instance (equivalent to
1401 312ac745 Iustin Pop
          switching off the power on a physical machine).
1402 312ac745 Iustin Pop
        </para>
1403 312ac745 Iustin Pop
1404 312ac745 Iustin Pop
        <para>
1405 312ac745 Iustin Pop
          The <option>--instance</option>, <option>--node</option>,
1406 312ac745 Iustin Pop
          <option>--primary</option>, <option>--secondary</option> and
1407 312ac745 Iustin Pop
          <option>--all</option> options are similar as for the
1408 312ac745 Iustin Pop
          <command>startup</command> command and they influence the
1409 86b8c6ae Alexander Schreiber
          actual instances being shutdown.
1410 a8083063 Iustin Pop
        </para>
1411 a8083063 Iustin Pop
1412 a8083063 Iustin Pop
        <para>
1413 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1414 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1415 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1416 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1417 d3b4cf9f Iustin Pop
        </para>
1418 d3b4cf9f Iustin Pop
1419 d3b4cf9f Iustin Pop
1420 d3b4cf9f Iustin Pop
        <para>
1421 a8083063 Iustin Pop
          Example:
1422 a8083063 Iustin Pop
          <screen>
1423 a8083063 Iustin Pop
# gnt-instance shutdown instance1.example.com
1424 bcee9cb4 Iustin Pop
# gnt-instance shutdown --all
1425 a8083063 Iustin Pop
          </screen>
1426 a8083063 Iustin Pop
        </para>
1427 a8083063 Iustin Pop
      </refsect3>
1428 a8083063 Iustin Pop
1429 a8083063 Iustin Pop
      <refsect3>
1430 579d4337 Alexander Schreiber
        <title>REBOOT</title>
1431 579d4337 Alexander Schreiber
1432 579d4337 Alexander Schreiber
        <cmdsynopsis>
1433 579d4337 Alexander Schreiber
          <command>reboot</command>
1434 579d4337 Alexander Schreiber
          <sbr>
1435 579d4337 Alexander Schreiber
          <arg>--extra=<replaceable>PARAMS</replaceable></arg>
1436 579d4337 Alexander Schreiber
          <sbr>
1437 579d4337 Alexander Schreiber
          <arg>--type=<replaceable>REBOOT-TYPE</replaceable></arg>
1438 579d4337 Alexander Schreiber
          <sbr>
1439 579d4337 Alexander Schreiber
          <arg>--ignore-secondaries</arg>
1440 579d4337 Alexander Schreiber
          <sbr>
1441 579d4337 Alexander Schreiber
          <arg>--force-multiple</arg>
1442 579d4337 Alexander Schreiber
          <sbr>
1443 579d4337 Alexander Schreiber
          <group choice="opt">
1444 579d4337 Alexander Schreiber
            <arg>--instance</arg>
1445 579d4337 Alexander Schreiber
            <arg>--node</arg>
1446 579d4337 Alexander Schreiber
            <arg>--primary</arg>
1447 579d4337 Alexander Schreiber
            <arg>--secondary</arg>
1448 579d4337 Alexander Schreiber
            <arg>--all</arg>
1449 579d4337 Alexander Schreiber
          </group>
1450 579d4337 Alexander Schreiber
          <sbr>
1451 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1452 d3b4cf9f Iustin Pop
          <sbr>
1453 579d4337 Alexander Schreiber
          <arg choice="opt"
1454 579d4337 Alexander Schreiber
          rep="repeat"><replaceable>name</replaceable></arg>
1455 579d4337 Alexander Schreiber
        </cmdsynopsis>
1456 579d4337 Alexander Schreiber
1457 579d4337 Alexander Schreiber
        <para>
1458 579d4337 Alexander Schreiber
          Reboots one or more instances. The type of reboot depends on
1459 579d4337 Alexander Schreiber
          the value of <option>--type</option>. A soft reboot does a
1460 579d4337 Alexander Schreiber
          hypervisor reboot, a hard reboot does a instance stop,
1461 579d4337 Alexander Schreiber
          recreates the hypervisor config for the instance and
1462 579d4337 Alexander Schreiber
          starts the instance. A full reboot does the equivalent
1463 579d4337 Alexander Schreiber
          of <command>gnt-instance shutdown &amp;&amp; gnt-instance
1464 bf2fd71e Alexander Schreiber
          startup</command>. The default is hard reboot.
1465 579d4337 Alexander Schreiber
        </para>
1466 579d4337 Alexander Schreiber
1467 579d4337 Alexander Schreiber
        <para>
1468 579d4337 Alexander Schreiber
          For the hard reboot the option
1469 579d4337 Alexander Schreiber
          <option>--ignore-secondaries</option> ignores errors for the
1470 579d4337 Alexander Schreiber
          secondary node while re-assembling the instance disks.
1471 579d4337 Alexander Schreiber
        </para>
1472 579d4337 Alexander Schreiber
1473 579d4337 Alexander Schreiber
        <para>
1474 579d4337 Alexander Schreiber
          The <option>--instance</option>, <option>--node</option>,
1475 579d4337 Alexander Schreiber
          <option>--primary</option>, <option>--secondary</option> and
1476 579d4337 Alexander Schreiber
          <option>--all</option> options are similar as for the
1477 579d4337 Alexander Schreiber
          <command>startup</command> command and they influence the
1478 579d4337 Alexander Schreiber
          actual instances being rebooted.
1479 579d4337 Alexander Schreiber
        </para>
1480 36c87212 Iustin Pop
1481 579d4337 Alexander Schreiber
        <para>
1482 d3b4cf9f Iustin Pop
          The <option>--force-multiple</option> will skip the
1483 d3b4cf9f Iustin Pop
          interactive confirmation in the case the more than one
1484 d3b4cf9f Iustin Pop
          instance will be affected.
1485 579d4337 Alexander Schreiber
        </para>
1486 579d4337 Alexander Schreiber
1487 579d4337 Alexander Schreiber
        <para>
1488 579d4337 Alexander Schreiber
          Example:
1489 579d4337 Alexander Schreiber
          <screen>
1490 579d4337 Alexander Schreiber
# gnt-instance reboot instance1.example.com
1491 579d4337 Alexander Schreiber
# gnt-instance reboot --type=full instance1.example.com
1492 579d4337 Alexander Schreiber
          </screen>
1493 579d4337 Alexander Schreiber
        </para>
1494 579d4337 Alexander Schreiber
      </refsect3>
1495 579d4337 Alexander Schreiber
1496 579d4337 Alexander Schreiber
      <refsect3>
1497 a8083063 Iustin Pop
        <title>CONSOLE</title>
1498 a8083063 Iustin Pop
        <cmdsynopsis>
1499 a8083063 Iustin Pop
          <command>console</command>
1500 51c6e7b5 Michael Hanselmann
          <arg choice="opt">--show-cmd</arg>
1501 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1502 a8083063 Iustin Pop
        </cmdsynopsis>
1503 a8083063 Iustin Pop
1504 a8083063 Iustin Pop
        <para>
1505 d3b4cf9f Iustin Pop
          Connects to the console of the given instance. If the
1506 d3b4cf9f Iustin Pop
          instance is not up, an error is returned. Use the
1507 d3b4cf9f Iustin Pop
          <option>--show-cmd</option> option to display the command
1508 d3b4cf9f Iustin Pop
          instead of executing it.
1509 a8083063 Iustin Pop
        </para>
1510 a8083063 Iustin Pop
1511 a8083063 Iustin Pop
        <para>
1512 d3b4cf9f Iustin Pop
          For HVM instances, this will attempt to connect to the
1513 d3b4cf9f Iustin Pop
          serial console of the instance. To connect to the
1514 d3b4cf9f Iustin Pop
          virtualized "physical" console of a HVM instance, use a VNC
1515 d3b4cf9f Iustin Pop
          client with the connection info from the
1516 d3b4cf9f Iustin Pop
          <command>info</command> command.
1517 16034f1f Alexander Schreiber
        </para>
1518 16034f1f Alexander Schreiber
1519 16034f1f Alexander Schreiber
        <para>
1520 a8083063 Iustin Pop
          Example:
1521 a8083063 Iustin Pop
          <screen>
1522 a8083063 Iustin Pop
# gnt-instance console instance1.example.com
1523 a8083063 Iustin Pop
          </screen>
1524 a8083063 Iustin Pop
        </para>
1525 a8083063 Iustin Pop
      </refsect3>
1526 a8083063 Iustin Pop
1527 a8083063 Iustin Pop
    </refsect2>
1528 a8083063 Iustin Pop
1529 a8083063 Iustin Pop
    <refsect2>
1530 a8083063 Iustin Pop
      <title>Disk management</title>
1531 a8083063 Iustin Pop
1532 a8083063 Iustin Pop
      <refsect3>
1533 a8083063 Iustin Pop
        <title>REPLACE-DISKS</title>
1534 a8083063 Iustin Pop
1535 a8083063 Iustin Pop
        <cmdsynopsis>
1536 a8083063 Iustin Pop
          <command>replace-disks</command>
1537 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1538 7e9366f7 Iustin Pop
          <arg choice="req">-p</arg>
1539 7e9366f7 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1540 7e9366f7 Iustin Pop
        </cmdsynopsis>
1541 a53a1b18 Michael Hanselmann
1542 7e9366f7 Iustin Pop
        <cmdsynopsis>
1543 7e9366f7 Iustin Pop
          <command>replace-disks</command>
1544 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1545 7e9366f7 Iustin Pop
          <arg choice="req">-s</arg>
1546 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1547 a8083063 Iustin Pop
        </cmdsynopsis>
1548 a8083063 Iustin Pop
1549 0b0dea6a Iustin Pop
        <cmdsynopsis>
1550 0b0dea6a Iustin Pop
          <command>replace-disks</command>
1551 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1552 7e9366f7 Iustin Pop
          <group choice="req">
1553 7e9366f7 Iustin Pop
            <arg>--iallocator <replaceable>name</replaceable></arg>
1554 7e9366f7 Iustin Pop
            <arg>--new-secondary <replaceable>NODE</replaceable></arg>
1555 0b0dea6a Iustin Pop
          </group>
1556 7e9366f7 Iustin Pop
1557 0b0dea6a Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1558 0b0dea6a Iustin Pop
        </cmdsynopsis>
1559 0b0dea6a Iustin Pop
1560 a8083063 Iustin Pop
        <para>
1561 0b0dea6a Iustin Pop
          This command is a generalized form for adding and replacing
1562 bd028152 Iustin Pop
          disks. It is currently only valid for the mirrored (DRBD)
1563 bd028152 Iustin Pop
          disk template.
1564 a8083063 Iustin Pop
        </para>
1565 0b0dea6a Iustin Pop
1566 0b0dea6a Iustin Pop
        <para>
1567 7e9366f7 Iustin Pop
          The first form (when passing the <option>-p</option> option)
1568 7e9366f7 Iustin Pop
          will replace the disks on the primary, while the second form
1569 7e9366f7 Iustin Pop
          (when passing the <option>-s</option> option will replace
1570 7e9366f7 Iustin Pop
          the disks on the secondary node.
1571 0b0dea6a Iustin Pop
        </para>
1572 0b0dea6a Iustin Pop
1573 a53a1b18 Michael Hanselmann
        <para>
1574 7e9366f7 Iustin Pop
          The third form (when passing either the
1575 7e9366f7 Iustin Pop
          <option>--iallocator</option> or the
1576 7e9366f7 Iustin Pop
          <option>--new-secondary</option> option) is designed to
1577 7e9366f7 Iustin Pop
          change secondary node of the instance.  Specifying
1578 7e9366f7 Iustin Pop
          <option>--iallocator</option> makes the new secondary be
1579 7e9366f7 Iustin Pop
          selected automatically by the specified allocator plugin,
1580 7e9366f7 Iustin Pop
          otherwise the new secondary node will be the one chosen
1581 7e9366f7 Iustin Pop
          manually via the <option>--new-secondary</option> option.
1582 a53a1b18 Michael Hanselmann
        </para>
1583 d3b4cf9f Iustin Pop
1584 d3b4cf9f Iustin Pop
        <para>
1585 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1586 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1587 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1588 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1589 d3b4cf9f Iustin Pop
        </para>
1590 d3b4cf9f Iustin Pop
1591 d3b4cf9f Iustin Pop
        <para>
1592 d3b4cf9f Iustin Pop
          Note that it is not possible to select an offline or drained
1593 d3b4cf9f Iustin Pop
          node as a new secondary.
1594 d3b4cf9f Iustin Pop
        </para>
1595 d3b4cf9f Iustin Pop
1596 a8083063 Iustin Pop
      </refsect3>
1597 a8083063 Iustin Pop
1598 a8083063 Iustin Pop
      <refsect3>
1599 a8083063 Iustin Pop
        <title>ACTIVATE-DISKS</title>
1600 a8083063 Iustin Pop
1601 a8083063 Iustin Pop
        <cmdsynopsis>
1602 a8083063 Iustin Pop
          <command>activate-disks</command>
1603 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1604 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1605 a8083063 Iustin Pop
        </cmdsynopsis>
1606 a8083063 Iustin Pop
        <para>
1607 a8083063 Iustin Pop
          Activates the block devices of the given instance. If
1608 a8083063 Iustin Pop
          successful, the command will show the location and name of
1609 a8083063 Iustin Pop
          the block devices:
1610 a8083063 Iustin Pop
          <screen>
1611 d3b4cf9f Iustin Pop
node1.example.com:disk/0:/dev/drbd0
1612 d3b4cf9f Iustin Pop
node1.example.com:disk/1:/dev/drbd1
1613 a8083063 Iustin Pop
          </screen>
1614 a8083063 Iustin Pop
1615 a8083063 Iustin Pop
          In this example, <emphasis>node1.example.com</emphasis> is
1616 a8083063 Iustin Pop
          the name of the node on which the devices have been
1617 d3b4cf9f Iustin Pop
          activated. The <emphasis>disk/0</emphasis> and
1618 d3b4cf9f Iustin Pop
          <emphasis>disk/1</emphasis> are the Ganeti-names of the
1619 d3b4cf9f Iustin Pop
          instance disks; how they are visible inside the instance is
1620 d3b4cf9f Iustin Pop
          hypervisor-specific. <emphasis>/dev/drbd0</emphasis> and
1621 d3b4cf9f Iustin Pop
          <emphasis>/dev/drbd1</emphasis> are the actual block devices
1622 d3b4cf9f Iustin Pop
          as visible on the node.
1623 d3b4cf9f Iustin Pop
        </para>
1624 d3b4cf9f Iustin Pop
1625 d3b4cf9f Iustin Pop
        <para>
1626 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1627 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1628 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1629 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1630 a8083063 Iustin Pop
        </para>
1631 a8083063 Iustin Pop
1632 a8083063 Iustin Pop
        <para>
1633 a8083063 Iustin Pop
          Note that it is safe to run this command while the instance
1634 a8083063 Iustin Pop
          is already running.
1635 a8083063 Iustin Pop
        </para>
1636 a8083063 Iustin Pop
      </refsect3>
1637 a8083063 Iustin Pop
1638 a8083063 Iustin Pop
      <refsect3>
1639 a8083063 Iustin Pop
        <title>DEACTIVATE-DISKS</title>
1640 a8083063 Iustin Pop
1641 a8083063 Iustin Pop
        <cmdsynopsis>
1642 a8083063 Iustin Pop
          <command>deactivate-disks</command>
1643 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1644 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1645 a8083063 Iustin Pop
        </cmdsynopsis>
1646 a8083063 Iustin Pop
        <para>
1647 a8083063 Iustin Pop
          De-activates the block devices of the given instance. Note
1648 bd028152 Iustin Pop
          that if you run this command for an instance with a drbd
1649 bd028152 Iustin Pop
          disk template, while it is running, it will not be able to
1650 bd028152 Iustin Pop
          shutdown the block devices on the primary node, but it will
1651 bd028152 Iustin Pop
          shutdown the block devices on the secondary nodes, thus
1652 bd028152 Iustin Pop
          breaking the replication.
1653 a8083063 Iustin Pop
        </para>
1654 a8083063 Iustin Pop
1655 d3b4cf9f Iustin Pop
        <para>
1656 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1657 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1658 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1659 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1660 d3b4cf9f Iustin Pop
        </para>
1661 d3b4cf9f Iustin Pop
1662 a8083063 Iustin Pop
      </refsect3>
1663 a8083063 Iustin Pop
1664 eb65d354 Iustin Pop
      <refsect3>
1665 eb65d354 Iustin Pop
        <title>GROW-DISK</title>
1666 eb65d354 Iustin Pop
        <cmdsynopsis>
1667 eb65d354 Iustin Pop
          <command>grow-disk</command>
1668 6605411d Iustin Pop
          <arg>--no-wait-for-sync</arg>
1669 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1670 eb65d354 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1671 eb65d354 Iustin Pop
          <arg choice="req"><replaceable>disk</replaceable></arg>
1672 eb65d354 Iustin Pop
          <arg choice="req"><replaceable>amount</replaceable></arg>
1673 eb65d354 Iustin Pop
        </cmdsynopsis>
1674 eb65d354 Iustin Pop
1675 eb65d354 Iustin Pop
        <para>
1676 eb65d354 Iustin Pop
          Grows an instance's disk. This is only possible for
1677 eb65d354 Iustin Pop
          instances having a <literal>plain</literal> or
1678 eb65d354 Iustin Pop
          <literal>drbd</literal> disk template.
1679 eb65d354 Iustin Pop
        </para>
1680 eb65d354 Iustin Pop
1681 eb65d354 Iustin Pop
        <para>
1682 eb65d354 Iustin Pop
          Note that this command only change the block device size; it
1683 eb65d354 Iustin Pop
          will not grow the actual filesystems, partitions, etc. that
1684 eb65d354 Iustin Pop
          live on that disk. Usually, you will need to:
1685 eb65d354 Iustin Pop
          <orderedlist>
1686 eb65d354 Iustin Pop
            <listitem>
1687 eb65d354 Iustin Pop
              <simpara>use <command>gnt-instance grow-disk</command></simpara>
1688 eb65d354 Iustin Pop
            </listitem>
1689 eb65d354 Iustin Pop
            <listitem>
1690 eb65d354 Iustin Pop
              <simpara>reboot the instance (later, at a convenient
1691 eb65d354 Iustin Pop
              time)</simpara>
1692 eb65d354 Iustin Pop
            </listitem>
1693 eb65d354 Iustin Pop
            <listitem>
1694 eb65d354 Iustin Pop
              <simpara>use a filesystem resizer, such as
1695 eb65d354 Iustin Pop
              <citerefentry> <refentrytitle>ext2online</refentrytitle>
1696 eb65d354 Iustin Pop
              <manvolnum>8</manvolnum> </citerefentry> or
1697 eb65d354 Iustin Pop
              <citerefentry> <refentrytitle>xfs_growfs</refentrytitle>
1698 eb65d354 Iustin Pop
              <manvolnum>8</manvolnum> </citerefentry> to resize the
1699 eb65d354 Iustin Pop
              filesystem, or use <citerefentry>
1700 eb65d354 Iustin Pop
              <refentrytitle>fdisk</refentrytitle>
1701 eb65d354 Iustin Pop
              <manvolnum>8</manvolnum> </citerefentry> to change the
1702 eb65d354 Iustin Pop
              partition table on the disk
1703 eb65d354 Iustin Pop
              </simpara>
1704 eb65d354 Iustin Pop
            </listitem>
1705 eb65d354 Iustin Pop
          </orderedlist>
1706 eb65d354 Iustin Pop
        </para>
1707 eb65d354 Iustin Pop
1708 eb65d354 Iustin Pop
1709 eb65d354 Iustin Pop
        <para>
1710 d3b4cf9f Iustin Pop
          The <replaceable>disk</replaceable> argument is the index of
1711 d3b4cf9f Iustin Pop
          the instance disk to grow. The
1712 eb65d354 Iustin Pop
          <replaceable>amount</replaceable> argument is given either
1713 eb65d354 Iustin Pop
          as a number (and it represents the amount to increase the
1714 eb65d354 Iustin Pop
          disk with in mebibytes) or can be given similar to the
1715 eb65d354 Iustin Pop
          arguments in the create instance operation, with a suffix
1716 eb65d354 Iustin Pop
          denoting the unit.
1717 eb65d354 Iustin Pop
        </para>
1718 eb65d354 Iustin Pop
1719 eb65d354 Iustin Pop
        <para>
1720 eb65d354 Iustin Pop
          Note that the disk grow operation might complete on one node
1721 eb65d354 Iustin Pop
          but fail on the other; this will leave the instance with
1722 eb65d354 Iustin Pop
          different-sized LVs on the two nodes, but this will not
1723 eb65d354 Iustin Pop
          create problems (except for unused space).
1724 eb65d354 Iustin Pop
        </para>
1725 eb65d354 Iustin Pop
1726 6605411d Iustin Pop
        <para>
1727 6605411d Iustin Pop
          If you do not want gnt-instance to wait for the new disk
1728 6605411d Iustin Pop
          region to be synced, use the
1729 6605411d Iustin Pop
          <option>--no-wait-for-sync</option> option.
1730 6605411d Iustin Pop
        </para>
1731 6605411d Iustin Pop
1732 d3b4cf9f Iustin Pop
        <para>
1733 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1734 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1735 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1736 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1737 d3b4cf9f Iustin Pop
        </para>
1738 d3b4cf9f Iustin Pop
1739 6605411d Iustin Pop
1740 d3b4cf9f Iustin Pop
        <para>Example (increase the first disk for instance1 by 16GiB):
1741 eb65d354 Iustin Pop
          <screen>
1742 d3b4cf9f Iustin Pop
# gnt-instance grow-disk instance1.example.com 0 16g
1743 eb65d354 Iustin Pop
          </screen>
1744 eb65d354 Iustin Pop
        </para>
1745 eb65d354 Iustin Pop
1746 eb65d354 Iustin Pop
        <para>
1747 d3b4cf9f Iustin Pop
          Also note that disk shrinking is not supported; use
1748 eb65d354 Iustin Pop
          <command>gnt-backup export</command> and then
1749 eb65d354 Iustin Pop
          <command>gnt-backup import</command> to reduce the disk size
1750 eb65d354 Iustin Pop
          of an instance.
1751 eb65d354 Iustin Pop
        </para>
1752 eb65d354 Iustin Pop
      </refsect3>
1753 eb65d354 Iustin Pop
1754 a8083063 Iustin Pop
    </refsect2>
1755 a8083063 Iustin Pop
1756 a8083063 Iustin Pop
    <refsect2>
1757 a8083063 Iustin Pop
      <title>Recovery</title>
1758 a8083063 Iustin Pop
1759 a8083063 Iustin Pop
      <refsect3>
1760 a8083063 Iustin Pop
        <title>FAILOVER</title>
1761 a8083063 Iustin Pop
1762 a8083063 Iustin Pop
        <cmdsynopsis>
1763 a8083063 Iustin Pop
          <command>failover</command>
1764 a8083063 Iustin Pop
          <arg>-f</arg>
1765 a8083063 Iustin Pop
          <arg>--ignore-consistency</arg>
1766 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1767 80de0e3f Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1768 a8083063 Iustin Pop
        </cmdsynopsis>
1769 a8083063 Iustin Pop
1770 a8083063 Iustin Pop
        <para>
1771 80de0e3f Iustin Pop
          Failover will fail the instance over its secondary
1772 bd028152 Iustin Pop
          node. This works only for instances having a drbd disk
1773 bd028152 Iustin Pop
          template.
1774 a8083063 Iustin Pop
        </para>
1775 a8083063 Iustin Pop
1776 a8083063 Iustin Pop
        <para>
1777 a8083063 Iustin Pop
          Normally the failover will check the consistency of the
1778 80de0e3f Iustin Pop
          disks before failing over the instance. If you are trying to
1779 a8083063 Iustin Pop
          migrate instances off a dead node, this will fail. Use the
1780 a8083063 Iustin Pop
          <option>--ignore-consistency</option> option for this
1781 24a40d57 Iustin Pop
          purpose. Note that this option can be dangerous as errors in
1782 24a40d57 Iustin Pop
          shutting down the instance will be ignored, resulting in
1783 24a40d57 Iustin Pop
          possibly having the instance running on two machines in
1784 24a40d57 Iustin Pop
          parallel (on disconnected DRBD drives).
1785 a8083063 Iustin Pop
        </para>
1786 a8083063 Iustin Pop
1787 a8083063 Iustin Pop
        <para>
1788 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1789 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1790 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1791 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1792 d3b4cf9f Iustin Pop
        </para>
1793 d3b4cf9f Iustin Pop
1794 d3b4cf9f Iustin Pop
        <para>
1795 a8083063 Iustin Pop
          Example:
1796 a8083063 Iustin Pop
          <screen>
1797 a8083063 Iustin Pop
# gnt-instance failover instance1.example.com
1798 a8083063 Iustin Pop
          </screen>
1799 a8083063 Iustin Pop
        </para>
1800 a8083063 Iustin Pop
      </refsect3>
1801 a8083063 Iustin Pop
1802 d3b4cf9f Iustin Pop
      <refsect3>
1803 d3b4cf9f Iustin Pop
        <title>MIGRATE</title>
1804 d3b4cf9f Iustin Pop
1805 d3b4cf9f Iustin Pop
        <cmdsynopsis>
1806 d3b4cf9f Iustin Pop
          <command>migrate</command>
1807 d3b4cf9f Iustin Pop
          <arg>-f</arg>
1808 d3b4cf9f Iustin Pop
          <arg choice="req">--cleanup</arg>
1809 d3b4cf9f Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1810 d3b4cf9f Iustin Pop
        </cmdsynopsis>
1811 d3b4cf9f Iustin Pop
1812 d3b4cf9f Iustin Pop
        <cmdsynopsis>
1813 d3b4cf9f Iustin Pop
          <command>migrate</command>
1814 d3b4cf9f Iustin Pop
          <arg>-f</arg>
1815 d3b4cf9f Iustin Pop
          <arg>--non-live</arg>
1816 d3b4cf9f Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1817 d3b4cf9f Iustin Pop
        </cmdsynopsis>
1818 d3b4cf9f Iustin Pop
1819 d3b4cf9f Iustin Pop
        <para>
1820 d3b4cf9f Iustin Pop
          Migrate will move the instance to its secondary node without
1821 d3b4cf9f Iustin Pop
          shutdown. It only works for instances having the drbd8 disk
1822 d3b4cf9f Iustin Pop
          template type.
1823 d3b4cf9f Iustin Pop
        </para>
1824 d3b4cf9f Iustin Pop
1825 d3b4cf9f Iustin Pop
        <para>
1826 d3b4cf9f Iustin Pop
          The migration command needs a perfectly healthy instance, as
1827 d3b4cf9f Iustin Pop
          we rely on the dual-master capability of drbd8 and the disks
1828 d3b4cf9f Iustin Pop
          of the instance are not allowed to be degraded.
1829 d3b4cf9f Iustin Pop
        </para>
1830 d3b4cf9f Iustin Pop
1831 d3b4cf9f Iustin Pop
        <para>
1832 d3b4cf9f Iustin Pop
          The <option>--non-live</option> option will switch (for the
1833 d3b4cf9f Iustin Pop
          hypervisors that support it) between a "fully live"
1834 d3b4cf9f Iustin Pop
          (i.e. the interruption is as minimal as possible) migration
1835 d3b4cf9f Iustin Pop
          and one in which the instance is frozen, its state saved and
1836 d3b4cf9f Iustin Pop
          transported to the remote node, and then resumed there. This
1837 d3b4cf9f Iustin Pop
          all depends on the hypervisor support for two different
1838 d3b4cf9f Iustin Pop
          methods. In any case, it is not an error to pass this
1839 d3b4cf9f Iustin Pop
          parameter (it will just be ignored if the hypervisor doesn't
1840 d3b4cf9f Iustin Pop
          support it).
1841 d3b4cf9f Iustin Pop
        </para>
1842 d3b4cf9f Iustin Pop
1843 d3b4cf9f Iustin Pop
        <para>
1844 d3b4cf9f Iustin Pop
          If the <option>--cleanup</option> option is passed, the
1845 d3b4cf9f Iustin Pop
          operation changes from migration to attempting recovery from
1846 d3b4cf9f Iustin Pop
          a failed previous migration. In this mode, ganeti checks if
1847 d3b4cf9f Iustin Pop
          the instance runs on the correct node (and updates its
1848 d3b4cf9f Iustin Pop
          configuration if not) and ensures the instances's disks are
1849 d3b4cf9f Iustin Pop
          configured correctly. In this mode, the
1850 d3b4cf9f Iustin Pop
          <option>--non-live</option> option is ignored.
1851 d3b4cf9f Iustin Pop
        </para>
1852 d3b4cf9f Iustin Pop
1853 d3b4cf9f Iustin Pop
        <para>
1854 d3b4cf9f Iustin Pop
          The option <option>-f</option> will skip the prompting for
1855 d3b4cf9f Iustin Pop
          confirmation.
1856 d3b4cf9f Iustin Pop
        </para>
1857 d3b4cf9f Iustin Pop
        <para>
1858 d3b4cf9f Iustin Pop
          Example (and expected output):
1859 d3b4cf9f Iustin Pop
          <screen>
1860 d3b4cf9f Iustin Pop
# gnt-instance migrate instance1
1861 d3b4cf9f Iustin Pop
Migrate will happen to the instance instance1. Note that migration is
1862 d3b4cf9f Iustin Pop
**experimental** in this version. This might impact the instance if
1863 d3b4cf9f Iustin Pop
anything goes wrong. Continue?
1864 d3b4cf9f Iustin Pop
y/[n]/?: y
1865 d3b4cf9f Iustin Pop
* checking disk consistency between source and target
1866 d3b4cf9f Iustin Pop
* ensuring the target is in secondary mode
1867 d3b4cf9f Iustin Pop
* changing disks into dual-master mode
1868 d3b4cf9f Iustin Pop
 - INFO: Waiting for instance instance1 to sync disks.
1869 d3b4cf9f Iustin Pop
 - INFO: Instance instance1's disks are in sync.
1870 d3b4cf9f Iustin Pop
* migrating instance to node2.example.com
1871 d3b4cf9f Iustin Pop
* changing the instance's disks on source node to secondary
1872 d3b4cf9f Iustin Pop
 - INFO: Waiting for instance instance1 to sync disks.
1873 d3b4cf9f Iustin Pop
 - INFO: Instance instance1's disks are in sync.
1874 d3b4cf9f Iustin Pop
* changing the instance's disks to single-master
1875 d3b4cf9f Iustin Pop
#
1876 d3b4cf9f Iustin Pop
          </screen>
1877 d3b4cf9f Iustin Pop
        </para>
1878 d3b4cf9f Iustin Pop
      </refsect3>
1879 d3b4cf9f Iustin Pop
1880 a8083063 Iustin Pop
    </refsect2>
1881 a8083063 Iustin Pop
1882 cc425644 Iustin Pop
    <refsect2>
1883 cc425644 Iustin Pop
      <title>TAGS</title>
1884 cc425644 Iustin Pop
1885 cc425644 Iustin Pop
    <refsect3>
1886 cc425644 Iustin Pop
        <title>ADD-TAGS</title>
1887 cc425644 Iustin Pop
1888 cc425644 Iustin Pop
        <cmdsynopsis>
1889 cc425644 Iustin Pop
          <command>add-tags</command>
1890 810c50b7 Iustin Pop
          <arg choice="opt">--from <replaceable>file</replaceable></arg>
1891 cc425644 Iustin Pop
          <arg choice="req"><replaceable>instancename</replaceable></arg>
1892 cc425644 Iustin Pop
          <arg choice="req"
1893 cc425644 Iustin Pop
            rep="repeat"><replaceable>tag</replaceable></arg>
1894 cc425644 Iustin Pop
        </cmdsynopsis>
1895 cc425644 Iustin Pop
1896 cc425644 Iustin Pop
        <para>
1897 cc425644 Iustin Pop
          Add tags to the given instance. If any of the tags contains
1898 cc425644 Iustin Pop
          invalid characters, the entire operation will abort.
1899 cc425644 Iustin Pop
        </para>
1900 810c50b7 Iustin Pop
        <para>
1901 810c50b7 Iustin Pop
          If the <option>--from</option> option is given, the list of
1902 810c50b7 Iustin Pop
          tags will be extended with the contents of that file (each
1903 810c50b7 Iustin Pop
          line becomes a tag). In this case, there is not need to pass
1904 810c50b7 Iustin Pop
          tags on the command line (if you do, both sources will be
1905 810c50b7 Iustin Pop
          used). A file name of - will be interpreted as stdin.
1906 810c50b7 Iustin Pop
        </para>
1907 cc425644 Iustin Pop
      </refsect3>
1908 cc425644 Iustin Pop
1909 cc425644 Iustin Pop
      <refsect3>
1910 cc425644 Iustin Pop
        <title>LIST-TAGS</title>
1911 cc425644 Iustin Pop
1912 cc425644 Iustin Pop
        <cmdsynopsis>
1913 cc425644 Iustin Pop
          <command>list-tags</command>
1914 cc425644 Iustin Pop
          <arg choice="req"><replaceable>instancename</replaceable></arg>
1915 cc425644 Iustin Pop
        </cmdsynopsis>
1916 cc425644 Iustin Pop
1917 cc425644 Iustin Pop
        <para>List the tags of the given instance.</para>
1918 cc425644 Iustin Pop
      </refsect3>
1919 cc425644 Iustin Pop
1920 cc425644 Iustin Pop
      <refsect3>
1921 cc425644 Iustin Pop
        <title>REMOVE-TAGS</title>
1922 cc425644 Iustin Pop
        <cmdsynopsis>
1923 cc425644 Iustin Pop
          <command>remove-tags</command>
1924 810c50b7 Iustin Pop
          <arg choice="opt">--from <replaceable>file</replaceable></arg>
1925 cc425644 Iustin Pop
          <arg choice="req"><replaceable>instancename</replaceable></arg>
1926 cc425644 Iustin Pop
          <arg choice="req"
1927 cc425644 Iustin Pop
            rep="repeat"><replaceable>tag</replaceable></arg>
1928 cc425644 Iustin Pop
        </cmdsynopsis>
1929 cc425644 Iustin Pop
1930 cc425644 Iustin Pop
        <para>
1931 cc425644 Iustin Pop
          Remove tags from the given instance. If any of the tags are
1932 cc425644 Iustin Pop
          not existing on the node, the entire operation will abort.
1933 cc425644 Iustin Pop
        </para>
1934 810c50b7 Iustin Pop
1935 810c50b7 Iustin Pop
        <para>
1936 810c50b7 Iustin Pop
          If the <option>--from</option> option is given, the list of
1937 810c50b7 Iustin Pop
          tags will be extended with the contents of that file (each
1938 810c50b7 Iustin Pop
          line becomes a tag). In this case, there is not need to pass
1939 810c50b7 Iustin Pop
          tags on the command line (if you do, both sources will be
1940 810c50b7 Iustin Pop
          used). A file name of - will be interpreted as stdin.
1941 810c50b7 Iustin Pop
        </para>
1942 cc425644 Iustin Pop
      </refsect3>
1943 cc425644 Iustin Pop
1944 cc425644 Iustin Pop
    </refsect2>
1945 cc425644 Iustin Pop
1946 a8083063 Iustin Pop
  </refsect1>
1947 a8083063 Iustin Pop
1948 a8083063 Iustin Pop
  &footer;
1949 a8083063 Iustin Pop
1950 a8083063 Iustin Pop
</refentry>
1951 a8083063 Iustin Pop
1952 a8083063 Iustin Pop
<!-- Keep this comment at the end of the file
1953 a8083063 Iustin Pop
Local variables:
1954 a8083063 Iustin Pop
mode: sgml
1955 a8083063 Iustin Pop
sgml-omittag:t
1956 a8083063 Iustin Pop
sgml-shorttag:t
1957 a8083063 Iustin Pop
sgml-minimize-attributes:nil
1958 a8083063 Iustin Pop
sgml-always-quote-attributes:t
1959 a8083063 Iustin Pop
sgml-indent-step:2
1960 a8083063 Iustin Pop
sgml-indent-data:t
1961 a8083063 Iustin Pop
sgml-parent-document:nil
1962 a8083063 Iustin Pop
sgml-default-dtd-file:nil
1963 a8083063 Iustin Pop
sgml-exposed-tags:nil
1964 a8083063 Iustin Pop
sgml-local-catalogs:nil
1965 a8083063 Iustin Pop
sgml-local-ecat-files:nil
1966 a8083063 Iustin Pop
End:
1967 a8083063 Iustin Pop
-->