Statistics
| Branch: | Tag: | Revision:

root / man / gnt-instance.sgml @ a53a1b18

History | View | Annotate | Download (41 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 a53a1b18 Michael Hanselmann
  <!ENTITY dhdate      "<date>May 29, 2008</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 a8083063 Iustin Pop
      <holder>Google Inc.</holder>
25 a8083063 Iustin Pop
    </copyright>
26 a8083063 Iustin Pop
    &dhdate;
27 a8083063 Iustin Pop
  </refentryinfo>
28 a8083063 Iustin Pop
  <refmeta>
29 a8083063 Iustin Pop
    &dhucpackage;
30 a8083063 Iustin Pop
31 a8083063 Iustin Pop
    &dhsection;
32 a8083063 Iustin Pop
    <refmiscinfo>ganeti 1.2</refmiscinfo>
33 a8083063 Iustin Pop
  </refmeta>
34 a8083063 Iustin Pop
  <refnamediv>
35 a8083063 Iustin Pop
    <refname>&dhpackage;</refname>
36 a8083063 Iustin Pop
37 a8083063 Iustin Pop
    <refpurpose>ganeti instance administration</refpurpose>
38 a8083063 Iustin Pop
  </refnamediv>
39 a8083063 Iustin Pop
  <refsynopsisdiv>
40 a8083063 Iustin Pop
    <cmdsynopsis>
41 a8083063 Iustin Pop
      <command>&dhpackage; </command>
42 a8083063 Iustin Pop
43 a8083063 Iustin Pop
      <arg choice="req">command</arg>
44 a8083063 Iustin Pop
      <arg>arguments...</arg>
45 a8083063 Iustin Pop
    </cmdsynopsis>
46 a8083063 Iustin Pop
  </refsynopsisdiv>
47 a8083063 Iustin Pop
  <refsect1>
48 a8083063 Iustin Pop
    <title>DESCRIPTION</title>
49 a8083063 Iustin Pop
50 a8083063 Iustin Pop
    <para>
51 a8083063 Iustin Pop
      The <command>&dhpackage;</command> is used for instance
52 a8083063 Iustin Pop
      administration in the ganeti system.
53 a8083063 Iustin Pop
    </para>
54 a8083063 Iustin Pop
55 a8083063 Iustin Pop
  </refsect1>
56 a8083063 Iustin Pop
  <refsect1>
57 a8083063 Iustin Pop
    <title>COMMANDS</title>
58 a8083063 Iustin Pop
59 a8083063 Iustin Pop
    <refsect2>
60 a8083063 Iustin Pop
      <title>Creation/removal/querying</title>
61 a8083063 Iustin Pop
62 a8083063 Iustin Pop
      <refsect3>
63 a8083063 Iustin Pop
        <title>ADD</title>
64 a8083063 Iustin Pop
        <cmdsynopsis>
65 a8083063 Iustin Pop
          <command>add</command>
66 a8083063 Iustin Pop
          <arg>-s <replaceable>disksize</replaceable></arg>
67 b9ac33e9 Iustin Pop
          <arg>--swap-size <replaceable>disksize</replaceable></arg>
68 a8083063 Iustin Pop
          <arg>-m <replaceable>memsize</replaceable></arg>
69 b9ac33e9 Iustin Pop
          <sbr>
70 bdb7d4e8 Michael Hanselmann
71 a8083063 Iustin Pop
          <arg>-b <replaceable>bridge</replaceable></arg>
72 f3a55c90 Alexander Schreiber
          <arg>--mac <replaceable>MAC-address</replaceable></arg>
73 bdb7d4e8 Michael Hanselmann
          <sbr>
74 bdb7d4e8 Michael Hanselmann
75 25c5878d Alexander Schreiber
          <arg>--hvm-boot-order <replaceable>boot-order</replaceable></arg>
76 ca9c49d5 Iustin Pop
          <arg>--hvm-acpi <replaceable>ACPI-support</replaceable></arg>
77 783583e9 Michael Hanselmann
          <sbr>
78 783583e9 Michael Hanselmann
79 ca9c49d5 Iustin Pop
          <arg>--hvm-pae <replaceable>PAE-support</replaceable></arg>
80 783583e9 Michael Hanselmann
          <sbr>
81 783583e9 Michael Hanselmann
82 ca9c49d5 Iustin Pop
          <arg>--hvm-cdrom-image-path
83 ca9c49d5 Iustin Pop
            <replaceable>cdrom-image-path</replaceable></arg>
84 783583e9 Michael Hanselmann
          <sbr>
85 783583e9 Michael Hanselmann
86 ca9c49d5 Iustin Pop
          <arg>--vnc-bind-address
87 ca9c49d5 Iustin Pop
            <replaceable>vnc-bind-address</replaceable></arg>
88 a8083063 Iustin Pop
          <sbr>
89 bdb7d4e8 Michael Hanselmann
90 bdb7d4e8 Michael Hanselmann
          <arg>--kernel<group choice="req">
91 00f98619 Iustin Pop
              <arg>default</arg>
92 00f98619 Iustin Pop
              <arg><replaceable>kernel_path</replaceable></arg>
93 00f98619 Iustin Pop
            </group></arg>
94 00f98619 Iustin Pop
          <sbr>
95 bdb7d4e8 Michael Hanselmann
96 bdb7d4e8 Michael Hanselmann
          <arg>--initrd<group choice="req">
97 00f98619 Iustin Pop
              <arg>default</arg>
98 00f98619 Iustin Pop
              <arg>none</arg>
99 00f98619 Iustin Pop
              <arg><replaceable>initrd_path</replaceable></arg>
100 bdb7d4e8 Michael Hanselmann
            </group></arg>
101 00f98619 Iustin Pop
          <sbr>
102 bdb7d4e8 Michael Hanselmann
103 495beb42 Manuel Franceschini
          <arg>--file-storage-dir <replaceable>dir_path</replaceable></arg>
104 bdb7d4e8 Michael Hanselmann
          <arg>--file-driver<group choice="req">
105 495beb42 Manuel Franceschini
              <arg>loop</arg>
106 495beb42 Manuel Franceschini
              <arg>blktap</arg>
107 495beb42 Manuel Franceschini
            </group></arg>
108 495beb42 Manuel Franceschini
          <sbr>
109 bdb7d4e8 Michael Hanselmann
110 bdb7d4e8 Michael Hanselmann
          <arg choice="req">-t<group choice="req">
111 a8083063 Iustin Pop
              <arg>diskless</arg>
112 495beb42 Manuel Franceschini
              <arg>file</arg>
113 a8083063 Iustin Pop
              <arg>plain</arg>
114 f69dab6d Iustin Pop
              <arg>drbd</arg>
115 bdb7d4e8 Michael Hanselmann
            </group></arg>
116 b9ac33e9 Iustin Pop
          <sbr>
117 bdb7d4e8 Michael Hanselmann
118 a53a1b18 Michael Hanselmann
          <group choice="req">
119 a53a1b18 Michael Hanselmann
            <arg>-n <replaceable>node<optional>:secondary-node</optional></replaceable></arg>
120 a53a1b18 Michael Hanselmann
            <arg>--iallocator <replaceable>name</replaceable></arg>
121 a53a1b18 Michael Hanselmann
          </group>
122 a53a1b18 Michael Hanselmann
          <sbr>
123 a53a1b18 Michael Hanselmann
124 bdb7d4e8 Michael Hanselmann
          <arg choice="req">-o <replaceable>os-type</replaceable></arg>
125 bdb7d4e8 Michael Hanselmann
          <sbr>
126 bdb7d4e8 Michael Hanselmann
127 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
128 a8083063 Iustin Pop
        </cmdsynopsis>
129 00f98619 Iustin Pop
130 a8083063 Iustin Pop
        <para>
131 a8083063 Iustin Pop
          Creates a new instance on the specified
132 a8083063 Iustin Pop
          host. <replaceable>instance</replaceable> must be in DNS and
133 a8083063 Iustin Pop
          resolve to a IP in the same network as the nodes in the
134 a8083063 Iustin Pop
          cluster.
135 a8083063 Iustin Pop
        </para>
136 a8083063 Iustin Pop
137 a8083063 Iustin Pop
        <para>
138 a8083063 Iustin Pop
          The <option>-s</option> option specifies the disk size for
139 b9ac33e9 Iustin Pop
          the instance, in mebibytes (defaults to
140 b9ac33e9 Iustin Pop
          <constant>20480MiB</constant> =
141 b9ac33e9 Iustin Pop
          <constant>20GiB</constant>). You can also use one of the
142 b9ac33e9 Iustin Pop
          suffixes <literal>m</literal>, <literal>g</literal> or
143 b9ac33e9 Iustin Pop
          <literal>t</literal> to specificy the exact the units used;
144 b9ac33e9 Iustin Pop
          these suffixes map to mebibytes, gibibytes and tebibytes.
145 a8083063 Iustin Pop
        </para>
146 a8083063 Iustin Pop
147 a8083063 Iustin Pop
        <para>
148 b9ac33e9 Iustin Pop
          The <option>--swap-size</option> option specifies the swap
149 b9ac33e9 Iustin Pop
          disk size (in mebibytes) for the instance (the one presented
150 b9ac33e9 Iustin Pop
          as <filename class="devicefile">/dev/sdb</filename>). The
151 b9ac33e9 Iustin Pop
          default is <constant>4096MiB</constant>. As for the disk
152 b9ac33e9 Iustin Pop
          size, you can specify other suffixes.
153 a8083063 Iustin Pop
        </para>
154 a8083063 Iustin Pop
155 a8083063 Iustin Pop
        <para>
156 a8083063 Iustin Pop
          The <option>-m</option> option specifies the memory size for
157 b9ac33e9 Iustin Pop
          the instance, in mebibytes (defaults to 128 MiB). Again, you
158 b9ac33e9 Iustin Pop
          can use other suffixes (e.g. <userinput>2g</userinput>).
159 b9ac33e9 Iustin Pop
        </para>
160 b9ac33e9 Iustin Pop
161 b9ac33e9 Iustin Pop
        <para>
162 b9ac33e9 Iustin Pop
          The <option>-o</option> options specifies the operating
163 b9ac33e9 Iustin Pop
          system to be installed. The available operating systems can
164 b9ac33e9 Iustin Pop
          be listed with <command>gnt-os list</command>.
165 a8083063 Iustin Pop
        </para>
166 a8083063 Iustin Pop
167 a8083063 Iustin Pop
        <para>
168 a8083063 Iustin Pop
          The <option>-b</option> option specifies the bridge to which the
169 a8083063 Iustin Pop
          instance will be connected. (defaults to the cluster-wide default
170 7e84d392 Michael Hanselmann
          bridge specified at cluster initialization time).
171 a8083063 Iustin Pop
        </para>
172 a8083063 Iustin Pop
173 a8083063 Iustin Pop
        <para>
174 f3a55c90 Alexander Schreiber
          The <option>--mac</option> option specifies the MAC address
175 f3a55c90 Alexander Schreiber
          of the ethernet interface for the instance. If this option
176 f3a55c90 Alexander Schreiber
          is not specified, a new MAC address is generated randomly with
177 f3a55c90 Alexander Schreiber
          the configured MAC prefix. The randomly generated MAC
178 f3a55c90 Alexander Schreiber
          address is guaranteed to be unique among the instances of
179 f3a55c90 Alexander Schreiber
          this cluster.
180 f3a55c90 Alexander Schreiber
        </para>
181 f3a55c90 Alexander Schreiber
182 f3a55c90 Alexander Schreiber
        <para>
183 25c5878d Alexander Schreiber
          The <option>--hvm-boot-order</option> option specifies the
184 25c5878d Alexander Schreiber
          boot device order for Xen HVM instances. The boot order is a
185 25c5878d Alexander Schreiber
          string of letters listing the boot devices, with valid
186 25c5878d Alexander Schreiber
          device letters being:
187 25c5878d Alexander Schreiber
        </para>
188 25c5878d Alexander Schreiber
189 25c5878d Alexander Schreiber
        <para>
190 25c5878d Alexander Schreiber
          <variablelist>
191 25c5878d Alexander Schreiber
            <varlistentry>
192 25c5878d Alexander Schreiber
              <term>a</term>
193 25c5878d Alexander Schreiber
              <listitem>
194 25c5878d Alexander Schreiber
                <para>
195 25c5878d Alexander Schreiber
                  floppy drive
196 25c5878d Alexander Schreiber
                </para>
197 25c5878d Alexander Schreiber
              </listitem>
198 25c5878d Alexander Schreiber
            </varlistentry>
199 25c5878d Alexander Schreiber
            <varlistentry>
200 25c5878d Alexander Schreiber
              <term>c</term>
201 25c5878d Alexander Schreiber
              <listitem>
202 25c5878d Alexander Schreiber
                <para>
203 25c5878d Alexander Schreiber
                  hard disk
204 25c5878d Alexander Schreiber
                </para>
205 25c5878d Alexander Schreiber
              </listitem>
206 25c5878d Alexander Schreiber
            </varlistentry>
207 25c5878d Alexander Schreiber
            <varlistentry>
208 25c5878d Alexander Schreiber
              <term>d</term>
209 25c5878d Alexander Schreiber
              <listitem>
210 25c5878d Alexander Schreiber
                <para>
211 25c5878d Alexander Schreiber
                  CDROM drive
212 25c5878d Alexander Schreiber
                </para>
213 25c5878d Alexander Schreiber
              </listitem>
214 25c5878d Alexander Schreiber
            </varlistentry>
215 25c5878d Alexander Schreiber
            <varlistentry>
216 25c5878d Alexander Schreiber
              <term>n</term>
217 25c5878d Alexander Schreiber
              <listitem>
218 25c5878d Alexander Schreiber
                <para>
219 25c5878d Alexander Schreiber
                  network boot (PXE)
220 25c5878d Alexander Schreiber
                </para>
221 25c5878d Alexander Schreiber
              </listitem>
222 25c5878d Alexander Schreiber
            </varlistentry>
223 25c5878d Alexander Schreiber
          </variablelist>
224 25c5878d Alexander Schreiber
        </para>
225 25c5878d Alexander Schreiber
226 25c5878d Alexander Schreiber
        <para>
227 25c5878d Alexander Schreiber
          The option is only relevant for Xen HVM instances and
228 25c5878d Alexander Schreiber
          ignored by all other instances types.
229 25c5878d Alexander Schreiber
        </para>
230 25c5878d Alexander Schreiber
231 25c5878d Alexander Schreiber
        <para>
232 ca9c49d5 Iustin Pop
          The <option>--hvm-acpi</option> option specifies if Xen
233 ca9c49d5 Iustin Pop
          should enable ACPI support for this HVM instance. Valid
234 ca9c49d5 Iustin Pop
          values are true or false.
235 ca9c49d5 Iustin Pop
        </para>
236 ca9c49d5 Iustin Pop
237 ca9c49d5 Iustin Pop
        <para>
238 ca9c49d5 Iustin Pop
          The <option>--hvm-pae</option> option specifies if Xen
239 ca9c49d5 Iustin Pop
          should enabled PAE support for this HVM instance. Valid
240 ca9c49d5 Iustin Pop
          values are true or false.
241 ca9c49d5 Iustin Pop
        </para>
242 ca9c49d5 Iustin Pop
243 ca9c49d5 Iustin Pop
        <para>
244 a53a1b18 Michael Hanselmann
          The <option>--hvm-cdrom-image-path</option> option specifies the
245 ca9c49d5 Iustin Pop
          path to the file xen uses to emulate a virtual CDROM drive
246 ca9c49d5 Iustin Pop
          for this HVM instance. Valid values are either an
247 ca9c49d5 Iustin Pop
          absolute path to an existing file or None, which disables
248 ca9c49d5 Iustin Pop
          virtual CDROM support for this instance.
249 ca9c49d5 Iustin Pop
        </para>
250 ca9c49d5 Iustin Pop
251 ca9c49d5 Iustin Pop
        <para>
252 a53a1b18 Michael Hanselmann
          The <option>--vnc-bind-address</option> option specifies the
253 ca9c49d5 Iustin Pop
          address that the VNC listener for this instance should bind
254 ca9c49d5 Iustin Pop
          to. Valid values are IPv4 addresses. Use the address 0.0.0.0
255 ca9c49d5 Iustin Pop
          to bind to all available interfaces.
256 ca9c49d5 Iustin Pop
        </para>
257 ca9c49d5 Iustin Pop
258 ca9c49d5 Iustin Pop
        <para>
259 a53a1b18 Michael Hanselmann
          The <option>--iallocator</option> option specifies the instance
260 a53a1b18 Michael Hanselmann
          allocator plugin to use. If you pass in this option the allocator
261 a53a1b18 Michael Hanselmann
          will select nodes for this instance automatically, so you don't need
262 a53a1b18 Michael Hanselmann
          to pass them with the <option>-n</option> option. For more
263 a53a1b18 Michael Hanselmann
          information please refer to the instance allocator documentation.
264 a53a1b18 Michael Hanselmann
        </para>
265 a53a1b18 Michael Hanselmann
266 a53a1b18 Michael Hanselmann
        <para>
267 a53a1b18 Michael Hanselmann
          The <option>--kernel</option> option allows the instance to
268 00f98619 Iustin Pop
          use a custom kernel (if a filename is passed) or to use the
269 00f98619 Iustin Pop
          default kernel (<filename>@CUSTOM_XEN_KERNEL@</filename>), if the
270 00f98619 Iustin Pop
          string <constant>default</constant> is passed.
271 00f98619 Iustin Pop
        </para>
272 00f98619 Iustin Pop
273 00f98619 Iustin Pop
        <para>
274 00f98619 Iustin Pop
          The <option>--initrd</option> option is similar: it allows
275 00f98619 Iustin Pop
          the instance to use a custom initrd (if a filename is
276 00f98619 Iustin Pop
          passed) or to use the default initrd
277 00f98619 Iustin Pop
          (<filename>@CUSTOM_XEN_INITRD@</filename>), if the string
278 00f98619 Iustin Pop
          <constant>default</constant> is passed, or to disable the
279 00f98619 Iustin Pop
          use of an initrd, if the string <constant>none</constant> is
280 00f98619 Iustin Pop
          passed. Note that in the case the instance is set to use the
281 00f98619 Iustin Pop
          default initrd and it doesn't exist, it will be silently
282 00f98619 Iustin Pop
          ignored; if the instance is set to use a custom initrd and
283 00f98619 Iustin Pop
          it doesn't exist, this will be treated as an error and will
284 00f98619 Iustin Pop
          prevent the startup of the instance.
285 00f98619 Iustin Pop
        </para>
286 00f98619 Iustin Pop
287 00f98619 Iustin Pop
        <para>
288 a8083063 Iustin Pop
          The <option>-t</option> options specifies the disk layout type for
289 a8083063 Iustin Pop
          the instance. The available choices are:
290 a8083063 Iustin Pop
          <variablelist>
291 a8083063 Iustin Pop
            <varlistentry>
292 a8083063 Iustin Pop
              <term>diskless</term>
293 a8083063 Iustin Pop
              <listitem>
294 a8083063 Iustin Pop
                <para>
295 a8083063 Iustin Pop
                  This creates an instance with no disks. Its useful for
296 a8083063 Iustin Pop
                  testing only (or other special cases).
297 a8083063 Iustin Pop
                </para>
298 a8083063 Iustin Pop
              </listitem>
299 a8083063 Iustin Pop
            </varlistentry>
300 a8083063 Iustin Pop
            <varlistentry>
301 495beb42 Manuel Franceschini
              <term>file</term>
302 495beb42 Manuel Franceschini
              <listitem>
303 495beb42 Manuel Franceschini
                <para>Disk devices will be regular files.</para>
304 495beb42 Manuel Franceschini
              </listitem>
305 495beb42 Manuel Franceschini
            </varlistentry>
306 495beb42 Manuel Franceschini
            <varlistentry>
307 a8083063 Iustin Pop
              <term>plain</term>
308 a8083063 Iustin Pop
              <listitem>
309 a8083063 Iustin Pop
                <para>Disk devices will be logical volumes.</para>
310 a8083063 Iustin Pop
              </listitem>
311 a8083063 Iustin Pop
            </varlistentry>
312 a8083063 Iustin Pop
            <varlistentry>
313 f69dab6d Iustin Pop
              <term>drbd</term>
314 f69dab6d Iustin Pop
              <listitem>
315 f69dab6d Iustin Pop
                <para>
316 f69dab6d Iustin Pop
                  Disk devices will be drbd (version 8.x) on top of
317 f9193417 Iustin Pop
                  lvm volumes.
318 a8083063 Iustin Pop
                </para>
319 a8083063 Iustin Pop
              </listitem>
320 a8083063 Iustin Pop
            </varlistentry>
321 a8083063 Iustin Pop
          </variablelist>
322 a8083063 Iustin Pop
        </para>
323 a8083063 Iustin Pop
324 a8083063 Iustin Pop
        <para>
325 4677a909 Michael Hanselmann
          The optional second value of the <option>--node</option> is used for
326 bd028152 Iustin Pop
          the drbd template type and specifies the remote node.
327 a8083063 Iustin Pop
        </para>
328 a8083063 Iustin Pop
329 a8083063 Iustin Pop
        <para>
330 a8083063 Iustin Pop
          If you do not want gnt-instance to wait for the disk mirror
331 a8083063 Iustin Pop
          to be synced, use the <option>--no-wait-for-sync</option>
332 a8083063 Iustin Pop
          option.
333 a8083063 Iustin Pop
        </para>
334 a8083063 Iustin Pop
335 a8083063 Iustin Pop
        <para>
336 495beb42 Manuel Franceschini
          The <option>--file-storage-dir</option> specifies the relative path
337 495beb42 Manuel Franceschini
          under the cluster-wide file storage directory to store file-based
338 495beb42 Manuel Franceschini
          disks. It is useful for having different subdirectories for
339 495beb42 Manuel Franceschini
          different instances. The full path of the directory where the disk
340 495beb42 Manuel Franceschini
          files are stored will consist of cluster-wide file storage directory
341 495beb42 Manuel Franceschini
          + optional subdirectory + instance name. Example:
342 495beb42 Manuel Franceschini
          /srv/ganeti/file-storage/mysubdir/instance1.example.com. This option
343 495beb42 Manuel Franceschini
          is only relevant for instances using the file storage backend.
344 495beb42 Manuel Franceschini
        </para>
345 495beb42 Manuel Franceschini
346 495beb42 Manuel Franceschini
        <para>
347 495beb42 Manuel Franceschini
          The <option>--file-driver</option> specifies the driver to use for
348 495beb42 Manuel Franceschini
          file-based disks. Note that currently these drivers work with the
349 495beb42 Manuel Franceschini
          xen hypervisor only. This option is only relevant for instances using
350 495beb42 Manuel Franceschini
          the file storage backend. The available choices are:
351 495beb42 Manuel Franceschini
          <variablelist>
352 495beb42 Manuel Franceschini
            <varlistentry>
353 495beb42 Manuel Franceschini
              <term>loop</term>
354 495beb42 Manuel Franceschini
              <listitem>
355 495beb42 Manuel Franceschini
                <para>Kernel loopback driver.</para>
356 495beb42 Manuel Franceschini
              </listitem>
357 495beb42 Manuel Franceschini
            </varlistentry>
358 495beb42 Manuel Franceschini
            <varlistentry>
359 495beb42 Manuel Franceschini
              <term>blktap</term>
360 495beb42 Manuel Franceschini
              <listitem>
361 495beb42 Manuel Franceschini
                <para>blktap driver.</para>
362 495beb42 Manuel Franceschini
              </listitem>
363 495beb42 Manuel Franceschini
            </varlistentry>
364 495beb42 Manuel Franceschini
          <variablelist>
365 495beb42 Manuel Franceschini
        </para>
366 495beb42 Manuel Franceschini
367 495beb42 Manuel Franceschini
        <para>
368 495beb42 Manuel Franceschini
          The loop driver uses loopback devices to access the filesystem
369 495beb42 Manuel Franceschini
          within the file. However, running I/O intensive applications
370 495beb42 Manuel Franceschini
          in your instance using the loop driver might result in slowdowns.
371 495beb42 Manuel Franceschini
          Furthermore, if you use the loopback driver consider increasing
372 495beb42 Manuel Franceschini
          the maximum amount of loopback devices (on most systems it's 8)
373 495beb42 Manuel Franceschini
          using the max_loop param.
374 495beb42 Manuel Franceschini
        </para>
375 495beb42 Manuel Franceschini
376 495beb42 Manuel Franceschini
        <para>
377 495beb42 Manuel Franceschini
          In order to be able to use the blktap driver you should check
378 495beb42 Manuel Franceschini
          if the 'blktapctrl' user space disk agent is running (usually
379 495beb42 Manuel Franceschini
          automatically started via xend). This user-level disk I/O
380 495beb42 Manuel Franceschini
          interface has the advantage of better performance. Especially
381 495beb42 Manuel Franceschini
          if you use a network file system (e.g. NFS) to store your instances
382 495beb42 Manuel Franceschini
          this is the recommended choice.
383 bd028152 Iustin Pop
        </para>
384 495beb42 Manuel Franceschini
385 495beb42 Manuel Franceschini
        <para>
386 a8083063 Iustin Pop
          Example:
387 a8083063 Iustin Pop
          <screen>
388 495beb42 Manuel Franceschini
# gnt-instance add -t file -s 30g -m 512 -o debian-etch \
389 495beb42 Manuel Franceschini
  -n node1.example.com --file-storage-dir=mysubdir instance1.example.com
390 b9ac33e9 Iustin Pop
# gnt-instance add -t plain -s 30g -m 512 -o debian-etch \
391 b9ac33e9 Iustin Pop
  -n node1.example.com instance1.example.com
392 f9193417 Iustin Pop
# gnt-instance add -t drbd -s 30g -m 512 -o debian-etch \
393 4677a909 Michael Hanselmann
  -n node1.example.com:node2.example.com instance2.example.com
394 a8083063 Iustin Pop
          </screen>
395 a8083063 Iustin Pop
        </para>
396 a8083063 Iustin Pop
      </refsect3>
397 a8083063 Iustin Pop
398 a8083063 Iustin Pop
      <refsect3>
399 a8083063 Iustin Pop
        <title>REMOVE</title>
400 a8083063 Iustin Pop
401 a8083063 Iustin Pop
        <cmdsynopsis>
402 a8083063 Iustin Pop
          <command>remove</command>
403 1d67656e Iustin Pop
          <arg>--ignore-failures</arg>
404 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
405 a8083063 Iustin Pop
        </cmdsynopsis>
406 a8083063 Iustin Pop
407 a8083063 Iustin Pop
        <para>
408 a8083063 Iustin Pop
          Remove an instance. This will remove all data from the
409 a8083063 Iustin Pop
          instance and there is <emphasis>no way back</emphasis>. If
410 a8083063 Iustin Pop
          you are not sure if you use an instance again, use
411 a8083063 Iustin Pop
          <command>shutdown</command> first and leave it in the
412 a8083063 Iustin Pop
          shutdown state for a while.
413 1d67656e Iustin Pop
414 1d67656e Iustin Pop
        </para>
415 1d67656e Iustin Pop
416 1d67656e Iustin Pop
        <para>
417 1d67656e Iustin Pop
          The <option>--ignore-failures</option> option will cause the
418 1d67656e Iustin Pop
          removal to proceed even in the presence of errors during the
419 1d67656e Iustin Pop
          removal of the instance (e.g. during the shutdown or the
420 1d67656e Iustin Pop
          disk removal). If this option is not given, the command will
421 1d67656e Iustin Pop
          stop at the first error.
422 a8083063 Iustin Pop
        </para>
423 a8083063 Iustin Pop
424 a8083063 Iustin Pop
        <para>
425 a8083063 Iustin Pop
          Example:
426 a8083063 Iustin Pop
          <screen>
427 a8083063 Iustin Pop
# gnt-instance remove instance1.example.com
428 a8083063 Iustin Pop
          </screen>
429 a8083063 Iustin Pop
        </para>
430 a8083063 Iustin Pop
      </refsect3>
431 a8083063 Iustin Pop
432 a8083063 Iustin Pop
      <refsect3>
433 a8083063 Iustin Pop
        <title>LIST</title>
434 a8083063 Iustin Pop
435 a8083063 Iustin Pop
        <cmdsynopsis>
436 a8083063 Iustin Pop
          <command>list</command>
437 a8083063 Iustin Pop
          <arg>--no-headers</arg>
438 a8083063 Iustin Pop
          <arg>--separator=<replaceable>SEPARATOR</replaceable></arg>
439 48c4dfa8 Iustin Pop
          <arg>-o <replaceable>[+]FIELD,...</replaceable></arg>
440 a8083063 Iustin Pop
        </cmdsynopsis>
441 a8083063 Iustin Pop
442 a8083063 Iustin Pop
        <para>
443 a8083063 Iustin Pop
          Shows the currently configured instances with memory usage,
444 a8083063 Iustin Pop
          disk usage, the node they are running on, and the CPU time,
445 a8083063 Iustin Pop
          counted in seconds, used by each instance since its latest
446 a8083063 Iustin Pop
          restart.
447 a8083063 Iustin Pop
        </para>
448 a8083063 Iustin Pop
449 a8083063 Iustin Pop
        <para>
450 a8083063 Iustin Pop
          The <option>--no-headers</option> option will skip the
451 a8083063 Iustin Pop
          initial header line. The <option>--separator</option> option
452 a8083063 Iustin Pop
          takes an argument which denotes what will be used between
453 a8083063 Iustin Pop
          the output fields. Both these options are to help scripting.
454 a8083063 Iustin Pop
        </para>
455 a8083063 Iustin Pop
456 a8083063 Iustin Pop
        <para>
457 a8083063 Iustin Pop
          The <option>-o</option> option takes a comma-separated list
458 a8083063 Iustin Pop
          of output fields. The available fields and their meaning
459 a8083063 Iustin Pop
          are:
460 a8083063 Iustin Pop
          <variablelist>
461 a8083063 Iustin Pop
            <varlistentry>
462 a8083063 Iustin Pop
              <term>name</term>
463 a8083063 Iustin Pop
              <listitem>
464 a8083063 Iustin Pop
                <simpara>the instance name</simpara>
465 a8083063 Iustin Pop
              </listitem>
466 a8083063 Iustin Pop
            </varlistentry>
467 a8083063 Iustin Pop
            <varlistentry>
468 a8083063 Iustin Pop
              <term>os</term>
469 a8083063 Iustin Pop
              <listitem>
470 a8083063 Iustin Pop
                <simpara>the OS of the instance</simpara>
471 a8083063 Iustin Pop
              </listitem>
472 a8083063 Iustin Pop
            </varlistentry>
473 a8083063 Iustin Pop
            <varlistentry>
474 a8083063 Iustin Pop
              <term>pnode</term>
475 a8083063 Iustin Pop
              <listitem>
476 a8083063 Iustin Pop
                <simpara>the primary node of the instance</simpara>
477 a8083063 Iustin Pop
              </listitem>
478 a8083063 Iustin Pop
            </varlistentry>
479 a8083063 Iustin Pop
            <varlistentry>
480 a8083063 Iustin Pop
              <term>snodes</term>
481 a8083063 Iustin Pop
              <listitem>
482 4677a909 Michael Hanselmann
                <simpara>comma-separated list of secondary nodes for the
483 a8083063 Iustin Pop
                  instance; usually this will be just one node</simpara>
484 a8083063 Iustin Pop
              </listitem>
485 a8083063 Iustin Pop
            </varlistentry>
486 a8083063 Iustin Pop
            <varlistentry>
487 a8083063 Iustin Pop
              <term>admin_state</term>
488 a8083063 Iustin Pop
              <listitem>
489 a8083063 Iustin Pop
                <simpara>the desired state of the instance (either "yes"
490 a8083063 Iustin Pop
                  or "no" denoting the instance should run or
491 a8083063 Iustin Pop
                  not)</simpara>
492 a8083063 Iustin Pop
              </listitem>
493 a8083063 Iustin Pop
            </varlistentry>
494 a8083063 Iustin Pop
            <varlistentry>
495 a8083063 Iustin Pop
              <term>admin_ram</term>
496 a8083063 Iustin Pop
              <listitem>
497 a8083063 Iustin Pop
                <simpara>the desired memory for the instance</simpara>
498 a8083063 Iustin Pop
              </listitem>
499 a8083063 Iustin Pop
            </varlistentry>
500 a8083063 Iustin Pop
            <varlistentry>
501 a8083063 Iustin Pop
              <term>disk_template</term>
502 a8083063 Iustin Pop
              <listitem>
503 a8083063 Iustin Pop
                <simpara>the disk template of the instance</simpara>
504 a8083063 Iustin Pop
              </listitem>
505 a8083063 Iustin Pop
            </varlistentry>
506 a8083063 Iustin Pop
            <varlistentry>
507 a8083063 Iustin Pop
              <term>oper_state</term>
508 a8083063 Iustin Pop
              <listitem>
509 d8052456 Iustin Pop
                <simpara>the actual state of the instance; can be
510 d8052456 Iustin Pop
                one of the values "running", "stopped", "(node
511 d8052456 Iustin Pop
                down)"</simpara>
512 d8052456 Iustin Pop
              </listitem>
513 d8052456 Iustin Pop
            </varlistentry>
514 d8052456 Iustin Pop
            <varlistentry>
515 d8052456 Iustin Pop
              <term>status</term>
516 d8052456 Iustin Pop
              <listitem>
517 d8052456 Iustin Pop
                <simpara>combined form of admin_state and oper_stat;
518 d8052456 Iustin Pop
                this can be one of:
519 d8052456 Iustin Pop
                <computeroutput>ERROR_nodedown</computeroutput> if the
520 d8052456 Iustin Pop
                node of the instance is down,
521 d8052456 Iustin Pop
                <computeroutput>ERROR_down</computeroutput> if the
522 d8052456 Iustin Pop
                instance should run but is down,
523 d8052456 Iustin Pop
                <computeroutput>ERROR_up</computeroutput> if the
524 d8052456 Iustin Pop
                instance should be stopped but is actually running,
525 d8052456 Iustin Pop
                <computeroutput>ADMIN_down</computeroutput> if the
526 d8052456 Iustin Pop
                instance has been stopped (and is stopped) and
527 d8052456 Iustin Pop
                <computeroutput>running</computeroutput> if the
528 d8052456 Iustin Pop
                instance is set to be running (and is
529 d8052456 Iustin Pop
                running)</simpara>
530 a8083063 Iustin Pop
              </listitem>
531 a8083063 Iustin Pop
            </varlistentry>
532 a8083063 Iustin Pop
            <varlistentry>
533 a8083063 Iustin Pop
              <term>oper_ram</term>
534 a8083063 Iustin Pop
              <listitem>
535 a8083063 Iustin Pop
                <simpara>the actual memory usage of the instance as seen
536 a8083063 Iustin Pop
                  by the hypervisor</simpara>
537 a8083063 Iustin Pop
              </listitem>
538 a8083063 Iustin Pop
            </varlistentry>
539 a8083063 Iustin Pop
            <varlistentry>
540 a8083063 Iustin Pop
              <term>ip</term>
541 a8083063 Iustin Pop
              <listitem>
542 a8083063 Iustin Pop
                <simpara>the ip address ganeti recognizes as associated with
543 a8083063 Iustin Pop
                the instance interface</simpara>
544 a8083063 Iustin Pop
              </listitem>
545 a8083063 Iustin Pop
            </varlistentry>
546 a8083063 Iustin Pop
            <varlistentry>
547 a8083063 Iustin Pop
              <term>mac</term>
548 a8083063 Iustin Pop
              <listitem>
549 a8083063 Iustin Pop
                <simpara>the instance interface MAC address</simpara>
550 a8083063 Iustin Pop
              </listitem>
551 a8083063 Iustin Pop
            </varlistentry>
552 a8083063 Iustin Pop
            <varlistentry>
553 a8083063 Iustin Pop
              <term>bridge</term>
554 a8083063 Iustin Pop
              <listitem>
555 a8083063 Iustin Pop
                <simpara>bridge the instance is connected to
556 a8083063 Iustin Pop
                </simpara>
557 a8083063 Iustin Pop
              </listitem>
558 a8083063 Iustin Pop
            </varlistentry>
559 d8a4b51d Iustin Pop
            <varlistentry>
560 d8a4b51d Iustin Pop
              <term>sda_size</term>
561 d8a4b51d Iustin Pop
              <listitem>
562 d8a4b51d Iustin Pop
                <simpara>the size of the instance's first disk</simpara>
563 d8a4b51d Iustin Pop
              </listitem>
564 d8a4b51d Iustin Pop
            </varlistentry>
565 d8a4b51d Iustin Pop
            <varlistentry>
566 d8a4b51d Iustin Pop
              <term>sdb_size</term>
567 d8a4b51d Iustin Pop
              <listitem>
568 d8a4b51d Iustin Pop
                <simpara>the size of the instance's second disk</simpara>
569 d8a4b51d Iustin Pop
              </listitem>
570 d8a4b51d Iustin Pop
            </varlistentry>
571 d8a4b51d Iustin Pop
            <varlistentry>
572 d8a4b51d Iustin Pop
              <term>vcpus</term>
573 d8a4b51d Iustin Pop
              <listitem>
574 d8a4b51d Iustin Pop
                <simpara>the number of VCPUs allocated to the
575 d8a4b51d Iustin Pop
                instance</simpara>
576 d8a4b51d Iustin Pop
              </listitem>
577 d8a4b51d Iustin Pop
            </varlistentry>
578 a8083063 Iustin Pop
          </variablelist>
579 a8083063 Iustin Pop
        </para>
580 a8083063 Iustin Pop
581 a8083063 Iustin Pop
        <para>
582 48c4dfa8 Iustin Pop
          If the value of the option starts with the character
583 48c4dfa8 Iustin Pop
          <constant>+</constant>, the new fields will be added to the
584 48c4dfa8 Iustin Pop
          default list. This allows to quickly see the default list
585 48c4dfa8 Iustin Pop
          plus a few other fields, instead of retyping the entire list
586 48c4dfa8 Iustin Pop
          of fields.
587 48c4dfa8 Iustin Pop
        </para>
588 48c4dfa8 Iustin Pop
589 48c4dfa8 Iustin Pop
        <para>
590 a8083063 Iustin Pop
          There is a subtle grouping about the available output
591 872c949f Iustin Pop
          fields: all fields except for <option>oper_state</option>,
592 872c949f Iustin Pop
          <option>oper_ram</option> and <option>status</option> are
593 872c949f Iustin Pop
          configuration value and not run-time values. So if you don't
594 872c949f Iustin Pop
          select any of the these fields, the query will be satisfied
595 a8083063 Iustin Pop
          instantly from the cluster configuration, without having to
596 a8083063 Iustin Pop
          ask the remote nodes for the data. This can be helpful for
597 a8083063 Iustin Pop
          big clusters when you only want some data and it makes sense
598 a8083063 Iustin Pop
          to specify a reduced set of output fields.
599 a8083063 Iustin Pop
        </para>
600 a8083063 Iustin Pop
601 a8083063 Iustin Pop
        <para>The default output field list is:
602 a8083063 Iustin Pop
          <simplelist type="inline">
603 a8083063 Iustin Pop
            <member>name</member>
604 a8083063 Iustin Pop
            <member>os</member>
605 a8083063 Iustin Pop
            <member>pnode</member>
606 a8083063 Iustin Pop
            <member>admin_state</member>
607 a8083063 Iustin Pop
            <member>oper_state</member>
608 a8083063 Iustin Pop
            <member>oper_ram</member>
609 a8083063 Iustin Pop
          </simplelist>.
610 a8083063 Iustin Pop
        </para>
611 a8083063 Iustin Pop
      </refsect3>
612 a8083063 Iustin Pop
613 a8083063 Iustin Pop
      <refsect3>
614 a8083063 Iustin Pop
        <title>INFO</title>
615 a8083063 Iustin Pop
616 a8083063 Iustin Pop
        <cmdsynopsis>
617 a8083063 Iustin Pop
          <command>info</command>
618 a8083063 Iustin Pop
          <arg rep="repeat"><replaceable>instance</replaceable></arg>
619 a8083063 Iustin Pop
        </cmdsynopsis>
620 a8083063 Iustin Pop
621 a8083063 Iustin Pop
        <para>
622 a8083063 Iustin Pop
          Show detailed information about the (given) instances. This
623 a8083063 Iustin Pop
          is different from <command>list</command> as it shows
624 a8083063 Iustin Pop
          detailed data about the instance's disks (especially useful
625 bd028152 Iustin Pop
          for drbd disk template).
626 a8083063 Iustin Pop
        </para>
627 a8083063 Iustin Pop
      </refsect3>
628 a8083063 Iustin Pop
629 a8083063 Iustin Pop
      <refsect3>
630 a8083063 Iustin Pop
        <title>MODIFY</title>
631 a8083063 Iustin Pop
632 a8083063 Iustin Pop
        <cmdsynopsis>
633 a8083063 Iustin Pop
          <command>modify</command>
634 a8083063 Iustin Pop
          <arg choice="opt">-m <replaceable>memsize</replaceable></arg>
635 a8083063 Iustin Pop
          <arg choice="opt">-p <replaceable>vcpus</replaceable></arg>
636 a8083063 Iustin Pop
          <arg choice="opt">-i <replaceable>ip</replaceable></arg>
637 a8083063 Iustin Pop
          <arg choice="opt">-b <replaceable>bridge</replaceable></arg>
638 61854511 Iustin Pop
          <arg choice="opt">--mac <replaceable>MAC-address</replaceable></arg>
639 25c5878d Alexander Schreiber
          <arg>--hvm-boot-order <replaceable>boot-order</replaceable></arg>
640 ca9c49d5 Iustin Pop
          <arg>--hvm-acpi <replaceable>ACPI-support</replaceable></arg>
641 ca9c49d5 Iustin Pop
          <arg>--hvm-pae <replaceable>PAE-support</replaceable></arg>
642 ca9c49d5 Iustin Pop
          <arg>--hvm-cdrom-image-path
643 ca9c49d5 Iustin Pop
            <replaceable>cdrom-image-path</replaceable></arg>
644 ca9c49d5 Iustin Pop
          <arg>--vnc-bind-address
645 ca9c49d5 Iustin Pop
            <replaceable>vnc-bind-address</replaceable></arg>
646 ca9c49d5 Iustin Pop
647 00f98619 Iustin Pop
          <sbr>
648 00f98619 Iustin Pop
          <arg>--kernel <group choice="req">
649 00f98619 Iustin Pop
              <arg>default</arg>
650 00f98619 Iustin Pop
              <arg><replaceable>kernel_path</replaceable></arg>
651 00f98619 Iustin Pop
            </group></arg>
652 00f98619 Iustin Pop
          <sbr>
653 00f98619 Iustin Pop
          <arg>--initrd <group choice="req">
654 00f98619 Iustin Pop
              <arg>default</arg>
655 00f98619 Iustin Pop
              <arg>none</arg>
656 00f98619 Iustin Pop
              <arg><replaceable>initrd_path</replaceable></arg>
657 00f98619 Iustin Pop
            </group> </arg>
658 00f98619 Iustin Pop
          <sbr>
659 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
660 a8083063 Iustin Pop
        </cmdsynopsis>
661 a8083063 Iustin Pop
662 a8083063 Iustin Pop
        <para>
663 f3a55c90 Alexander Schreiber
          Modify the memory size, number of vcpus, ip address, MAC
664 f3a55c90 Alexander Schreiber
          address and/or bridge for an instance.
665 a8083063 Iustin Pop
        </para>
666 a8083063 Iustin Pop
667 a8083063 Iustin Pop
        <para>
668 a8083063 Iustin Pop
          The memory size is given in MiB. Note that you need to give
669 a8083063 Iustin Pop
          at least one of the arguments, otherwise the command
670 a8083063 Iustin Pop
          complains.
671 a8083063 Iustin Pop
        </para>
672 a8083063 Iustin Pop
673 a8083063 Iustin Pop
        <para>
674 25c5878d Alexander Schreiber
          The <option>--kernel</option>, <option>--initrd</option>
675 25c5878d Alexander Schreiber
          and <option>--hvm-boot-order</option>
676 00f98619 Iustin Pop
          options are described in the <command>add</command> command.
677 00f98619 Iustin Pop
        </para>
678 00f98619 Iustin Pop
679 00f98619 Iustin Pop
        <para>
680 25c5878d Alexander Schreiber
          Additionally, the HVM boot order can be reset to the default
681 25c5878d Alexander Schreiber
          values by using <option>--hvm-boot-order=default</option>.
682 25c5878d Alexander Schreiber
        </para>
683 25c5878d Alexander Schreiber
684 25c5878d Alexander Schreiber
        <para>
685 ca9c49d5 Iustin Pop
          The <option>--hvm-acpi</option> option specifies if Xen
686 ca9c49d5 Iustin Pop
          should enable ACPI support for this HVM instance. Valid
687 ca9c49d5 Iustin Pop
          values are true or false.
688 ca9c49d5 Iustin Pop
        </para>
689 ca9c49d5 Iustin Pop
690 ca9c49d5 Iustin Pop
        <para>
691 ca9c49d5 Iustin Pop
          The <option>--hvm-pae</option> option specifies if Xen
692 ca9c49d5 Iustin Pop
          should enabled PAE support for this HVM instance. Valid
693 ca9c49d5 Iustin Pop
          values are true or false.
694 ca9c49d5 Iustin Pop
        </para>
695 ca9c49d5 Iustin Pop
696 ca9c49d5 Iustin Pop
        <para>
697 ca9c49d5 Iustin Pop
          The <option>--hvm-cdrom-image-path</option> specifies the
698 ca9c49d5 Iustin Pop
          path to the file xen uses to emulate a virtual CDROM drive
699 ca9c49d5 Iustin Pop
          for this HVM instance. Valid values are either an
700 ca9c49d5 Iustin Pop
          absolute path to an existing file or None, which disables
701 ca9c49d5 Iustin Pop
          virtual CDROM support for this instance.
702 ca9c49d5 Iustin Pop
        </para>
703 ca9c49d5 Iustin Pop
704 ca9c49d5 Iustin Pop
        <para>
705 ca9c49d5 Iustin Pop
          The <option>--vnc-bind-address</option> specifies the
706 ca9c49d5 Iustin Pop
          address that the VNC listener for this instance should bind
707 ca9c49d5 Iustin Pop
          to. Valid values are IPv4 addresses. Use the address 0.0.0.0
708 ca9c49d5 Iustin Pop
          to bind to all available interfaces.
709 ca9c49d5 Iustin Pop
        </para>
710 ca9c49d5 Iustin Pop
711 ca9c49d5 Iustin Pop
        <para>
712 a8083063 Iustin Pop
          All the changes take effect at the next restart. If the
713 a8083063 Iustin Pop
          instance is running, there is no effect on the instance.
714 a8083063 Iustin Pop
        </para>
715 a8083063 Iustin Pop
      </refsect3>
716 a8083063 Iustin Pop
717 d0834de3 Michael Hanselmann
      <refsect3>
718 d0834de3 Michael Hanselmann
        <title>REINSTALL</title>
719 d0834de3 Michael Hanselmann
720 d0834de3 Michael Hanselmann
        <cmdsynopsis>
721 d0834de3 Michael Hanselmann
          <command>reinstall</command>
722 d0834de3 Michael Hanselmann
          <arg choice="opt">-o <replaceable>os-type</replaceable></arg>
723 d0834de3 Michael Hanselmann
          <arg choice="opt">-f <replaceable>force</replaceable></arg>
724 d0834de3 Michael Hanselmann
          <arg choice="req"><replaceable>instance</replaceable></arg>
725 d0834de3 Michael Hanselmann
        </cmdsynopsis>
726 d0834de3 Michael Hanselmann
727 d0834de3 Michael Hanselmann
        <para>
728 d0834de3 Michael Hanselmann
          Reinstalls the operating system on the given instance. The instance
729 d0834de3 Michael Hanselmann
          must be stopped when running this command. If the
730 d0834de3 Michael Hanselmann
          <option>--os-type</option> is specified, the operating system is
731 d0834de3 Michael Hanselmann
          changed.
732 d0834de3 Michael Hanselmann
        </para>
733 d0834de3 Michael Hanselmann
      </refsect3>
734 d0834de3 Michael Hanselmann
735 decd5f45 Iustin Pop
      <refsect3>
736 decd5f45 Iustin Pop
        <title>RENAME</title>
737 decd5f45 Iustin Pop
738 decd5f45 Iustin Pop
        <cmdsynopsis>
739 decd5f45 Iustin Pop
          <command>rename</command>
740 decd5f45 Iustin Pop
          <arg>--no-ip-check</arg>
741 decd5f45 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
742 decd5f45 Iustin Pop
          <arg choice="req"><replaceable>new_name</replaceable></arg>
743 decd5f45 Iustin Pop
        </cmdsynopsis>
744 decd5f45 Iustin Pop
745 decd5f45 Iustin Pop
        <para>
746 decd5f45 Iustin Pop
          Renames the given instance. The instance must be stopped
747 decd5f45 Iustin Pop
          when running this command. The requirements for the new name
748 decd5f45 Iustin Pop
          are the same as for adding an instance: the new name must be
749 decd5f45 Iustin Pop
          resolvable and the IP it resolves to must not be reachable
750 decd5f45 Iustin Pop
          (in order to prevent duplicate IPs the next time the
751 decd5f45 Iustin Pop
          instance is started). The IP test can be skipped if the
752 decd5f45 Iustin Pop
          <option>--no-ip-check</option> option is passed.
753 decd5f45 Iustin Pop
        </para>
754 decd5f45 Iustin Pop
      </refsect3>
755 decd5f45 Iustin Pop
756 a8083063 Iustin Pop
    </refsect2>
757 a8083063 Iustin Pop
758 a8083063 Iustin Pop
    <refsect2>
759 a8083063 Iustin Pop
      <title>Starting/stopping/connecting to console</title>
760 a8083063 Iustin Pop
761 a8083063 Iustin Pop
      <refsect3>
762 a8083063 Iustin Pop
        <title>STARTUP</title>
763 a8083063 Iustin Pop
764 a8083063 Iustin Pop
        <cmdsynopsis>
765 a8083063 Iustin Pop
          <command>startup</command>
766 a8083063 Iustin Pop
          <arg>--extra=<replaceable>PARAMS</replaceable></arg>
767 3bd5f059 Michael Hanselmann
          <arg>--force</arg>
768 312ac745 Iustin Pop
          <sbr>
769 312ac745 Iustin Pop
          <group choice="opt">
770 312ac745 Iustin Pop
            <arg>--instance</arg>
771 312ac745 Iustin Pop
            <arg>--node</arg>
772 312ac745 Iustin Pop
            <arg>--primary</arg>
773 312ac745 Iustin Pop
            <arg>--secondary</arg>
774 312ac745 Iustin Pop
            <arg>--all</arg>
775 312ac745 Iustin Pop
          </group>
776 312ac745 Iustin Pop
          <sbr>
777 312ac745 Iustin Pop
          <arg choice="opt"
778 312ac745 Iustin Pop
          rep="repeat"><replaceable>name</replaceable></arg>
779 a8083063 Iustin Pop
        </cmdsynopsis>
780 a8083063 Iustin Pop
781 a8083063 Iustin Pop
        <para>
782 bcee9cb4 Iustin Pop
          Starts one or more instances, depending on the following
783 bcee9cb4 Iustin Pop
          options. The four available modes are:
784 312ac745 Iustin Pop
          <variablelist>
785 312ac745 Iustin Pop
            <varlistentry>
786 312ac745 Iustin Pop
              <term><option>--instance</option></term>
787 312ac745 Iustin Pop
              <listitem>
788 312ac745 Iustin Pop
                <simpara>will start the instances given as arguments
789 312ac745 Iustin Pop
                (at least one argument required); this is the default
790 312ac745 Iustin Pop
                selection</simpara>
791 312ac745 Iustin Pop
              </listitem>
792 312ac745 Iustin Pop
            </varlistentry>
793 312ac745 Iustin Pop
            <varlistentry>
794 312ac745 Iustin Pop
              <term>--node</term>
795 312ac745 Iustin Pop
              <listitem>
796 312ac745 Iustin Pop
                <simpara>will start the instances who have the given
797 312ac745 Iustin Pop
                node as either primary or secondary</simpara>
798 312ac745 Iustin Pop
              </listitem>
799 312ac745 Iustin Pop
            </varlistentry>
800 312ac745 Iustin Pop
            <varlistentry>
801 312ac745 Iustin Pop
              <term><option>--primary</option></term>
802 312ac745 Iustin Pop
              <listitem>
803 312ac745 Iustin Pop
                <simpara>will start all instances whose primary node
804 312ac745 Iustin Pop
                is in the list of nodes passed as arguments (at least
805 312ac745 Iustin Pop
                one node required)</simpara>
806 312ac745 Iustin Pop
              </listitem>
807 312ac745 Iustin Pop
            </varlistentry>
808 312ac745 Iustin Pop
            <varlistentry>
809 312ac745 Iustin Pop
              <term><option>--secondary</option></term>
810 312ac745 Iustin Pop
              <listitem>
811 312ac745 Iustin Pop
                <simpara>will start all instances whose secondary node
812 312ac745 Iustin Pop
                is in the list of nodes passed as arguments (at least
813 312ac745 Iustin Pop
                one node required)</simpara>
814 312ac745 Iustin Pop
              </listitem>
815 312ac745 Iustin Pop
            </varlistentry>
816 312ac745 Iustin Pop
            <varlistentry>
817 312ac745 Iustin Pop
              <term>--all</term>
818 312ac745 Iustin Pop
              <listitem>
819 312ac745 Iustin Pop
                <simpara>will start all instances in the cluster (no
820 312ac745 Iustin Pop
                arguments accepted)</simpara>
821 312ac745 Iustin Pop
              </listitem>
822 312ac745 Iustin Pop
            </varlistentry>
823 312ac745 Iustin Pop
          </variablelist>
824 312ac745 Iustin Pop
        </para>
825 312ac745 Iustin Pop
826 312ac745 Iustin Pop
        <para>
827 bcee9cb4 Iustin Pop
          Note that although you can pass more than one selection
828 bcee9cb4 Iustin Pop
          option, the last one wins, so in order to guarantee the
829 bcee9cb4 Iustin Pop
          desired result, don't pass more than one such option.
830 a8083063 Iustin Pop
        </para>
831 a8083063 Iustin Pop
832 a8083063 Iustin Pop
        <para>
833 a8083063 Iustin Pop
          The <option>--extra</option> option is used to pass
834 a8083063 Iustin Pop
          additional argument to the instance's kernel for this start
835 a8083063 Iustin Pop
          only. Currently there is no way to specify a persistent set
836 a8083063 Iustin Pop
          of arguments (beside the one hardcoded). Note that this may
837 a8083063 Iustin Pop
          not apply to all virtualization types.
838 a8083063 Iustin Pop
        </para>
839 a8083063 Iustin Pop
840 3bd5f059 Michael Hanselmann
        <para>
841 3bd5f059 Michael Hanselmann
          Use <option>--force</option> to start even if secondary disks are
842 3bd5f059 Michael Hanselmann
          failing.
843 3bd5f059 Michael Hanselmann
        </para>
844 a8083063 Iustin Pop
845 a8083063 Iustin Pop
        <para>
846 a8083063 Iustin Pop
          Example:
847 a8083063 Iustin Pop
          <screen>
848 a8083063 Iustin Pop
# gnt-instance start instance1.example.com
849 a8083063 Iustin Pop
# gnt-instance start --extra single test1.example.com
850 bcee9cb4 Iustin Pop
# gnt-instance start --node node1.example.com node2.example.com
851 bcee9cb4 Iustin Pop
# gnt-instance start --all
852 a8083063 Iustin Pop
          </screen>
853 a8083063 Iustin Pop
        </para>
854 a8083063 Iustin Pop
      </refsect3>
855 a8083063 Iustin Pop
856 a8083063 Iustin Pop
      <refsect3>
857 a8083063 Iustin Pop
        <title>SHUTDOWN</title>
858 a8083063 Iustin Pop
859 a8083063 Iustin Pop
        <cmdsynopsis>
860 a8083063 Iustin Pop
          <command>shutdown</command>
861 312ac745 Iustin Pop
          <sbr>
862 312ac745 Iustin Pop
          <group choice="opt">
863 312ac745 Iustin Pop
            <arg>--instance</arg>
864 312ac745 Iustin Pop
            <arg>--node</arg>
865 312ac745 Iustin Pop
            <arg>--primary</arg>
866 312ac745 Iustin Pop
            <arg>--secondary</arg>
867 312ac745 Iustin Pop
            <arg>--all</arg>
868 312ac745 Iustin Pop
          </group>
869 312ac745 Iustin Pop
          <sbr>
870 312ac745 Iustin Pop
871 312ac745 Iustin Pop
          <arg choice="opt"
872 312ac745 Iustin Pop
          rep="repeat"><replaceable>name</replaceable></arg>
873 a8083063 Iustin Pop
        </cmdsynopsis>
874 a8083063 Iustin Pop
875 a8083063 Iustin Pop
        <para>
876 312ac745 Iustin Pop
          Stops one or more instances. If the instance cannot be
877 312ac745 Iustin Pop
          cleanly stopped during a hardcoded interval (currently 2
878 312ac745 Iustin Pop
          minutes), it will forcibly stop the instance (equivalent to
879 312ac745 Iustin Pop
          switching off the power on a physical machine).
880 312ac745 Iustin Pop
        </para>
881 312ac745 Iustin Pop
882 312ac745 Iustin Pop
        <para>
883 312ac745 Iustin Pop
          The <option>--instance</option>, <option>--node</option>,
884 312ac745 Iustin Pop
          <option>--primary</option>, <option>--secondary</option> and
885 312ac745 Iustin Pop
          <option>--all</option> options are similar as for the
886 312ac745 Iustin Pop
          <command>startup</command> command and they influence the
887 86b8c6ae Alexander Schreiber
          actual instances being shutdown.
888 a8083063 Iustin Pop
        </para>
889 a8083063 Iustin Pop
890 a8083063 Iustin Pop
        <para>
891 a8083063 Iustin Pop
          Example:
892 a8083063 Iustin Pop
          <screen>
893 a8083063 Iustin Pop
# gnt-instance shutdown instance1.example.com
894 bcee9cb4 Iustin Pop
# gnt-instance shutdown --all
895 a8083063 Iustin Pop
          </screen>
896 a8083063 Iustin Pop
        </para>
897 a8083063 Iustin Pop
      </refsect3>
898 a8083063 Iustin Pop
899 a8083063 Iustin Pop
      <refsect3>
900 579d4337 Alexander Schreiber
        <title>REBOOT</title>
901 579d4337 Alexander Schreiber
902 579d4337 Alexander Schreiber
        <cmdsynopsis>
903 579d4337 Alexander Schreiber
          <command>reboot</command>
904 579d4337 Alexander Schreiber
          <sbr>
905 579d4337 Alexander Schreiber
          <arg>--extra=<replaceable>PARAMS</replaceable></arg>
906 579d4337 Alexander Schreiber
          <sbr>
907 579d4337 Alexander Schreiber
          <arg>--type=<replaceable>REBOOT-TYPE</replaceable></arg>
908 579d4337 Alexander Schreiber
          <sbr>
909 579d4337 Alexander Schreiber
          <arg>--ignore-secondaries</arg>
910 579d4337 Alexander Schreiber
          <sbr>
911 579d4337 Alexander Schreiber
          <arg>--force-multiple</arg>
912 579d4337 Alexander Schreiber
          <sbr>
913 579d4337 Alexander Schreiber
          <group choice="opt">
914 579d4337 Alexander Schreiber
            <arg>--instance</arg>
915 579d4337 Alexander Schreiber
            <arg>--node</arg>
916 579d4337 Alexander Schreiber
            <arg>--primary</arg>
917 579d4337 Alexander Schreiber
            <arg>--secondary</arg>
918 579d4337 Alexander Schreiber
            <arg>--all</arg>
919 579d4337 Alexander Schreiber
          </group>
920 579d4337 Alexander Schreiber
          <sbr>
921 579d4337 Alexander Schreiber
922 579d4337 Alexander Schreiber
          <arg choice="opt"
923 579d4337 Alexander Schreiber
          rep="repeat"><replaceable>name</replaceable></arg>
924 579d4337 Alexander Schreiber
        </cmdsynopsis>
925 579d4337 Alexander Schreiber
926 579d4337 Alexander Schreiber
        <para>
927 579d4337 Alexander Schreiber
          Reboots one or more instances. The type of reboot depends on
928 579d4337 Alexander Schreiber
          the value of <option>--type</option>. A soft reboot does a
929 579d4337 Alexander Schreiber
          hypervisor reboot, a hard reboot does a instance stop,
930 579d4337 Alexander Schreiber
          recreates the hypervisor config for the instance and
931 579d4337 Alexander Schreiber
          starts the instance. A full reboot does the equivalent
932 579d4337 Alexander Schreiber
          of <command>gnt-instance shutdown &amp;&amp; gnt-instance
933 579d4337 Alexander Schreiber
          startup</command>. The default is soft reboot.
934 579d4337 Alexander Schreiber
        </para>
935 579d4337 Alexander Schreiber
936 579d4337 Alexander Schreiber
        <para>
937 579d4337 Alexander Schreiber
          For the hard reboot the option
938 579d4337 Alexander Schreiber
          <option>--ignore-secondaries</option> ignores errors for the
939 579d4337 Alexander Schreiber
          secondary node while re-assembling the instance disks.
940 579d4337 Alexander Schreiber
        </para>
941 579d4337 Alexander Schreiber
942 579d4337 Alexander Schreiber
        <para>
943 579d4337 Alexander Schreiber
          The <option>--instance</option>, <option>--node</option>,
944 579d4337 Alexander Schreiber
          <option>--primary</option>, <option>--secondary</option> and
945 579d4337 Alexander Schreiber
          <option>--all</option> options are similar as for the
946 579d4337 Alexander Schreiber
          <command>startup</command> command and they influence the
947 579d4337 Alexander Schreiber
          actual instances being rebooted.
948 579d4337 Alexander Schreiber
        </para>
949 36c87212 Iustin Pop
950 579d4337 Alexander Schreiber
        <para>
951 3bd5f059 Michael Hanselmann
          Use the <option>--force-multiple</option> option to keep
952 579d4337 Alexander Schreiber
          gnt-instance from asking for confirmation when more than one
953 579d4337 Alexander Schreiber
          instance is affected.
954 579d4337 Alexander Schreiber
        </para>
955 579d4337 Alexander Schreiber
956 579d4337 Alexander Schreiber
        <para>
957 579d4337 Alexander Schreiber
          Example:
958 579d4337 Alexander Schreiber
          <screen>
959 579d4337 Alexander Schreiber
# gnt-instance reboot instance1.example.com
960 579d4337 Alexander Schreiber
# gnt-instance reboot --type=full instance1.example.com
961 579d4337 Alexander Schreiber
          </screen>
962 579d4337 Alexander Schreiber
        </para>
963 579d4337 Alexander Schreiber
      </refsect3>
964 579d4337 Alexander Schreiber
965 579d4337 Alexander Schreiber
      <refsect3>
966 a8083063 Iustin Pop
        <title>CONSOLE</title>
967 a8083063 Iustin Pop
        <cmdsynopsis>
968 a8083063 Iustin Pop
          <command>console</command>
969 51c6e7b5 Michael Hanselmann
          <arg choice="opt">--show-cmd</arg>
970 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
971 a8083063 Iustin Pop
        </cmdsynopsis>
972 a8083063 Iustin Pop
973 a8083063 Iustin Pop
        <para>
974 a8083063 Iustin Pop
          Connects to the console of the given instance. If the instance
975 51c6e7b5 Michael Hanselmann
          is not up, an error is returned. Use the <option>--show-cmd</option>
976 51c6e7b5 Michael Hanselmann
          option to display the command instead of executing it.
977 a8083063 Iustin Pop
        </para>
978 a8083063 Iustin Pop
979 a8083063 Iustin Pop
        <para>
980 a8083063 Iustin Pop
          Example:
981 a8083063 Iustin Pop
          <screen>
982 a8083063 Iustin Pop
# gnt-instance console instance1.example.com
983 a8083063 Iustin Pop
          </screen>
984 a8083063 Iustin Pop
        </para>
985 a8083063 Iustin Pop
      </refsect3>
986 a8083063 Iustin Pop
987 a8083063 Iustin Pop
    </refsect2>
988 a8083063 Iustin Pop
989 a8083063 Iustin Pop
    <refsect2>
990 a8083063 Iustin Pop
      <title>Disk management</title>
991 a8083063 Iustin Pop
992 a8083063 Iustin Pop
      <refsect3>
993 a8083063 Iustin Pop
        <title>REPLACE-DISKS</title>
994 a8083063 Iustin Pop
995 a8083063 Iustin Pop
        <cmdsynopsis>
996 a8083063 Iustin Pop
          <command>replace-disks</command>
997 a53a1b18 Michael Hanselmann
998 a53a1b18 Michael Hanselmann
          <group choice="req">
999 a53a1b18 Michael Hanselmann
            <arg>--iallocator <replaceable>name</replaceable></arg>
1000 a53a1b18 Michael Hanselmann
            <arg>--new-secondary <replaceable>NODE</replaceable></arg>
1001 a53a1b18 Michael Hanselmann
          </group>
1002 a53a1b18 Michael Hanselmann
          <sbr>
1003 a53a1b18 Michael Hanselmann
1004 6536dfa1 Guido Trotter
          <arg choice="opt">-s</arg>
1005 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1006 a8083063 Iustin Pop
        </cmdsynopsis>
1007 a8083063 Iustin Pop
1008 0b0dea6a Iustin Pop
        <cmdsynopsis>
1009 0b0dea6a Iustin Pop
          <command>replace-disks</command>
1010 a53a1b18 Michael Hanselmann
1011 0b0dea6a Iustin Pop
          <group>
1012 0b0dea6a Iustin Pop
          <arg choice="req">-s</arg>
1013 0b0dea6a Iustin Pop
          <arg choice="req">-p</arg>
1014 0b0dea6a Iustin Pop
          </group>
1015 0b0dea6a Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1016 0b0dea6a Iustin Pop
        </cmdsynopsis>
1017 0b0dea6a Iustin Pop
1018 a8083063 Iustin Pop
        <para>
1019 0b0dea6a Iustin Pop
          This command is a generalized form for adding and replacing
1020 bd028152 Iustin Pop
          disks. It is currently only valid for the mirrored (DRBD)
1021 bd028152 Iustin Pop
          disk template.
1022 a8083063 Iustin Pop
        </para>
1023 0b0dea6a Iustin Pop
1024 0b0dea6a Iustin Pop
        <para>
1025 bd028152 Iustin Pop
          The first form will do a secondary node change, while the
1026 bd028152 Iustin Pop
          second form will replace the disks on either the primary
1027 0b0dea6a Iustin Pop
          (<option>-p</option>) or the secondary (<option>-s</option>)
1028 0b0dea6a Iustin Pop
          node of the instance only, without changing the node.
1029 0b0dea6a Iustin Pop
        </para>
1030 0b0dea6a Iustin Pop
1031 a53a1b18 Michael Hanselmann
        <para>
1032 a53a1b18 Michael Hanselmann
          Specifying <option>--iallocator</option> enables secondary node
1033 a53a1b18 Michael Hanselmann
          replacement and and makes the new secondary be selected automatically
1034 a53a1b18 Michael Hanselmann
          by the specified allocator plugin.
1035 a53a1b18 Michael Hanselmann
        </para>
1036 a8083063 Iustin Pop
      </refsect3>
1037 a8083063 Iustin Pop
1038 a8083063 Iustin Pop
      <refsect3>
1039 a8083063 Iustin Pop
        <title>ACTIVATE-DISKS</title>
1040 a8083063 Iustin Pop
1041 a8083063 Iustin Pop
        <cmdsynopsis>
1042 a8083063 Iustin Pop
          <command>activate-disks</command>
1043 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1044 a8083063 Iustin Pop
        </cmdsynopsis>
1045 a8083063 Iustin Pop
        <para>
1046 a8083063 Iustin Pop
          Activates the block devices of the given instance. If
1047 a8083063 Iustin Pop
          successful, the command will show the location and name of
1048 a8083063 Iustin Pop
          the block devices:
1049 a8083063 Iustin Pop
          <screen>
1050 bd028152 Iustin Pop
node1.example.com:sda:/dev/drbd0
1051 bd028152 Iustin Pop
node1.example.com:sdb:/dev/drbd1
1052 a8083063 Iustin Pop
          </screen>
1053 a8083063 Iustin Pop
1054 a8083063 Iustin Pop
          In this example, <emphasis>node1.example.com</emphasis> is
1055 a8083063 Iustin Pop
          the name of the node on which the devices have been
1056 a8083063 Iustin Pop
          activated. The <emphasis>sda</emphasis> and
1057 a8083063 Iustin Pop
          <emphasis>sdb</emphasis> are the names of the block devices
1058 bd028152 Iustin Pop
          inside the instance. <emphasis>/dev/drbd0</emphasis> and
1059 bd028152 Iustin Pop
          <emphasis>/dev/drbd1</emphasis> are the names of the block
1060 a8083063 Iustin Pop
          devices as visible on the node.
1061 a8083063 Iustin Pop
        </para>
1062 a8083063 Iustin Pop
1063 a8083063 Iustin Pop
        <para>
1064 a8083063 Iustin Pop
          Note that it is safe to run this command while the instance
1065 a8083063 Iustin Pop
          is already running.
1066 a8083063 Iustin Pop
        </para>
1067 a8083063 Iustin Pop
      </refsect3>
1068 a8083063 Iustin Pop
1069 a8083063 Iustin Pop
      <refsect3>
1070 a8083063 Iustin Pop
        <title>DEACTIVATE-DISKS</title>
1071 a8083063 Iustin Pop
1072 a8083063 Iustin Pop
        <cmdsynopsis>
1073 a8083063 Iustin Pop
          <command>deactivate-disks</command>
1074 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1075 a8083063 Iustin Pop
        </cmdsynopsis>
1076 a8083063 Iustin Pop
        <para>
1077 a8083063 Iustin Pop
          De-activates the block devices of the given instance. Note
1078 bd028152 Iustin Pop
          that if you run this command for an instance with a drbd
1079 bd028152 Iustin Pop
          disk template, while it is running, it will not be able to
1080 bd028152 Iustin Pop
          shutdown the block devices on the primary node, but it will
1081 bd028152 Iustin Pop
          shutdown the block devices on the secondary nodes, thus
1082 bd028152 Iustin Pop
          breaking the replication.
1083 a8083063 Iustin Pop
        </para>
1084 a8083063 Iustin Pop
1085 a8083063 Iustin Pop
      </refsect3>
1086 a8083063 Iustin Pop
1087 a8083063 Iustin Pop
    </refsect2>
1088 a8083063 Iustin Pop
1089 a8083063 Iustin Pop
    <refsect2>
1090 a8083063 Iustin Pop
      <title>Recovery</title>
1091 a8083063 Iustin Pop
1092 a8083063 Iustin Pop
      <refsect3>
1093 a8083063 Iustin Pop
        <title>FAILOVER</title>
1094 a8083063 Iustin Pop
1095 a8083063 Iustin Pop
        <cmdsynopsis>
1096 a8083063 Iustin Pop
          <command>failover</command>
1097 a8083063 Iustin Pop
          <arg>-f</arg>
1098 a8083063 Iustin Pop
          <arg>--ignore-consistency</arg>
1099 80de0e3f Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1100 a8083063 Iustin Pop
        </cmdsynopsis>
1101 a8083063 Iustin Pop
1102 a8083063 Iustin Pop
        <para>
1103 80de0e3f Iustin Pop
          Failover will fail the instance over its secondary
1104 bd028152 Iustin Pop
          node. This works only for instances having a drbd disk
1105 bd028152 Iustin Pop
          template.
1106 a8083063 Iustin Pop
        </para>
1107 a8083063 Iustin Pop
1108 a8083063 Iustin Pop
        <para>
1109 a8083063 Iustin Pop
          Normally the failover will check the consistency of the
1110 80de0e3f Iustin Pop
          disks before failing over the instance. If you are trying to
1111 a8083063 Iustin Pop
          migrate instances off a dead node, this will fail. Use the
1112 a8083063 Iustin Pop
          <option>--ignore-consistency</option> option for this
1113 24a40d57 Iustin Pop
          purpose. Note that this option can be dangerous as errors in
1114 24a40d57 Iustin Pop
          shutting down the instance will be ignored, resulting in
1115 24a40d57 Iustin Pop
          possibly having the instance running on two machines in
1116 24a40d57 Iustin Pop
          parallel (on disconnected DRBD drives).
1117 a8083063 Iustin Pop
        </para>
1118 a8083063 Iustin Pop
1119 a8083063 Iustin Pop
        <para>
1120 a8083063 Iustin Pop
          Example:
1121 a8083063 Iustin Pop
          <screen>
1122 a8083063 Iustin Pop
# gnt-instance failover instance1.example.com
1123 a8083063 Iustin Pop
          </screen>
1124 a8083063 Iustin Pop
        </para>
1125 a8083063 Iustin Pop
      </refsect3>
1126 a8083063 Iustin Pop
1127 a8083063 Iustin Pop
    </refsect2>
1128 a8083063 Iustin Pop
1129 cc425644 Iustin Pop
    <refsect2>
1130 cc425644 Iustin Pop
      <title>TAGS</title>
1131 cc425644 Iustin Pop
1132 cc425644 Iustin Pop
    <refsect3>
1133 cc425644 Iustin Pop
        <title>ADD-TAGS</title>
1134 cc425644 Iustin Pop
1135 cc425644 Iustin Pop
        <cmdsynopsis>
1136 cc425644 Iustin Pop
          <command>add-tags</command>
1137 810c50b7 Iustin Pop
          <arg choice="opt">--from <replaceable>file</replaceable></arg>
1138 cc425644 Iustin Pop
          <arg choice="req"><replaceable>instancename</replaceable></arg>
1139 cc425644 Iustin Pop
          <arg choice="req"
1140 cc425644 Iustin Pop
            rep="repeat"><replaceable>tag</replaceable></arg>
1141 cc425644 Iustin Pop
        </cmdsynopsis>
1142 cc425644 Iustin Pop
1143 cc425644 Iustin Pop
        <para>
1144 cc425644 Iustin Pop
          Add tags to the given instance. If any of the tags contains
1145 cc425644 Iustin Pop
          invalid characters, the entire operation will abort.
1146 cc425644 Iustin Pop
        </para>
1147 810c50b7 Iustin Pop
        <para>
1148 810c50b7 Iustin Pop
          If the <option>--from</option> option is given, the list of
1149 810c50b7 Iustin Pop
          tags will be extended with the contents of that file (each
1150 810c50b7 Iustin Pop
          line becomes a tag). In this case, there is not need to pass
1151 810c50b7 Iustin Pop
          tags on the command line (if you do, both sources will be
1152 810c50b7 Iustin Pop
          used). A file name of - will be interpreted as stdin.
1153 810c50b7 Iustin Pop
        </para>
1154 cc425644 Iustin Pop
      </refsect3>
1155 cc425644 Iustin Pop
1156 cc425644 Iustin Pop
      <refsect3>
1157 cc425644 Iustin Pop
        <title>LIST-TAGS</title>
1158 cc425644 Iustin Pop
1159 cc425644 Iustin Pop
        <cmdsynopsis>
1160 cc425644 Iustin Pop
          <command>list-tags</command>
1161 cc425644 Iustin Pop
          <arg choice="req"><replaceable>instancename</replaceable></arg>
1162 cc425644 Iustin Pop
        </cmdsynopsis>
1163 cc425644 Iustin Pop
1164 cc425644 Iustin Pop
        <para>List the tags of the given instance.</para>
1165 cc425644 Iustin Pop
      </refsect3>
1166 cc425644 Iustin Pop
1167 cc425644 Iustin Pop
      <refsect3>
1168 cc425644 Iustin Pop
        <title>REMOVE-TAGS</title>
1169 cc425644 Iustin Pop
        <cmdsynopsis>
1170 cc425644 Iustin Pop
          <command>remove-tags</command>
1171 810c50b7 Iustin Pop
          <arg choice="opt">--from <replaceable>file</replaceable></arg>
1172 cc425644 Iustin Pop
          <arg choice="req"><replaceable>instancename</replaceable></arg>
1173 cc425644 Iustin Pop
          <arg choice="req"
1174 cc425644 Iustin Pop
            rep="repeat"><replaceable>tag</replaceable></arg>
1175 cc425644 Iustin Pop
        </cmdsynopsis>
1176 cc425644 Iustin Pop
1177 cc425644 Iustin Pop
        <para>
1178 cc425644 Iustin Pop
          Remove tags from the given instance. If any of the tags are
1179 cc425644 Iustin Pop
          not existing on the node, the entire operation will abort.
1180 cc425644 Iustin Pop
        </para>
1181 810c50b7 Iustin Pop
1182 810c50b7 Iustin Pop
        <para>
1183 810c50b7 Iustin Pop
          If the <option>--from</option> option is given, the list of
1184 810c50b7 Iustin Pop
          tags will be extended with the contents of that file (each
1185 810c50b7 Iustin Pop
          line becomes a tag). In this case, there is not need to pass
1186 810c50b7 Iustin Pop
          tags on the command line (if you do, both sources will be
1187 810c50b7 Iustin Pop
          used). A file name of - will be interpreted as stdin.
1188 810c50b7 Iustin Pop
        </para>
1189 cc425644 Iustin Pop
      </refsect3>
1190 cc425644 Iustin Pop
1191 cc425644 Iustin Pop
    </refsect2>
1192 cc425644 Iustin Pop
1193 a8083063 Iustin Pop
  </refsect1>
1194 a8083063 Iustin Pop
1195 a8083063 Iustin Pop
  &footer;
1196 a8083063 Iustin Pop
1197 a8083063 Iustin Pop
</refentry>
1198 a8083063 Iustin Pop
1199 a8083063 Iustin Pop
<!-- Keep this comment at the end of the file
1200 a8083063 Iustin Pop
Local variables:
1201 a8083063 Iustin Pop
mode: sgml
1202 a8083063 Iustin Pop
sgml-omittag:t
1203 a8083063 Iustin Pop
sgml-shorttag:t
1204 a8083063 Iustin Pop
sgml-minimize-attributes:nil
1205 a8083063 Iustin Pop
sgml-always-quote-attributes:t
1206 a8083063 Iustin Pop
sgml-indent-step:2
1207 a8083063 Iustin Pop
sgml-indent-data:t
1208 a8083063 Iustin Pop
sgml-parent-document:nil
1209 a8083063 Iustin Pop
sgml-default-dtd-file:nil
1210 a8083063 Iustin Pop
sgml-exposed-tags:nil
1211 a8083063 Iustin Pop
sgml-local-catalogs:nil
1212 a8083063 Iustin Pop
sgml-local-ecat-files:nil
1213 a8083063 Iustin Pop
End:
1214 a8083063 Iustin Pop
-->