Statistics
| Branch: | Tag: | Revision:

root / man / gnt-cluster.sgml @ 7c60f7a2

History | View | Annotate | Download (26.1 kB)

1 a8083063 Iustin Pop
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2 a8083063 Iustin Pop
3 a8083063 Iustin Pop
  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4 a8083063 Iustin Pop
  <!-- Please adjust the date whenever revising the manpage. -->
5 d3b4cf9f Iustin Pop
  <!ENTITY dhdate      "<date>February 12, 2009</date>">
6 a8083063 Iustin Pop
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7 a8083063 Iustin Pop
       allowed: see man(7), man(1). -->
8 a8083063 Iustin Pop
  <!ENTITY dhsection   "<manvolnum>8</manvolnum>">
9 a8083063 Iustin Pop
  <!ENTITY dhucpackage "<refentrytitle>gnt-cluster</refentrytitle>">
10 a8083063 Iustin Pop
  <!ENTITY dhpackage   "gnt-cluster">
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 d3b4cf9f Iustin Pop
      <year>2008</year>
24 d3b4cf9f Iustin Pop
      <year>2009</year>
25 a8083063 Iustin Pop
      <holder>Google Inc.</holder>
26 a8083063 Iustin Pop
    </copyright>
27 a8083063 Iustin Pop
    &dhdate;
28 a8083063 Iustin Pop
  </refentryinfo>
29 a8083063 Iustin Pop
  <refmeta>
30 a8083063 Iustin Pop
    &dhucpackage;
31 a8083063 Iustin Pop
32 a8083063 Iustin Pop
    &dhsection;
33 d3b4cf9f Iustin Pop
    <refmiscinfo>ganeti 2.0</refmiscinfo>
34 a8083063 Iustin Pop
  </refmeta>
35 a8083063 Iustin Pop
  <refnamediv>
36 a8083063 Iustin Pop
    <refname>&dhpackage;</refname>
37 a8083063 Iustin Pop
38 a8083063 Iustin Pop
    <refpurpose>ganeti administration, cluster-wide</refpurpose>
39 a8083063 Iustin Pop
  </refnamediv>
40 a8083063 Iustin Pop
  <refsynopsisdiv>
41 a8083063 Iustin Pop
    <cmdsynopsis>
42 a8083063 Iustin Pop
      <command>&dhpackage; </command>
43 a8083063 Iustin Pop
44 a8083063 Iustin Pop
      <arg choice="req">command</arg>
45 a8083063 Iustin Pop
      <arg>arguments...</arg>
46 a8083063 Iustin Pop
    </cmdsynopsis>
47 a8083063 Iustin Pop
  </refsynopsisdiv>
48 a8083063 Iustin Pop
  <refsect1>
49 a8083063 Iustin Pop
    <title>DESCRIPTION</title>
50 a8083063 Iustin Pop
51 a8083063 Iustin Pop
    <para>
52 a8083063 Iustin Pop
      The <command>&dhpackage;</command> is used for cluster-wide
53 a8083063 Iustin Pop
      administration in the ganeti system.
54 a8083063 Iustin Pop
    </para>
55 a8083063 Iustin Pop
56 a8083063 Iustin Pop
  </refsect1>
57 a8083063 Iustin Pop
  <refsect1>
58 a8083063 Iustin Pop
    <title>COMMANDS</title>
59 a8083063 Iustin Pop
60 75f49d9b Iustin Pop
    <refsect2>
61 cc425644 Iustin Pop
      <title>ADD-TAGS</title>
62 cc425644 Iustin Pop
63 cc425644 Iustin Pop
      <cmdsynopsis>
64 cc425644 Iustin Pop
        <command>add-tags</command>
65 810c50b7 Iustin Pop
        <arg choice="opt">--from <replaceable>file</replaceable></arg>
66 cc425644 Iustin Pop
        <arg choice="req"
67 cc425644 Iustin Pop
        rep="repeat"><replaceable>tag</replaceable></arg>
68 cc425644 Iustin Pop
      </cmdsynopsis>
69 cc425644 Iustin Pop
70 cc425644 Iustin Pop
      <para>
71 cc425644 Iustin Pop
        Add tags to the cluster. If any of the tags contains invalid
72 cc425644 Iustin Pop
        characters, the entire operation will abort.
73 cc425644 Iustin Pop
      </para>
74 810c50b7 Iustin Pop
75 810c50b7 Iustin Pop
      <para>
76 810c50b7 Iustin Pop
        If the <option>--from</option> option is given, the list of
77 810c50b7 Iustin Pop
        tags will be extended with the contents of that file (each
78 810c50b7 Iustin Pop
        line becomes a tag). In this case, there is not need to pass
79 810c50b7 Iustin Pop
        tags on the command line (if you do, both sources will be
80 810c50b7 Iustin Pop
        used). A file name of - will be interpreted as stdin.
81 810c50b7 Iustin Pop
      </para>
82 cc425644 Iustin Pop
    </refsect2>
83 cc425644 Iustin Pop
84 cc425644 Iustin Pop
    <refsect2>
85 75f49d9b Iustin Pop
      <title>COMMAND</title>
86 75f49d9b Iustin Pop
87 75f49d9b Iustin Pop
      <cmdsynopsis>
88 75f49d9b Iustin Pop
        <command>command</command>
89 75f49d9b Iustin Pop
        <arg>-n <replaceable>node</replaceable></arg>
90 75f49d9b Iustin Pop
        <arg choice="req"><replaceable>command</replaceable></arg>
91 75f49d9b Iustin Pop
      </cmdsynopsis>
92 75f49d9b Iustin Pop
93 75f49d9b Iustin Pop
      <para>
94 75f49d9b Iustin Pop
        Executes a command on all nodes. If the option
95 75f49d9b Iustin Pop
        <option>-n</option> is not given, the command will be executed
96 75f49d9b Iustin Pop
        on all nodes, otherwise it will be executed only on the
97 75f49d9b Iustin Pop
        node(s) specified. Use the option multiple times for running
98 75f49d9b Iustin Pop
        it on multiple nodes, like:
99 75f49d9b Iustin Pop
100 75f49d9b Iustin Pop
        <screen>
101 75f49d9b Iustin Pop
          # gnt-cluster command -n node1.example.com -n node2.example.com date
102 75f49d9b Iustin Pop
        </screen>
103 75f49d9b Iustin Pop
104 75f49d9b Iustin Pop
      </para>
105 75f49d9b Iustin Pop
106 75f49d9b Iustin Pop
      <para>
107 5f83e263 Iustin Pop
        The command is executed serially on the selected nodes. If the
108 5f83e263 Iustin Pop
        master node is present in the list, the command will be
109 5f83e263 Iustin Pop
        executed last on the master. Regarding the other nodes, the
110 d3b4cf9f Iustin Pop
        execution order is somewhat alphabetic, so that
111 5f83e263 Iustin Pop
        node2.example.com will be earlier than node10.example.com but
112 d3b4cf9f Iustin Pop
        after node1.example.com.
113 5f83e263 Iustin Pop
      </para>
114 5f83e263 Iustin Pop
115 5f83e263 Iustin Pop
      <para>
116 5f83e263 Iustin Pop
        So given the node names node1, node2, node3, node10, node11,
117 5f83e263 Iustin Pop
        with node3 being the master, the order will be: node1, node2,
118 5f83e263 Iustin Pop
        node10, node11, node3.
119 5f83e263 Iustin Pop
      </para>
120 5f83e263 Iustin Pop
121 5f83e263 Iustin Pop
      <para>
122 75f49d9b Iustin Pop
        The command is constructed by concatenating all other command
123 75f49d9b Iustin Pop
        line arguments. For example, to list the contents of the
124 75f49d9b Iustin Pop
        <filename class="directory">/etc</filename> directory on all
125 75f49d9b Iustin Pop
        nodes, run:
126 75f49d9b Iustin Pop
127 75f49d9b Iustin Pop
        <screen>
128 75f49d9b Iustin Pop
          # gnt-cluster command ls -l /etc
129 75f49d9b Iustin Pop
        </screen>
130 75f49d9b Iustin Pop
131 75f49d9b Iustin Pop
        and the command which will be executed will be
132 75f49d9b Iustin Pop
        <computeroutput>"ls -l /etc"</computeroutput>
133 75f49d9b Iustin Pop
      </para>
134 75f49d9b Iustin Pop
    </refsect2>
135 75f49d9b Iustin Pop
136 75f49d9b Iustin Pop
    <refsect2>
137 75f49d9b Iustin Pop
      <title>COPYFILE</title>
138 75f49d9b Iustin Pop
139 75f49d9b Iustin Pop
      <cmdsynopsis>
140 75f49d9b Iustin Pop
        <command>copyfile</command>
141 75f49d9b Iustin Pop
        <arg>-n <replaceable>node</replaceable></arg>
142 75f49d9b Iustin Pop
        <arg choice="req"><replaceable>file</replaceable></arg>
143 75f49d9b Iustin Pop
      </cmdsynopsis>
144 75f49d9b Iustin Pop
145 75f49d9b Iustin Pop
      <para>
146 75f49d9b Iustin Pop
        Copies a file to all or to some nodes. The argument specifies
147 75f49d9b Iustin Pop
        the source file (on the current system), the
148 75f49d9b Iustin Pop
        <option>-n</option> argument specifies the target node, or
149 75f49d9b Iustin Pop
        nodes if the option is given multiple times. If
150 75f49d9b Iustin Pop
        <option>-n</option> is not given at all, the file will be
151 75f49d9b Iustin Pop
        copied to all nodes.
152 75f49d9b Iustin Pop
153 75f49d9b Iustin Pop
        Example:
154 75f49d9b Iustin Pop
        <screen>
155 75f49d9b Iustin Pop
          # gnt-cluster -n node1.example.com -n node2.example.com copyfile /tmp/test
156 75f49d9b Iustin Pop
        </screen>
157 75f49d9b Iustin Pop
158 75f49d9b Iustin Pop
        This will copy the file <filename>/tmp/test</filename> from
159 75f49d9b Iustin Pop
        the current node to the two named nodes.
160 75f49d9b Iustin Pop
      </para>
161 75f49d9b Iustin Pop
    </refsect2>
162 75f49d9b Iustin Pop
163 75f49d9b Iustin Pop
    <refsect2>
164 75f49d9b Iustin Pop
      <title>DESTROY</title>
165 75f49d9b Iustin Pop
166 75f49d9b Iustin Pop
      <cmdsynopsis>
167 75f49d9b Iustin Pop
        <command>destroy</command>
168 f69dab6d Iustin Pop
        <arg choice="req">--yes-do-it</arg>
169 75f49d9b Iustin Pop
      </cmdsynopsis>
170 75f49d9b Iustin Pop
171 75f49d9b Iustin Pop
      <para>
172 75f49d9b Iustin Pop
        Remove all configuration files related to the cluster, so that
173 75f49d9b Iustin Pop
        a <command>gnt-cluster init</command> can be done again
174 75f49d9b Iustin Pop
        afterwards.
175 75f49d9b Iustin Pop
      </para>
176 f69dab6d Iustin Pop
177 f69dab6d Iustin Pop
      <para>
178 f69dab6d Iustin Pop
        Since this is a dangerous command, you are required to pass
179 f69dab6d Iustin Pop
        the argument <replaceable>--yes-do-it.</replaceable>
180 f69dab6d Iustin Pop
      </para>
181 75f49d9b Iustin Pop
    </refsect2>
182 75f49d9b Iustin Pop
183 75f49d9b Iustin Pop
    <refsect2>
184 75f49d9b Iustin Pop
      <title>GETMASTER</title>
185 75f49d9b Iustin Pop
186 75f49d9b Iustin Pop
      <cmdsynopsis>
187 75f49d9b Iustin Pop
        <command>getmaster</command>
188 75f49d9b Iustin Pop
      </cmdsynopsis>
189 75f49d9b Iustin Pop
190 75f49d9b Iustin Pop
      <para>
191 75f49d9b Iustin Pop
        Displays the current master node.
192 75f49d9b Iustin Pop
      </para>
193 75f49d9b Iustin Pop
    </refsect2>
194 75f49d9b Iustin Pop
195 75f49d9b Iustin Pop
    <refsect2>
196 75f49d9b Iustin Pop
      <title>INFO</title>
197 75f49d9b Iustin Pop
198 75f49d9b Iustin Pop
      <cmdsynopsis>
199 75f49d9b Iustin Pop
        <command>info</command>
200 75f49d9b Iustin Pop
      </cmdsynopsis>
201 75f49d9b Iustin Pop
202 75f49d9b Iustin Pop
      <para>
203 75f49d9b Iustin Pop
        Shows runtime cluster information: cluster name, architecture
204 75f49d9b Iustin Pop
        (32 or 64 bit), master node, node list and instance list.
205 75f49d9b Iustin Pop
      </para>
206 75f49d9b Iustin Pop
    </refsect2>
207 75f49d9b Iustin Pop
208 75f49d9b Iustin Pop
    <refsect2>
209 75f49d9b Iustin Pop
      <title>INIT</title>
210 75f49d9b Iustin Pop
211 75f49d9b Iustin Pop
      <cmdsynopsis>
212 75f49d9b Iustin Pop
        <command>init</command>
213 d3b4cf9f Iustin Pop
        <sbr>
214 75f49d9b Iustin Pop
        <arg>-s <replaceable>secondary_ip</replaceable></arg>
215 d3b4cf9f Iustin Pop
        <sbr>
216 f3b100e1 Guido Trotter
        <arg>-g <replaceable>vg-name</replaceable></arg>
217 d3b4cf9f Iustin Pop
        <sbr>
218 f3b100e1 Guido Trotter
        <arg>--master-netdev <replaceable>vg-name</replaceable></arg>
219 d3b4cf9f Iustin Pop
        <sbr>
220 f3b100e1 Guido Trotter
        <arg>-m <replaceable>mac-prefix</replaceable></arg>
221 d3b4cf9f Iustin Pop
        <sbr>
222 11c05c42 Manuel Franceschini
        <arg>--no-lvm-storage</arg>
223 d3b4cf9f Iustin Pop
        <sbr>
224 19ae0895 Alexander Schreiber
        <arg>--file-storage-dir <replaceable>dir</replaceable></arg>
225 d3b4cf9f Iustin Pop
        <sbr>
226 19ae0895 Alexander Schreiber
        <arg>--enabled-hypervisors <replaceable>hypervisors</replaceable></arg>
227 d3b4cf9f Iustin Pop
        <sbr>
228 19ae0895 Alexander Schreiber
        <arg>-t <replaceable>hypervisor name</replaceable></arg>
229 d3b4cf9f Iustin Pop
        <sbr>
230 555918b3 Guido Trotter
        <arg>--hypervisor-parameters <replaceable>hypervisor</replaceable>:<replaceable>hv-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>hv-param</replaceable>=<replaceable>value</replaceable></arg></arg>
231 d3b4cf9f Iustin Pop
        <sbr>
232 555918b3 Guido Trotter
        <arg>--backend-parameters <replaceable>be-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>be-param</replaceable>=<replaceable>value</replaceable></arg></arg>
233 d3b4cf9f Iustin Pop
        <sbr>
234 7d713344 Guido Trotter
        <arg>--nic-parameters <replaceable>nic-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>nic-param</replaceable>=<replaceable>value</replaceable></arg></arg>
235 7d713344 Guido Trotter
        <sbr>
236 75f49d9b Iustin Pop
        <arg choice="req"><replaceable>clustername</replaceable></arg>
237 75f49d9b Iustin Pop
      </cmdsynopsis>
238 75f49d9b Iustin Pop
239 75f49d9b Iustin Pop
      <para>
240 75f49d9b Iustin Pop
        This commands is only run once initially on the first node of
241 75f49d9b Iustin Pop
        the cluster. It will initialize the cluster configuration and
242 75f49d9b Iustin Pop
        setup ssh-keys and more.
243 75f49d9b Iustin Pop
      </para>
244 75f49d9b Iustin Pop
245 75f49d9b Iustin Pop
      <para>
246 75f49d9b Iustin Pop
        Note that the <replaceable>clustername</replaceable> is not
247 75f49d9b Iustin Pop
        any random name. It has to be resolvable to an IP address
248 75f49d9b Iustin Pop
        using DNS, and it is best if you give the fully-qualified
249 56db8a84 Alexander Schreiber
        domain name. This hostname must resolve to an IP address
250 56db8a84 Alexander Schreiber
        reserved exclusively for this purpose.
251 75f49d9b Iustin Pop
      </para>
252 75f49d9b Iustin Pop
253 75f49d9b Iustin Pop
      <para>
254 75f49d9b Iustin Pop
        The cluster can run in two modes: single-home or
255 75f49d9b Iustin Pop
        dual-homed. In the first case, all traffic (both public
256 75f49d9b Iustin Pop
        traffic, inter-node traffic and data replication traffic) goes
257 75f49d9b Iustin Pop
        over the same interface. In the dual-homed case, the data
258 75f49d9b Iustin Pop
        replication traffic goes over the second network. The
259 75f49d9b Iustin Pop
        <option>-s</option> option here marks the cluster as
260 75f49d9b Iustin Pop
        dual-homed and its parameter represents this node's address on
261 75f49d9b Iustin Pop
        the second network. If you initialise the cluster with
262 75f49d9b Iustin Pop
        <option>-s</option>, all nodes added must have a secondary IP
263 75f49d9b Iustin Pop
        as well.
264 75f49d9b Iustin Pop
      </para>
265 75f49d9b Iustin Pop
266 75f49d9b Iustin Pop
      <para>
267 75f49d9b Iustin Pop
        Note that for Ganeti it doesn't matter if the secondary
268 75f49d9b Iustin Pop
        network is actually a separate physical network, or is done
269 75f49d9b Iustin Pop
        using tunneling, etc. For performance reasons, it's
270 75f49d9b Iustin Pop
        recommended to use a separate network, of course.
271 75f49d9b Iustin Pop
      </para>
272 75f49d9b Iustin Pop
273 75f49d9b Iustin Pop
      <para>
274 f3b100e1 Guido Trotter
        The <option>-g</option> option will let you specify a volume group
275 11c05c42 Manuel Franceschini
        different than 'xenvg' for ganeti to use when creating instance disks.
276 11c05c42 Manuel Franceschini
        This volume group must have the same name on all nodes. Once the
277 11c05c42 Manuel Franceschini
        cluster is initialized this can be altered by using the
278 11c05c42 Manuel Franceschini
        <command>modify</command> command. If you don't want to use lvm
279 11c05c42 Manuel Franceschini
        storage at all use the <option>--no-lvm-storage</option> option.
280 11c05c42 Manuel Franceschini
        Once the cluster is initialized you can change this setup with the
281 11c05c42 Manuel Franceschini
        <command>modify</command> command.
282 f3b100e1 Guido Trotter
      </para>
283 f3b100e1 Guido Trotter
284 f3b100e1 Guido Trotter
      <para>
285 f3b100e1 Guido Trotter
        The <option>--master-netdev</option> option is useful for specifying a
286 f3b100e1 Guido Trotter
        different interface on which the master will activate its IP address.
287 f3b100e1 Guido Trotter
        It's important that all nodes have this interface because you'll need
288 f3b100e1 Guido Trotter
        it for a master failover.
289 f3b100e1 Guido Trotter
      </para>
290 f3b100e1 Guido Trotter
291 f3b100e1 Guido Trotter
      <para>
292 f3b100e1 Guido Trotter
        The <option>-m</option> option will let you specify a three byte prefix
293 f3b100e1 Guido Trotter
        under which the virtual MAC addresses of your instances will be
294 f3b100e1 Guido Trotter
        generated. The prefix must be specified in the format XX:XX:XX and the
295 f3b100e1 Guido Trotter
        default is aa:00:00.
296 f3b100e1 Guido Trotter
      </para>
297 f3b100e1 Guido Trotter
298 11c05c42 Manuel Franceschini
      <para>
299 11c05c42 Manuel Franceschini
        The <option>--no-lvm-storage</option> allows you to initialize the
300 11c05c42 Manuel Franceschini
        cluster without lvm support. This means that only instances using
301 11c05c42 Manuel Franceschini
        files as storage backend will be possible to create. Once the cluster
302 11c05c42 Manuel Franceschini
        is initialized you can change this setup with the
303 11c05c42 Manuel Franceschini
        <command>modify</command> command.
304 11c05c42 Manuel Franceschini
      </para>
305 19ae0895 Alexander Schreiber
306 19ae0895 Alexander Schreiber
      <para>
307 19ae0895 Alexander Schreiber
        The <option>--file-storage-dir</option> option allows you
308 19ae0895 Alexander Schreiber
        set the directory to use for storing the instance disk
309 19ae0895 Alexander Schreiber
        files when using file storage as backend for instance disks.
310 19ae0895 Alexander Schreiber
      </para>
311 19ae0895 Alexander Schreiber
312 19ae0895 Alexander Schreiber
      <para>
313 19ae0895 Alexander Schreiber
        The <option>--enabled-hypervisors</option> option allows you
314 19ae0895 Alexander Schreiber
        to set the list of hypervisors that will be enabled for
315 19ae0895 Alexander Schreiber
        this cluster. Instance hypervisors can only be choosen from
316 066f465d Guido Trotter
        the list of enabled hypervisors, and the first entry of this list
317 066f465d Guido Trotter
        will be used by default. Currently, the following hypervisors are
318 066f465d Guido Trotter
        available:
319 19ae0895 Alexander Schreiber
      </para>
320 19ae0895 Alexander Schreiber
321 19ae0895 Alexander Schreiber
      <para>
322 19ae0895 Alexander Schreiber
        <variablelist>
323 19ae0895 Alexander Schreiber
          <varlistentry>
324 19ae0895 Alexander Schreiber
            <term>xen-pvm</term>
325 19ae0895 Alexander Schreiber
            <listitem>
326 19ae0895 Alexander Schreiber
              <para>
327 19ae0895 Alexander Schreiber
                Xen PVM hypervisor
328 19ae0895 Alexander Schreiber
              </para>
329 19ae0895 Alexander Schreiber
            </listitem>
330 19ae0895 Alexander Schreiber
          </varlistentry>
331 19ae0895 Alexander Schreiber
          <varlistentry>
332 19ae0895 Alexander Schreiber
            <term>xen-hvm</term>
333 19ae0895 Alexander Schreiber
            <listitem>
334 19ae0895 Alexander Schreiber
              <para>
335 19ae0895 Alexander Schreiber
                Xen HVM hypervisor
336 19ae0895 Alexander Schreiber
              </para>
337 19ae0895 Alexander Schreiber
            </listitem>
338 19ae0895 Alexander Schreiber
          </varlistentry>
339 19ae0895 Alexander Schreiber
          <varlistentry>
340 19ae0895 Alexander Schreiber
            <term>kvm</term>
341 19ae0895 Alexander Schreiber
            <listitem>
342 19ae0895 Alexander Schreiber
              <para>
343 19ae0895 Alexander Schreiber
                Linux KVM hypervisor
344 19ae0895 Alexander Schreiber
              </para>
345 19ae0895 Alexander Schreiber
            </listitem>
346 19ae0895 Alexander Schreiber
          </varlistentry>
347 19ae0895 Alexander Schreiber
          <varlistentry>
348 19ae0895 Alexander Schreiber
            <term>fake</term>
349 19ae0895 Alexander Schreiber
            <listitem>
350 19ae0895 Alexander Schreiber
              <para>
351 19ae0895 Alexander Schreiber
                fake hypervisor for development/testing
352 19ae0895 Alexander Schreiber
              </para>
353 19ae0895 Alexander Schreiber
            </listitem>
354 19ae0895 Alexander Schreiber
          </varlistentry>
355 19ae0895 Alexander Schreiber
        </variablelist>
356 19ae0895 Alexander Schreiber
      </para>
357 19ae0895 Alexander Schreiber
358 19ae0895 Alexander Schreiber
      <para>
359 19ae0895 Alexander Schreiber
        Either a single hypervisor name or a comma-separated list of
360 19ae0895 Alexander Schreiber
        hypervisor names can be specified. If this option is not
361 19ae0895 Alexander Schreiber
        specified, only the xen-pvm hypervisor is enabled by default.
362 19ae0895 Alexander Schreiber
      </para>
363 19ae0895 Alexander Schreiber
364 19ae0895 Alexander Schreiber
      <para>
365 280b79b3 Guido Trotter
        The <option>--backend-parameters</option> option allows you to set
366 19ae0895 Alexander Schreiber
        the default backend parameters for the cluster. The parameter
367 19ae0895 Alexander Schreiber
        format is a comma-separated list of key=value pairs with the
368 19ae0895 Alexander Schreiber
        following supported keys:
369 19ae0895 Alexander Schreiber
      </para>
370 19ae0895 Alexander Schreiber
371 19ae0895 Alexander Schreiber
      <para>
372 19ae0895 Alexander Schreiber
        <variablelist>
373 19ae0895 Alexander Schreiber
          <varlistentry>
374 19ae0895 Alexander Schreiber
            <term>vcpus</term>
375 19ae0895 Alexander Schreiber
            <listitem>
376 19ae0895 Alexander Schreiber
              <para>
377 19ae0895 Alexander Schreiber
                Number of VCPUs to set for an instance by default, must
378 19ae0895 Alexander Schreiber
                be an integer, will be set to 1 if no specified.
379 19ae0895 Alexander Schreiber
              </para>
380 19ae0895 Alexander Schreiber
            </listitem>
381 19ae0895 Alexander Schreiber
          </varlistentry>
382 19ae0895 Alexander Schreiber
          <varlistentry>
383 19ae0895 Alexander Schreiber
            <term>memory</term>
384 19ae0895 Alexander Schreiber
            <listitem>
385 19ae0895 Alexander Schreiber
              <para>
386 19ae0895 Alexander Schreiber
                Amount of memory to allocate for an instance by default,
387 19ae0895 Alexander Schreiber
                can be either an integer or an integer followed by a
388 19ae0895 Alexander Schreiber
                unit (M for mebibytes and G for gibibytes are
389 19ae0895 Alexander Schreiber
                supported), will be set to 128M if not specified.
390 19ae0895 Alexander Schreiber
              </para>
391 19ae0895 Alexander Schreiber
            </listitem>
392 19ae0895 Alexander Schreiber
          </varlistentry>
393 19ae0895 Alexander Schreiber
          <varlistentry>
394 19ae0895 Alexander Schreiber
            <term>auto_balance</term>
395 19ae0895 Alexander Schreiber
            <listitem>
396 19ae0895 Alexander Schreiber
              <para>
397 19ae0895 Alexander Schreiber
                Value of the auto_balance flag for instances to use by
398 19ae0895 Alexander Schreiber
                default, will be set to true if not specified.
399 19ae0895 Alexander Schreiber
              </para>
400 19ae0895 Alexander Schreiber
            </listitem>
401 19ae0895 Alexander Schreiber
          </varlistentry>
402 19ae0895 Alexander Schreiber
        </variablelist>
403 19ae0895 Alexander Schreiber
      </para>
404 19ae0895 Alexander Schreiber
405 19ae0895 Alexander Schreiber
      <para>
406 19ae0895 Alexander Schreiber
        The <option>--hypervisor-parameters</option> option allows you
407 19ae0895 Alexander Schreiber
        to set default hypervisor specific parameters for the
408 19ae0895 Alexander Schreiber
        cluster. The format of this option is the name of the
409 19ae0895 Alexander Schreiber
        hypervisor, followed by a colon and a comma-separated list of
410 d3b4cf9f Iustin Pop
        key=value pairs. The keys available for each hypervisors are
411 d3b4cf9f Iustin Pop
        detailed int the <citerefentry>
412 d3b4cf9f Iustin Pop
        <refentrytitle>gnt-instance</refentrytitle>
413 d3b4cf9f Iustin Pop
        <manvolnum>8</manvolnum> </citerefentry> man page, in the
414 d3b4cf9f Iustin Pop
        <command>add</command> command.
415 19ae0895 Alexander Schreiber
      </para>
416 19ae0895 Alexander Schreiber
417 7d713344 Guido Trotter
      <para>
418 7d713344 Guido Trotter
        The <option>--nic-parameters</option> option allows you to set
419 7d713344 Guido Trotter
        the default nic parameters for the cluster. The parameter
420 7d713344 Guido Trotter
        format is a comma-separated list of key=value pairs with the
421 7d713344 Guido Trotter
        following supported keys:
422 7d713344 Guido Trotter
        <variablelist>
423 7d713344 Guido Trotter
          <varlistentry>
424 7d713344 Guido Trotter
            <term>mode</term>
425 7d713344 Guido Trotter
            <listitem>
426 7d713344 Guido Trotter
              <para>
427 7d713344 Guido Trotter
                The default nic mode, 'routed' or 'bridged'.
428 7d713344 Guido Trotter
              </para>
429 7d713344 Guido Trotter
            </listitem>
430 7d713344 Guido Trotter
          </varlistentry>
431 7d713344 Guido Trotter
          <varlistentry>
432 7d713344 Guido Trotter
            <term>link</term>
433 7d713344 Guido Trotter
            <listitem>
434 7d713344 Guido Trotter
              <para>
435 7d713344 Guido Trotter
                In bridged mode the default NIC bridge. In routed mode
436 7d713344 Guido Trotter
                it represents an hypervisor-vif-script dependent value
437 7d713344 Guido Trotter
                to allow different instance groups (perhaps via multiple
438 7d713344 Guido Trotter
                routing tables)
439 7d713344 Guido Trotter
              </para>
440 7d713344 Guido Trotter
            </listitem>
441 7d713344 Guido Trotter
          </varlistentry>
442 7d713344 Guido Trotter
        </variablelist>
443 7d713344 Guido Trotter
      </para>
444 7d713344 Guido Trotter
445 75f49d9b Iustin Pop
    </refsect2>
446 75f49d9b Iustin Pop
447 75f49d9b Iustin Pop
    <refsect2>
448 cc425644 Iustin Pop
      <title>LIST-TAGS</title>
449 cc425644 Iustin Pop
450 cc425644 Iustin Pop
      <cmdsynopsis>
451 cc425644 Iustin Pop
        <command>list-tags</command>
452 cc425644 Iustin Pop
      </cmdsynopsis>
453 cc425644 Iustin Pop
454 cc425644 Iustin Pop
      <para>List the tags of the cluster.</para>
455 cc425644 Iustin Pop
    </refsect2>
456 cc425644 Iustin Pop
457 cc425644 Iustin Pop
    <refsect2>
458 75f49d9b Iustin Pop
      <title>MASTERFAILOVER</title>
459 75f49d9b Iustin Pop
460 75f49d9b Iustin Pop
      <cmdsynopsis>
461 75f49d9b Iustin Pop
        <command>masterfailover</command>
462 8e2524c3 Guido Trotter
        <arg>--no-voting</arg>
463 75f49d9b Iustin Pop
      </cmdsynopsis>
464 75f49d9b Iustin Pop
465 75f49d9b Iustin Pop
      <para>
466 75f49d9b Iustin Pop
        Failover the master role to the current node.
467 75f49d9b Iustin Pop
      </para>
468 8e2524c3 Guido Trotter
469 8e2524c3 Guido Trotter
      <para>
470 8e2524c3 Guido Trotter
        The <option>--no-voting</option> option skips the remote node agreement
471 8e2524c3 Guido Trotter
        checks. This is dangerous, but necessary in some cases (for example
472 8e2524c3 Guido Trotter
        failing over the master role in a 2 node cluster with the original master
473 8e2524c3 Guido Trotter
        down). If the original master then comes up, it won't be able to start
474 8e2524c3 Guido Trotter
        its master daemon because it won't have enough votes, but so won't the
475 8e2524c3 Guido Trotter
        new master, if the master daemon ever needs a restart. You can pass
476 8e2524c3 Guido Trotter
        --no-voting to ganeti-masterd on the new master to solve this problem,
477 8e2524c3 Guido Trotter
        and gnt-cluster redist-conf to make sure the cluster is consistent again.
478 8e2524c3 Guido Trotter
      </para>
479 8e2524c3 Guido Trotter
480 75f49d9b Iustin Pop
    </refsect2>
481 75f49d9b Iustin Pop
482 75f49d9b Iustin Pop
    <refsect2>
483 11c05c42 Manuel Franceschini
      <title>MODIFY</title>
484 11c05c42 Manuel Franceschini
485 11c05c42 Manuel Franceschini
      <cmdsynopsis>
486 11c05c42 Manuel Franceschini
        <command>modify</command>
487 d3b4cf9f Iustin Pop
        <sbr>
488 11c05c42 Manuel Franceschini
        <arg choice="opt">-g <replaceable>vg-name</replaceable></arg>
489 d3b4cf9f Iustin Pop
        <sbr>
490 11c05c42 Manuel Franceschini
        <arg choice="opt">--no-lvm-storage</arg>
491 d3b4cf9f Iustin Pop
        <sbr>
492 18fb5e1d Alexander Schreiber
        <arg choice="opt">--enabled-hypervisors
493 18fb5e1d Alexander Schreiber
        <replaceable>hypervisors</replaceable></arg>
494 d3b4cf9f Iustin Pop
        <sbr>
495 555918b3 Guido Trotter
        <arg choice="opt">--hypervisor-parameters <replaceable>hypervisor</replaceable>:<replaceable>hv-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>hv-param</replaceable>=<replaceable>value</replaceable></arg></arg>
496 d3b4cf9f Iustin Pop
        <sbr>
497 555918b3 Guido Trotter
        <arg choice="opt">--backend-parameters <replaceable>be-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>be-param</replaceable>=<replaceable>value</replaceable></arg></arg>
498 d3b4cf9f Iustin Pop
        <sbr>
499 7d713344 Guido Trotter
        <arg choice="opt">--nic-parameters <replaceable>nic-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>nic-param</replaceable>=<replaceable>value</replaceable></arg></arg>
500 7d713344 Guido Trotter
        <sbr>
501 d3b4cf9f Iustin Pop
        <arg>-C <replaceable>candidate_pool_size</replaceable></arg>
502 18fb5e1d Alexander Schreiber
503 11c05c42 Manuel Franceschini
      </cmdsynopsis>
504 11c05c42 Manuel Franceschini
505 11c05c42 Manuel Franceschini
        <para>
506 11c05c42 Manuel Franceschini
          Modify the options for the cluster.
507 11c05c42 Manuel Franceschini
        </para>
508 11c05c42 Manuel Franceschini
509 11c05c42 Manuel Franceschini
        <para>
510 18fb5e1d Alexander Schreiber
          The <option>-g</option>, <option>--no-lvm-storarge</option>,
511 18fb5e1d Alexander Schreiber
          <option>--enabled-hypervisors</option>,
512 7d713344 Guido Trotter
          <option>--hypervisor-parameters</option>,
513 7d713344 Guido Trotter
          <option>--backend-parameters</option> and
514 7d713344 Guido Trotter
          <option>--nic-parameters</option> and options are
515 11c05c42 Manuel Franceschini
          described in the <command>init</command> command.
516 11c05c42 Manuel Franceschini
        </para>
517 d3b4cf9f Iustin Pop
518 d3b4cf9f Iustin Pop
      <para>
519 d3b4cf9f Iustin Pop
        The <option>-C</option> options specifies the
520 d3b4cf9f Iustin Pop
        <varname>candidate_pool_size</varname> cluster parameter. This
521 d3b4cf9f Iustin Pop
        is the number of nodes that the master will try to keep as
522 d3b4cf9f Iustin Pop
        <literal>master_candidates</literal>. For more details about
523 d3b4cf9f Iustin Pop
        this role and other node roles, see the <citerefentry>
524 d3b4cf9f Iustin Pop
        <refentrytitle>ganeti</refentrytitle><manvolnum>7</manvolnum>
525 d3b4cf9f Iustin Pop
        </citerefentry>. If you increase the size, the master will
526 d3b4cf9f Iustin Pop
        automatically promote as many nodes as required and possible
527 d3b4cf9f Iustin Pop
        to reach the intended number.
528 d3b4cf9f Iustin Pop
      </para>
529 11c05c42 Manuel Franceschini
    </refsect2>
530 11c05c42 Manuel Franceschini
531 11c05c42 Manuel Franceschini
    <refsect2>
532 18fb5e1d Alexander Schreiber
      <title>QUEUE</title>
533 18fb5e1d Alexander Schreiber
534 18fb5e1d Alexander Schreiber
      <cmdsynopsis>
535 18fb5e1d Alexander Schreiber
        <command>queue</command>
536 18fb5e1d Alexander Schreiber
        <arg choice="opt">drain</arg>
537 18fb5e1d Alexander Schreiber
        <arg choice="opt">undrain</arg>
538 18fb5e1d Alexander Schreiber
        <arg choice="opt">info</arg>
539 18fb5e1d Alexander Schreiber
540 18fb5e1d Alexander Schreiber
      </cmdsynopsis>
541 18fb5e1d Alexander Schreiber
542 18fb5e1d Alexander Schreiber
      <para>
543 18fb5e1d Alexander Schreiber
        Change job queue properties.
544 18fb5e1d Alexander Schreiber
      </para>
545 18fb5e1d Alexander Schreiber
546 18fb5e1d Alexander Schreiber
      <para>
547 18fb5e1d Alexander Schreiber
        The <option>drain</option> option sets the drain flag on the
548 18fb5e1d Alexander Schreiber
        job queue. No new jobs will be accepted, but jobs already in
549 18fb5e1d Alexander Schreiber
        the queue will be processed.
550 18fb5e1d Alexander Schreiber
      </para>
551 18fb5e1d Alexander Schreiber
552 18fb5e1d Alexander Schreiber
      <para>
553 18fb5e1d Alexander Schreiber
        The <option>undrain</option> will unset the drain flag on the
554 18fb5e1d Alexander Schreiber
        job queue. New jobs will be accepted.
555 18fb5e1d Alexander Schreiber
      </para>
556 18fb5e1d Alexander Schreiber
557 18fb5e1d Alexander Schreiber
      <para>
558 18fb5e1d Alexander Schreiber
        The <option>info</option> option shows the properties of the
559 18fb5e1d Alexander Schreiber
        job queue.
560 18fb5e1d Alexander Schreiber
      </para>
561 18fb5e1d Alexander Schreiber
    </refsect2>
562 18fb5e1d Alexander Schreiber
563 18fb5e1d Alexander Schreiber
    <refsect2>
564 95b2e626 Michael Hanselmann
      <title>WATCHER</title>
565 95b2e626 Michael Hanselmann
566 95b2e626 Michael Hanselmann
      <cmdsynopsis>
567 95b2e626 Michael Hanselmann
        <command>watcher</command>
568 95b2e626 Michael Hanselmann
        <group choice="req">
569 95b2e626 Michael Hanselmann
          <arg>pause <replaceable>duration</replaceable></arg>
570 95b2e626 Michael Hanselmann
          <arg>continue</arg>
571 95b2e626 Michael Hanselmann
          <arg>info</arg>
572 95b2e626 Michael Hanselmann
        </group>
573 95b2e626 Michael Hanselmann
      </cmdsynopsis>
574 95b2e626 Michael Hanselmann
575 95b2e626 Michael Hanselmann
      <para>
576 95b2e626 Michael Hanselmann
        Make the watcher pause or let it continue.
577 95b2e626 Michael Hanselmann
      </para>
578 95b2e626 Michael Hanselmann
579 95b2e626 Michael Hanselmann
      <para>
580 95b2e626 Michael Hanselmann
        The <option>pause</option> option causes the watcher to pause for
581 95b2e626 Michael Hanselmann
        <replaceable>duration</replaceable> seconds.
582 95b2e626 Michael Hanselmann
      </para>
583 95b2e626 Michael Hanselmann
584 95b2e626 Michael Hanselmann
      <para>
585 95b2e626 Michael Hanselmann
        The <option>continue</option> option will let the watcher continue.
586 95b2e626 Michael Hanselmann
      </para>
587 95b2e626 Michael Hanselmann
588 95b2e626 Michael Hanselmann
      <para>
589 95b2e626 Michael Hanselmann
        The <option>info</option> option shows whether the watcher is currently
590 95b2e626 Michael Hanselmann
        paused.
591 95b2e626 Michael Hanselmann
      </para>
592 95b2e626 Michael Hanselmann
    </refsect2>
593 95b2e626 Michael Hanselmann
594 95b2e626 Michael Hanselmann
    <refsect2>
595 d3b4cf9f Iustin Pop
      <title>redist-conf</title>
596 d3b4cf9f Iustin Pop
      <cmdsynopsis>
597 d3b4cf9f Iustin Pop
        <command>redist-conf</command>
598 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
599 d3b4cf9f Iustin Pop
      </cmdsynopsis>
600 d3b4cf9f Iustin Pop
601 d3b4cf9f Iustin Pop
      <para>
602 d3b4cf9f Iustin Pop
        This command forces a full push of configuration files from
603 d3b4cf9f Iustin Pop
        the master node to the other nodes in the cluster. This is
604 d3b4cf9f Iustin Pop
        normally not needed, but can be run if the
605 d3b4cf9f Iustin Pop
        <command>verify</command> complains about configuration
606 d3b4cf9f Iustin Pop
        mismatches.
607 d3b4cf9f Iustin Pop
      </para>
608 d3b4cf9f Iustin Pop
609 d3b4cf9f Iustin Pop
      <para>
610 d3b4cf9f Iustin Pop
        The <option>--submit</option> option is used to send the job
611 d3b4cf9f Iustin Pop
        to the master daemon but not wait for its completion. The job
612 d3b4cf9f Iustin Pop
        ID will be shown so that it can be examined via
613 d3b4cf9f Iustin Pop
        <command>gnt-job info</command>.
614 d3b4cf9f Iustin Pop
      </para>
615 d3b4cf9f Iustin Pop
616 d3b4cf9f Iustin Pop
    </refsect2>
617 d3b4cf9f Iustin Pop
    <refsect2>
618 cc425644 Iustin Pop
      <title>REMOVE-TAGS</title>
619 cc425644 Iustin Pop
620 cc425644 Iustin Pop
      <cmdsynopsis>
621 cc425644 Iustin Pop
        <command>remove-tags</command>
622 810c50b7 Iustin Pop
        <arg choice="opt">--from <replaceable>file</replaceable></arg>
623 cc425644 Iustin Pop
        <arg choice="req"
624 cc425644 Iustin Pop
        rep="repeat"><replaceable>tag</replaceable></arg>
625 cc425644 Iustin Pop
      </cmdsynopsis>
626 cc425644 Iustin Pop
627 cc425644 Iustin Pop
      <para>
628 cc425644 Iustin Pop
        Remove tags from the cluster. If any of the tags are not
629 cc425644 Iustin Pop
        existing on the cluster, the entire operation will abort.
630 cc425644 Iustin Pop
      </para>
631 810c50b7 Iustin Pop
632 810c50b7 Iustin Pop
      <para>
633 810c50b7 Iustin Pop
        If the <option>--from</option> option is given, the list of
634 810c50b7 Iustin Pop
        tags will be extended with the contents of that file (each
635 810c50b7 Iustin Pop
        line becomes a tag). In this case, there is not need to pass
636 810c50b7 Iustin Pop
        tags on the command line (if you do, both sources will be
637 810c50b7 Iustin Pop
        used). A file name of - will be interpreted as stdin.
638 810c50b7 Iustin Pop
      </para>
639 cc425644 Iustin Pop
    </refsect2>
640 cc425644 Iustin Pop
641 cc425644 Iustin Pop
    <refsect2>
642 75f49d9b Iustin Pop
      <title>RENAME</title>
643 75f49d9b Iustin Pop
644 75f49d9b Iustin Pop
      <cmdsynopsis>
645 75f49d9b Iustin Pop
        <command>rename</command>
646 75f49d9b Iustin Pop
        <arg>-f</arg>
647 75f49d9b Iustin Pop
        <arg choice="req"><replaceable>name</replaceable></arg>
648 75f49d9b Iustin Pop
      </cmdsynopsis>
649 75f49d9b Iustin Pop
650 75f49d9b Iustin Pop
      <para>
651 75f49d9b Iustin Pop
        Renames the cluster and in the process updates the master IP
652 75f49d9b Iustin Pop
        address to the one the new name resolves to. At least one of
653 75f49d9b Iustin Pop
        either the name or the IP address must be different, otherwise
654 75f49d9b Iustin Pop
        the operation will be aborted.
655 75f49d9b Iustin Pop
      </para>
656 75f49d9b Iustin Pop
657 75f49d9b Iustin Pop
      <para>
658 75f49d9b Iustin Pop
        Note that since this command can be dangerous (especially when
659 75f49d9b Iustin Pop
        run over SSH), the command will require confirmation unless
660 75f49d9b Iustin Pop
        run with the <option>-f</option> option.
661 75f49d9b Iustin Pop
      </para>
662 75f49d9b Iustin Pop
    </refsect2>
663 60975797 Iustin Pop
664 60975797 Iustin Pop
    <refsect2>
665 60975797 Iustin Pop
      <title>REPAIR-DISK-SIZES</title>
666 60975797 Iustin Pop
667 60975797 Iustin Pop
      <cmdsynopsis>
668 60975797 Iustin Pop
        <command>repair-disk-sizes</command>
669 60975797 Iustin Pop
        <arg rep="repeat">instance</arg>
670 60975797 Iustin Pop
      </cmdsynopsis>
671 60975797 Iustin Pop
672 60975797 Iustin Pop
      <para>
673 60975797 Iustin Pop
        This command checks that the recorded size of the given
674 60975797 Iustin Pop
        instance's disks matches the actual size and updates any
675 60975797 Iustin Pop
        mismatches found. This is needed if the Ganeti configuration
676 60975797 Iustin Pop
        is no longer consistent with reality, as it will impact some
677 60975797 Iustin Pop
        disk operations. If no arguments are given, all instances will
678 60975797 Iustin Pop
        be checked.
679 60975797 Iustin Pop
      </para>
680 60975797 Iustin Pop
681 60975797 Iustin Pop
      <para>
682 60975797 Iustin Pop
        Note that only active disks can be checked by this command; in
683 60975797 Iustin Pop
        case a disk cannot be activated it's advised to use
684 60975797 Iustin Pop
        <command>gnt-instance activate-disks --ignore-size
685 60975797 Iustin Pop
        ...</command> to force activation without regard to the
686 60975797 Iustin Pop
        current size.
687 60975797 Iustin Pop
      </para>
688 60975797 Iustin Pop
689 60975797 Iustin Pop
      <para>
690 60975797 Iustin Pop
        When the all disk sizes are consistent, the command will
691 60975797 Iustin Pop
        return no output. Otherwise it will log details about the
692 60975797 Iustin Pop
        inconsistencies in the configuration.
693 60975797 Iustin Pop
      </para>
694 60975797 Iustin Pop
    </refsect2>
695 75f49d9b Iustin Pop
696 75f49d9b Iustin Pop
    <refsect2>
697 73415719 Iustin Pop
      <title>SEARCH-TAGS</title>
698 73415719 Iustin Pop
699 73415719 Iustin Pop
      <cmdsynopsis>
700 73415719 Iustin Pop
        <command>search-tags</command>
701 73415719 Iustin Pop
        <arg choice="req"><replaceable>pattern</replaceable></arg>
702 73415719 Iustin Pop
      </cmdsynopsis>
703 73415719 Iustin Pop
704 73415719 Iustin Pop
      <para>
705 73415719 Iustin Pop
        Searches the tags on all objects in the cluster (the cluster
706 73415719 Iustin Pop
        itself, the nodes and the instances) for a given pattern. The
707 73415719 Iustin Pop
        pattern is interpreted as a regular expression and a search
708 73415719 Iustin Pop
        will be done on it (i.e. the given pattern is not anchored to
709 73415719 Iustin Pop
        the beggining of the string; if you want that, prefix the
710 73415719 Iustin Pop
        pattern with <literal>^</literal>).
711 73415719 Iustin Pop
      </para>
712 73415719 Iustin Pop
713 73415719 Iustin Pop
      <para>
714 73415719 Iustin Pop
        If no tags are matching the pattern, the exit code of the
715 73415719 Iustin Pop
        command will be one. If there is at least one match, the exit
716 73415719 Iustin Pop
        code will be zero. Each match is listed on one line, the
717 73415719 Iustin Pop
        object and the tag separated by a space. The cluster will be
718 73415719 Iustin Pop
        listed as <filename>/cluster</filename>, a node will be listed
719 73415719 Iustin Pop
        as
720 73415719 Iustin Pop
        <filename>/nodes/<replaceable>name</replaceable></filename>,
721 73415719 Iustin Pop
        and an instance as
722 73415719 Iustin Pop
        <filename>/instances/<replaceable>name</replaceable></filename>.
723 73415719 Iustin Pop
        Example:
724 73415719 Iustin Pop
      </para>
725 73415719 Iustin Pop
<screen>
726 2f49d1d2 Guido Trotter
# gnt-cluster search-tags time
727 73415719 Iustin Pop
/cluster ctime:2007-09-01
728 73415719 Iustin Pop
/nodes/node1.example.com mtime:2007-10-04
729 73415719 Iustin Pop
</screen>
730 73415719 Iustin Pop
    </refsect2>
731 73415719 Iustin Pop
732 73415719 Iustin Pop
    <refsect2>
733 75f49d9b Iustin Pop
      <title>VERIFY</title>
734 75f49d9b Iustin Pop
735 75f49d9b Iustin Pop
      <cmdsynopsis>
736 75f49d9b Iustin Pop
        <command>verify</command>
737 3cf7c9fa Guido Trotter
        <arg choice="opt">--no-nplus1-mem</arg>
738 75f49d9b Iustin Pop
      </cmdsynopsis>
739 75f49d9b Iustin Pop
740 75f49d9b Iustin Pop
      <para>
741 75f49d9b Iustin Pop
        Verify correctness of cluster configuration. This is safe with
742 75f49d9b Iustin Pop
        respect to running instances, and incurs no downtime of the
743 75f49d9b Iustin Pop
        instances.
744 75f49d9b Iustin Pop
      </para>
745 3cf7c9fa Guido Trotter
746 3cf7c9fa Guido Trotter
      <para>
747 3cf7c9fa Guido Trotter
        If the <option>--no-nplus1-mem</option> option is given, ganeti won't
748 3cf7c9fa Guido Trotter
        check whether if it loses a node it can restart all the instances on
749 3cf7c9fa Guido Trotter
        their secondaries (and report an error otherwise).
750 3cf7c9fa Guido Trotter
      </para>
751 75f49d9b Iustin Pop
    </refsect2>
752 75f49d9b Iustin Pop
753 75f49d9b Iustin Pop
    <refsect2>
754 ed2d1409 Iustin Pop
      <title>VERIFY-DISKS</title>
755 ed2d1409 Iustin Pop
756 ed2d1409 Iustin Pop
      <cmdsynopsis>
757 ed2d1409 Iustin Pop
        <command>verify-disks</command>
758 ed2d1409 Iustin Pop
      </cmdsynopsis>
759 ed2d1409 Iustin Pop
760 ed2d1409 Iustin Pop
      <para>
761 ed2d1409 Iustin Pop
        The command checks which instances have degraded DRBD disks
762 ed2d1409 Iustin Pop
        and activates the disks of those instances.
763 ed2d1409 Iustin Pop
      </para>
764 ed2d1409 Iustin Pop
765 ed2d1409 Iustin Pop
      <para>
766 ed2d1409 Iustin Pop
        This command is run from the <command>ganeti-watcher</command>
767 ed2d1409 Iustin Pop
        tool, which also has a different, complementary algorithm for
768 ed2d1409 Iustin Pop
        doing this check. Together, these two should ensure that DRBD
769 ed2d1409 Iustin Pop
        disks are kept consistent.
770 ed2d1409 Iustin Pop
      </para>
771 ed2d1409 Iustin Pop
    </refsect2>
772 ed2d1409 Iustin Pop
773 ed2d1409 Iustin Pop
    <refsect2>
774 75f49d9b Iustin Pop
      <title>VERSION</title>
775 75f49d9b Iustin Pop
776 75f49d9b Iustin Pop
      <cmdsynopsis>
777 75f49d9b Iustin Pop
        <command>version</command>
778 75f49d9b Iustin Pop
      </cmdsynopsis>
779 75f49d9b Iustin Pop
780 75f49d9b Iustin Pop
      <para>
781 75f49d9b Iustin Pop
        Show the cluster version.
782 75f49d9b Iustin Pop
      </para>
783 75f49d9b Iustin Pop
    </refsect2>
784 a8083063 Iustin Pop
785 a8083063 Iustin Pop
  </refsect1>
786 a8083063 Iustin Pop
787 a8083063 Iustin Pop
  &footer;
788 a8083063 Iustin Pop
789 a8083063 Iustin Pop
</refentry>
790 a8083063 Iustin Pop
791 a8083063 Iustin Pop
<!-- Keep this comment at the end of the file
792 a8083063 Iustin Pop
Local variables:
793 a8083063 Iustin Pop
mode: sgml
794 a8083063 Iustin Pop
sgml-omittag:t
795 a8083063 Iustin Pop
sgml-shorttag:t
796 a8083063 Iustin Pop
sgml-minimize-attributes:nil
797 a8083063 Iustin Pop
sgml-always-quote-attributes:t
798 a8083063 Iustin Pop
sgml-indent-step:2
799 a8083063 Iustin Pop
sgml-indent-data:t
800 a8083063 Iustin Pop
sgml-parent-document:nil
801 a8083063 Iustin Pop
sgml-default-dtd-file:nil
802 a8083063 Iustin Pop
sgml-exposed-tags:nil
803 a8083063 Iustin Pop
sgml-local-catalogs:nil
804 a8083063 Iustin Pop
sgml-local-ecat-files:nil
805 a8083063 Iustin Pop
End:
806 a8083063 Iustin Pop
-->