Statistics
| Branch: | Tag: | Revision:

root / man / gnt-instance.sgml @ 25a8792c

History | View | Annotate | Download (90.7 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 c7c568b4 René Nussbaumer
  <!ENTITY dhdate      "<date>January 22, 2010</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 c7c568b4 René Nussbaumer
      <year>2010</year>
26 a8083063 Iustin Pop
      <holder>Google Inc.</holder>
27 a8083063 Iustin Pop
    </copyright>
28 a8083063 Iustin Pop
    &dhdate;
29 a8083063 Iustin Pop
  </refentryinfo>
30 a8083063 Iustin Pop
  <refmeta>
31 a8083063 Iustin Pop
    &dhucpackage;
32 a8083063 Iustin Pop
33 a8083063 Iustin Pop
    &dhsection;
34 d3b4cf9f Iustin Pop
    <refmiscinfo>ganeti 2.0</refmiscinfo>
35 a8083063 Iustin Pop
  </refmeta>
36 a8083063 Iustin Pop
  <refnamediv>
37 a8083063 Iustin Pop
    <refname>&dhpackage;</refname>
38 a8083063 Iustin Pop
39 a8083063 Iustin Pop
    <refpurpose>ganeti instance administration</refpurpose>
40 a8083063 Iustin Pop
  </refnamediv>
41 a8083063 Iustin Pop
  <refsynopsisdiv>
42 a8083063 Iustin Pop
    <cmdsynopsis>
43 a8083063 Iustin Pop
      <command>&dhpackage; </command>
44 a8083063 Iustin Pop
45 a8083063 Iustin Pop
      <arg choice="req">command</arg>
46 a8083063 Iustin Pop
      <arg>arguments...</arg>
47 a8083063 Iustin Pop
    </cmdsynopsis>
48 a8083063 Iustin Pop
  </refsynopsisdiv>
49 a8083063 Iustin Pop
  <refsect1>
50 a8083063 Iustin Pop
    <title>DESCRIPTION</title>
51 a8083063 Iustin Pop
52 a8083063 Iustin Pop
    <para>
53 a8083063 Iustin Pop
      The <command>&dhpackage;</command> is used for instance
54 a8083063 Iustin Pop
      administration in the ganeti system.
55 a8083063 Iustin Pop
    </para>
56 a8083063 Iustin Pop
57 a8083063 Iustin Pop
  </refsect1>
58 a8083063 Iustin Pop
  <refsect1>
59 a8083063 Iustin Pop
    <title>COMMANDS</title>
60 a8083063 Iustin Pop
61 a8083063 Iustin Pop
    <refsect2>
62 a8083063 Iustin Pop
      <title>Creation/removal/querying</title>
63 a8083063 Iustin Pop
64 a8083063 Iustin Pop
      <refsect3>
65 a8083063 Iustin Pop
        <title>ADD</title>
66 a8083063 Iustin Pop
        <cmdsynopsis>
67 a8083063 Iustin Pop
          <command>add</command>
68 b9ac33e9 Iustin Pop
          <sbr>
69 c0e4a2c3 Iustin Pop
          <arg choice="req">-t<group choice="req">
70 c0e4a2c3 Iustin Pop
              <arg>diskless</arg>
71 c0e4a2c3 Iustin Pop
              <arg>file</arg>
72 c0e4a2c3 Iustin Pop
              <arg>plain</arg>
73 c0e4a2c3 Iustin Pop
              <arg>drbd</arg>
74 c0e4a2c3 Iustin Pop
            </group></arg>
75 c0e4a2c3 Iustin Pop
          <sbr>
76 c0e4a2c3 Iustin Pop
77 c0e4a2c3 Iustin Pop
          <group choice="req">
78 17227cd1 Iustin Pop
            <arg rep="repeat">--disk=<replaceable>N</replaceable>:<group choice="req">
79 17227cd1 Iustin Pop
                <arg>size=<replaceable>VAL</replaceable></arg>
80 17227cd1 Iustin Pop
                <arg>adopt=<replaceable>LV</replaceable></arg>
81 17227cd1 Iustin Pop
              </group>,mode=<replaceable>ro|rw</replaceable></arg>
82 c0e4a2c3 Iustin Pop
            <arg>-s <replaceable>SIZE</replaceable></arg>
83 c0e4a2c3 Iustin Pop
          </group>
84 783583e9 Michael Hanselmann
          <sbr>
85 1d65264b Iustin Pop
          <arg>--no-ip-check</arg>
86 1d65264b Iustin Pop
          <arg>--no-name-check</arg>
87 1d65264b Iustin Pop
          <arg>--no-start</arg>
88 25a8792c Iustin Pop
          <arg>--no-install</arg>
89 1d65264b Iustin Pop
          <sbr>
90 d3b4cf9f Iustin Pop
          <group>
91 d3b4cf9f Iustin Pop
            <arg rep="repeat">--net=<replaceable>N</replaceable><arg rep="repeat">:options</arg></arg>
92 d3b4cf9f Iustin Pop
            <arg>--no-nics</arg>
93 d3b4cf9f Iustin Pop
          </group>
94 a8083063 Iustin Pop
          <sbr>
95 d3b4cf9f Iustin Pop
          <arg>-B <replaceable>BEPARAMS</replaceable></arg>
96 00f98619 Iustin Pop
          <sbr>
97 bdb7d4e8 Michael Hanselmann
98 d3b4cf9f Iustin Pop
          <arg>-H <replaceable>HYPERVISOR</replaceable><arg>:<arg choice="plain" rep="repeat">option=<replaceable>value</replaceable></arg></arg></arg>
99 00f98619 Iustin Pop
          <sbr>
100 bdb7d4e8 Michael Hanselmann
101 495beb42 Manuel Franceschini
          <arg>--file-storage-dir <replaceable>dir_path</replaceable></arg>
102 bdb7d4e8 Michael Hanselmann
          <arg>--file-driver<group choice="req">
103 495beb42 Manuel Franceschini
              <arg>loop</arg>
104 495beb42 Manuel Franceschini
              <arg>blktap</arg>
105 495beb42 Manuel Franceschini
            </group></arg>
106 495beb42 Manuel Franceschini
          <sbr>
107 bdb7d4e8 Michael Hanselmann
108 a53a1b18 Michael Hanselmann
          <group choice="req">
109 a53a1b18 Michael Hanselmann
            <arg>-n <replaceable>node<optional>:secondary-node</optional></replaceable></arg>
110 a53a1b18 Michael Hanselmann
            <arg>--iallocator <replaceable>name</replaceable></arg>
111 a53a1b18 Michael Hanselmann
          </group>
112 a53a1b18 Michael Hanselmann
          <sbr>
113 a53a1b18 Michael Hanselmann
114 bdb7d4e8 Michael Hanselmann
          <arg choice="req">-o <replaceable>os-type</replaceable></arg>
115 bdb7d4e8 Michael Hanselmann
          <sbr>
116 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
117 d3b4cf9f Iustin Pop
          <sbr>
118 bdb7d4e8 Michael Hanselmann
119 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
120 a8083063 Iustin Pop
        </cmdsynopsis>
121 00f98619 Iustin Pop
122 a8083063 Iustin Pop
        <para>
123 d3b4cf9f Iustin Pop
          Creates a new instance on the specified host. The
124 d3b4cf9f Iustin Pop
          <replaceable>instance</replaceable> argument must be in DNS,
125 7d713344 Guido Trotter
          but depending on the bridge/routing setup, need not be in
126 7d713344 Guido Trotter
          the same network as the nodes in the cluster.
127 a8083063 Iustin Pop
        </para>
128 a8083063 Iustin Pop
129 a8083063 Iustin Pop
        <para>
130 d3b4cf9f Iustin Pop
          The <option>disk</option> option specifies the parameters
131 d3b4cf9f Iustin Pop
          for the disks of the instance. The numbering of disks starts
132 d3b4cf9f Iustin Pop
          at zero, and at least one disk needs to be passed. For each
133 17227cd1 Iustin Pop
          disk, either the size or the adoption source needs to be
134 17227cd1 Iustin Pop
          given, and optionally the access mode (read-only or the
135 17227cd1 Iustin Pop
          default of read-write) can also be specified.  The size is
136 17227cd1 Iustin Pop
          interpreted (when no unit is given) in mebibytes. You can
137 17227cd1 Iustin Pop
          also use one of the suffixes
138 d3b4cf9f Iustin Pop
          <literal>m</literal>, <literal>g</literal> or
139 b9ac33e9 Iustin Pop
          <literal>t</literal> to specificy the exact the units used;
140 b9ac33e9 Iustin Pop
          these suffixes map to mebibytes, gibibytes and tebibytes.
141 a8083063 Iustin Pop
        </para>
142 a8083063 Iustin Pop
143 a8083063 Iustin Pop
        <para>
144 17227cd1 Iustin Pop
          When using the <option>adopt</option> key in the disk
145 17227cd1 Iustin Pop
          definition, Ganeti will reuse those volumes (instead of
146 17227cd1 Iustin Pop
          creating new ones) as the instance's disks. Ganeti will
147 17227cd1 Iustin Pop
          rename these volumes to the standard format, and (without
148 17227cd1 Iustin Pop
          installing the OS) will use them as-is for the
149 17227cd1 Iustin Pop
          instance. This allows migrating instances from non-managed
150 17227cd1 Iustin Pop
          mode (e.q. plain KVM with LVM) to being managed via
151 17227cd1 Iustin Pop
          Ganeti. Note that this works only for the `plain' disk
152 17227cd1 Iustin Pop
          template (see below for template details).
153 17227cd1 Iustin Pop
        </para>
154 17227cd1 Iustin Pop
155 17227cd1 Iustin Pop
        <para>
156 c0e4a2c3 Iustin Pop
          Alternatively, a single-disk instance can be created via the
157 c0e4a2c3 Iustin Pop
          <option>-s</option> option which takes a single argument,
158 c0e4a2c3 Iustin Pop
          the size of the disk. This is similar to the Ganeti 1.2
159 c0e4a2c3 Iustin Pop
          version (but will only create one disk).
160 c0e4a2c3 Iustin Pop
        </para>
161 c0e4a2c3 Iustin Pop
162 c0e4a2c3 Iustin Pop
        <para>
163 d3b4cf9f Iustin Pop
          The minimum disk specification is therefore
164 c0e4a2c3 Iustin Pop
          <userinput>--disk 0:size=20G</userinput> (or <userinput>-s
165 c0e4a2c3 Iustin Pop
          20G</userinput> when using the <option>-s</option> option),
166 c0e4a2c3 Iustin Pop
          and a three-disk instance can be specified as
167 c0e4a2c3 Iustin Pop
          <userinput>--disk 0:size=20G --disk 1:size=4G --disk
168 c0e4a2c3 Iustin Pop
          2:size=100G</userinput>.
169 a8083063 Iustin Pop
        </para>
170 a8083063 Iustin Pop
171 a8083063 Iustin Pop
        <para>
172 1d65264b Iustin Pop
          The <option>--no-ip-check</option> skips the checks that are
173 1d65264b Iustin Pop
          done to see if the instance's IP is not already alive
174 1d65264b Iustin Pop
          (i.e. reachable from the master node).
175 1d65264b Iustin Pop
        </para>
176 1d65264b Iustin Pop
177 1d65264b Iustin Pop
        <para>
178 1d65264b Iustin Pop
          The <option>--no-name-check</option> skips the check for the
179 1d65264b Iustin Pop
          instance name via the resolver (e.g. in DNS or /etc/hosts,
180 1d65264b Iustin Pop
          depending on your setup). Since the name check is used to
181 1d65264b Iustin Pop
          compute the IP address, if you pass this option you must
182 1d65264b Iustin Pop
          also pass the <option>--no-ip-check</option> option.
183 1d65264b Iustin Pop
        </para>
184 1d65264b Iustin Pop
185 1d65264b Iustin Pop
        <para>
186 1d65264b Iustin Pop
          If you don't wat the instance to automatically start after
187 1d65264b Iustin Pop
          creation, this is possible via the
188 1d65264b Iustin Pop
          <option>--no-start</option> option. This will leave the
189 1d65264b Iustin Pop
          instance down until a subsequent <command>gnt-instance
190 1d65264b Iustin Pop
          start</command> command.
191 1d65264b Iustin Pop
        </para>
192 1d65264b Iustin Pop
193 1d65264b Iustin Pop
        <para>
194 d3b4cf9f Iustin Pop
          The NICs of the instances can be specified via the
195 091c2c64 Guido Trotter
          <option>--net</option> option. By default, one NIC is
196 7d713344 Guido Trotter
          created for the instance, with a random MAC, and set
197 7d713344 Guido Trotter
          up according the the cluster level nic parameters.
198 7d713344 Guido Trotter
          Each NIC can take these parameters (all optional):
199 d3b4cf9f Iustin Pop
          <variablelist>
200 d3b4cf9f Iustin Pop
            <varlistentry>
201 d3b4cf9f Iustin Pop
              <term>mac</term>
202 d3b4cf9f Iustin Pop
              <listitem>
203 d3b4cf9f Iustin Pop
                <simpara>either a value or <constant>GENERATE</constant>
204 d3b4cf9f Iustin Pop
                  to generate a new unique MAC</simpara>
205 d3b4cf9f Iustin Pop
              </listitem>
206 d3b4cf9f Iustin Pop
            </varlistentry>
207 d3b4cf9f Iustin Pop
            <varlistentry>
208 d3b4cf9f Iustin Pop
              <term>ip</term>
209 d3b4cf9f Iustin Pop
              <listitem>
210 d3b4cf9f Iustin Pop
                <simpara>specifies the IP address assigned to the
211 d3b4cf9f Iustin Pop
                  instance from the Ganeti side (this is not necessarily
212 d3b4cf9f Iustin Pop
                  what the instance will use, but what the node expects
213 d3b4cf9f Iustin Pop
                  the instance to use)</simpara>
214 d3b4cf9f Iustin Pop
              </listitem>
215 d3b4cf9f Iustin Pop
            </varlistentry>
216 d3b4cf9f Iustin Pop
            <varlistentry>
217 7d713344 Guido Trotter
              <term>mode</term>
218 d3b4cf9f Iustin Pop
              <listitem>
219 7d713344 Guido Trotter
                <simpara>specifies the connection mode for this nic:
220 7d713344 Guido Trotter
                  routed or bridged.</simpara>
221 7d713344 Guido Trotter
              </listitem>
222 7d713344 Guido Trotter
            </varlistentry>
223 7d713344 Guido Trotter
            <varlistentry>
224 7d713344 Guido Trotter
              <term>link</term>
225 7d713344 Guido Trotter
              <listitem>
226 7d713344 Guido Trotter
                <simpara>in bridged mode specifies the bridge to attach
227 7d713344 Guido Trotter
                  this NIC to, in routed mode it's intended to
228 7d713344 Guido Trotter
                  differentiate between different routing tables/instance
229 7d713344 Guido Trotter
                  groups (but the meaning is dependent on the network
230 8063787e Guido Trotter
                  script, see gnt-cluster(8) for more details)</simpara>
231 d3b4cf9f Iustin Pop
              </listitem>
232 d3b4cf9f Iustin Pop
            </varlistentry>
233 d3b4cf9f Iustin Pop
          </variablelist>
234 7d713344 Guido Trotter
          Of these "mode" and "link" are nic parameters, and inherit their
235 7d713344 Guido Trotter
          default at cluster level.
236 b9ac33e9 Iustin Pop
        </para>
237 b9ac33e9 Iustin Pop
238 b9ac33e9 Iustin Pop
        <para>
239 d3b4cf9f Iustin Pop
          Alternatively, if no network is desired for the instance, you
240 d3b4cf9f Iustin Pop
          can prevent the default of one NIC with the
241 d3b4cf9f Iustin Pop
          <option>--no-nics</option> option.
242 a8083063 Iustin Pop
        </para>
243 a8083063 Iustin Pop
244 a8083063 Iustin Pop
        <para>
245 d3b4cf9f Iustin Pop
          The <option>-o</option> options specifies the operating
246 d3b4cf9f Iustin Pop
          system to be installed. The available operating systems can
247 25a8792c Iustin Pop
          be listed with <command>gnt-os
248 25a8792c Iustin Pop
          list</command>. Passing <option>--no-install</option> will
249 25a8792c Iustin Pop
          however skip the OS installation, allowing a manual import
250 25a8792c Iustin Pop
          if so desired. Note that the no-installation mode will
251 25a8792c Iustin Pop
          automatically disable the start-up of the instance (without
252 25a8792c Iustin Pop
          an OS, it most likely won't be able to start-up
253 25a8792c Iustin Pop
          successfully).
254 a8083063 Iustin Pop
        </para>
255 a8083063 Iustin Pop
256 a8083063 Iustin Pop
        <para>
257 d3b4cf9f Iustin Pop
          The <option>-B</option> option specifies the backend
258 d3b4cf9f Iustin Pop
          parameters for the instance. If no such parameters are
259 d3b4cf9f Iustin Pop
          specified, the values are inherited from the cluster. Possible
260 d3b4cf9f Iustin Pop
          parameters are:
261 d3b4cf9f Iustin Pop
          <variablelist>
262 d3b4cf9f Iustin Pop
            <varlistentry>
263 d3b4cf9f Iustin Pop
              <term>memory</term>
264 d3b4cf9f Iustin Pop
              <listitem>
265 d3b4cf9f Iustin Pop
                <simpara>the memory size of the instance; as usual,
266 d3b4cf9f Iustin Pop
                  suffixes can be used to denote the unit, otherwise the
267 d3b4cf9f Iustin Pop
                  value is taken in mebibites</simpara>
268 d3b4cf9f Iustin Pop
              </listitem>
269 d3b4cf9f Iustin Pop
            </varlistentry>
270 d3b4cf9f Iustin Pop
            <varlistentry>
271 d3b4cf9f Iustin Pop
              <term>vcpus</term>
272 d3b4cf9f Iustin Pop
              <listitem>
273 d3b4cf9f Iustin Pop
                <simpara>the number of VCPUs to assign to the instance
274 d3b4cf9f Iustin Pop
                  (if this value makes sense for the hypervisor)</simpara>
275 d3b4cf9f Iustin Pop
              </listitem>
276 d3b4cf9f Iustin Pop
            </varlistentry>
277 d3b4cf9f Iustin Pop
            <varlistentry>
278 d3b4cf9f Iustin Pop
              <term>auto_balance</term>
279 d3b4cf9f Iustin Pop
              <listitem>
280 d3b4cf9f Iustin Pop
                <simpara>whether the instance is considered in the N+1
281 d3b4cf9f Iustin Pop
                  cluster checks (enough redundancy in the cluster to
282 d3b4cf9f Iustin Pop
                  survive a node failure)</simpara>
283 d3b4cf9f Iustin Pop
              </listitem>
284 d3b4cf9f Iustin Pop
            </varlistentry>
285 d3b4cf9f Iustin Pop
          </variablelist>
286 f3a55c90 Alexander Schreiber
        </para>
287 f3a55c90 Alexander Schreiber
288 f3a55c90 Alexander Schreiber
        <para>
289 d3b4cf9f Iustin Pop
          The <option>-H</option> option specified the hypervisor to
290 d3b4cf9f Iustin Pop
          use for the instance (must be one of the enabled hypervisors
291 d3b4cf9f Iustin Pop
          on the cluster) and optionally custom parameters for this
292 d3b4cf9f Iustin Pop
          instance. If not other options are used (i.e. the invocation
293 d3b4cf9f Iustin Pop
          is just <userinput>-H
294 d3b4cf9f Iustin Pop
          <replaceable>NAME</replaceable></userinput>) the instance
295 d3b4cf9f Iustin Pop
          will inherit the cluster options. The defaults below show
296 d3b4cf9f Iustin Pop
          the cluster defaults at cluster creation time.
297 25c5878d Alexander Schreiber
        </para>
298 25c5878d Alexander Schreiber
299 25c5878d Alexander Schreiber
        <para>
300 d3b4cf9f Iustin Pop
          The possible hypervisor options are as follows:
301 25c5878d Alexander Schreiber
          <variablelist>
302 25c5878d Alexander Schreiber
            <varlistentry>
303 d3b4cf9f Iustin Pop
              <term>boot_order</term>
304 25c5878d Alexander Schreiber
              <listitem>
305 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen HVM and KVM
306 d3b4cf9f Iustin Pop
                hypervisors.</simpara>
307 d3b4cf9f Iustin Pop
308 d3b4cf9f Iustin Pop
                <simpara>A string value denoting the boot order. This
309 d3b4cf9f Iustin Pop
                has different meaning for the Xen HVM hypervisor and
310 d3b4cf9f Iustin Pop
                for the KVM one.</simpara>
311 d3b4cf9f Iustin Pop
312 d3b4cf9f Iustin Pop
                <simpara>
313 d3b4cf9f Iustin Pop
                  For Xen HVM, The boot order is a string of letters
314 d3b4cf9f Iustin Pop
                  listing the boot devices, with valid device letters
315 d3b4cf9f Iustin Pop
                  being:
316 d3b4cf9f Iustin Pop
                </simpara>
317 d3b4cf9f Iustin Pop
                  <variablelist>
318 d3b4cf9f Iustin Pop
                    <varlistentry>
319 d3b4cf9f Iustin Pop
                      <term>a</term>
320 d3b4cf9f Iustin Pop
                      <listitem>
321 d3b4cf9f Iustin Pop
                        <para>
322 d3b4cf9f Iustin Pop
                          floppy drive
323 d3b4cf9f Iustin Pop
                        </para>
324 d3b4cf9f Iustin Pop
                      </listitem>
325 d3b4cf9f Iustin Pop
                    </varlistentry>
326 d3b4cf9f Iustin Pop
                    <varlistentry>
327 d3b4cf9f Iustin Pop
                      <term>c</term>
328 d3b4cf9f Iustin Pop
                      <listitem>
329 d3b4cf9f Iustin Pop
                        <para>
330 d3b4cf9f Iustin Pop
                          hard disk
331 d3b4cf9f Iustin Pop
                        </para>
332 d3b4cf9f Iustin Pop
                      </listitem>
333 d3b4cf9f Iustin Pop
                    </varlistentry>
334 d3b4cf9f Iustin Pop
                    <varlistentry>
335 d3b4cf9f Iustin Pop
                      <term>d</term>
336 d3b4cf9f Iustin Pop
                      <listitem>
337 d3b4cf9f Iustin Pop
                        <para>
338 d3b4cf9f Iustin Pop
                          CDROM drive
339 d3b4cf9f Iustin Pop
                        </para>
340 d3b4cf9f Iustin Pop
                      </listitem>
341 d3b4cf9f Iustin Pop
                    </varlistentry>
342 d3b4cf9f Iustin Pop
                    <varlistentry>
343 d3b4cf9f Iustin Pop
                      <term>n</term>
344 d3b4cf9f Iustin Pop
                      <listitem>
345 d3b4cf9f Iustin Pop
                        <para>
346 d3b4cf9f Iustin Pop
                          network boot (PXE)
347 d3b4cf9f Iustin Pop
                        </para>
348 d3b4cf9f Iustin Pop
                      </listitem>
349 d3b4cf9f Iustin Pop
                    </varlistentry>
350 d3b4cf9f Iustin Pop
                  </variablelist>
351 d3b4cf9f Iustin Pop
                <simpara>
352 d3b4cf9f Iustin Pop
                  The default is not to set an HVM boot order which is
353 d3b4cf9f Iustin Pop
                  interpreted as 'dc'.
354 d3b4cf9f Iustin Pop
                </simpara>
355 d3b4cf9f Iustin Pop
356 ac620f3a Guido Trotter
                <simpara>
357 73a19fcd Guido Trotter
                  For KVM the boot order is either
358 73a19fcd Guido Trotter
                  <quote>cdrom</quote>, <quote>disk</quote> or
359 73a19fcd Guido Trotter
                  <quote>network</quote>. Please note that older
360 73a19fcd Guido Trotter
                  versions of KVM couldn't netboot from virtio
361 73a19fcd Guido Trotter
                  interfaces. This has been fixed in more recent
362 73a19fcd Guido Trotter
                  versions and is confirmed to work at least with
363 73a19fcd Guido Trotter
                  qemu-kvm 0.11.1.
364 ac620f3a Guido Trotter
                </simpara>
365 ac620f3a Guido Trotter
366 d3b4cf9f Iustin Pop
              </listitem>
367 d3b4cf9f Iustin Pop
            </varlistentry>
368 d3b4cf9f Iustin Pop
            <varlistentry>
369 d3b4cf9f Iustin Pop
              <term>cdrom_image_path</term>
370 d3b4cf9f Iustin Pop
              <listitem>
371 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
372 d3b4cf9f Iustin Pop
373 d3b4cf9f Iustin Pop
                <simpara>The path to a CDROM image to attach to the
374 d3b4cf9f Iustin Pop
                instance.</simpara>
375 d3b4cf9f Iustin Pop
376 d3b4cf9f Iustin Pop
              </listitem>
377 d3b4cf9f Iustin Pop
            </varlistentry>
378 d3b4cf9f Iustin Pop
            <varlistentry>
379 d3b4cf9f Iustin Pop
              <term>nic_type</term>
380 d3b4cf9f Iustin Pop
              <listitem>
381 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
382 d3b4cf9f Iustin Pop
383 25c5878d Alexander Schreiber
                <para>
384 d3b4cf9f Iustin Pop
                  This parameter determines the way the network cards
385 d3b4cf9f Iustin Pop
                  are presented to the instance. The possible options are:
386 d3b4cf9f Iustin Pop
                  <simplelist>
387 d3b4cf9f Iustin Pop
                    <member>rtl8139 (default for Xen HVM) (HVM & KVM)</member>
388 d3b4cf9f Iustin Pop
                    <member>ne2k_isa (HVM & KVM)</member>
389 d3b4cf9f Iustin Pop
                    <member>ne2k_pci (HVM & KVM)</member>
390 d3b4cf9f Iustin Pop
                    <member>i82551 (KVM)</member>
391 d3b4cf9f Iustin Pop
                    <member>i82557b (KVM)</member>
392 d3b4cf9f Iustin Pop
                    <member>i82559er (KVM)</member>
393 d3b4cf9f Iustin Pop
                    <member>pcnet (KVM)</member>
394 d3b4cf9f Iustin Pop
                    <member>e1000 (KVM)</member>
395 d3b4cf9f Iustin Pop
                    <member>paravirtual (default for KVM) (HVM & KVM)</member>
396 d3b4cf9f Iustin Pop
                  </simplelist>
397 25c5878d Alexander Schreiber
                </para>
398 25c5878d Alexander Schreiber
              </listitem>
399 25c5878d Alexander Schreiber
            </varlistentry>
400 25c5878d Alexander Schreiber
            <varlistentry>
401 d3b4cf9f Iustin Pop
              <term>disk_type</term>
402 25c5878d Alexander Schreiber
              <listitem>
403 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
404 d3b4cf9f Iustin Pop
405 25c5878d Alexander Schreiber
                <para>
406 d3b4cf9f Iustin Pop
                  This parameter determines the way the disks are
407 d3b4cf9f Iustin Pop
                  presented to the instance. The possible options are:
408 d3b4cf9f Iustin Pop
                  <simplelist>
409 d3b4cf9f Iustin Pop
                    <member>ioemu (default for HVM & KVM) (HVM & KVM)</member>
410 d3b4cf9f Iustin Pop
                    <member>ide (HVM & KVM)</member>
411 d3b4cf9f Iustin Pop
                    <member>scsi (KVM)</member>
412 d3b4cf9f Iustin Pop
                    <member>sd (KVM)</member>
413 d3b4cf9f Iustin Pop
                    <member>mtd (KVM)</member>
414 d3b4cf9f Iustin Pop
                    <member>pflash (KVM)</member>
415 d3b4cf9f Iustin Pop
                  </simplelist>
416 25c5878d Alexander Schreiber
                </para>
417 25c5878d Alexander Schreiber
              </listitem>
418 25c5878d Alexander Schreiber
            </varlistentry>
419 25c5878d Alexander Schreiber
            <varlistentry>
420 d3b4cf9f Iustin Pop
              <term>vnc_bind_address</term>
421 25c5878d Alexander Schreiber
              <listitem>
422 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
423 d3b4cf9f Iustin Pop
424 d3b4cf9f Iustin Pop
                <para>Specifies the address that the VNC listener for
425 d3b4cf9f Iustin Pop
                this instance should bind to. Valid values are IPv4
426 d3b4cf9f Iustin Pop
                addresses. Use the address 0.0.0.0 to bind to all
427 d3b4cf9f Iustin Pop
                available interfaces (this is the default) or specify
428 d3b4cf9f Iustin Pop
                the address of one of the interfaces on the node to
429 d3b4cf9f Iustin Pop
                restrict listening to that interface.</para>
430 d3b4cf9f Iustin Pop
              </listitem>
431 d3b4cf9f Iustin Pop
            </varlistentry>
432 d3b4cf9f Iustin Pop
433 d3b4cf9f Iustin Pop
            <varlistentry>
434 d3b4cf9f Iustin Pop
              <term>vnc_tls</term>
435 d3b4cf9f Iustin Pop
              <listitem>
436 d3b4cf9f Iustin Pop
                <simpara>Valid for the KVM hypervisor.</simpara>
437 d3b4cf9f Iustin Pop
438 d3b4cf9f Iustin Pop
                <simpara>A boolean option that controls whether the
439 d3b4cf9f Iustin Pop
                VNC connection is secured with TLS.</simpara>
440 d3b4cf9f Iustin Pop
              </listitem>
441 d3b4cf9f Iustin Pop
            </varlistentry>
442 d3b4cf9f Iustin Pop
443 d3b4cf9f Iustin Pop
            <varlistentry>
444 d3b4cf9f Iustin Pop
              <term>vnc_x509_path</term>
445 d3b4cf9f Iustin Pop
              <listitem>
446 d3b4cf9f Iustin Pop
                <simpara>Valid for the KVM hypervisor.</simpara>
447 d3b4cf9f Iustin Pop
448 d3b4cf9f Iustin Pop
                <para>If <option>vnc_tls</option> is enabled, this
449 d3b4cf9f Iustin Pop
                options specifies the path to the x509 certificate to
450 d3b4cf9f Iustin Pop
                use.</para>
451 d3b4cf9f Iustin Pop
              </listitem>
452 d3b4cf9f Iustin Pop
            </varlistentry>
453 d3b4cf9f Iustin Pop
454 d3b4cf9f Iustin Pop
            <varlistentry>
455 d3b4cf9f Iustin Pop
              <term>vnc_x509_verify</term>
456 d3b4cf9f Iustin Pop
              <listitem>
457 d3b4cf9f Iustin Pop
                <simpara>Valid for the KVM hypervisor.</simpara>
458 d3b4cf9f Iustin Pop
              </listitem>
459 d3b4cf9f Iustin Pop
            </varlistentry>
460 d3b4cf9f Iustin Pop
461 d3b4cf9f Iustin Pop
            <varlistentry>
462 d3b4cf9f Iustin Pop
              <term>acpi</term>
463 d3b4cf9f Iustin Pop
              <listitem>
464 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
465 d3b4cf9f Iustin Pop
466 25c5878d Alexander Schreiber
                <para>
467 d3b4cf9f Iustin Pop
                  A boolean option that specifies if the hypervisor
468 d3b4cf9f Iustin Pop
                  should enable ACPI support for this instance. By
469 d3b4cf9f Iustin Pop
                  default, ACPI is disabled.
470 25c5878d Alexander Schreiber
                </para>
471 25c5878d Alexander Schreiber
              </listitem>
472 25c5878d Alexander Schreiber
            </varlistentry>
473 d3b4cf9f Iustin Pop
474 25c5878d Alexander Schreiber
            <varlistentry>
475 d3b4cf9f Iustin Pop
              <term>pae</term>
476 25c5878d Alexander Schreiber
              <listitem>
477 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
478 d3b4cf9f Iustin Pop
479 25c5878d Alexander Schreiber
                <para>
480 d3b4cf9f Iustin Pop
                  A boolean option that specifies if the hypervisor
481 d3b4cf9f Iustin Pop
                  should enabled PAE support for this instance. The
482 d3b4cf9f Iustin Pop
                  default is false, disabling PAE support.
483 25c5878d Alexander Schreiber
                </para>
484 25c5878d Alexander Schreiber
              </listitem>
485 25c5878d Alexander Schreiber
            </varlistentry>
486 25c5878d Alexander Schreiber
487 d3b4cf9f Iustin Pop
            <varlistentry>
488 bfe61b0b Iustin Pop
              <term>use_localtime</term>
489 bfe61b0b Iustin Pop
              <listitem>
490 bfe61b0b Iustin Pop
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
491 bfe61b0b Iustin Pop
492 bfe61b0b Iustin Pop
                <para>
493 bfe61b0b Iustin Pop
                  A boolean option that specifies if the instance
494 bfe61b0b Iustin Pop
                  should be started with its clock set to the
495 bfe61b0b Iustin Pop
                  localtime of the machine (when true) or to the UTC
496 bfe61b0b Iustin Pop
                  (When false). The default is false, which is useful
497 bfe61b0b Iustin Pop
                  for Linux/Unix machines; for Windows OSes, it is
498 bfe61b0b Iustin Pop
                  recommended to enable this parameter.
499 bfe61b0b Iustin Pop
                </para>
500 bfe61b0b Iustin Pop
              </listitem>
501 bfe61b0b Iustin Pop
            </varlistentry>
502 bfe61b0b Iustin Pop
503 bfe61b0b Iustin Pop
            <varlistentry>
504 d3b4cf9f Iustin Pop
              <term>kernel_path</term>
505 d3b4cf9f Iustin Pop
              <listitem>
506 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara>
507 25c5878d Alexander Schreiber
508 d3b4cf9f Iustin Pop
                <para>
509 d3b4cf9f Iustin Pop
                  This option specifies the path (on the node) to the
510 d3b4cf9f Iustin Pop
                  kernel to boot the instance with. Xen PVM instances
511 d3b4cf9f Iustin Pop
                  always require this, while for KVM if this option is
512 d3b4cf9f Iustin Pop
                  empty, it will cause the machine to load the kernel
513 d3b4cf9f Iustin Pop
                  from its disks.
514 d3b4cf9f Iustin Pop
                </para>
515 d3b4cf9f Iustin Pop
              </listitem>
516 d3b4cf9f Iustin Pop
            </varlistentry>
517 ca9c49d5 Iustin Pop
518 d3b4cf9f Iustin Pop
            <varlistentry>
519 07813a9e Iustin Pop
              <term>kernel_args</term>
520 07813a9e Iustin Pop
              <listitem>
521 07813a9e Iustin Pop
                <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara>
522 07813a9e Iustin Pop
523 07813a9e Iustin Pop
                <para>
524 07813a9e Iustin Pop
                  This options specifies extra arguments to the kernel
525 07813a9e Iustin Pop
                  that will be loaded.  device. This is always used
526 07813a9e Iustin Pop
                  for Xen PVM, while for KVM it is only used if the
527 07813a9e Iustin Pop
                  <option>kernel_path</option> option is also
528 07813a9e Iustin Pop
                  specified.
529 07813a9e Iustin Pop
                </para>
530 07813a9e Iustin Pop
531 07813a9e Iustin Pop
                <para>
532 07813a9e Iustin Pop
                  The default setting for this value is simply
533 07813a9e Iustin Pop
                  <constant>"ro"</constant>, which mounts the root
534 07813a9e Iustin Pop
                  disk (initially) in read-only one. For example,
535 07813a9e Iustin Pop
                  setting this to <userinput>single</userinput> will
536 07813a9e Iustin Pop
                  cause the instance to start in single-user mode.
537 07813a9e Iustin Pop
                </para>
538 07813a9e Iustin Pop
              </listitem>
539 07813a9e Iustin Pop
            </varlistentry>
540 07813a9e Iustin Pop
541 07813a9e Iustin Pop
            <varlistentry>
542 d3b4cf9f Iustin Pop
              <term>initrd_path</term>
543 d3b4cf9f Iustin Pop
              <listitem>
544 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara>
545 ca9c49d5 Iustin Pop
546 d3b4cf9f Iustin Pop
                <para>
547 d3b4cf9f Iustin Pop
                  This option specifies the path (on the node) to the
548 d3b4cf9f Iustin Pop
                  initrd to boot the instance with. Xen PVM instances
549 d3b4cf9f Iustin Pop
                  can use this always, while for KVM if this option is
550 d3b4cf9f Iustin Pop
                  only used if the <option>kernel_path</option> option
551 5645d16b Iustin Pop
                  is also specified. You can pass here either an
552 5645d16b Iustin Pop
                  absolute filename (the path to the initrd) if you
553 5645d16b Iustin Pop
                  want to use an initrd, or use the format
554 5645d16b Iustin Pop
                  <userinput>no_initrd_path</userinput> for no initrd.
555 d3b4cf9f Iustin Pop
                </para>
556 d3b4cf9f Iustin Pop
              </listitem>
557 d3b4cf9f Iustin Pop
            </varlistentry>
558 ca9c49d5 Iustin Pop
559 d3b4cf9f Iustin Pop
            <varlistentry>
560 d3b4cf9f Iustin Pop
              <term>root_path</term>
561 d3b4cf9f Iustin Pop
              <listitem>
562 d3b4cf9f Iustin Pop
                <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara>
563 02d2adf4 Alexander Schreiber
564 d3b4cf9f Iustin Pop
                <para>
565 d3b4cf9f Iustin Pop
                  This options specifies the name of the root
566 d3b4cf9f Iustin Pop
                  device. This is always needed for Xen PVM, while for
567 d3b4cf9f Iustin Pop
                  KVM it is only used if the
568 d3b4cf9f Iustin Pop
                  <option>kernel_path</option> option is also
569 d3b4cf9f Iustin Pop
                  specified.
570 d3b4cf9f Iustin Pop
                </para>
571 d3b4cf9f Iustin Pop
              </listitem>
572 d3b4cf9f Iustin Pop
            </varlistentry>
573 d3b4cf9f Iustin Pop
574 d3b4cf9f Iustin Pop
            <varlistentry>
575 d3b4cf9f Iustin Pop
              <term>serial_console</term>
576 d3b4cf9f Iustin Pop
              <listitem>
577 d3b4cf9f Iustin Pop
                <simpara>Valid for the KVM hypervisor.</simpara>
578 d3b4cf9f Iustin Pop
579 d3b4cf9f Iustin Pop
                <simpara>This boolean option specifies whether to
580 d3b4cf9f Iustin Pop
                emulate a serial console for the instance.</simpara>
581 d3b4cf9f Iustin Pop
              </listitem>
582 d3b4cf9f Iustin Pop
            </varlistentry>
583 78411c60 Iustin Pop
584 19572932 Iustin Pop
            <varlistentry>
585 19572932 Iustin Pop
              <term>disk_cache</term>
586 19572932 Iustin Pop
              <listitem>
587 19572932 Iustin Pop
                <simpara>Valid for the KVM hypervisor.</simpara>
588 19572932 Iustin Pop
589 19572932 Iustin Pop
                <simpara>The disk cache mode. It can be either
590 19572932 Iustin Pop
                <userinput>default</userinput> to not pass any cache
591 19572932 Iustin Pop
                option to KVM, or one of the KVM cache modes: none
592 19572932 Iustin Pop
                (for direct I/O), writethrough (to use the host cache
593 19572932 Iustin Pop
                but report completion to the guest only when the host
594 19572932 Iustin Pop
                has commited the changes to disk) or writeback (to use
595 19572932 Iustin Pop
                the host cache and report completion as soon as the
596 19572932 Iustin Pop
                data is in the host cache). Note that there are
597 19572932 Iustin Pop
                special considerations for the cache mode depending on
598 19572932 Iustin Pop
                version of KVM used and disk type (always raw file
599 19572932 Iustin Pop
                under Ganeti), please refer to the KVM documentation
600 19572932 Iustin Pop
                for more details.
601 19572932 Iustin Pop
                </simpara>
602 19572932 Iustin Pop
              </listitem>
603 19572932 Iustin Pop
            </varlistentry>
604 19572932 Iustin Pop
605 caf39b8a Guido Trotter
            <varlistentry>
606 caf39b8a Guido Trotter
              <term>security_model</term>
607 caf39b8a Guido Trotter
              <listitem>
608 caf39b8a Guido Trotter
                <simpara>Valid for the KVM hypervisor.</simpara>
609 caf39b8a Guido Trotter
610 caf39b8a Guido Trotter
                <simpara>The security model for kvm. Currently one of
611 caf39b8a Guido Trotter
                <quote>none</quote>, <quote>user</quote> or
612 caf39b8a Guido Trotter
                <quote>pool</quote>. Under <quote>none</quote>, the
613 caf39b8a Guido Trotter
                default, nothing is done and instances are run as
614 caf39b8a Guido Trotter
                the ganeti daemon user (normally root).
615 caf39b8a Guido Trotter
                </simpara>
616 caf39b8a Guido Trotter
617 caf39b8a Guido Trotter
                <simpara>Under <quote>user</quote> kvm will drop
618 caf39b8a Guido Trotter
                privileges and become the user specified by the
619 caf39b8a Guido Trotter
                security_domain parameter.
620 caf39b8a Guido Trotter
                </simpara>
621 caf39b8a Guido Trotter
622 caf39b8a Guido Trotter
                <simpara>Under <quote>pool</quote> a global cluster
623 caf39b8a Guido Trotter
                pool of users will be used, making sure no two
624 caf39b8a Guido Trotter
                instances share the same user on the same node.
625 caf39b8a Guido Trotter
                (this mode is not implemented yet)
626 caf39b8a Guido Trotter
                </simpara>
627 caf39b8a Guido Trotter
628 caf39b8a Guido Trotter
              </listitem>
629 caf39b8a Guido Trotter
            </varlistentry>
630 caf39b8a Guido Trotter
631 caf39b8a Guido Trotter
            <varlistentry>
632 caf39b8a Guido Trotter
              <term>security_domain</term>
633 caf39b8a Guido Trotter
              <listitem>
634 caf39b8a Guido Trotter
                <simpara>Valid for the KVM hypervisor.</simpara>
635 caf39b8a Guido Trotter
636 caf39b8a Guido Trotter
                <simpara>Under security model <quote>user</quote> the username to
637 caf39b8a Guido Trotter
                run the instance under. It must be a valid username
638 caf39b8a Guido Trotter
                existing on the host.
639 caf39b8a Guido Trotter
                </simpara>
640 caf39b8a Guido Trotter
                <simpara>Cannot be set under security model <quote>none</quote>
641 caf39b8a Guido Trotter
                or <quote>pool</quote>.
642 caf39b8a Guido Trotter
                </simpara>
643 caf39b8a Guido Trotter
644 caf39b8a Guido Trotter
              </listitem>
645 caf39b8a Guido Trotter
            </varlistentry>
646 caf39b8a Guido Trotter
647 d3b4cf9f Iustin Pop
          </variablelist>
648 78411c60 Iustin Pop
649 02d2adf4 Alexander Schreiber
        </para>
650 02d2adf4 Alexander Schreiber
651 02d2adf4 Alexander Schreiber
        <para>
652 a53a1b18 Michael Hanselmann
          The <option>--iallocator</option> option specifies the instance
653 a53a1b18 Michael Hanselmann
          allocator plugin to use. If you pass in this option the allocator
654 a53a1b18 Michael Hanselmann
          will select nodes for this instance automatically, so you don't need
655 a53a1b18 Michael Hanselmann
          to pass them with the <option>-n</option> option. For more
656 a53a1b18 Michael Hanselmann
          information please refer to the instance allocator documentation.
657 a53a1b18 Michael Hanselmann
        </para>
658 a53a1b18 Michael Hanselmann
659 a53a1b18 Michael Hanselmann
        <para>
660 a8083063 Iustin Pop
          The <option>-t</option> options specifies the disk layout type for
661 a8083063 Iustin Pop
          the instance. The available choices are:
662 a8083063 Iustin Pop
          <variablelist>
663 a8083063 Iustin Pop
            <varlistentry>
664 a8083063 Iustin Pop
              <term>diskless</term>
665 a8083063 Iustin Pop
              <listitem>
666 a8083063 Iustin Pop
                <para>
667 a8083063 Iustin Pop
                  This creates an instance with no disks. Its useful for
668 a8083063 Iustin Pop
                  testing only (or other special cases).
669 a8083063 Iustin Pop
                </para>
670 a8083063 Iustin Pop
              </listitem>
671 a8083063 Iustin Pop
            </varlistentry>
672 a8083063 Iustin Pop
            <varlistentry>
673 495beb42 Manuel Franceschini
              <term>file</term>
674 495beb42 Manuel Franceschini
              <listitem>
675 495beb42 Manuel Franceschini
                <para>Disk devices will be regular files.</para>
676 495beb42 Manuel Franceschini
              </listitem>
677 495beb42 Manuel Franceschini
            </varlistentry>
678 495beb42 Manuel Franceschini
            <varlistentry>
679 a8083063 Iustin Pop
              <term>plain</term>
680 a8083063 Iustin Pop
              <listitem>
681 a8083063 Iustin Pop
                <para>Disk devices will be logical volumes.</para>
682 a8083063 Iustin Pop
              </listitem>
683 a8083063 Iustin Pop
            </varlistentry>
684 a8083063 Iustin Pop
            <varlistentry>
685 f69dab6d Iustin Pop
              <term>drbd</term>
686 f69dab6d Iustin Pop
              <listitem>
687 f69dab6d Iustin Pop
                <para>
688 f69dab6d Iustin Pop
                  Disk devices will be drbd (version 8.x) on top of
689 f9193417 Iustin Pop
                  lvm volumes.
690 a8083063 Iustin Pop
                </para>
691 a8083063 Iustin Pop
              </listitem>
692 a8083063 Iustin Pop
            </varlistentry>
693 a8083063 Iustin Pop
          </variablelist>
694 a8083063 Iustin Pop
        </para>
695 a8083063 Iustin Pop
696 a8083063 Iustin Pop
        <para>
697 4677a909 Michael Hanselmann
          The optional second value of the <option>--node</option> is used for
698 bd028152 Iustin Pop
          the drbd template type and specifies the remote node.
699 a8083063 Iustin Pop
        </para>
700 a8083063 Iustin Pop
701 a8083063 Iustin Pop
        <para>
702 a8083063 Iustin Pop
          If you do not want gnt-instance to wait for the disk mirror
703 a8083063 Iustin Pop
          to be synced, use the <option>--no-wait-for-sync</option>
704 a8083063 Iustin Pop
          option.
705 a8083063 Iustin Pop
        </para>
706 a8083063 Iustin Pop
707 a8083063 Iustin Pop
        <para>
708 495beb42 Manuel Franceschini
          The <option>--file-storage-dir</option> specifies the relative path
709 495beb42 Manuel Franceschini
          under the cluster-wide file storage directory to store file-based
710 495beb42 Manuel Franceschini
          disks. It is useful for having different subdirectories for
711 495beb42 Manuel Franceschini
          different instances. The full path of the directory where the disk
712 495beb42 Manuel Franceschini
          files are stored will consist of cluster-wide file storage directory
713 495beb42 Manuel Franceschini
          + optional subdirectory + instance name. Example:
714 495beb42 Manuel Franceschini
          /srv/ganeti/file-storage/mysubdir/instance1.example.com. This option
715 495beb42 Manuel Franceschini
          is only relevant for instances using the file storage backend.
716 495beb42 Manuel Franceschini
        </para>
717 495beb42 Manuel Franceschini
718 495beb42 Manuel Franceschini
        <para>
719 495beb42 Manuel Franceschini
          The <option>--file-driver</option> specifies the driver to use for
720 495beb42 Manuel Franceschini
          file-based disks. Note that currently these drivers work with the
721 495beb42 Manuel Franceschini
          xen hypervisor only. This option is only relevant for instances using
722 495beb42 Manuel Franceschini
          the file storage backend. The available choices are:
723 495beb42 Manuel Franceschini
          <variablelist>
724 495beb42 Manuel Franceschini
            <varlistentry>
725 495beb42 Manuel Franceschini
              <term>loop</term>
726 495beb42 Manuel Franceschini
              <listitem>
727 d3b4cf9f Iustin Pop
                <para>
728 d3b4cf9f Iustin Pop
                  Kernel loopback driver. This driver uses loopback
729 d3b4cf9f Iustin Pop
                  devices to access the filesystem within the
730 d3b4cf9f Iustin Pop
                  file. However, running I/O intensive applications in
731 d3b4cf9f Iustin Pop
                  your instance using the loop driver might result in
732 d3b4cf9f Iustin Pop
                  slowdowns.  Furthermore, if you use the loopback
733 d3b4cf9f Iustin Pop
                  driver consider increasing the maximum amount of
734 d3b4cf9f Iustin Pop
                  loopback devices (on most systems it's 8) using the
735 d3b4cf9f Iustin Pop
                  max_loop param.
736 d3b4cf9f Iustin Pop
                </para>
737 495beb42 Manuel Franceschini
              </listitem>
738 495beb42 Manuel Franceschini
            </varlistentry>
739 495beb42 Manuel Franceschini
            <varlistentry>
740 495beb42 Manuel Franceschini
              <term>blktap</term>
741 495beb42 Manuel Franceschini
              <listitem>
742 d3b4cf9f Iustin Pop
                <para>The blktap driver (for Xen hypervisors). In
743 d3b4cf9f Iustin Pop
                order to be able to use the blktap driver you should
744 d3b4cf9f Iustin Pop
                check if the 'blktapctrl' user space disk agent is
745 d3b4cf9f Iustin Pop
                running (usually automatically started via xend). This
746 d3b4cf9f Iustin Pop
                user-level disk I/O interface has the advantage of
747 d3b4cf9f Iustin Pop
                better performance. Especially if you use a network
748 d3b4cf9f Iustin Pop
                file system (e.g. NFS) to store your instances this is
749 d3b4cf9f Iustin Pop
                the recommended choice.
750 d3b4cf9f Iustin Pop
                </para>
751 495beb42 Manuel Franceschini
              </listitem>
752 495beb42 Manuel Franceschini
            </varlistentry>
753 67470f58 Iustin Pop
          </variablelist>
754 495beb42 Manuel Franceschini
        </para>
755 495beb42 Manuel Franceschini
756 495beb42 Manuel Franceschini
        <para>
757 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
758 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
759 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
760 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
761 bd028152 Iustin Pop
        </para>
762 495beb42 Manuel Franceschini
763 495beb42 Manuel Franceschini
        <para>
764 a8083063 Iustin Pop
          Example:
765 a8083063 Iustin Pop
          <screen>
766 d3b4cf9f Iustin Pop
# gnt-instance add -t file --disk 0:size=30g -B memory=512 -o debian-etch \
767 495beb42 Manuel Franceschini
  -n node1.example.com --file-storage-dir=mysubdir instance1.example.com
768 d3b4cf9f Iustin Pop
# gnt-instance add -t plain --disk 0:size=30g -B memory=512 -o debian-etch \
769 b9ac33e9 Iustin Pop
  -n node1.example.com instance1.example.com
770 d3b4cf9f Iustin Pop
# gnt-instance add -t drbd --disk 0:size=30g -B memory=512 -o debian-etch \
771 4677a909 Michael Hanselmann
  -n node1.example.com:node2.example.com instance2.example.com
772 a8083063 Iustin Pop
          </screen>
773 a8083063 Iustin Pop
        </para>
774 a8083063 Iustin Pop
      </refsect3>
775 a8083063 Iustin Pop
776 a8083063 Iustin Pop
      <refsect3>
777 d3b4cf9f Iustin Pop
        <title>BATCH-CREATE</title>
778 d3b4cf9f Iustin Pop
        <cmdsynopsis>
779 d3b4cf9f Iustin Pop
          <command>batch-create</command>
780 d3b4cf9f Iustin Pop
          <arg choice="req">instances_file.json</arg>
781 d3b4cf9f Iustin Pop
        </cmdsynopsis>
782 d3b4cf9f Iustin Pop
783 d3b4cf9f Iustin Pop
        <para>
784 d3b4cf9f Iustin Pop
          This command (similar to the Ganeti 1.2
785 d3b4cf9f Iustin Pop
          <command>batcher</command> tool) submits multiple instance
786 d3b4cf9f Iustin Pop
          creation jobs based on a definition file. The instance
787 d3b4cf9f Iustin Pop
          configurations do not encompass all the possible options for
788 d3b4cf9f Iustin Pop
          the <command>add</command> command, but only a subset.
789 d3b4cf9f Iustin Pop
        </para>
790 d3b4cf9f Iustin Pop
791 d3b4cf9f Iustin Pop
        <para>
792 d3b4cf9f Iustin Pop
          The instance file should be a valid-formed JSON file,
793 d3b4cf9f Iustin Pop
          containing a dictionary with instance name and instance
794 d3b4cf9f Iustin Pop
          parameters. The accepted parameters are:
795 d3b4cf9f Iustin Pop
796 d3b4cf9f Iustin Pop
          <variablelist>
797 d3b4cf9f Iustin Pop
            <varlistentry>
798 d3b4cf9f Iustin Pop
              <term>disk_size</term>
799 d3b4cf9f Iustin Pop
              <listitem>
800 d3b4cf9f Iustin Pop
                <simpara>The size of the disks of the instance.</simpara>
801 d3b4cf9f Iustin Pop
              </listitem>
802 d3b4cf9f Iustin Pop
            </varlistentry>
803 d3b4cf9f Iustin Pop
            <varlistentry>
804 d3b4cf9f Iustin Pop
              <term>disk_templace</term>
805 d3b4cf9f Iustin Pop
              <listitem>
806 d3b4cf9f Iustin Pop
                <simpara>The disk template to use for the instance,
807 d3b4cf9f Iustin Pop
                the same as in the <command>add</command>
808 d3b4cf9f Iustin Pop
                command.</simpara>
809 d3b4cf9f Iustin Pop
              </listitem>
810 d3b4cf9f Iustin Pop
            </varlistentry>
811 d3b4cf9f Iustin Pop
            <varlistentry>
812 d3b4cf9f Iustin Pop
              <term>backend</term>
813 d3b4cf9f Iustin Pop
              <listitem>
814 d3b4cf9f Iustin Pop
                <simpara>A dictionary of backend parameters.</simpara>
815 d3b4cf9f Iustin Pop
              </listitem>
816 d3b4cf9f Iustin Pop
            </varlistentry>
817 d3b4cf9f Iustin Pop
            <varlistentry>
818 d3b4cf9f Iustin Pop
              <term>hypervisor</term>
819 d3b4cf9f Iustin Pop
              <listitem>
820 d3b4cf9f Iustin Pop
                <simpara>A dictionary with a single key (the
821 d3b4cf9f Iustin Pop
                hypervisor name), and as value the hypervisor
822 d3b4cf9f Iustin Pop
                options. If not passed, the default hypervisor and
823 d3b4cf9f Iustin Pop
                hypervisor options will be inherited.</simpara>
824 d3b4cf9f Iustin Pop
              </listitem>
825 d3b4cf9f Iustin Pop
            </varlistentry>
826 d3b4cf9f Iustin Pop
            <varlistentry>
827 7d713344 Guido Trotter
              <term>mac, ip, mode, link</term>
828 d3b4cf9f Iustin Pop
              <listitem>
829 d3b4cf9f Iustin Pop
                <simpara>Specifications for the one NIC that will be
830 0b063b42 Guido Trotter
                created for the instance. 'bridge' is also accepted
831 0b063b42 Guido Trotter
                as a backwards compatibile key.</simpara>
832 0b063b42 Guido Trotter
              </listitem>
833 0b063b42 Guido Trotter
            </varlistentry>
834 0b063b42 Guido Trotter
            <varlistentry>
835 0b063b42 Guido Trotter
              <term>nics</term>
836 0b063b42 Guido Trotter
              <listitem>
837 0b063b42 Guido Trotter
                <simpara>List of nics that will be created for the
838 0b063b42 Guido Trotter
                instance. Each entry should be a dict, with mac, ip, mode
839 0b063b42 Guido Trotter
                and link as possible keys. Please don't provide the "mac,
840 0b063b42 Guido Trotter
                ip, mode, link" parent keys if you use this method for
841 0b063b42 Guido Trotter
                specifying nics.</simpara>
842 d3b4cf9f Iustin Pop
              </listitem>
843 d3b4cf9f Iustin Pop
            </varlistentry>
844 d3b4cf9f Iustin Pop
            <varlistentry>
845 d3b4cf9f Iustin Pop
              <term>primary_node, secondary_node</term>
846 d3b4cf9f Iustin Pop
              <listitem>
847 d3b4cf9f Iustin Pop
                <simpara>The primary and optionally the secondary node
848 d3b4cf9f Iustin Pop
                to use for the instance (in case an iallocator script
849 d3b4cf9f Iustin Pop
                is not used).</simpara>
850 d3b4cf9f Iustin Pop
              </listitem>
851 d3b4cf9f Iustin Pop
            </varlistentry>
852 d3b4cf9f Iustin Pop
            <varlistentry>
853 d3b4cf9f Iustin Pop
              <term>iallocator</term>
854 d3b4cf9f Iustin Pop
              <listitem>
855 d3b4cf9f Iustin Pop
                <simpara>Instead of specifying the nodes, an
856 d3b4cf9f Iustin Pop
                iallocator script can be used to automatically compute
857 d3b4cf9f Iustin Pop
                them.</simpara>
858 d3b4cf9f Iustin Pop
              </listitem>
859 d3b4cf9f Iustin Pop
            </varlistentry>
860 d3b4cf9f Iustin Pop
            <varlistentry>
861 d3b4cf9f Iustin Pop
              <term>start</term>
862 d3b4cf9f Iustin Pop
              <listitem>
863 d3b4cf9f Iustin Pop
                <simpara>whether to start the instance</simpara>
864 d3b4cf9f Iustin Pop
              </listitem>
865 d3b4cf9f Iustin Pop
            </varlistentry>
866 d3b4cf9f Iustin Pop
            <varlistentry>
867 d3b4cf9f Iustin Pop
              <term>ip_check</term>
868 d3b4cf9f Iustin Pop
              <listitem>
869 d3b4cf9f Iustin Pop
                <simpara>Skip the check for already-in-use instance;
870 d3b4cf9f Iustin Pop
                see the description in the <command>add</command>
871 d3b4cf9f Iustin Pop
                command for details.</simpara>
872 d3b4cf9f Iustin Pop
              </listitem>
873 d3b4cf9f Iustin Pop
            </varlistentry>
874 d3b4cf9f Iustin Pop
            <varlistentry>
875 1d65264b Iustin Pop
              <term>name_check</term>
876 1d65264b Iustin Pop
              <listitem>
877 1d65264b Iustin Pop
                <simpara>Skip the name check for instances;
878 1d65264b Iustin Pop
                see the description in the <command>add</command>
879 1d65264b Iustin Pop
                command for details.</simpara>
880 1d65264b Iustin Pop
              </listitem>
881 1d65264b Iustin Pop
            </varlistentry>
882 1d65264b Iustin Pop
            <varlistentry>
883 d3b4cf9f Iustin Pop
              <term>file_storage_dir, file_driver</term>
884 d3b4cf9f Iustin Pop
              <listitem>
885 d3b4cf9f Iustin Pop
                <simpara>Configuration for the <literal>file</literal>
886 d3b4cf9f Iustin Pop
                disk type, see the <command>add</command> command for
887 d3b4cf9f Iustin Pop
                details.</simpara>
888 d3b4cf9f Iustin Pop
              </listitem>
889 d3b4cf9f Iustin Pop
            </varlistentry>
890 d3b4cf9f Iustin Pop
          </variablelist>
891 d3b4cf9f Iustin Pop
        </para>
892 d3b4cf9f Iustin Pop
893 d3b4cf9f Iustin Pop
        <para>
894 d3b4cf9f Iustin Pop
          A simple definition for one instance can be (with most of
895 d3b4cf9f Iustin Pop
          the parameters taken from the cluster defaults):
896 d3b4cf9f Iustin Pop
          <screen>
897 d3b4cf9f Iustin Pop
{
898 d3b4cf9f Iustin Pop
  "instance3": {
899 d3b4cf9f Iustin Pop
    "template": "drbd",
900 d3b4cf9f Iustin Pop
    "os": "debootstrap",
901 d3b4cf9f Iustin Pop
    "disk_size": ["25G"],
902 d3b4cf9f Iustin Pop
    "iallocator": "dumb"
903 d3b4cf9f Iustin Pop
  },
904 d3b4cf9f Iustin Pop
  "instance5": {
905 d3b4cf9f Iustin Pop
    "template": "drbd",
906 d3b4cf9f Iustin Pop
    "os": "debootstrap",
907 d3b4cf9f Iustin Pop
    "disk_size": ["25G"],
908 d3b4cf9f Iustin Pop
    "iallocator": "dumb",
909 d3b4cf9f Iustin Pop
    "hypervisor": "xen-hvm",
910 d3b4cf9f Iustin Pop
    "hvparams": {"acpi": true},
911 d3b4cf9f Iustin Pop
    "backend": {"memory": 512}
912 d3b4cf9f Iustin Pop
  }
913 d3b4cf9f Iustin Pop
}
914 d3b4cf9f Iustin Pop
</screen>
915 d3b4cf9f Iustin Pop
        </para>
916 d3b4cf9f Iustin Pop
917 d3b4cf9f Iustin Pop
        <para>
918 d3b4cf9f Iustin Pop
          The command will display the job id for each submitted instance, as follows:
919 d3b4cf9f Iustin Pop
          <screen>
920 d3b4cf9f Iustin Pop
# gnt-instance batch-create instances.json
921 d3b4cf9f Iustin Pop
instance3: 11224
922 d3b4cf9f Iustin Pop
instance5: 11225
923 d3b4cf9f Iustin Pop
</screen>
924 d3b4cf9f Iustin Pop
        </para>
925 d3b4cf9f Iustin Pop
926 d3b4cf9f Iustin Pop
      </refsect3>
927 d3b4cf9f Iustin Pop
928 d3b4cf9f Iustin Pop
      <refsect3>
929 a8083063 Iustin Pop
        <title>REMOVE</title>
930 a8083063 Iustin Pop
931 a8083063 Iustin Pop
        <cmdsynopsis>
932 a8083063 Iustin Pop
          <command>remove</command>
933 1d67656e Iustin Pop
          <arg>--ignore-failures</arg>
934 1e2c9fd3 Guido Trotter
          <arg>--shutdown-timeout=<replaceable>N</replaceable></arg>
935 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
936 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
937 a8083063 Iustin Pop
        </cmdsynopsis>
938 a8083063 Iustin Pop
939 a8083063 Iustin Pop
        <para>
940 a8083063 Iustin Pop
          Remove an instance. This will remove all data from the
941 a8083063 Iustin Pop
          instance and there is <emphasis>no way back</emphasis>. If
942 a8083063 Iustin Pop
          you are not sure if you use an instance again, use
943 a8083063 Iustin Pop
          <command>shutdown</command> first and leave it in the
944 a8083063 Iustin Pop
          shutdown state for a while.
945 1d67656e Iustin Pop
946 1d67656e Iustin Pop
        </para>
947 1d67656e Iustin Pop
948 1d67656e Iustin Pop
        <para>
949 1d67656e Iustin Pop
          The <option>--ignore-failures</option> option will cause the
950 1d67656e Iustin Pop
          removal to proceed even in the presence of errors during the
951 1d67656e Iustin Pop
          removal of the instance (e.g. during the shutdown or the
952 1d67656e Iustin Pop
          disk removal). If this option is not given, the command will
953 1d67656e Iustin Pop
          stop at the first error.
954 a8083063 Iustin Pop
        </para>
955 a8083063 Iustin Pop
956 a8083063 Iustin Pop
        <para>
957 1e2c9fd3 Guido Trotter
          The <option>--shutdown-timeout</option> is used to specify how
958 1e2c9fd3 Guido Trotter
          much time to wait before forcing the shutdown (xm destroy in xen,
959 1e2c9fd3 Guido Trotter
          killing the kvm process, for kvm). By default two minutes are
960 1e2c9fd3 Guido Trotter
          given to each instance to stop.
961 1e2c9fd3 Guido Trotter
        </para>
962 1e2c9fd3 Guido Trotter
963 1e2c9fd3 Guido Trotter
        <para>
964 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
965 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
966 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
967 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
968 d3b4cf9f Iustin Pop
        </para>
969 d3b4cf9f Iustin Pop
970 d3b4cf9f Iustin Pop
        <para>
971 a8083063 Iustin Pop
          Example:
972 a8083063 Iustin Pop
          <screen>
973 a8083063 Iustin Pop
# gnt-instance remove instance1.example.com
974 a8083063 Iustin Pop
          </screen>
975 a8083063 Iustin Pop
        </para>
976 a8083063 Iustin Pop
      </refsect3>
977 a8083063 Iustin Pop
978 a8083063 Iustin Pop
      <refsect3>
979 a8083063 Iustin Pop
        <title>LIST</title>
980 a8083063 Iustin Pop
981 a8083063 Iustin Pop
        <cmdsynopsis>
982 a8083063 Iustin Pop
          <command>list</command>
983 a8083063 Iustin Pop
          <arg>--no-headers</arg>
984 a8083063 Iustin Pop
          <arg>--separator=<replaceable>SEPARATOR</replaceable></arg>
985 48c4dfa8 Iustin Pop
          <arg>-o <replaceable>[+]FIELD,...</replaceable></arg>
986 d3b4cf9f Iustin Pop
          <arg rep="repeat">instance</arg>
987 a8083063 Iustin Pop
        </cmdsynopsis>
988 a8083063 Iustin Pop
989 a8083063 Iustin Pop
        <para>
990 a8083063 Iustin Pop
          Shows the currently configured instances with memory usage,
991 d3b4cf9f Iustin Pop
          disk usage, the node they are running on, and their run
992 d3b4cf9f Iustin Pop
          status.
993 a8083063 Iustin Pop
        </para>
994 a8083063 Iustin Pop
995 a8083063 Iustin Pop
        <para>
996 a8083063 Iustin Pop
          The <option>--no-headers</option> option will skip the
997 a8083063 Iustin Pop
          initial header line. The <option>--separator</option> option
998 a8083063 Iustin Pop
          takes an argument which denotes what will be used between
999 a8083063 Iustin Pop
          the output fields. Both these options are to help scripting.
1000 a8083063 Iustin Pop
        </para>
1001 a8083063 Iustin Pop
1002 a8083063 Iustin Pop
        <para>
1003 a8083063 Iustin Pop
          The <option>-o</option> option takes a comma-separated list
1004 a8083063 Iustin Pop
          of output fields. The available fields and their meaning
1005 a8083063 Iustin Pop
          are:
1006 a8083063 Iustin Pop
          <variablelist>
1007 a8083063 Iustin Pop
            <varlistentry>
1008 a8083063 Iustin Pop
              <term>name</term>
1009 a8083063 Iustin Pop
              <listitem>
1010 a8083063 Iustin Pop
                <simpara>the instance name</simpara>
1011 a8083063 Iustin Pop
              </listitem>
1012 a8083063 Iustin Pop
            </varlistentry>
1013 a8083063 Iustin Pop
            <varlistentry>
1014 a8083063 Iustin Pop
              <term>os</term>
1015 a8083063 Iustin Pop
              <listitem>
1016 a8083063 Iustin Pop
                <simpara>the OS of the instance</simpara>
1017 a8083063 Iustin Pop
              </listitem>
1018 a8083063 Iustin Pop
            </varlistentry>
1019 a8083063 Iustin Pop
            <varlistentry>
1020 a8083063 Iustin Pop
              <term>pnode</term>
1021 a8083063 Iustin Pop
              <listitem>
1022 a8083063 Iustin Pop
                <simpara>the primary node of the instance</simpara>
1023 a8083063 Iustin Pop
              </listitem>
1024 a8083063 Iustin Pop
            </varlistentry>
1025 a8083063 Iustin Pop
            <varlistentry>
1026 a8083063 Iustin Pop
              <term>snodes</term>
1027 a8083063 Iustin Pop
              <listitem>
1028 4677a909 Michael Hanselmann
                <simpara>comma-separated list of secondary nodes for the
1029 a8083063 Iustin Pop
                  instance; usually this will be just one node</simpara>
1030 a8083063 Iustin Pop
              </listitem>
1031 a8083063 Iustin Pop
            </varlistentry>
1032 a8083063 Iustin Pop
            <varlistentry>
1033 a8083063 Iustin Pop
              <term>admin_state</term>
1034 a8083063 Iustin Pop
              <listitem>
1035 a8083063 Iustin Pop
                <simpara>the desired state of the instance (either "yes"
1036 a8083063 Iustin Pop
                  or "no" denoting the instance should run or
1037 a8083063 Iustin Pop
                  not)</simpara>
1038 a8083063 Iustin Pop
              </listitem>
1039 a8083063 Iustin Pop
            </varlistentry>
1040 a8083063 Iustin Pop
            <varlistentry>
1041 a8083063 Iustin Pop
              <term>disk_template</term>
1042 a8083063 Iustin Pop
              <listitem>
1043 a8083063 Iustin Pop
                <simpara>the disk template of the instance</simpara>
1044 a8083063 Iustin Pop
              </listitem>
1045 a8083063 Iustin Pop
            </varlistentry>
1046 a8083063 Iustin Pop
            <varlistentry>
1047 a8083063 Iustin Pop
              <term>oper_state</term>
1048 a8083063 Iustin Pop
              <listitem>
1049 d8052456 Iustin Pop
                <simpara>the actual state of the instance; can be
1050 d8052456 Iustin Pop
                one of the values "running", "stopped", "(node
1051 d8052456 Iustin Pop
                down)"</simpara>
1052 d8052456 Iustin Pop
              </listitem>
1053 d8052456 Iustin Pop
            </varlistentry>
1054 d8052456 Iustin Pop
            <varlistentry>
1055 d8052456 Iustin Pop
              <term>status</term>
1056 d8052456 Iustin Pop
              <listitem>
1057 d8052456 Iustin Pop
                <simpara>combined form of admin_state and oper_stat;
1058 d8052456 Iustin Pop
                this can be one of:
1059 d8052456 Iustin Pop
                <computeroutput>ERROR_nodedown</computeroutput> if the
1060 d8052456 Iustin Pop
                node of the instance is down,
1061 d8052456 Iustin Pop
                <computeroutput>ERROR_down</computeroutput> if the
1062 d8052456 Iustin Pop
                instance should run but is down,
1063 d8052456 Iustin Pop
                <computeroutput>ERROR_up</computeroutput> if the
1064 d8052456 Iustin Pop
                instance should be stopped but is actually running,
1065 d8052456 Iustin Pop
                <computeroutput>ADMIN_down</computeroutput> if the
1066 d8052456 Iustin Pop
                instance has been stopped (and is stopped) and
1067 d8052456 Iustin Pop
                <computeroutput>running</computeroutput> if the
1068 d8052456 Iustin Pop
                instance is set to be running (and is
1069 d8052456 Iustin Pop
                running)</simpara>
1070 a8083063 Iustin Pop
              </listitem>
1071 a8083063 Iustin Pop
            </varlistentry>
1072 a8083063 Iustin Pop
            <varlistentry>
1073 a8083063 Iustin Pop
              <term>oper_ram</term>
1074 a8083063 Iustin Pop
              <listitem>
1075 a8083063 Iustin Pop
                <simpara>the actual memory usage of the instance as seen
1076 a8083063 Iustin Pop
                  by the hypervisor</simpara>
1077 a8083063 Iustin Pop
              </listitem>
1078 a8083063 Iustin Pop
            </varlistentry>
1079 a8083063 Iustin Pop
            <varlistentry>
1080 a8083063 Iustin Pop
              <term>ip</term>
1081 a8083063 Iustin Pop
              <listitem>
1082 a8083063 Iustin Pop
                <simpara>the ip address ganeti recognizes as associated with
1083 d3b4cf9f Iustin Pop
                the first instance interface</simpara>
1084 a8083063 Iustin Pop
              </listitem>
1085 a8083063 Iustin Pop
            </varlistentry>
1086 a8083063 Iustin Pop
            <varlistentry>
1087 a8083063 Iustin Pop
              <term>mac</term>
1088 a8083063 Iustin Pop
              <listitem>
1089 d3b4cf9f Iustin Pop
                <simpara>the first instance interface MAC address</simpara>
1090 a8083063 Iustin Pop
              </listitem>
1091 a8083063 Iustin Pop
            </varlistentry>
1092 7d713344 Guido Trotter
1093 7d713344 Guido Trotter
            <varlistentry>
1094 8619a3bd Guido Trotter
              <term>nic_mode</term>
1095 7d713344 Guido Trotter
              <listitem>
1096 7d713344 Guido Trotter
                <simpara>the mode of the first instance NIC
1097 7d713344 Guido Trotter
                (routed or bridged)</simpara>
1098 7d713344 Guido Trotter
              </listitem>
1099 7d713344 Guido Trotter
            </varlistentry>
1100 a8083063 Iustin Pop
            <varlistentry>
1101 8619a3bd Guido Trotter
              <term>nic_link</term>
1102 a8083063 Iustin Pop
              <listitem>
1103 7d713344 Guido Trotter
                <simpara>the link of the first instance NIC
1104 a8083063 Iustin Pop
                </simpara>
1105 a8083063 Iustin Pop
              </listitem>
1106 a8083063 Iustin Pop
            </varlistentry>
1107 d8a4b51d Iustin Pop
            <varlistentry>
1108 d8a4b51d Iustin Pop
              <term>sda_size</term>
1109 d8a4b51d Iustin Pop
              <listitem>
1110 d8a4b51d Iustin Pop
                <simpara>the size of the instance's first disk</simpara>
1111 d8a4b51d Iustin Pop
              </listitem>
1112 d8a4b51d Iustin Pop
            </varlistentry>
1113 d8a4b51d Iustin Pop
            <varlistentry>
1114 d8a4b51d Iustin Pop
              <term>sdb_size</term>
1115 d8a4b51d Iustin Pop
              <listitem>
1116 d3b4cf9f Iustin Pop
                <simpara>the size of the instance's second disk, if
1117 d3b4cf9f Iustin Pop
                any</simpara>
1118 d8a4b51d Iustin Pop
              </listitem>
1119 d8a4b51d Iustin Pop
            </varlistentry>
1120 d8a4b51d Iustin Pop
            <varlistentry>
1121 d8a4b51d Iustin Pop
              <term>vcpus</term>
1122 d8a4b51d Iustin Pop
              <listitem>
1123 d8a4b51d Iustin Pop
                <simpara>the number of VCPUs allocated to the
1124 d8a4b51d Iustin Pop
                instance</simpara>
1125 d8a4b51d Iustin Pop
              </listitem>
1126 d8a4b51d Iustin Pop
            </varlistentry>
1127 130a6a6f Iustin Pop
            <varlistentry>
1128 130a6a6f Iustin Pop
              <term>tags</term>
1129 130a6a6f Iustin Pop
              <listitem>
1130 130a6a6f Iustin Pop
                <simpara>comma-separated list of the instances's
1131 130a6a6f Iustin Pop
                tags</simpara>
1132 130a6a6f Iustin Pop
              </listitem>
1133 130a6a6f Iustin Pop
            </varlistentry>
1134 38d7239a Iustin Pop
            <varlistentry>
1135 38d7239a Iustin Pop
              <term>serial_no</term>
1136 38d7239a Iustin Pop
              <listitem>
1137 38d7239a Iustin Pop
                <simpara>the so called 'serial number' of the
1138 38d7239a Iustin Pop
                instance; this is a numeric field that is incremented
1139 38d7239a Iustin Pop
                each time the instance is modified, and it can be used
1140 d3b4cf9f Iustin Pop
                to track modifications</simpara>
1141 d3b4cf9f Iustin Pop
              </listitem>
1142 d3b4cf9f Iustin Pop
            </varlistentry>
1143 edc8fc5f Iustin Pop
            <varlistentry>
1144 edc8fc5f Iustin Pop
              <term>ctime</term>
1145 edc8fc5f Iustin Pop
              <listitem>
1146 edc8fc5f Iustin Pop
                <para>
1147 edc8fc5f Iustin Pop
                  the creation time of the instance; note that this
1148 edc8fc5f Iustin Pop
                  field contains spaces and as such it's harder to
1149 edc8fc5f Iustin Pop
                  parse
1150 edc8fc5f Iustin Pop
                </para>
1151 edc8fc5f Iustin Pop
                <para>
1152 edc8fc5f Iustin Pop
                  if this attribute is not present (e.g. when
1153 edc8fc5f Iustin Pop
                  upgrading from older versions), then "N/A" will be
1154 edc8fc5f Iustin Pop
                  shown instead
1155 edc8fc5f Iustin Pop
                </para>
1156 edc8fc5f Iustin Pop
              </listitem>
1157 edc8fc5f Iustin Pop
            </varlistentry>
1158 edc8fc5f Iustin Pop
            <varlistentry>
1159 edc8fc5f Iustin Pop
              <term>mtime</term>
1160 edc8fc5f Iustin Pop
              <listitem>
1161 edc8fc5f Iustin Pop
                <para>
1162 edc8fc5f Iustin Pop
                  the last modification time of the instance; note
1163 edc8fc5f Iustin Pop
                  that this field contains spaces and as such it's
1164 edc8fc5f Iustin Pop
                  harder to parse
1165 edc8fc5f Iustin Pop
                </para>
1166 edc8fc5f Iustin Pop
                <para>
1167 edc8fc5f Iustin Pop
                  if this attribute is not present (e.g. when
1168 edc8fc5f Iustin Pop
                  upgrading from older versions), then "N/A" will be
1169 edc8fc5f Iustin Pop
                  shown instead
1170 edc8fc5f Iustin Pop
                </para>
1171 edc8fc5f Iustin Pop
              </listitem>
1172 edc8fc5f Iustin Pop
            </varlistentry>
1173 edc8fc5f Iustin Pop
1174 edc8fc5f Iustin Pop
            <varlistentry>
1175 edc8fc5f Iustin Pop
              <term>uuid</term>
1176 edc8fc5f Iustin Pop
              <listitem>
1177 edc8fc5f Iustin Pop
                <simpara>Show the UUID of the instance (generated
1178 edc8fc5f Iustin Pop
                automatically by Ganeti)</simpara>
1179 edc8fc5f Iustin Pop
              </listitem>
1180 edc8fc5f Iustin Pop
            </varlistentry>
1181 90f72445 Iustin Pop
1182 d3b4cf9f Iustin Pop
            <varlistentry>
1183 d3b4cf9f Iustin Pop
              <term>network_port</term>
1184 d3b4cf9f Iustin Pop
              <listitem>
1185 d3b4cf9f Iustin Pop
                <simpara>If the instance has a network port assigned
1186 d3b4cf9f Iustin Pop
                to it (e.g. for VNC connections), this will be shown,
1187 d3b4cf9f Iustin Pop
                otherwise <literal>-</literal> will be
1188 d3b4cf9f Iustin Pop
                displayed.</simpara>
1189 d3b4cf9f Iustin Pop
              </listitem>
1190 d3b4cf9f Iustin Pop
            </varlistentry>
1191 d3b4cf9f Iustin Pop
            <varlistentry>
1192 d3b4cf9f Iustin Pop
              <term>beparams</term>
1193 d3b4cf9f Iustin Pop
              <listitem>
1194 d3b4cf9f Iustin Pop
                <simpara>A text format of the entire beparams for the
1195 d3b4cf9f Iustin Pop
                instance. It's more useful to select individual fields
1196 d3b4cf9f Iustin Pop
                from this dictionary, see below.</simpara>
1197 d3b4cf9f Iustin Pop
              </listitem>
1198 d3b4cf9f Iustin Pop
            </varlistentry>
1199 d3b4cf9f Iustin Pop
            <varlistentry>
1200 d3b4cf9f Iustin Pop
              <term>disk.count</term>
1201 d3b4cf9f Iustin Pop
              <listitem>
1202 d3b4cf9f Iustin Pop
                <simpara>The number of instance disks.</simpara>
1203 d3b4cf9f Iustin Pop
              </listitem>
1204 d3b4cf9f Iustin Pop
            </varlistentry>
1205 d3b4cf9f Iustin Pop
            <varlistentry>
1206 d3b4cf9f Iustin Pop
              <term>disk.size/N</term>
1207 d3b4cf9f Iustin Pop
              <listitem>
1208 d3b4cf9f Iustin Pop
                <simpara>The size of the instance's Nth disk. This is
1209 d3b4cf9f Iustin Pop
                a more generic form of the <literal>sda_size</literal>
1210 d3b4cf9f Iustin Pop
                and <literal>sdb_size</literal> fields.</simpara>
1211 d3b4cf9f Iustin Pop
              </listitem>
1212 d3b4cf9f Iustin Pop
            </varlistentry>
1213 d3b4cf9f Iustin Pop
            <varlistentry>
1214 d3b4cf9f Iustin Pop
              <term>disk.sizes</term>
1215 d3b4cf9f Iustin Pop
              <listitem>
1216 d3b4cf9f Iustin Pop
                <simpara>A comma-separated list of the disk sizes for
1217 d3b4cf9f Iustin Pop
                this instance.</simpara>
1218 d3b4cf9f Iustin Pop
              </listitem>
1219 d3b4cf9f Iustin Pop
            </varlistentry>
1220 d3b4cf9f Iustin Pop
            <varlistentry>
1221 d3b4cf9f Iustin Pop
              <term>disk_usage</term>
1222 d3b4cf9f Iustin Pop
              <listitem>
1223 d3b4cf9f Iustin Pop
                <simpara>The total disk space used by this instance on
1224 d3b4cf9f Iustin Pop
                each of its nodes. This is not the instance-visible
1225 d3b4cf9f Iustin Pop
                disk size, but the actual disk "cost" of the
1226 d3b4cf9f Iustin Pop
                instance.</simpara>
1227 d3b4cf9f Iustin Pop
              </listitem>
1228 d3b4cf9f Iustin Pop
            </varlistentry>
1229 d3b4cf9f Iustin Pop
            <varlistentry>
1230 d3b4cf9f Iustin Pop
              <term>nic.mac/N</term>
1231 d3b4cf9f Iustin Pop
              <listitem>
1232 d3b4cf9f Iustin Pop
                <simpara>The MAC of the Nth instance NIC.</simpara>
1233 d3b4cf9f Iustin Pop
              </listitem>
1234 d3b4cf9f Iustin Pop
            </varlistentry>
1235 d3b4cf9f Iustin Pop
            <varlistentry>
1236 d3b4cf9f Iustin Pop
              <term>nic.ip/N</term>
1237 d3b4cf9f Iustin Pop
              <listitem>
1238 d3b4cf9f Iustin Pop
                <simpara>The IP address of the Nth instance NIC.</simpara>
1239 d3b4cf9f Iustin Pop
              </listitem>
1240 d3b4cf9f Iustin Pop
            </varlistentry>
1241 d3b4cf9f Iustin Pop
            <varlistentry>
1242 7d713344 Guido Trotter
              <term>nic.mode/N</term>
1243 d3b4cf9f Iustin Pop
              <listitem>
1244 7d713344 Guido Trotter
                <simpara>The mode of the Nth instance NIC</simpara>
1245 7d713344 Guido Trotter
              </listitem>
1246 7d713344 Guido Trotter
            </varlistentry>
1247 7d713344 Guido Trotter
            <varlistentry>
1248 7d713344 Guido Trotter
              <term>nic.link/N</term>
1249 7d713344 Guido Trotter
              <listitem>
1250 7d713344 Guido Trotter
                <simpara>The link of the Nth instance NIC</simpara>
1251 d3b4cf9f Iustin Pop
              </listitem>
1252 d3b4cf9f Iustin Pop
            </varlistentry>
1253 d3b4cf9f Iustin Pop
            <varlistentry>
1254 d3b4cf9f Iustin Pop
              <term>nic.macs</term>
1255 d3b4cf9f Iustin Pop
              <listitem>
1256 d3b4cf9f Iustin Pop
                <simpara>A comma-separated list of all the MACs of the
1257 d3b4cf9f Iustin Pop
                instance's NICs.</simpara>
1258 d3b4cf9f Iustin Pop
              </listitem>
1259 d3b4cf9f Iustin Pop
            </varlistentry>
1260 d3b4cf9f Iustin Pop
            <varlistentry>
1261 d3b4cf9f Iustin Pop
              <term>nic.ips</term>
1262 d3b4cf9f Iustin Pop
              <listitem>
1263 d3b4cf9f Iustin Pop
                <simpara>A comma-separated list of all the IP
1264 d3b4cf9f Iustin Pop
                addresses of the instance's NICs.</simpara>
1265 d3b4cf9f Iustin Pop
              </listitem>
1266 d3b4cf9f Iustin Pop
            </varlistentry>
1267 d3b4cf9f Iustin Pop
            <varlistentry>
1268 7d713344 Guido Trotter
              <term>nic.modes</term>
1269 d3b4cf9f Iustin Pop
              <listitem>
1270 7d713344 Guido Trotter
                <simpara>A comma-separated list of all the modes of the
1271 d3b4cf9f Iustin Pop
                instance's NICs.</simpara>
1272 d3b4cf9f Iustin Pop
              </listitem>
1273 d3b4cf9f Iustin Pop
            </varlistentry>
1274 d3b4cf9f Iustin Pop
            <varlistentry>
1275 7d713344 Guido Trotter
              <term>nic.links</term>
1276 7d713344 Guido Trotter
              <listitem>
1277 7d713344 Guido Trotter
                <simpara>A comma-separated list of all the link parameters
1278 7d713344 Guido Trotter
                of the instance's NICs.</simpara>
1279 7d713344 Guido Trotter
              </listitem>
1280 7d713344 Guido Trotter
            </varlistentry>
1281 7d713344 Guido Trotter
            <varlistentry>
1282 d3b4cf9f Iustin Pop
              <term>nic.count</term>
1283 d3b4cf9f Iustin Pop
              <listitem>
1284 d3b4cf9f Iustin Pop
                <simpara>The number of instance nics.</simpara>
1285 d3b4cf9f Iustin Pop
              </listitem>
1286 d3b4cf9f Iustin Pop
            </varlistentry>
1287 d3b4cf9f Iustin Pop
            <varlistentry>
1288 d3b4cf9f Iustin Pop
              <term>hv/<replaceable>NAME</replaceable></term>
1289 d3b4cf9f Iustin Pop
              <listitem>
1290 d3b4cf9f Iustin Pop
                <simpara>The value of the hypervisor parameter called
1291 d3b4cf9f Iustin Pop
                <replaceable>NAME</replaceable>. For details of what
1292 d3b4cf9f Iustin Pop
                hypervisor parameters exist and their meaning, see the
1293 d3b4cf9f Iustin Pop
                <command>add</command> command.</simpara>
1294 d3b4cf9f Iustin Pop
              </listitem>
1295 d3b4cf9f Iustin Pop
            </varlistentry>
1296 d3b4cf9f Iustin Pop
            <varlistentry>
1297 d3b4cf9f Iustin Pop
              <term>be/memory</term>
1298 d3b4cf9f Iustin Pop
              <listitem>
1299 d3b4cf9f Iustin Pop
                <simpara>The configured memory for the instance.</simpara>
1300 d3b4cf9f Iustin Pop
              </listitem>
1301 d3b4cf9f Iustin Pop
            </varlistentry>
1302 d3b4cf9f Iustin Pop
            <varlistentry>
1303 d3b4cf9f Iustin Pop
              <term>be/vcpus</term>
1304 d3b4cf9f Iustin Pop
              <listitem>
1305 d3b4cf9f Iustin Pop
                <simpara>The configured number of VCPUs for the
1306 d3b4cf9f Iustin Pop
                instance.</simpara>
1307 d3b4cf9f Iustin Pop
              </listitem>
1308 d3b4cf9f Iustin Pop
            </varlistentry>
1309 d3b4cf9f Iustin Pop
            <varlistentry>
1310 d3b4cf9f Iustin Pop
              <term>be/auto_balance</term>
1311 d3b4cf9f Iustin Pop
              <listitem>
1312 d3b4cf9f Iustin Pop
                <simpara>Whether the instance is considered in N+1
1313 d3b4cf9f Iustin Pop
                checks.</simpara>
1314 38d7239a Iustin Pop
              </listitem>
1315 38d7239a Iustin Pop
            </varlistentry>
1316 a8083063 Iustin Pop
          </variablelist>
1317 a8083063 Iustin Pop
        </para>
1318 a8083063 Iustin Pop
1319 a8083063 Iustin Pop
        <para>
1320 48c4dfa8 Iustin Pop
          If the value of the option starts with the character
1321 d3b4cf9f Iustin Pop
          <constant>+</constant>, the new field(s) will be added to the
1322 48c4dfa8 Iustin Pop
          default list. This allows to quickly see the default list
1323 48c4dfa8 Iustin Pop
          plus a few other fields, instead of retyping the entire list
1324 48c4dfa8 Iustin Pop
          of fields.
1325 48c4dfa8 Iustin Pop
        </para>
1326 48c4dfa8 Iustin Pop
1327 48c4dfa8 Iustin Pop
        <para>
1328 a8083063 Iustin Pop
          There is a subtle grouping about the available output
1329 872c949f Iustin Pop
          fields: all fields except for <option>oper_state</option>,
1330 872c949f Iustin Pop
          <option>oper_ram</option> and <option>status</option> are
1331 872c949f Iustin Pop
          configuration value and not run-time values. So if you don't
1332 872c949f Iustin Pop
          select any of the these fields, the query will be satisfied
1333 a8083063 Iustin Pop
          instantly from the cluster configuration, without having to
1334 a8083063 Iustin Pop
          ask the remote nodes for the data. This can be helpful for
1335 a8083063 Iustin Pop
          big clusters when you only want some data and it makes sense
1336 a8083063 Iustin Pop
          to specify a reduced set of output fields.
1337 a8083063 Iustin Pop
        </para>
1338 a8083063 Iustin Pop
1339 a8083063 Iustin Pop
        <para>The default output field list is:
1340 a8083063 Iustin Pop
          <simplelist type="inline">
1341 a8083063 Iustin Pop
            <member>name</member>
1342 a8083063 Iustin Pop
            <member>os</member>
1343 a8083063 Iustin Pop
            <member>pnode</member>
1344 a8083063 Iustin Pop
            <member>admin_state</member>
1345 a8083063 Iustin Pop
            <member>oper_state</member>
1346 a8083063 Iustin Pop
            <member>oper_ram</member>
1347 a8083063 Iustin Pop
          </simplelist>.
1348 a8083063 Iustin Pop
        </para>
1349 a8083063 Iustin Pop
      </refsect3>
1350 a8083063 Iustin Pop
1351 a8083063 Iustin Pop
      <refsect3>
1352 a8083063 Iustin Pop
        <title>INFO</title>
1353 a8083063 Iustin Pop
1354 a8083063 Iustin Pop
        <cmdsynopsis>
1355 a8083063 Iustin Pop
          <command>info</command>
1356 57821cac Iustin Pop
          <group>
1357 57821cac Iustin Pop
            <arg>-s</arg>
1358 57821cac Iustin Pop
            <arg>--static</arg>
1359 57821cac Iustin Pop
          </group>
1360 d09ebf6f Guido Trotter
          <group choice="req">
1361 d09ebf6f Guido Trotter
            <arg>--all</arg>
1362 d09ebf6f Guido Trotter
            <arg rep="repeat"><replaceable>instance</replaceable></arg>
1363 d09ebf6f Guido Trotter
          </group>
1364 a8083063 Iustin Pop
        </cmdsynopsis>
1365 a8083063 Iustin Pop
1366 a8083063 Iustin Pop
        <para>
1367 d09ebf6f Guido Trotter
          Show detailed information about the given instance(s). This is
1368 d09ebf6f Guido Trotter
          different from <command>list</command> as it shows detailed data
1369 d04aaa2f Iustin Pop
          about the instance's disks (especially useful for the drbd disk
1370 d09ebf6f Guido Trotter
          template).
1371 a8083063 Iustin Pop
        </para>
1372 57821cac Iustin Pop
1373 57821cac Iustin Pop
        <para>
1374 57821cac Iustin Pop
          If the option <option>-s</option> is used, only information
1375 57821cac Iustin Pop
          available in the configuration file is returned, without
1376 57821cac Iustin Pop
          querying nodes, making the operation faster.
1377 57821cac Iustin Pop
        </para>
1378 d09ebf6f Guido Trotter
1379 d09ebf6f Guido Trotter
        <para>
1380 d09ebf6f Guido Trotter
          Use the <option>--all</option> to get info about all instances,
1381 ba0b05fe Iustin Pop
          rather than explicitly passing the ones you're interested in.
1382 d09ebf6f Guido Trotter
        </para>
1383 a8083063 Iustin Pop
      </refsect3>
1384 a8083063 Iustin Pop
1385 a8083063 Iustin Pop
      <refsect3>
1386 a8083063 Iustin Pop
        <title>MODIFY</title>
1387 a8083063 Iustin Pop
1388 a8083063 Iustin Pop
        <cmdsynopsis>
1389 a8083063 Iustin Pop
          <command>modify</command>
1390 00f98619 Iustin Pop
          <sbr>
1391 d3b4cf9f Iustin Pop
          <arg choice="opt">-H <replaceable>HYPERVISOR_PARAMETERS</replaceable></arg>
1392 d3b4cf9f Iustin Pop
          <sbr>
1393 d3b4cf9f Iustin Pop
          <arg choice="opt">-B <replaceable>BACKEND_PARAMETERS</replaceable></arg>
1394 d3b4cf9f Iustin Pop
          <sbr>
1395 d3b4cf9f Iustin Pop
          <group>
1396 d3b4cf9f Iustin Pop
            <arg>--net add<replaceable><optional>:options</optional></replaceable></arg>
1397 d3b4cf9f Iustin Pop
            <arg>--net remove</arg>
1398 d3b4cf9f Iustin Pop
            <arg>--net <replaceable>N:options</replaceable></arg>
1399 d3b4cf9f Iustin Pop
          </group>
1400 d3b4cf9f Iustin Pop
          <sbr>
1401 d3b4cf9f Iustin Pop
          <group>
1402 d3b4cf9f Iustin Pop
            <arg>--disk add:size=<replaceable>SIZE</replaceable></arg>
1403 d3b4cf9f Iustin Pop
            <arg>--disk remove</arg>
1404 d3b4cf9f Iustin Pop
            <arg>--disk <replaceable>N</replaceable>:mode=<replaceable>MODE</replaceable></arg>
1405 d3b4cf9f Iustin Pop
          </group>
1406 d3b4cf9f Iustin Pop
1407 00f98619 Iustin Pop
          <sbr>
1408 bbf74a76 Iustin Pop
          <arg>-t<group choice="req">
1409 bbf74a76 Iustin Pop
              <arg>plain</arg>
1410 bbf74a76 Iustin Pop
              <arg>drbd</arg>
1411 bbf74a76 Iustin Pop
            </group></arg>
1412 bbf74a76 Iustin Pop
1413 96b39bcc Iustin Pop
          <sbr>
1414 96b39bcc Iustin Pop
            <arg>--os-name=<replaceable>OS</replaceable> <arg>--force-variant</arg></arg>
1415 bbf74a76 Iustin Pop
1416 bbf74a76 Iustin Pop
          <sbr>
1417 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1418 00f98619 Iustin Pop
          <sbr>
1419 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1420 a8083063 Iustin Pop
        </cmdsynopsis>
1421 a8083063 Iustin Pop
1422 a8083063 Iustin Pop
        <para>
1423 d3b4cf9f Iustin Pop
          Modifies the memory size, number of vcpus, ip address, MAC
1424 7d713344 Guido Trotter
          address and/or nic parameters for an instance. It can also
1425 7d713344 Guido Trotter
          add and remove disks and NICs to/from the instance. Note
1426 7d713344 Guido Trotter
          that you need to give at least one of the arguments, otherwise
1427 7d713344 Guido Trotter
          the command complains.
1428 a8083063 Iustin Pop
        </para>
1429 a8083063 Iustin Pop
1430 a8083063 Iustin Pop
        <para>
1431 d3b4cf9f Iustin Pop
          The <option>-H</option> option specifies hypervisor options
1432 d3b4cf9f Iustin Pop
          in the form of <userinput>name=value[,...]</userinput>. For details which options can be specified, see the <command>add</command> command.
1433 a8083063 Iustin Pop
        </para>
1434 a8083063 Iustin Pop
1435 a8083063 Iustin Pop
        <para>
1436 bbf74a76 Iustin Pop
          The <option>-t</option> option will change the disk template
1437 bbf74a76 Iustin Pop
          of the instance. Currently only conversions between the
1438 bbf74a76 Iustin Pop
          plain and drbd disk templates are supported, and the
1439 bbf74a76 Iustin Pop
          instance must be stopped before attempting the conversion.
1440 bbf74a76 Iustin Pop
        </para>
1441 bbf74a76 Iustin Pop
1442 bbf74a76 Iustin Pop
        <para>
1443 d3b4cf9f Iustin Pop
          The <option>--disk
1444 d3b4cf9f Iustin Pop
          add:size=<replaceable>SIZE</replaceable></option> option
1445 d3b4cf9f Iustin Pop
          adds a disk to the instance. The <option>--disk
1446 d3b4cf9f Iustin Pop
          remove</option> will remove the last disk of the
1447 d3b4cf9f Iustin Pop
          instance. The <option>--disk
1448 d3b4cf9f Iustin Pop
          <replaceable>N</replaceable>:mode=<replaceable>MODE</replaceable></option>
1449 d3b4cf9f Iustin Pop
          option will change the mode of the Nth disk of the instance
1450 d3b4cf9f Iustin Pop
          between read-only (<literal>ro</literal>) and read-write
1451 d3b4cf9f Iustin Pop
          (<literal>rw</literal>).
1452 00f98619 Iustin Pop
        </para>
1453 00f98619 Iustin Pop
1454 00f98619 Iustin Pop
        <para>
1455 091c2c64 Guido Trotter
          The <option>--net
1456 d3b4cf9f Iustin Pop
          add:<replaceable>options</replaceable></option> option will
1457 d3b4cf9f Iustin Pop
          add a new NIC to the instance. The available options are the
1458 7d713344 Guido Trotter
          same as in the <command>add</command> command (mac, ip, link,
1459 7d713344 Guido Trotter
          mode). The <option>--net remove</option> will remove the
1460 091c2c64 Guido Trotter
          last NIC of the instance, while the <option>--net
1461 d3b4cf9f Iustin Pop
          <replaceable>N</replaceable>:<replaceable>options</replaceable></option>
1462 d3b4cf9f Iustin Pop
          option will change the parameters of the Nth instance NIC.
1463 25c5878d Alexander Schreiber
        </para>
1464 25c5878d Alexander Schreiber
1465 25c5878d Alexander Schreiber
        <para>
1466 96b39bcc Iustin Pop
          The option <option>--os-name</option> will change the OS
1467 96b39bcc Iustin Pop
          name for the instance (without reinstallation). In case an
1468 96b39bcc Iustin Pop
          OS variant is specified that is not found, then by default
1469 96b39bcc Iustin Pop
          the modification is refused,
1470 96b39bcc Iustin Pop
          unless <option>--force-variant</option> is passed. An
1471 96b39bcc Iustin Pop
          invalid OS will also be refused, unless
1472 96b39bcc Iustin Pop
          the <option>--force</option> option is given.
1473 96b39bcc Iustin Pop
        </para>
1474 96b39bcc Iustin Pop
1475 96b39bcc Iustin Pop
        <para>
1476 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1477 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1478 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1479 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1480 ca9c49d5 Iustin Pop
        </para>
1481 ca9c49d5 Iustin Pop
1482 ca9c49d5 Iustin Pop
        <para>
1483 a8083063 Iustin Pop
          All the changes take effect at the next restart. If the
1484 a8083063 Iustin Pop
          instance is running, there is no effect on the instance.
1485 a8083063 Iustin Pop
        </para>
1486 a8083063 Iustin Pop
      </refsect3>
1487 a8083063 Iustin Pop
1488 d0834de3 Michael Hanselmann
      <refsect3>
1489 d0834de3 Michael Hanselmann
        <title>REINSTALL</title>
1490 d0834de3 Michael Hanselmann
1491 d0834de3 Michael Hanselmann
        <cmdsynopsis>
1492 d0834de3 Michael Hanselmann
          <command>reinstall</command>
1493 d0834de3 Michael Hanselmann
          <arg choice="opt">-o <replaceable>os-type</replaceable></arg>
1494 20e23543 Alexander Schreiber
          <arg>--select-os</arg>
1495 55efe6da Iustin Pop
          <arg choice="opt">-f <replaceable>force</replaceable></arg>
1496 55efe6da Iustin Pop
          <arg>--force-multiple</arg>
1497 55efe6da Iustin Pop
          <sbr>
1498 55efe6da Iustin Pop
          <group choice="opt">
1499 55efe6da Iustin Pop
            <arg>--instance</arg>
1500 55efe6da Iustin Pop
            <arg>--node</arg>
1501 55efe6da Iustin Pop
            <arg>--primary</arg>
1502 55efe6da Iustin Pop
            <arg>--secondary</arg>
1503 55efe6da Iustin Pop
            <arg>--all</arg>
1504 55efe6da Iustin Pop
          </group>
1505 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1506 55efe6da Iustin Pop
          <arg choice="opt" rep="repeat"><replaceable>instance</replaceable></arg>
1507 d0834de3 Michael Hanselmann
        </cmdsynopsis>
1508 d0834de3 Michael Hanselmann
1509 d0834de3 Michael Hanselmann
        <para>
1510 55efe6da Iustin Pop
          Reinstalls the operating system on the given instance(s). The
1511 55efe6da Iustin Pop
          instance(s) must be stopped when running this command. If the
1512 949bdabe Iustin Pop
          <option>--os-type</option> is specified, the operating
1513 949bdabe Iustin Pop
          system is changed.
1514 949bdabe Iustin Pop
        </para>
1515 949bdabe Iustin Pop
1516 949bdabe Iustin Pop
        <para>
1517 20e23543 Alexander Schreiber
          The <option>--select-os</option> option switches to an
1518 20e23543 Alexander Schreiber
          interactive OS reinstall. The user is prompted to select the OS
1519 20e23543 Alexander Schreiber
          template from the list of available OS templates.
1520 20e23543 Alexander Schreiber
        </para>
1521 d3b4cf9f Iustin Pop
1522 d3b4cf9f Iustin Pop
        <para>
1523 55efe6da Iustin Pop
          Since this is a potentially dangerous command, the user will
1524 55efe6da Iustin Pop
          be required to confirm this action, unless the
1525 55efe6da Iustin Pop
          <option>-f</option> flag is passed. When multiple instances
1526 55efe6da Iustin Pop
          are selected (either by passing multiple arguments or by
1527 55efe6da Iustin Pop
          using the <option>--node</option>,
1528 55efe6da Iustin Pop
          <option>--primary</option>, <option>--secondary</option> or
1529 55efe6da Iustin Pop
          <option>--all</option> options), the user must pass both the
1530 55efe6da Iustin Pop
          <option>--force</option> and
1531 55efe6da Iustin Pop
          <option>--force-multiple</option> options to skip the
1532 55efe6da Iustin Pop
          interactive confirmation.
1533 55efe6da Iustin Pop
        </para>
1534 55efe6da Iustin Pop
1535 55efe6da Iustin Pop
        <para>
1536 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1537 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1538 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1539 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1540 d3b4cf9f Iustin Pop
        </para>
1541 d3b4cf9f Iustin Pop
1542 d3b4cf9f Iustin Pop
1543 d0834de3 Michael Hanselmann
      </refsect3>
1544 d0834de3 Michael Hanselmann
1545 decd5f45 Iustin Pop
      <refsect3>
1546 decd5f45 Iustin Pop
        <title>RENAME</title>
1547 decd5f45 Iustin Pop
1548 decd5f45 Iustin Pop
        <cmdsynopsis>
1549 decd5f45 Iustin Pop
          <command>rename</command>
1550 decd5f45 Iustin Pop
          <arg>--no-ip-check</arg>
1551 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1552 decd5f45 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1553 decd5f45 Iustin Pop
          <arg choice="req"><replaceable>new_name</replaceable></arg>
1554 decd5f45 Iustin Pop
        </cmdsynopsis>
1555 decd5f45 Iustin Pop
1556 decd5f45 Iustin Pop
        <para>
1557 decd5f45 Iustin Pop
          Renames the given instance. The instance must be stopped
1558 decd5f45 Iustin Pop
          when running this command. The requirements for the new name
1559 decd5f45 Iustin Pop
          are the same as for adding an instance: the new name must be
1560 decd5f45 Iustin Pop
          resolvable and the IP it resolves to must not be reachable
1561 decd5f45 Iustin Pop
          (in order to prevent duplicate IPs the next time the
1562 decd5f45 Iustin Pop
          instance is started). The IP test can be skipped if the
1563 decd5f45 Iustin Pop
          <option>--no-ip-check</option> option is passed.
1564 decd5f45 Iustin Pop
        </para>
1565 d3b4cf9f Iustin Pop
1566 d3b4cf9f Iustin Pop
        <para>
1567 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1568 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1569 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1570 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1571 d3b4cf9f Iustin Pop
        </para>
1572 d3b4cf9f Iustin Pop
1573 decd5f45 Iustin Pop
      </refsect3>
1574 decd5f45 Iustin Pop
1575 a8083063 Iustin Pop
    </refsect2>
1576 a8083063 Iustin Pop
1577 a8083063 Iustin Pop
    <refsect2>
1578 a8083063 Iustin Pop
      <title>Starting/stopping/connecting to console</title>
1579 a8083063 Iustin Pop
1580 a8083063 Iustin Pop
      <refsect3>
1581 a8083063 Iustin Pop
        <title>STARTUP</title>
1582 a8083063 Iustin Pop
1583 a8083063 Iustin Pop
        <cmdsynopsis>
1584 a8083063 Iustin Pop
          <command>startup</command>
1585 d3b4cf9f Iustin Pop
          <sbr>
1586 3bd5f059 Michael Hanselmann
          <arg>--force</arg>
1587 312ac745 Iustin Pop
          <sbr>
1588 d3b4cf9f Iustin Pop
          <arg>--force-multiple</arg>
1589 d3b4cf9f Iustin Pop
          <sbr>
1590 312ac745 Iustin Pop
          <group choice="opt">
1591 312ac745 Iustin Pop
            <arg>--instance</arg>
1592 312ac745 Iustin Pop
            <arg>--node</arg>
1593 312ac745 Iustin Pop
            <arg>--primary</arg>
1594 312ac745 Iustin Pop
            <arg>--secondary</arg>
1595 312ac745 Iustin Pop
            <arg>--all</arg>
1596 c7c568b4 René Nussbaumer
            <arg>--tags</arg>
1597 c7c568b4 René Nussbaumer
            <arg>--node-tags</arg>
1598 c7c568b4 René Nussbaumer
            <arg>--pri-node-tags</arg>
1599 c7c568b4 René Nussbaumer
            <arg>--sec-node-tags</arg>
1600 312ac745 Iustin Pop
          </group>
1601 312ac745 Iustin Pop
          <sbr>
1602 d04aaa2f Iustin Pop
          <arg>-H <option>key=value...</option></arg>
1603 d04aaa2f Iustin Pop
          <arg>-B <option>key=value...</option></arg>
1604 d04aaa2f Iustin Pop
          <sbr>
1605 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1606 d3b4cf9f Iustin Pop
          <sbr>
1607 312ac745 Iustin Pop
          <arg choice="opt"
1608 312ac745 Iustin Pop
          rep="repeat"><replaceable>name</replaceable></arg>
1609 a8083063 Iustin Pop
        </cmdsynopsis>
1610 a8083063 Iustin Pop
1611 a8083063 Iustin Pop
        <para>
1612 bcee9cb4 Iustin Pop
          Starts one or more instances, depending on the following
1613 bcee9cb4 Iustin Pop
          options. The four available modes are:
1614 312ac745 Iustin Pop
          <variablelist>
1615 312ac745 Iustin Pop
            <varlistentry>
1616 312ac745 Iustin Pop
              <term><option>--instance</option></term>
1617 312ac745 Iustin Pop
              <listitem>
1618 312ac745 Iustin Pop
                <simpara>will start the instances given as arguments
1619 312ac745 Iustin Pop
                (at least one argument required); this is the default
1620 312ac745 Iustin Pop
                selection</simpara>
1621 312ac745 Iustin Pop
              </listitem>
1622 312ac745 Iustin Pop
            </varlistentry>
1623 312ac745 Iustin Pop
            <varlistentry>
1624 312ac745 Iustin Pop
              <term>--node</term>
1625 312ac745 Iustin Pop
              <listitem>
1626 312ac745 Iustin Pop
                <simpara>will start the instances who have the given
1627 312ac745 Iustin Pop
                node as either primary or secondary</simpara>
1628 312ac745 Iustin Pop
              </listitem>
1629 312ac745 Iustin Pop
            </varlistentry>
1630 312ac745 Iustin Pop
            <varlistentry>
1631 312ac745 Iustin Pop
              <term><option>--primary</option></term>
1632 312ac745 Iustin Pop
              <listitem>
1633 312ac745 Iustin Pop
                <simpara>will start all instances whose primary node
1634 312ac745 Iustin Pop
                is in the list of nodes passed as arguments (at least
1635 312ac745 Iustin Pop
                one node required)</simpara>
1636 312ac745 Iustin Pop
              </listitem>
1637 312ac745 Iustin Pop
            </varlistentry>
1638 312ac745 Iustin Pop
            <varlistentry>
1639 312ac745 Iustin Pop
              <term><option>--secondary</option></term>
1640 312ac745 Iustin Pop
              <listitem>
1641 312ac745 Iustin Pop
                <simpara>will start all instances whose secondary node
1642 312ac745 Iustin Pop
                is in the list of nodes passed as arguments (at least
1643 312ac745 Iustin Pop
                one node required)</simpara>
1644 312ac745 Iustin Pop
              </listitem>
1645 312ac745 Iustin Pop
            </varlistentry>
1646 312ac745 Iustin Pop
            <varlistentry>
1647 312ac745 Iustin Pop
              <term>--all</term>
1648 312ac745 Iustin Pop
              <listitem>
1649 312ac745 Iustin Pop
                <simpara>will start all instances in the cluster (no
1650 312ac745 Iustin Pop
                arguments accepted)</simpara>
1651 312ac745 Iustin Pop
              </listitem>
1652 312ac745 Iustin Pop
            </varlistentry>
1653 c7c568b4 René Nussbaumer
            <varlistentry>
1654 c7c568b4 René Nussbaumer
              <term>--tags</term>
1655 c7c568b4 René Nussbaumer
              <listitem>
1656 c7c568b4 René Nussbaumer
                <simpara>will start all instances in the cluster with
1657 c7c568b4 René Nussbaumer
                the tags given as arguments</simpara>
1658 c7c568b4 René Nussbaumer
              </listitem>
1659 c7c568b4 René Nussbaumer
            </varlistentry>
1660 c7c568b4 René Nussbaumer
            <varlistentry>
1661 c7c568b4 René Nussbaumer
              <term>--node-tags</term>
1662 c7c568b4 René Nussbaumer
              <listitem>
1663 c7c568b4 René Nussbaumer
                <simpara>will start all instances in the cluster on
1664 c7c568b4 René Nussbaumer
                nodes with the tags given as arguments</simpara>
1665 c7c568b4 René Nussbaumer
              </listitem>
1666 c7c568b4 René Nussbaumer
            </varlistentry>
1667 c7c568b4 René Nussbaumer
            <varlistentry>
1668 c7c568b4 René Nussbaumer
              <term>--pri-node-tags</term>
1669 c7c568b4 René Nussbaumer
              <listitem>
1670 c7c568b4 René Nussbaumer
                <simpara>will start all instances in the cluster on
1671 c7c568b4 René Nussbaumer
                primary nodes with the tags given as
1672 c7c568b4 René Nussbaumer
                arguments</simpara>
1673 c7c568b4 René Nussbaumer
              </listitem>
1674 c7c568b4 René Nussbaumer
            </varlistentry>
1675 c7c568b4 René Nussbaumer
            <varlistentry>
1676 c7c568b4 René Nussbaumer
              <term>--sec-node-tags</term>
1677 c7c568b4 René Nussbaumer
              <listitem>
1678 c7c568b4 René Nussbaumer
                <simpara>will start all instances in the cluster on
1679 c7c568b4 René Nussbaumer
                secondary nodes with the tags given as
1680 c7c568b4 René Nussbaumer
                arguments</simpara>
1681 c7c568b4 René Nussbaumer
              </listitem>
1682 c7c568b4 René Nussbaumer
            </varlistentry>
1683 312ac745 Iustin Pop
          </variablelist>
1684 312ac745 Iustin Pop
        </para>
1685 312ac745 Iustin Pop
1686 312ac745 Iustin Pop
        <para>
1687 bcee9cb4 Iustin Pop
          Note that although you can pass more than one selection
1688 bcee9cb4 Iustin Pop
          option, the last one wins, so in order to guarantee the
1689 bcee9cb4 Iustin Pop
          desired result, don't pass more than one such option.
1690 a8083063 Iustin Pop
        </para>
1691 a8083063 Iustin Pop
1692 a8083063 Iustin Pop
        <para>
1693 3bd5f059 Michael Hanselmann
          Use <option>--force</option> to start even if secondary disks are
1694 3bd5f059 Michael Hanselmann
          failing.
1695 3bd5f059 Michael Hanselmann
        </para>
1696 a8083063 Iustin Pop
1697 a8083063 Iustin Pop
        <para>
1698 d3b4cf9f Iustin Pop
          The <option>--force-multiple</option> will skip the
1699 d3b4cf9f Iustin Pop
          interactive confirmation in the case the more than one
1700 d3b4cf9f Iustin Pop
          instance will be affected.
1701 d3b4cf9f Iustin Pop
        </para>
1702 d3b4cf9f Iustin Pop
1703 d3b4cf9f Iustin Pop
        <para>
1704 d04aaa2f Iustin Pop
          The <option>-H</option> and <option>-B</option> options
1705 20b1bd80 Iustin Pop
          specify temporary hypervisor and backend parameters that can
1706 20b1bd80 Iustin Pop
          be used to start an instance with modified parameters. They
1707 20b1bd80 Iustin Pop
          can be useful for quick testing without having to modify an
1708 20b1bd80 Iustin Pop
          instance back and forth, e.g.:
1709 d04aaa2f Iustin Pop
          <screen>
1710 d04aaa2f Iustin Pop
# gnt-instance start -H root_args="single" instance1
1711 d04aaa2f Iustin Pop
# gnt-instance start -B memory=2048 instance2
1712 d04aaa2f Iustin Pop
          </screen>
1713 d04aaa2f Iustin Pop
          The first form will start the instance
1714 d04aaa2f Iustin Pop
          <userinput>instance1</userinput> in single-user mode, and
1715 d04aaa2f Iustin Pop
          the instance <userinput>instance2</userinput> with 2GB of
1716 d04aaa2f Iustin Pop
          RAM (this time only, unless that is the actual instance
1717 20b1bd80 Iustin Pop
          memory size already). Note that the values override the
1718 20b1bd80 Iustin Pop
          instance parameters (and not extend them): an instance with
1719 20b1bd80 Iustin Pop
          "root_args=ro" when started with <userinput>-H
1720 20b1bd80 Iustin Pop
          root_args=single</userinput> will result in "single", not
1721 20b1bd80 Iustin Pop
          "ro single".
1722 d04aaa2f Iustin Pop
        </para>
1723 d04aaa2f Iustin Pop
1724 d04aaa2f Iustin Pop
        <para>
1725 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1726 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1727 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1728 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1729 d3b4cf9f Iustin Pop
        </para>
1730 d3b4cf9f Iustin Pop
1731 d3b4cf9f Iustin Pop
        <para>
1732 a8083063 Iustin Pop
          Example:
1733 a8083063 Iustin Pop
          <screen>
1734 a8083063 Iustin Pop
# gnt-instance start instance1.example.com
1735 bcee9cb4 Iustin Pop
# gnt-instance start --node node1.example.com node2.example.com
1736 bcee9cb4 Iustin Pop
# gnt-instance start --all
1737 a8083063 Iustin Pop
          </screen>
1738 a8083063 Iustin Pop
        </para>
1739 a8083063 Iustin Pop
      </refsect3>
1740 a8083063 Iustin Pop
1741 a8083063 Iustin Pop
      <refsect3>
1742 a8083063 Iustin Pop
        <title>SHUTDOWN</title>
1743 a8083063 Iustin Pop
1744 a8083063 Iustin Pop
        <cmdsynopsis>
1745 a8083063 Iustin Pop
          <command>shutdown</command>
1746 312ac745 Iustin Pop
          <sbr>
1747 95a5d0fb Guido Trotter
          <arg>--timeout=<replaceable>N</replaceable></arg>
1748 95a5d0fb Guido Trotter
          <sbr>
1749 d3b4cf9f Iustin Pop
          <arg>--force-multiple</arg>
1750 d3b4cf9f Iustin Pop
          <sbr>
1751 312ac745 Iustin Pop
          <group choice="opt">
1752 312ac745 Iustin Pop
            <arg>--instance</arg>
1753 312ac745 Iustin Pop
            <arg>--node</arg>
1754 312ac745 Iustin Pop
            <arg>--primary</arg>
1755 312ac745 Iustin Pop
            <arg>--secondary</arg>
1756 312ac745 Iustin Pop
            <arg>--all</arg>
1757 c7c568b4 René Nussbaumer
            <arg>--tags</arg>
1758 c7c568b4 René Nussbaumer
            <arg>--node-tags</arg>
1759 c7c568b4 René Nussbaumer
            <arg>--pri-node-tags</arg>
1760 c7c568b4 René Nussbaumer
            <arg>--sec-node-tags</arg>
1761 312ac745 Iustin Pop
          </group>
1762 312ac745 Iustin Pop
          <sbr>
1763 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1764 d3b4cf9f Iustin Pop
          <sbr>
1765 312ac745 Iustin Pop
          <arg choice="opt"
1766 312ac745 Iustin Pop
          rep="repeat"><replaceable>name</replaceable></arg>
1767 a8083063 Iustin Pop
        </cmdsynopsis>
1768 a8083063 Iustin Pop
1769 a8083063 Iustin Pop
        <para>
1770 312ac745 Iustin Pop
          Stops one or more instances. If the instance cannot be
1771 312ac745 Iustin Pop
          cleanly stopped during a hardcoded interval (currently 2
1772 312ac745 Iustin Pop
          minutes), it will forcibly stop the instance (equivalent to
1773 312ac745 Iustin Pop
          switching off the power on a physical machine).
1774 312ac745 Iustin Pop
        </para>
1775 312ac745 Iustin Pop
1776 312ac745 Iustin Pop
        <para>
1777 95a5d0fb Guido Trotter
          The <option>--timeout</option> is used to specify how much time to
1778 95a5d0fb Guido Trotter
          wait before forcing the shutdown (xm destroy in xen, killing the kvm
1779 95a5d0fb Guido Trotter
          process, for kvm). By default two minutes are given to each instance
1780 95a5d0fb Guido Trotter
          to stop.
1781 95a5d0fb Guido Trotter
        </para>
1782 95a5d0fb Guido Trotter
1783 95a5d0fb Guido Trotter
        <para>
1784 312ac745 Iustin Pop
          The <option>--instance</option>, <option>--node</option>,
1785 c7c568b4 René Nussbaumer
          <option>--primary</option>, <option>--secondary</option>,
1786 c7c568b4 René Nussbaumer
          <option>--all</option>, <option>--tags</option>,
1787 c7c568b4 René Nussbaumer
          <option>--node-tags</option>, <option>--pri-node-tags</option> and
1788 c7c568b4 René Nussbaumer
          <option>--sec-node-tags</option> options are similar as for the
1789 312ac745 Iustin Pop
          <command>startup</command> command and they influence the
1790 86b8c6ae Alexander Schreiber
          actual instances being shutdown.
1791 a8083063 Iustin Pop
        </para>
1792 a8083063 Iustin Pop
1793 a8083063 Iustin Pop
        <para>
1794 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
1795 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
1796 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
1797 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
1798 d3b4cf9f Iustin Pop
        </para>
1799 d3b4cf9f Iustin Pop
1800 d3b4cf9f Iustin Pop
1801 d3b4cf9f Iustin Pop
        <para>
1802 a8083063 Iustin Pop
          Example:
1803 a8083063 Iustin Pop
          <screen>
1804 a8083063 Iustin Pop
# gnt-instance shutdown instance1.example.com
1805 bcee9cb4 Iustin Pop
# gnt-instance shutdown --all
1806 a8083063 Iustin Pop
          </screen>
1807 a8083063 Iustin Pop
        </para>
1808 a8083063 Iustin Pop
      </refsect3>
1809 a8083063 Iustin Pop
1810 a8083063 Iustin Pop
      <refsect3>
1811 579d4337 Alexander Schreiber
        <title>REBOOT</title>
1812 579d4337 Alexander Schreiber
1813 579d4337 Alexander Schreiber
        <cmdsynopsis>
1814 579d4337 Alexander Schreiber
          <command>reboot</command>
1815 579d4337 Alexander Schreiber
          <sbr>
1816 579d4337 Alexander Schreiber
          <arg>--type=<replaceable>REBOOT-TYPE</replaceable></arg>
1817 579d4337 Alexander Schreiber
          <sbr>
1818 579d4337 Alexander Schreiber
          <arg>--ignore-secondaries</arg>
1819 579d4337 Alexander Schreiber
          <sbr>
1820 1e2c9fd3 Guido Trotter
          <arg>--shutdown-timeout=<replaceable>N</replaceable></arg>
1821 1e2c9fd3 Guido Trotter
          <sbr>
1822 579d4337 Alexander Schreiber
          <arg>--force-multiple</arg>
1823 579d4337 Alexander Schreiber
          <sbr>
1824 579d4337 Alexander Schreiber
          <group choice="opt">
1825 579d4337 Alexander Schreiber
            <arg>--instance</arg>
1826 579d4337 Alexander Schreiber
            <arg>--node</arg>
1827 579d4337 Alexander Schreiber
            <arg>--primary</arg>
1828 579d4337 Alexander Schreiber
            <arg>--secondary</arg>
1829 579d4337 Alexander Schreiber
            <arg>--all</arg>
1830 c7c568b4 René Nussbaumer
            <arg>--tags</arg>
1831 c7c568b4 René Nussbaumer
            <arg>--node-tags</arg>
1832 c7c568b4 René Nussbaumer
            <arg>--pri-node-tags</arg>
1833 c7c568b4 René Nussbaumer
            <arg>--sec-node-tags</arg>
1834 579d4337 Alexander Schreiber
          </group>
1835 579d4337 Alexander Schreiber
          <sbr>
1836 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1837 d3b4cf9f Iustin Pop
          <sbr>
1838 579d4337 Alexander Schreiber
          <arg choice="opt"
1839 579d4337 Alexander Schreiber
          rep="repeat"><replaceable>name</replaceable></arg>
1840 579d4337 Alexander Schreiber
        </cmdsynopsis>
1841 579d4337 Alexander Schreiber
1842 579d4337 Alexander Schreiber
        <para>
1843 579d4337 Alexander Schreiber
          Reboots one or more instances. The type of reboot depends on
1844 579d4337 Alexander Schreiber
          the value of <option>--type</option>. A soft reboot does a
1845 579d4337 Alexander Schreiber
          hypervisor reboot, a hard reboot does a instance stop,
1846 579d4337 Alexander Schreiber
          recreates the hypervisor config for the instance and
1847 579d4337 Alexander Schreiber
          starts the instance. A full reboot does the equivalent
1848 579d4337 Alexander Schreiber
          of <command>gnt-instance shutdown &amp;&amp; gnt-instance
1849 bf2fd71e Alexander Schreiber
          startup</command>. The default is hard reboot.
1850 579d4337 Alexander Schreiber
        </para>
1851 579d4337 Alexander Schreiber
1852 579d4337 Alexander Schreiber
        <para>
1853 579d4337 Alexander Schreiber
          For the hard reboot the option
1854 579d4337 Alexander Schreiber
          <option>--ignore-secondaries</option> ignores errors for the
1855 579d4337 Alexander Schreiber
          secondary node while re-assembling the instance disks.
1856 579d4337 Alexander Schreiber
        </para>
1857 579d4337 Alexander Schreiber
1858 579d4337 Alexander Schreiber
        <para>
1859 579d4337 Alexander Schreiber
          The <option>--instance</option>, <option>--node</option>,
1860 c7c568b4 René Nussbaumer
          <option>--primary</option>, <option>--secondary</option>,
1861 c7c568b4 René Nussbaumer
          <option>--all</option>, <option>--tags</option>,
1862 c7c568b4 René Nussbaumer
          <option>--node-tags</option>, <option>--pri-node-tags</option> and
1863 c7c568b4 René Nussbaumer
          <option>--sec-node-tags</option> options are similar as for the
1864 579d4337 Alexander Schreiber
          <command>startup</command> command and they influence the
1865 579d4337 Alexander Schreiber
          actual instances being rebooted.
1866 579d4337 Alexander Schreiber
        </para>
1867 36c87212 Iustin Pop
1868 579d4337 Alexander Schreiber
        <para>
1869 1e2c9fd3 Guido Trotter
          The <option>--shutdown-timeout</option> is used to specify how
1870 1e2c9fd3 Guido Trotter
          much time to wait before forcing the shutdown (xm destroy in xen,
1871 1e2c9fd3 Guido Trotter
          killing the kvm process, for kvm). By default two minutes are
1872 1e2c9fd3 Guido Trotter
          given to each instance to stop.
1873 1e2c9fd3 Guido Trotter
        </para>
1874 1e2c9fd3 Guido Trotter
1875 1e2c9fd3 Guido Trotter
        <para>
1876 d3b4cf9f Iustin Pop
          The <option>--force-multiple</option> will skip the
1877 d3b4cf9f Iustin Pop
          interactive confirmation in the case the more than one
1878 d3b4cf9f Iustin Pop
          instance will be affected.
1879 579d4337 Alexander Schreiber
        </para>
1880 579d4337 Alexander Schreiber
1881 579d4337 Alexander Schreiber
        <para>
1882 579d4337 Alexander Schreiber
          Example:
1883 579d4337 Alexander Schreiber
          <screen>
1884 579d4337 Alexander Schreiber
# gnt-instance reboot instance1.example.com
1885 579d4337 Alexander Schreiber
# gnt-instance reboot --type=full instance1.example.com
1886 579d4337 Alexander Schreiber
          </screen>
1887 579d4337 Alexander Schreiber
        </para>
1888 579d4337 Alexander Schreiber
      </refsect3>
1889 579d4337 Alexander Schreiber
1890 579d4337 Alexander Schreiber
      <refsect3>
1891 a8083063 Iustin Pop
        <title>CONSOLE</title>
1892 a8083063 Iustin Pop
        <cmdsynopsis>
1893 a8083063 Iustin Pop
          <command>console</command>
1894 51c6e7b5 Michael Hanselmann
          <arg choice="opt">--show-cmd</arg>
1895 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1896 a8083063 Iustin Pop
        </cmdsynopsis>
1897 a8083063 Iustin Pop
1898 a8083063 Iustin Pop
        <para>
1899 d3b4cf9f Iustin Pop
          Connects to the console of the given instance. If the
1900 d3b4cf9f Iustin Pop
          instance is not up, an error is returned. Use the
1901 d3b4cf9f Iustin Pop
          <option>--show-cmd</option> option to display the command
1902 d3b4cf9f Iustin Pop
          instead of executing it.
1903 a8083063 Iustin Pop
        </para>
1904 a8083063 Iustin Pop
1905 a8083063 Iustin Pop
        <para>
1906 d3b4cf9f Iustin Pop
          For HVM instances, this will attempt to connect to the
1907 d3b4cf9f Iustin Pop
          serial console of the instance. To connect to the
1908 d3b4cf9f Iustin Pop
          virtualized "physical" console of a HVM instance, use a VNC
1909 d3b4cf9f Iustin Pop
          client with the connection info from the
1910 d3b4cf9f Iustin Pop
          <command>info</command> command.
1911 16034f1f Alexander Schreiber
        </para>
1912 16034f1f Alexander Schreiber
1913 16034f1f Alexander Schreiber
        <para>
1914 a8083063 Iustin Pop
          Example:
1915 a8083063 Iustin Pop
          <screen>
1916 a8083063 Iustin Pop
# gnt-instance console instance1.example.com
1917 a8083063 Iustin Pop
          </screen>
1918 a8083063 Iustin Pop
        </para>
1919 a8083063 Iustin Pop
      </refsect3>
1920 a8083063 Iustin Pop
1921 a8083063 Iustin Pop
    </refsect2>
1922 a8083063 Iustin Pop
1923 a8083063 Iustin Pop
    <refsect2>
1924 a8083063 Iustin Pop
      <title>Disk management</title>
1925 a8083063 Iustin Pop
1926 a8083063 Iustin Pop
      <refsect3>
1927 a8083063 Iustin Pop
        <title>REPLACE-DISKS</title>
1928 a8083063 Iustin Pop
1929 a8083063 Iustin Pop
        <cmdsynopsis>
1930 a8083063 Iustin Pop
          <command>replace-disks</command>
1931 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1932 7ea7bcf6 Iustin Pop
          <arg>--early-release</arg>
1933 7e9366f7 Iustin Pop
          <arg choice="req">-p</arg>
1934 949bdabe Iustin Pop
          <arg>--disks <replaceable>idx</replaceable></arg>
1935 7e9366f7 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1936 7e9366f7 Iustin Pop
        </cmdsynopsis>
1937 a53a1b18 Michael Hanselmann
1938 7e9366f7 Iustin Pop
        <cmdsynopsis>
1939 7e9366f7 Iustin Pop
          <command>replace-disks</command>
1940 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1941 7ea7bcf6 Iustin Pop
          <arg>--early-release</arg>
1942 7e9366f7 Iustin Pop
          <arg choice="req">-s</arg>
1943 949bdabe Iustin Pop
          <arg>--disks <replaceable>idx</replaceable></arg>
1944 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1945 a8083063 Iustin Pop
        </cmdsynopsis>
1946 a8083063 Iustin Pop
1947 0b0dea6a Iustin Pop
        <cmdsynopsis>
1948 0b0dea6a Iustin Pop
          <command>replace-disks</command>
1949 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
1950 7ea7bcf6 Iustin Pop
          <arg>--early-release</arg>
1951 7e9366f7 Iustin Pop
          <group choice="req">
1952 7e9366f7 Iustin Pop
            <arg>--iallocator <replaceable>name</replaceable></arg>
1953 7e9366f7 Iustin Pop
            <arg>--new-secondary <replaceable>NODE</replaceable></arg>
1954 0b0dea6a Iustin Pop
          </group>
1955 7e9366f7 Iustin Pop
1956 0b0dea6a Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
1957 0b0dea6a Iustin Pop
        </cmdsynopsis>
1958 0b0dea6a Iustin Pop
1959 05d47e33 Michael Hanselmann
        <cmdsynopsis>
1960 05d47e33 Michael Hanselmann
          <command>replace-disks</command>
1961 05d47e33 Michael Hanselmann
          <arg>--submit</arg>
1962 7ea7bcf6 Iustin Pop
          <arg>--early-release</arg>
1963 05d47e33 Michael Hanselmann
          <arg choice="req">--auto</arg>
1964 05d47e33 Michael Hanselmann
          <arg choice="req"><replaceable>instance</replaceable></arg>
1965 05d47e33 Michael Hanselmann
        </cmdsynopsis>
1966 05d47e33 Michael Hanselmann
1967 a8083063 Iustin Pop
        <para>
1968 949bdabe Iustin Pop
          This command is a generalized form for replacing disks. It
1969 949bdabe Iustin Pop
          is currently only valid for the mirrored (DRBD) disk
1970 949bdabe Iustin Pop
          template.
1971 a8083063 Iustin Pop
        </para>
1972 0b0dea6a Iustin Pop
1973 0b0dea6a Iustin Pop
        <para>
1974 7e9366f7 Iustin Pop
          The first form (when passing the <option>-p</option> option)
1975 7e9366f7 Iustin Pop
          will replace the disks on the primary, while the second form
1976 7e9366f7 Iustin Pop
          (when passing the <option>-s</option> option will replace
1977 949bdabe Iustin Pop
          the disks on the secondary node. For these two cases (as the
1978 949bdabe Iustin Pop
          node doesn't change), it is possible to only run the replace
1979 949bdabe Iustin Pop
          for a subset of the disks, using the option
1980 949bdabe Iustin Pop
          <option>--disks</option> which takes a list of
1981 949bdabe Iustin Pop
          comma-delimited disk indices (zero-based),
1982 949bdabe Iustin Pop
          e.g. <userinput>0,2</userinput> to replace only the first
1983 949bdabe Iustin Pop
          and third disks.
1984 0b0dea6a Iustin Pop
        </para>
1985 0b0dea6a Iustin Pop
1986 a53a1b18 Michael Hanselmann
        <para>
1987 7e9366f7 Iustin Pop
          The third form (when passing either the
1988 7e9366f7 Iustin Pop
          <option>--iallocator</option> or the
1989 7e9366f7 Iustin Pop
          <option>--new-secondary</option> option) is designed to
1990 7e9366f7 Iustin Pop
          change secondary node of the instance.  Specifying
1991 7e9366f7 Iustin Pop
          <option>--iallocator</option> makes the new secondary be
1992 7e9366f7 Iustin Pop
          selected automatically by the specified allocator plugin,
1993 7e9366f7 Iustin Pop
          otherwise the new secondary node will be the one chosen
1994 7e9366f7 Iustin Pop
          manually via the <option>--new-secondary</option> option.
1995 a53a1b18 Michael Hanselmann
        </para>
1996 d3b4cf9f Iustin Pop
1997 d3b4cf9f Iustin Pop
        <para>
1998 05d47e33 Michael Hanselmann
          The fourth form (when using <option>--auto</option>) will
1999 05d47e33 Michael Hanselmann
          automatically determine which disks of an instance are faulty and
2000 05d47e33 Michael Hanselmann
          replace them within the same node. The <option>--auto</option>
2001 05d47e33 Michael Hanselmann
          option works only when an instance has only faulty disks on
2002 05d47e33 Michael Hanselmann
          either the primary or secondary node; it doesn't work when
2003 05d47e33 Michael Hanselmann
          both sides have faulty disks.
2004 05d47e33 Michael Hanselmann
        </para>
2005 05d47e33 Michael Hanselmann
2006 05d47e33 Michael Hanselmann
        <para>
2007 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
2008 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
2009 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
2010 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
2011 d3b4cf9f Iustin Pop
        </para>
2012 d3b4cf9f Iustin Pop
2013 d3b4cf9f Iustin Pop
        <para>
2014 7ea7bcf6 Iustin Pop
          The <option>--early-release</option> changes the code so
2015 7ea7bcf6 Iustin Pop
          that the old storage on secondary node(s) is removed early
2016 7ea7bcf6 Iustin Pop
          (before the resync is completed) and the internal Ganeti
2017 7ea7bcf6 Iustin Pop
          locks for the current (and new, if any) secondary node are
2018 7ea7bcf6 Iustin Pop
          also released, thus allowing more parallelism in the cluster
2019 7ea7bcf6 Iustin Pop
          operation. This should be used only when recovering from a
2020 7ea7bcf6 Iustin Pop
          disk failure on the current secondary (thus the old storage
2021 7ea7bcf6 Iustin Pop
          is already broken) or when the storage on the primary node
2022 7ea7bcf6 Iustin Pop
          is known to be fine (thus we won't need the old storage for
2023 7ea7bcf6 Iustin Pop
          potential recovery).
2024 7ea7bcf6 Iustin Pop
        </para>
2025 7ea7bcf6 Iustin Pop
2026 7ea7bcf6 Iustin Pop
        <para>
2027 d3b4cf9f Iustin Pop
          Note that it is not possible to select an offline or drained
2028 d3b4cf9f Iustin Pop
          node as a new secondary.
2029 d3b4cf9f Iustin Pop
        </para>
2030 d3b4cf9f Iustin Pop
2031 a8083063 Iustin Pop
      </refsect3>
2032 a8083063 Iustin Pop
2033 a8083063 Iustin Pop
      <refsect3>
2034 a8083063 Iustin Pop
        <title>ACTIVATE-DISKS</title>
2035 a8083063 Iustin Pop
2036 a8083063 Iustin Pop
        <cmdsynopsis>
2037 a8083063 Iustin Pop
          <command>activate-disks</command>
2038 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
2039 b4ec07f8 Iustin Pop
          <arg>--ignore-size</arg>
2040 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
2041 a8083063 Iustin Pop
        </cmdsynopsis>
2042 a8083063 Iustin Pop
        <para>
2043 a8083063 Iustin Pop
          Activates the block devices of the given instance. If
2044 a8083063 Iustin Pop
          successful, the command will show the location and name of
2045 a8083063 Iustin Pop
          the block devices:
2046 a8083063 Iustin Pop
          <screen>
2047 d3b4cf9f Iustin Pop
node1.example.com:disk/0:/dev/drbd0
2048 d3b4cf9f Iustin Pop
node1.example.com:disk/1:/dev/drbd1
2049 a8083063 Iustin Pop
          </screen>
2050 a8083063 Iustin Pop
2051 a8083063 Iustin Pop
          In this example, <emphasis>node1.example.com</emphasis> is
2052 a8083063 Iustin Pop
          the name of the node on which the devices have been
2053 d3b4cf9f Iustin Pop
          activated. The <emphasis>disk/0</emphasis> and
2054 d3b4cf9f Iustin Pop
          <emphasis>disk/1</emphasis> are the Ganeti-names of the
2055 d3b4cf9f Iustin Pop
          instance disks; how they are visible inside the instance is
2056 d3b4cf9f Iustin Pop
          hypervisor-specific. <emphasis>/dev/drbd0</emphasis> and
2057 d3b4cf9f Iustin Pop
          <emphasis>/dev/drbd1</emphasis> are the actual block devices
2058 d3b4cf9f Iustin Pop
          as visible on the node.
2059 d3b4cf9f Iustin Pop
        </para>
2060 d3b4cf9f Iustin Pop
2061 d3b4cf9f Iustin Pop
        <para>
2062 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
2063 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
2064 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
2065 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
2066 a8083063 Iustin Pop
        </para>
2067 a8083063 Iustin Pop
2068 a8083063 Iustin Pop
        <para>
2069 b4ec07f8 Iustin Pop
          The <option>--ignore-size</option> option can be used to
2070 b4ec07f8 Iustin Pop
          activate disks ignoring the currently configured size in
2071 b4ec07f8 Iustin Pop
          Ganeti. This can be used in cases where the configuration
2072 b4ec07f8 Iustin Pop
          has gotten out of sync with the real-world (e.g. after a
2073 b4ec07f8 Iustin Pop
          partially-failed grow-disk operation or due to rounding in
2074 b4ec07f8 Iustin Pop
          LVM devices). This should not be used in normal cases, but
2075 b4ec07f8 Iustin Pop
          only when activate-disks fails without it.
2076 b4ec07f8 Iustin Pop
        </para>
2077 b4ec07f8 Iustin Pop
2078 b4ec07f8 Iustin Pop
        <para>
2079 a8083063 Iustin Pop
          Note that it is safe to run this command while the instance
2080 a8083063 Iustin Pop
          is already running.
2081 a8083063 Iustin Pop
        </para>
2082 a8083063 Iustin Pop
      </refsect3>
2083 a8083063 Iustin Pop
2084 a8083063 Iustin Pop
      <refsect3>
2085 a8083063 Iustin Pop
        <title>DEACTIVATE-DISKS</title>
2086 a8083063 Iustin Pop
2087 a8083063 Iustin Pop
        <cmdsynopsis>
2088 a8083063 Iustin Pop
          <command>deactivate-disks</command>
2089 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
2090 a8083063 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
2091 a8083063 Iustin Pop
        </cmdsynopsis>
2092 a8083063 Iustin Pop
        <para>
2093 a8083063 Iustin Pop
          De-activates the block devices of the given instance. Note
2094 bd028152 Iustin Pop
          that if you run this command for an instance with a drbd
2095 bd028152 Iustin Pop
          disk template, while it is running, it will not be able to
2096 bd028152 Iustin Pop
          shutdown the block devices on the primary node, but it will
2097 bd028152 Iustin Pop
          shutdown the block devices on the secondary nodes, thus
2098 bd028152 Iustin Pop
          breaking the replication.
2099 a8083063 Iustin Pop
        </para>
2100 a8083063 Iustin Pop
2101 d3b4cf9f Iustin Pop
        <para>
2102 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
2103 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
2104 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
2105 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
2106 d3b4cf9f Iustin Pop
        </para>
2107 d3b4cf9f Iustin Pop
2108 a8083063 Iustin Pop
      </refsect3>
2109 a8083063 Iustin Pop
2110 eb65d354 Iustin Pop
      <refsect3>
2111 eb65d354 Iustin Pop
        <title>GROW-DISK</title>
2112 eb65d354 Iustin Pop
        <cmdsynopsis>
2113 eb65d354 Iustin Pop
          <command>grow-disk</command>
2114 6605411d Iustin Pop
          <arg>--no-wait-for-sync</arg>
2115 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
2116 eb65d354 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
2117 eb65d354 Iustin Pop
          <arg choice="req"><replaceable>disk</replaceable></arg>
2118 eb65d354 Iustin Pop
          <arg choice="req"><replaceable>amount</replaceable></arg>
2119 eb65d354 Iustin Pop
        </cmdsynopsis>
2120 eb65d354 Iustin Pop
2121 eb65d354 Iustin Pop
        <para>
2122 eb65d354 Iustin Pop
          Grows an instance's disk. This is only possible for
2123 eb65d354 Iustin Pop
          instances having a <literal>plain</literal> or
2124 eb65d354 Iustin Pop
          <literal>drbd</literal> disk template.
2125 eb65d354 Iustin Pop
        </para>
2126 eb65d354 Iustin Pop
2127 eb65d354 Iustin Pop
        <para>
2128 eb65d354 Iustin Pop
          Note that this command only change the block device size; it
2129 eb65d354 Iustin Pop
          will not grow the actual filesystems, partitions, etc. that
2130 eb65d354 Iustin Pop
          live on that disk. Usually, you will need to:
2131 eb65d354 Iustin Pop
          <orderedlist>
2132 eb65d354 Iustin Pop
            <listitem>
2133 eb65d354 Iustin Pop
              <simpara>use <command>gnt-instance grow-disk</command></simpara>
2134 eb65d354 Iustin Pop
            </listitem>
2135 eb65d354 Iustin Pop
            <listitem>
2136 eb65d354 Iustin Pop
              <simpara>reboot the instance (later, at a convenient
2137 eb65d354 Iustin Pop
              time)</simpara>
2138 eb65d354 Iustin Pop
            </listitem>
2139 eb65d354 Iustin Pop
            <listitem>
2140 eb65d354 Iustin Pop
              <simpara>use a filesystem resizer, such as
2141 eb65d354 Iustin Pop
              <citerefentry> <refentrytitle>ext2online</refentrytitle>
2142 eb65d354 Iustin Pop
              <manvolnum>8</manvolnum> </citerefentry> or
2143 eb65d354 Iustin Pop
              <citerefentry> <refentrytitle>xfs_growfs</refentrytitle>
2144 eb65d354 Iustin Pop
              <manvolnum>8</manvolnum> </citerefentry> to resize the
2145 eb65d354 Iustin Pop
              filesystem, or use <citerefentry>
2146 eb65d354 Iustin Pop
              <refentrytitle>fdisk</refentrytitle>
2147 eb65d354 Iustin Pop
              <manvolnum>8</manvolnum> </citerefentry> to change the
2148 eb65d354 Iustin Pop
              partition table on the disk
2149 eb65d354 Iustin Pop
              </simpara>
2150 eb65d354 Iustin Pop
            </listitem>
2151 eb65d354 Iustin Pop
          </orderedlist>
2152 eb65d354 Iustin Pop
        </para>
2153 eb65d354 Iustin Pop
2154 eb65d354 Iustin Pop
2155 eb65d354 Iustin Pop
        <para>
2156 d3b4cf9f Iustin Pop
          The <replaceable>disk</replaceable> argument is the index of
2157 d3b4cf9f Iustin Pop
          the instance disk to grow. The
2158 eb65d354 Iustin Pop
          <replaceable>amount</replaceable> argument is given either
2159 eb65d354 Iustin Pop
          as a number (and it represents the amount to increase the
2160 eb65d354 Iustin Pop
          disk with in mebibytes) or can be given similar to the
2161 eb65d354 Iustin Pop
          arguments in the create instance operation, with a suffix
2162 eb65d354 Iustin Pop
          denoting the unit.
2163 eb65d354 Iustin Pop
        </para>
2164 eb65d354 Iustin Pop
2165 eb65d354 Iustin Pop
        <para>
2166 eb65d354 Iustin Pop
          Note that the disk grow operation might complete on one node
2167 eb65d354 Iustin Pop
          but fail on the other; this will leave the instance with
2168 eb65d354 Iustin Pop
          different-sized LVs on the two nodes, but this will not
2169 eb65d354 Iustin Pop
          create problems (except for unused space).
2170 eb65d354 Iustin Pop
        </para>
2171 eb65d354 Iustin Pop
2172 6605411d Iustin Pop
        <para>
2173 6605411d Iustin Pop
          If you do not want gnt-instance to wait for the new disk
2174 6605411d Iustin Pop
          region to be synced, use the
2175 6605411d Iustin Pop
          <option>--no-wait-for-sync</option> option.
2176 6605411d Iustin Pop
        </para>
2177 6605411d Iustin Pop
2178 d3b4cf9f Iustin Pop
        <para>
2179 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
2180 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
2181 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
2182 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
2183 d3b4cf9f Iustin Pop
        </para>
2184 d3b4cf9f Iustin Pop
2185 6605411d Iustin Pop
2186 d3b4cf9f Iustin Pop
        <para>Example (increase the first disk for instance1 by 16GiB):
2187 eb65d354 Iustin Pop
          <screen>
2188 d3b4cf9f Iustin Pop
# gnt-instance grow-disk instance1.example.com 0 16g
2189 eb65d354 Iustin Pop
          </screen>
2190 eb65d354 Iustin Pop
        </para>
2191 eb65d354 Iustin Pop
2192 eb65d354 Iustin Pop
        <para>
2193 d3b4cf9f Iustin Pop
          Also note that disk shrinking is not supported; use
2194 eb65d354 Iustin Pop
          <command>gnt-backup export</command> and then
2195 eb65d354 Iustin Pop
          <command>gnt-backup import</command> to reduce the disk size
2196 eb65d354 Iustin Pop
          of an instance.
2197 eb65d354 Iustin Pop
        </para>
2198 eb65d354 Iustin Pop
      </refsect3>
2199 eb65d354 Iustin Pop
2200 bd315bfa Iustin Pop
      <refsect3>
2201 bd315bfa Iustin Pop
        <title>RECREATE-DISKS</title>
2202 bd315bfa Iustin Pop
2203 bd315bfa Iustin Pop
        <cmdsynopsis>
2204 bd315bfa Iustin Pop
          <command>recreate-disks</command>
2205 bd315bfa Iustin Pop
          <arg>--submit</arg>
2206 bd315bfa Iustin Pop
          <arg>--disks=<option>indices</option></arg>
2207 bd315bfa Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
2208 bd315bfa Iustin Pop
        </cmdsynopsis>
2209 bd315bfa Iustin Pop
        <para>
2210 bd315bfa Iustin Pop
          Recreates the disks of the given instance, or only a subset
2211 bd315bfa Iustin Pop
          of the disks (if the option <option>disks</option> is
2212 bd315bfa Iustin Pop
          passed, which must be a comma-separated list of disk
2213 bd315bfa Iustin Pop
          indices, starting from zero).
2214 bd315bfa Iustin Pop
        </para>
2215 bd315bfa Iustin Pop
2216 bd315bfa Iustin Pop
        <para>
2217 cc291012 Iustin Pop
          Note that this functionality should only be used for missing
2218 cc291012 Iustin Pop
          disks; if any of the given disks already exists, the
2219 cc291012 Iustin Pop
          operation will fail. While this is suboptimal,
2220 cc291012 Iustin Pop
          recreate-disks should hopefully not be needed in normal
2221 cc291012 Iustin Pop
          operation and as such the impact of this is low.
2222 cc291012 Iustin Pop
        </para>
2223 cc291012 Iustin Pop
2224 cc291012 Iustin Pop
        <para>
2225 bd315bfa Iustin Pop
          The <option>--submit</option> option is used to send the job to
2226 bd315bfa Iustin Pop
          the master daemon but not wait for its completion. The job
2227 bd315bfa Iustin Pop
          ID will be shown so that it can be examined via
2228 bd315bfa Iustin Pop
          <command>gnt-job info</command>.
2229 bd315bfa Iustin Pop
        </para>
2230 bd315bfa Iustin Pop
2231 bd315bfa Iustin Pop
      </refsect3>
2232 bd315bfa Iustin Pop
2233 a8083063 Iustin Pop
    </refsect2>
2234 a8083063 Iustin Pop
2235 a8083063 Iustin Pop
    <refsect2>
2236 a8083063 Iustin Pop
      <title>Recovery</title>
2237 a8083063 Iustin Pop
2238 a8083063 Iustin Pop
      <refsect3>
2239 a8083063 Iustin Pop
        <title>FAILOVER</title>
2240 a8083063 Iustin Pop
2241 a8083063 Iustin Pop
        <cmdsynopsis>
2242 a8083063 Iustin Pop
          <command>failover</command>
2243 a8083063 Iustin Pop
          <arg>-f</arg>
2244 a8083063 Iustin Pop
          <arg>--ignore-consistency</arg>
2245 1e2c9fd3 Guido Trotter
          <arg>--shutdown-timeout=<replaceable>N</replaceable></arg>
2246 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
2247 80de0e3f Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
2248 a8083063 Iustin Pop
        </cmdsynopsis>
2249 a8083063 Iustin Pop
2250 a8083063 Iustin Pop
        <para>
2251 80de0e3f Iustin Pop
          Failover will fail the instance over its secondary
2252 bd028152 Iustin Pop
          node. This works only for instances having a drbd disk
2253 bd028152 Iustin Pop
          template.
2254 a8083063 Iustin Pop
        </para>
2255 a8083063 Iustin Pop
2256 a8083063 Iustin Pop
        <para>
2257 a8083063 Iustin Pop
          Normally the failover will check the consistency of the
2258 80de0e3f Iustin Pop
          disks before failing over the instance. If you are trying to
2259 a8083063 Iustin Pop
          migrate instances off a dead node, this will fail. Use the
2260 a8083063 Iustin Pop
          <option>--ignore-consistency</option> option for this
2261 24a40d57 Iustin Pop
          purpose. Note that this option can be dangerous as errors in
2262 24a40d57 Iustin Pop
          shutting down the instance will be ignored, resulting in
2263 24a40d57 Iustin Pop
          possibly having the instance running on two machines in
2264 24a40d57 Iustin Pop
          parallel (on disconnected DRBD drives).
2265 a8083063 Iustin Pop
        </para>
2266 a8083063 Iustin Pop
2267 a8083063 Iustin Pop
        <para>
2268 1e2c9fd3 Guido Trotter
          The <option>--shutdown-timeout</option> is used to specify how
2269 1e2c9fd3 Guido Trotter
          much time to wait before forcing the shutdown (xm destroy in xen,
2270 1e2c9fd3 Guido Trotter
          killing the kvm process, for kvm). By default two minutes are
2271 1e2c9fd3 Guido Trotter
          given to each instance to stop.
2272 1e2c9fd3 Guido Trotter
        </para>
2273 1e2c9fd3 Guido Trotter
2274 1e2c9fd3 Guido Trotter
        <para>
2275 d3b4cf9f Iustin Pop
          The <option>--submit</option> option is used to send the job to
2276 d3b4cf9f Iustin Pop
          the master daemon but not wait for its completion. The job
2277 d3b4cf9f Iustin Pop
          ID will be shown so that it can be examined via
2278 d3b4cf9f Iustin Pop
          <command>gnt-job info</command>.
2279 d3b4cf9f Iustin Pop
        </para>
2280 d3b4cf9f Iustin Pop
2281 d3b4cf9f Iustin Pop
        <para>
2282 a8083063 Iustin Pop
          Example:
2283 a8083063 Iustin Pop
          <screen>
2284 a8083063 Iustin Pop
# gnt-instance failover instance1.example.com
2285 a8083063 Iustin Pop
          </screen>
2286 a8083063 Iustin Pop
        </para>
2287 a8083063 Iustin Pop
      </refsect3>
2288 a8083063 Iustin Pop
2289 d3b4cf9f Iustin Pop
      <refsect3>
2290 d3b4cf9f Iustin Pop
        <title>MIGRATE</title>
2291 d3b4cf9f Iustin Pop
2292 d3b4cf9f Iustin Pop
        <cmdsynopsis>
2293 d3b4cf9f Iustin Pop
          <command>migrate</command>
2294 d3b4cf9f Iustin Pop
          <arg>-f</arg>
2295 d3b4cf9f Iustin Pop
          <arg choice="req">--cleanup</arg>
2296 d3b4cf9f Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
2297 d3b4cf9f Iustin Pop
        </cmdsynopsis>
2298 d3b4cf9f Iustin Pop
2299 d3b4cf9f Iustin Pop
        <cmdsynopsis>
2300 d3b4cf9f Iustin Pop
          <command>migrate</command>
2301 d3b4cf9f Iustin Pop
          <arg>-f</arg>
2302 d3b4cf9f Iustin Pop
          <arg>--non-live</arg>
2303 d3b4cf9f Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
2304 d3b4cf9f Iustin Pop
        </cmdsynopsis>
2305 d3b4cf9f Iustin Pop
2306 d3b4cf9f Iustin Pop
        <para>
2307 d3b4cf9f Iustin Pop
          Migrate will move the instance to its secondary node without
2308 d3b4cf9f Iustin Pop
          shutdown. It only works for instances having the drbd8 disk
2309 d3b4cf9f Iustin Pop
          template type.
2310 d3b4cf9f Iustin Pop
        </para>
2311 d3b4cf9f Iustin Pop
2312 d3b4cf9f Iustin Pop
        <para>
2313 d3b4cf9f Iustin Pop
          The migration command needs a perfectly healthy instance, as
2314 d3b4cf9f Iustin Pop
          we rely on the dual-master capability of drbd8 and the disks
2315 d3b4cf9f Iustin Pop
          of the instance are not allowed to be degraded.
2316 d3b4cf9f Iustin Pop
        </para>
2317 d3b4cf9f Iustin Pop
2318 d3b4cf9f Iustin Pop
        <para>
2319 d3b4cf9f Iustin Pop
          The <option>--non-live</option> option will switch (for the
2320 d3b4cf9f Iustin Pop
          hypervisors that support it) between a "fully live"
2321 d3b4cf9f Iustin Pop
          (i.e. the interruption is as minimal as possible) migration
2322 d3b4cf9f Iustin Pop
          and one in which the instance is frozen, its state saved and
2323 d3b4cf9f Iustin Pop
          transported to the remote node, and then resumed there. This
2324 d3b4cf9f Iustin Pop
          all depends on the hypervisor support for two different
2325 d3b4cf9f Iustin Pop
          methods. In any case, it is not an error to pass this
2326 d3b4cf9f Iustin Pop
          parameter (it will just be ignored if the hypervisor doesn't
2327 d3b4cf9f Iustin Pop
          support it).
2328 d3b4cf9f Iustin Pop
        </para>
2329 d3b4cf9f Iustin Pop
2330 d3b4cf9f Iustin Pop
        <para>
2331 d3b4cf9f Iustin Pop
          If the <option>--cleanup</option> option is passed, the
2332 d3b4cf9f Iustin Pop
          operation changes from migration to attempting recovery from
2333 d3b4cf9f Iustin Pop
          a failed previous migration. In this mode, ganeti checks if
2334 d3b4cf9f Iustin Pop
          the instance runs on the correct node (and updates its
2335 d3b4cf9f Iustin Pop
          configuration if not) and ensures the instances's disks are
2336 d3b4cf9f Iustin Pop
          configured correctly. In this mode, the
2337 d3b4cf9f Iustin Pop
          <option>--non-live</option> option is ignored.
2338 d3b4cf9f Iustin Pop
        </para>
2339 d3b4cf9f Iustin Pop
2340 d3b4cf9f Iustin Pop
        <para>
2341 d3b4cf9f Iustin Pop
          The option <option>-f</option> will skip the prompting for
2342 d3b4cf9f Iustin Pop
          confirmation.
2343 d3b4cf9f Iustin Pop
        </para>
2344 d3b4cf9f Iustin Pop
        <para>
2345 d3b4cf9f Iustin Pop
          Example (and expected output):
2346 d3b4cf9f Iustin Pop
          <screen>
2347 d3b4cf9f Iustin Pop
# gnt-instance migrate instance1
2348 d3b4cf9f Iustin Pop
Migrate will happen to the instance instance1. Note that migration is
2349 d3b4cf9f Iustin Pop
**experimental** in this version. This might impact the instance if
2350 d3b4cf9f Iustin Pop
anything goes wrong. Continue?
2351 d3b4cf9f Iustin Pop
y/[n]/?: y
2352 d3b4cf9f Iustin Pop
* checking disk consistency between source and target
2353 d3b4cf9f Iustin Pop
* ensuring the target is in secondary mode
2354 d3b4cf9f Iustin Pop
* changing disks into dual-master mode
2355 d3b4cf9f Iustin Pop
 - INFO: Waiting for instance instance1 to sync disks.
2356 d3b4cf9f Iustin Pop
 - INFO: Instance instance1's disks are in sync.
2357 d3b4cf9f Iustin Pop
* migrating instance to node2.example.com
2358 d3b4cf9f Iustin Pop
* changing the instance's disks on source node to secondary
2359 d3b4cf9f Iustin Pop
 - INFO: Waiting for instance instance1 to sync disks.
2360 d3b4cf9f Iustin Pop
 - INFO: Instance instance1's disks are in sync.
2361 d3b4cf9f Iustin Pop
* changing the instance's disks to single-master
2362 d3b4cf9f Iustin Pop
#
2363 d3b4cf9f Iustin Pop
          </screen>
2364 d3b4cf9f Iustin Pop
        </para>
2365 d3b4cf9f Iustin Pop
      </refsect3>
2366 d3b4cf9f Iustin Pop
2367 fbf5a861 Iustin Pop
      <refsect3>
2368 fbf5a861 Iustin Pop
        <title>MOVE</title>
2369 fbf5a861 Iustin Pop
2370 fbf5a861 Iustin Pop
        <cmdsynopsis>
2371 fbf5a861 Iustin Pop
          <command>move</command>
2372 fbf5a861 Iustin Pop
          <arg>-f</arg>
2373 fbf5a861 Iustin Pop
          <arg>-n <replaceable>node</replaceable></arg>
2374 1e2c9fd3 Guido Trotter
          <arg>--shutdown-timeout=<replaceable>N</replaceable></arg>
2375 fbf5a861 Iustin Pop
          <arg>--submit</arg>
2376 fbf5a861 Iustin Pop
          <arg choice="req"><replaceable>instance</replaceable></arg>
2377 fbf5a861 Iustin Pop
        </cmdsynopsis>
2378 fbf5a861 Iustin Pop
2379 fbf5a861 Iustin Pop
        <para>
2380 fbf5a861 Iustin Pop
          Move will move the instance to an arbitrary node in the
2381 fbf5a861 Iustin Pop
          cluster. This works only for instances having a plain or
2382 fbf5a861 Iustin Pop
          file disk template.
2383 fbf5a861 Iustin Pop
        </para>
2384 fbf5a861 Iustin Pop
2385 fbf5a861 Iustin Pop
        <para>
2386 fbf5a861 Iustin Pop
          Note that since this operation is done via data copy, it
2387 fbf5a861 Iustin Pop
          will take a long time for big disks (similar to
2388 fbf5a861 Iustin Pop
          replace-disks for a drbd instance).
2389 fbf5a861 Iustin Pop
        </para>
2390 fbf5a861 Iustin Pop
2391 fbf5a861 Iustin Pop
        <para>
2392 1e2c9fd3 Guido Trotter
          The <option>--shutdown-timeout</option> is used to specify how
2393 1e2c9fd3 Guido Trotter
          much time to wait before forcing the shutdown (xm destroy in xen,
2394 1e2c9fd3 Guido Trotter
          killing the kvm process, for kvm). By default two minutes are
2395 1e2c9fd3 Guido Trotter
          given to each instance to stop.
2396 1e2c9fd3 Guido Trotter
        </para>
2397 1e2c9fd3 Guido Trotter
2398 1e2c9fd3 Guido Trotter
        <para>
2399 fbf5a861 Iustin Pop
          The <option>--submit</option> option is used to send the job to
2400 fbf5a861 Iustin Pop
          the master daemon but not wait for its completion. The job
2401 fbf5a861 Iustin Pop
          ID will be shown so that it can be examined via
2402 fbf5a861 Iustin Pop
          <command>gnt-job info</command>.
2403 fbf5a861 Iustin Pop
        </para>
2404 fbf5a861 Iustin Pop
2405 fbf5a861 Iustin Pop
        <para>
2406 fbf5a861 Iustin Pop
          Example:
2407 fbf5a861 Iustin Pop
          <screen>
2408 fbf5a861 Iustin Pop
# gnt-instance move -n node3.example.com instance1.example.com
2409 fbf5a861 Iustin Pop
          </screen>
2410 fbf5a861 Iustin Pop
        </para>
2411 fbf5a861 Iustin Pop
      </refsect3>
2412 fbf5a861 Iustin Pop
2413 a8083063 Iustin Pop
    </refsect2>
2414 a8083063 Iustin Pop
2415 cc425644 Iustin Pop
    <refsect2>
2416 cc425644 Iustin Pop
      <title>TAGS</title>
2417 cc425644 Iustin Pop
2418 cc425644 Iustin Pop
    <refsect3>
2419 cc425644 Iustin Pop
        <title>ADD-TAGS</title>
2420 cc425644 Iustin Pop
2421 cc425644 Iustin Pop
        <cmdsynopsis>
2422 cc425644 Iustin Pop
          <command>add-tags</command>
2423 810c50b7 Iustin Pop
          <arg choice="opt">--from <replaceable>file</replaceable></arg>
2424 cc425644 Iustin Pop
          <arg choice="req"><replaceable>instancename</replaceable></arg>
2425 cc425644 Iustin Pop
          <arg choice="req"
2426 cc425644 Iustin Pop
            rep="repeat"><replaceable>tag</replaceable></arg>
2427 cc425644 Iustin Pop
        </cmdsynopsis>
2428 cc425644 Iustin Pop
2429 cc425644 Iustin Pop
        <para>
2430 cc425644 Iustin Pop
          Add tags to the given instance. If any of the tags contains
2431 cc425644 Iustin Pop
          invalid characters, the entire operation will abort.
2432 cc425644 Iustin Pop
        </para>
2433 810c50b7 Iustin Pop
        <para>
2434 810c50b7 Iustin Pop
          If the <option>--from</option> option is given, the list of
2435 810c50b7 Iustin Pop
          tags will be extended with the contents of that file (each
2436 810c50b7 Iustin Pop
          line becomes a tag). In this case, there is not need to pass
2437 810c50b7 Iustin Pop
          tags on the command line (if you do, both sources will be
2438 810c50b7 Iustin Pop
          used). A file name of - will be interpreted as stdin.
2439 810c50b7 Iustin Pop
        </para>
2440 cc425644 Iustin Pop
      </refsect3>
2441 cc425644 Iustin Pop
2442 cc425644 Iustin Pop
      <refsect3>
2443 cc425644 Iustin Pop
        <title>LIST-TAGS</title>
2444 cc425644 Iustin Pop
2445 cc425644 Iustin Pop
        <cmdsynopsis>
2446 cc425644 Iustin Pop
          <command>list-tags</command>
2447 cc425644 Iustin Pop
          <arg choice="req"><replaceable>instancename</replaceable></arg>
2448 cc425644 Iustin Pop
        </cmdsynopsis>
2449 cc425644 Iustin Pop
2450 cc425644 Iustin Pop
        <para>List the tags of the given instance.</para>
2451 cc425644 Iustin Pop
      </refsect3>
2452 cc425644 Iustin Pop
2453 cc425644 Iustin Pop
      <refsect3>
2454 cc425644 Iustin Pop
        <title>REMOVE-TAGS</title>
2455 cc425644 Iustin Pop
        <cmdsynopsis>
2456 cc425644 Iustin Pop
          <command>remove-tags</command>
2457 810c50b7 Iustin Pop
          <arg choice="opt">--from <replaceable>file</replaceable></arg>
2458 cc425644 Iustin Pop
          <arg choice="req"><replaceable>instancename</replaceable></arg>
2459 cc425644 Iustin Pop
          <arg choice="req"
2460 cc425644 Iustin Pop
            rep="repeat"><replaceable>tag</replaceable></arg>
2461 cc425644 Iustin Pop
        </cmdsynopsis>
2462 cc425644 Iustin Pop
2463 cc425644 Iustin Pop
        <para>
2464 cc425644 Iustin Pop
          Remove tags from the given instance. If any of the tags are
2465 cc425644 Iustin Pop
          not existing on the node, the entire operation will abort.
2466 cc425644 Iustin Pop
        </para>
2467 810c50b7 Iustin Pop
2468 810c50b7 Iustin Pop
        <para>
2469 810c50b7 Iustin Pop
          If the <option>--from</option> option is given, the list of
2470 810c50b7 Iustin Pop
          tags will be extended with the contents of that file (each
2471 810c50b7 Iustin Pop
          line becomes a tag). In this case, there is not need to pass
2472 810c50b7 Iustin Pop
          tags on the command line (if you do, both sources will be
2473 810c50b7 Iustin Pop
          used). A file name of - will be interpreted as stdin.
2474 810c50b7 Iustin Pop
        </para>
2475 cc425644 Iustin Pop
      </refsect3>
2476 cc425644 Iustin Pop
2477 cc425644 Iustin Pop
    </refsect2>
2478 cc425644 Iustin Pop
2479 a8083063 Iustin Pop
  </refsect1>
2480 a8083063 Iustin Pop
2481 a8083063 Iustin Pop
  &footer;
2482 a8083063 Iustin Pop
2483 a8083063 Iustin Pop
</refentry>
2484 a8083063 Iustin Pop
2485 a8083063 Iustin Pop
<!-- Keep this comment at the end of the file
2486 a8083063 Iustin Pop
Local variables:
2487 a8083063 Iustin Pop
mode: sgml
2488 a8083063 Iustin Pop
sgml-omittag:t
2489 a8083063 Iustin Pop
sgml-shorttag:t
2490 a8083063 Iustin Pop
sgml-minimize-attributes:nil
2491 a8083063 Iustin Pop
sgml-always-quote-attributes:t
2492 a8083063 Iustin Pop
sgml-indent-step:2
2493 a8083063 Iustin Pop
sgml-indent-data:t
2494 a8083063 Iustin Pop
sgml-parent-document:nil
2495 a8083063 Iustin Pop
sgml-default-dtd-file:nil
2496 a8083063 Iustin Pop
sgml-exposed-tags:nil
2497 a8083063 Iustin Pop
sgml-local-catalogs:nil
2498 a8083063 Iustin Pop
sgml-local-ecat-files:nil
2499 a8083063 Iustin Pop
End:
2500 a8083063 Iustin Pop
-->