Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (26.6 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 b989b9d9 Ken Wehr
        <arg>--no-etc-hosts</arg>
225 b989b9d9 Ken Wehr
        <sbr>
226 b989b9d9 Ken Wehr
        <arg>--no-ssh-init</arg>
227 b989b9d9 Ken Wehr
        <sbr>
228 19ae0895 Alexander Schreiber
        <arg>--file-storage-dir <replaceable>dir</replaceable></arg>
229 d3b4cf9f Iustin Pop
        <sbr>
230 19ae0895 Alexander Schreiber
        <arg>--enabled-hypervisors <replaceable>hypervisors</replaceable></arg>
231 d3b4cf9f Iustin Pop
        <sbr>
232 19ae0895 Alexander Schreiber
        <arg>-t <replaceable>hypervisor name</replaceable></arg>
233 d3b4cf9f Iustin Pop
        <sbr>
234 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>
235 d3b4cf9f Iustin Pop
        <sbr>
236 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>
237 d3b4cf9f Iustin Pop
        <sbr>
238 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>
239 7d713344 Guido Trotter
        <sbr>
240 75f49d9b Iustin Pop
        <arg choice="req"><replaceable>clustername</replaceable></arg>
241 75f49d9b Iustin Pop
      </cmdsynopsis>
242 75f49d9b Iustin Pop
243 75f49d9b Iustin Pop
      <para>
244 75f49d9b Iustin Pop
        This commands is only run once initially on the first node of
245 75f49d9b Iustin Pop
        the cluster. It will initialize the cluster configuration and
246 75f49d9b Iustin Pop
        setup ssh-keys and more.
247 75f49d9b Iustin Pop
      </para>
248 75f49d9b Iustin Pop
249 75f49d9b Iustin Pop
      <para>
250 75f49d9b Iustin Pop
        Note that the <replaceable>clustername</replaceable> is not
251 75f49d9b Iustin Pop
        any random name. It has to be resolvable to an IP address
252 75f49d9b Iustin Pop
        using DNS, and it is best if you give the fully-qualified
253 56db8a84 Alexander Schreiber
        domain name. This hostname must resolve to an IP address
254 56db8a84 Alexander Schreiber
        reserved exclusively for this purpose.
255 75f49d9b Iustin Pop
      </para>
256 75f49d9b Iustin Pop
257 75f49d9b Iustin Pop
      <para>
258 75f49d9b Iustin Pop
        The cluster can run in two modes: single-home or
259 75f49d9b Iustin Pop
        dual-homed. In the first case, all traffic (both public
260 75f49d9b Iustin Pop
        traffic, inter-node traffic and data replication traffic) goes
261 75f49d9b Iustin Pop
        over the same interface. In the dual-homed case, the data
262 75f49d9b Iustin Pop
        replication traffic goes over the second network. The
263 75f49d9b Iustin Pop
        <option>-s</option> option here marks the cluster as
264 75f49d9b Iustin Pop
        dual-homed and its parameter represents this node's address on
265 75f49d9b Iustin Pop
        the second network. If you initialise the cluster with
266 75f49d9b Iustin Pop
        <option>-s</option>, all nodes added must have a secondary IP
267 75f49d9b Iustin Pop
        as well.
268 75f49d9b Iustin Pop
      </para>
269 75f49d9b Iustin Pop
270 75f49d9b Iustin Pop
      <para>
271 75f49d9b Iustin Pop
        Note that for Ganeti it doesn't matter if the secondary
272 75f49d9b Iustin Pop
        network is actually a separate physical network, or is done
273 75f49d9b Iustin Pop
        using tunneling, etc. For performance reasons, it's
274 75f49d9b Iustin Pop
        recommended to use a separate network, of course.
275 75f49d9b Iustin Pop
      </para>
276 75f49d9b Iustin Pop
277 75f49d9b Iustin Pop
      <para>
278 f3b100e1 Guido Trotter
        The <option>-g</option> option will let you specify a volume group
279 11c05c42 Manuel Franceschini
        different than 'xenvg' for ganeti to use when creating instance disks.
280 11c05c42 Manuel Franceschini
        This volume group must have the same name on all nodes. Once the
281 11c05c42 Manuel Franceschini
        cluster is initialized this can be altered by using the
282 11c05c42 Manuel Franceschini
        <command>modify</command> command. If you don't want to use lvm
283 11c05c42 Manuel Franceschini
        storage at all use the <option>--no-lvm-storage</option> option.
284 11c05c42 Manuel Franceschini
        Once the cluster is initialized you can change this setup with the
285 11c05c42 Manuel Franceschini
        <command>modify</command> command.
286 f3b100e1 Guido Trotter
      </para>
287 f3b100e1 Guido Trotter
288 f3b100e1 Guido Trotter
      <para>
289 f3b100e1 Guido Trotter
        The <option>--master-netdev</option> option is useful for specifying a
290 f3b100e1 Guido Trotter
        different interface on which the master will activate its IP address.
291 f3b100e1 Guido Trotter
        It's important that all nodes have this interface because you'll need
292 f3b100e1 Guido Trotter
        it for a master failover.
293 f3b100e1 Guido Trotter
      </para>
294 f3b100e1 Guido Trotter
295 f3b100e1 Guido Trotter
      <para>
296 f3b100e1 Guido Trotter
        The <option>-m</option> option will let you specify a three byte prefix
297 f3b100e1 Guido Trotter
        under which the virtual MAC addresses of your instances will be
298 f3b100e1 Guido Trotter
        generated. The prefix must be specified in the format XX:XX:XX and the
299 f3b100e1 Guido Trotter
        default is aa:00:00.
300 f3b100e1 Guido Trotter
      </para>
301 f3b100e1 Guido Trotter
302 11c05c42 Manuel Franceschini
      <para>
303 b989b9d9 Ken Wehr
        The <option>--no-lvm-storage</option> option allows you to initialize
304 b989b9d9 Ken Wehr
        the cluster without lvm support. This means that only instances using
305 11c05c42 Manuel Franceschini
        files as storage backend will be possible to create. Once the cluster
306 11c05c42 Manuel Franceschini
        is initialized you can change this setup with the
307 11c05c42 Manuel Franceschini
        <command>modify</command> command.
308 11c05c42 Manuel Franceschini
      </para>
309 19ae0895 Alexander Schreiber
310 19ae0895 Alexander Schreiber
      <para>
311 b989b9d9 Ken Wehr
        The <option>--no-etc-hosts</option> option allows you to initialize the
312 b989b9d9 Ken Wehr
        cluster without modifying the <filename>/etc/hosts</filename> file.
313 b989b9d9 Ken Wehr
      </para>
314 b989b9d9 Ken Wehr
315 b989b9d9 Ken Wehr
      <para>
316 b989b9d9 Ken Wehr
        The <option>--no-ssh-init</option> option allows you to initialize the
317 b989b9d9 Ken Wehr
        cluster without creating or distributing SSH key pairs.
318 b989b9d9 Ken Wehr
      </para>
319 b989b9d9 Ken Wehr
320 b989b9d9 Ken Wehr
      <para>
321 19ae0895 Alexander Schreiber
        The <option>--file-storage-dir</option> option allows you
322 19ae0895 Alexander Schreiber
        set the directory to use for storing the instance disk
323 19ae0895 Alexander Schreiber
        files when using file storage as backend for instance disks.
324 19ae0895 Alexander Schreiber
      </para>
325 19ae0895 Alexander Schreiber
326 19ae0895 Alexander Schreiber
      <para>
327 19ae0895 Alexander Schreiber
        The <option>--enabled-hypervisors</option> option allows you
328 19ae0895 Alexander Schreiber
        to set the list of hypervisors that will be enabled for
329 19ae0895 Alexander Schreiber
        this cluster. Instance hypervisors can only be choosen from
330 066f465d Guido Trotter
        the list of enabled hypervisors, and the first entry of this list
331 066f465d Guido Trotter
        will be used by default. Currently, the following hypervisors are
332 066f465d Guido Trotter
        available:
333 19ae0895 Alexander Schreiber
      </para>
334 19ae0895 Alexander Schreiber
335 19ae0895 Alexander Schreiber
      <para>
336 19ae0895 Alexander Schreiber
        <variablelist>
337 19ae0895 Alexander Schreiber
          <varlistentry>
338 19ae0895 Alexander Schreiber
            <term>xen-pvm</term>
339 19ae0895 Alexander Schreiber
            <listitem>
340 19ae0895 Alexander Schreiber
              <para>
341 19ae0895 Alexander Schreiber
                Xen PVM hypervisor
342 19ae0895 Alexander Schreiber
              </para>
343 19ae0895 Alexander Schreiber
            </listitem>
344 19ae0895 Alexander Schreiber
          </varlistentry>
345 19ae0895 Alexander Schreiber
          <varlistentry>
346 19ae0895 Alexander Schreiber
            <term>xen-hvm</term>
347 19ae0895 Alexander Schreiber
            <listitem>
348 19ae0895 Alexander Schreiber
              <para>
349 19ae0895 Alexander Schreiber
                Xen HVM hypervisor
350 19ae0895 Alexander Schreiber
              </para>
351 19ae0895 Alexander Schreiber
            </listitem>
352 19ae0895 Alexander Schreiber
          </varlistentry>
353 19ae0895 Alexander Schreiber
          <varlistentry>
354 19ae0895 Alexander Schreiber
            <term>kvm</term>
355 19ae0895 Alexander Schreiber
            <listitem>
356 19ae0895 Alexander Schreiber
              <para>
357 19ae0895 Alexander Schreiber
                Linux KVM hypervisor
358 19ae0895 Alexander Schreiber
              </para>
359 19ae0895 Alexander Schreiber
            </listitem>
360 19ae0895 Alexander Schreiber
          </varlistentry>
361 19ae0895 Alexander Schreiber
          <varlistentry>
362 19ae0895 Alexander Schreiber
            <term>fake</term>
363 19ae0895 Alexander Schreiber
            <listitem>
364 19ae0895 Alexander Schreiber
              <para>
365 19ae0895 Alexander Schreiber
                fake hypervisor for development/testing
366 19ae0895 Alexander Schreiber
              </para>
367 19ae0895 Alexander Schreiber
            </listitem>
368 19ae0895 Alexander Schreiber
          </varlistentry>
369 19ae0895 Alexander Schreiber
        </variablelist>
370 19ae0895 Alexander Schreiber
      </para>
371 19ae0895 Alexander Schreiber
372 19ae0895 Alexander Schreiber
      <para>
373 19ae0895 Alexander Schreiber
        Either a single hypervisor name or a comma-separated list of
374 19ae0895 Alexander Schreiber
        hypervisor names can be specified. If this option is not
375 19ae0895 Alexander Schreiber
        specified, only the xen-pvm hypervisor is enabled by default.
376 19ae0895 Alexander Schreiber
      </para>
377 19ae0895 Alexander Schreiber
378 19ae0895 Alexander Schreiber
      <para>
379 280b79b3 Guido Trotter
        The <option>--backend-parameters</option> option allows you to set
380 19ae0895 Alexander Schreiber
        the default backend parameters for the cluster. The parameter
381 19ae0895 Alexander Schreiber
        format is a comma-separated list of key=value pairs with the
382 19ae0895 Alexander Schreiber
        following supported keys:
383 19ae0895 Alexander Schreiber
      </para>
384 19ae0895 Alexander Schreiber
385 19ae0895 Alexander Schreiber
      <para>
386 19ae0895 Alexander Schreiber
        <variablelist>
387 19ae0895 Alexander Schreiber
          <varlistentry>
388 19ae0895 Alexander Schreiber
            <term>vcpus</term>
389 19ae0895 Alexander Schreiber
            <listitem>
390 19ae0895 Alexander Schreiber
              <para>
391 19ae0895 Alexander Schreiber
                Number of VCPUs to set for an instance by default, must
392 19ae0895 Alexander Schreiber
                be an integer, will be set to 1 if no specified.
393 19ae0895 Alexander Schreiber
              </para>
394 19ae0895 Alexander Schreiber
            </listitem>
395 19ae0895 Alexander Schreiber
          </varlistentry>
396 19ae0895 Alexander Schreiber
          <varlistentry>
397 19ae0895 Alexander Schreiber
            <term>memory</term>
398 19ae0895 Alexander Schreiber
            <listitem>
399 19ae0895 Alexander Schreiber
              <para>
400 19ae0895 Alexander Schreiber
                Amount of memory to allocate for an instance by default,
401 19ae0895 Alexander Schreiber
                can be either an integer or an integer followed by a
402 19ae0895 Alexander Schreiber
                unit (M for mebibytes and G for gibibytes are
403 19ae0895 Alexander Schreiber
                supported), will be set to 128M if not specified.
404 19ae0895 Alexander Schreiber
              </para>
405 19ae0895 Alexander Schreiber
            </listitem>
406 19ae0895 Alexander Schreiber
          </varlistentry>
407 19ae0895 Alexander Schreiber
          <varlistentry>
408 19ae0895 Alexander Schreiber
            <term>auto_balance</term>
409 19ae0895 Alexander Schreiber
            <listitem>
410 19ae0895 Alexander Schreiber
              <para>
411 19ae0895 Alexander Schreiber
                Value of the auto_balance flag for instances to use by
412 19ae0895 Alexander Schreiber
                default, will be set to true if not specified.
413 19ae0895 Alexander Schreiber
              </para>
414 19ae0895 Alexander Schreiber
            </listitem>
415 19ae0895 Alexander Schreiber
          </varlistentry>
416 19ae0895 Alexander Schreiber
        </variablelist>
417 19ae0895 Alexander Schreiber
      </para>
418 19ae0895 Alexander Schreiber
419 19ae0895 Alexander Schreiber
      <para>
420 19ae0895 Alexander Schreiber
        The <option>--hypervisor-parameters</option> option allows you
421 19ae0895 Alexander Schreiber
        to set default hypervisor specific parameters for the
422 19ae0895 Alexander Schreiber
        cluster. The format of this option is the name of the
423 19ae0895 Alexander Schreiber
        hypervisor, followed by a colon and a comma-separated list of
424 d3b4cf9f Iustin Pop
        key=value pairs. The keys available for each hypervisors are
425 d3b4cf9f Iustin Pop
        detailed int the <citerefentry>
426 d3b4cf9f Iustin Pop
        <refentrytitle>gnt-instance</refentrytitle>
427 d3b4cf9f Iustin Pop
        <manvolnum>8</manvolnum> </citerefentry> man page, in the
428 d3b4cf9f Iustin Pop
        <command>add</command> command.
429 19ae0895 Alexander Schreiber
      </para>
430 19ae0895 Alexander Schreiber
431 7d713344 Guido Trotter
      <para>
432 7d713344 Guido Trotter
        The <option>--nic-parameters</option> option allows you to set
433 7d713344 Guido Trotter
        the default nic parameters for the cluster. The parameter
434 7d713344 Guido Trotter
        format is a comma-separated list of key=value pairs with the
435 7d713344 Guido Trotter
        following supported keys:
436 7d713344 Guido Trotter
        <variablelist>
437 7d713344 Guido Trotter
          <varlistentry>
438 7d713344 Guido Trotter
            <term>mode</term>
439 7d713344 Guido Trotter
            <listitem>
440 7d713344 Guido Trotter
              <para>
441 7d713344 Guido Trotter
                The default nic mode, 'routed' or 'bridged'.
442 7d713344 Guido Trotter
              </para>
443 7d713344 Guido Trotter
            </listitem>
444 7d713344 Guido Trotter
          </varlistentry>
445 7d713344 Guido Trotter
          <varlistentry>
446 7d713344 Guido Trotter
            <term>link</term>
447 7d713344 Guido Trotter
            <listitem>
448 7d713344 Guido Trotter
              <para>
449 8063787e Guido Trotter
                In bridged mode the default NIC bridge. In routed mode it
450 8063787e Guido Trotter
                represents an hypervisor-vif-script dependent value to allow
451 8063787e Guido Trotter
                different instance groups. For example under the KVM default
452 8063787e Guido Trotter
                network script it is interpreted as a routing table number or
453 8063787e Guido Trotter
                name.
454 7d713344 Guido Trotter
              </para>
455 7d713344 Guido Trotter
            </listitem>
456 7d713344 Guido Trotter
          </varlistentry>
457 7d713344 Guido Trotter
        </variablelist>
458 7d713344 Guido Trotter
      </para>
459 7d713344 Guido Trotter
460 75f49d9b Iustin Pop
    </refsect2>
461 75f49d9b Iustin Pop
462 75f49d9b Iustin Pop
    <refsect2>
463 cc425644 Iustin Pop
      <title>LIST-TAGS</title>
464 cc425644 Iustin Pop
465 cc425644 Iustin Pop
      <cmdsynopsis>
466 cc425644 Iustin Pop
        <command>list-tags</command>
467 cc425644 Iustin Pop
      </cmdsynopsis>
468 cc425644 Iustin Pop
469 cc425644 Iustin Pop
      <para>List the tags of the cluster.</para>
470 cc425644 Iustin Pop
    </refsect2>
471 cc425644 Iustin Pop
472 cc425644 Iustin Pop
    <refsect2>
473 75f49d9b Iustin Pop
      <title>MASTERFAILOVER</title>
474 75f49d9b Iustin Pop
475 75f49d9b Iustin Pop
      <cmdsynopsis>
476 75f49d9b Iustin Pop
        <command>masterfailover</command>
477 8e2524c3 Guido Trotter
        <arg>--no-voting</arg>
478 75f49d9b Iustin Pop
      </cmdsynopsis>
479 75f49d9b Iustin Pop
480 75f49d9b Iustin Pop
      <para>
481 75f49d9b Iustin Pop
        Failover the master role to the current node.
482 75f49d9b Iustin Pop
      </para>
483 8e2524c3 Guido Trotter
484 8e2524c3 Guido Trotter
      <para>
485 8e2524c3 Guido Trotter
        The <option>--no-voting</option> option skips the remote node agreement
486 8e2524c3 Guido Trotter
        checks. This is dangerous, but necessary in some cases (for example
487 8e2524c3 Guido Trotter
        failing over the master role in a 2 node cluster with the original master
488 8e2524c3 Guido Trotter
        down). If the original master then comes up, it won't be able to start
489 8e2524c3 Guido Trotter
        its master daemon because it won't have enough votes, but so won't the
490 8e2524c3 Guido Trotter
        new master, if the master daemon ever needs a restart. You can pass
491 8e2524c3 Guido Trotter
        --no-voting to ganeti-masterd on the new master to solve this problem,
492 8e2524c3 Guido Trotter
        and gnt-cluster redist-conf to make sure the cluster is consistent again.
493 8e2524c3 Guido Trotter
      </para>
494 8e2524c3 Guido Trotter
495 75f49d9b Iustin Pop
    </refsect2>
496 75f49d9b Iustin Pop
497 75f49d9b Iustin Pop
    <refsect2>
498 11c05c42 Manuel Franceschini
      <title>MODIFY</title>
499 11c05c42 Manuel Franceschini
500 11c05c42 Manuel Franceschini
      <cmdsynopsis>
501 11c05c42 Manuel Franceschini
        <command>modify</command>
502 d3b4cf9f Iustin Pop
        <sbr>
503 11c05c42 Manuel Franceschini
        <arg choice="opt">-g <replaceable>vg-name</replaceable></arg>
504 d3b4cf9f Iustin Pop
        <sbr>
505 11c05c42 Manuel Franceschini
        <arg choice="opt">--no-lvm-storage</arg>
506 d3b4cf9f Iustin Pop
        <sbr>
507 18fb5e1d Alexander Schreiber
        <arg choice="opt">--enabled-hypervisors
508 18fb5e1d Alexander Schreiber
        <replaceable>hypervisors</replaceable></arg>
509 d3b4cf9f Iustin Pop
        <sbr>
510 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>
511 d3b4cf9f Iustin Pop
        <sbr>
512 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>
513 d3b4cf9f Iustin Pop
        <sbr>
514 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>
515 7d713344 Guido Trotter
        <sbr>
516 d3b4cf9f Iustin Pop
        <arg>-C <replaceable>candidate_pool_size</replaceable></arg>
517 18fb5e1d Alexander Schreiber
518 11c05c42 Manuel Franceschini
      </cmdsynopsis>
519 11c05c42 Manuel Franceschini
520 11c05c42 Manuel Franceschini
        <para>
521 11c05c42 Manuel Franceschini
          Modify the options for the cluster.
522 11c05c42 Manuel Franceschini
        </para>
523 11c05c42 Manuel Franceschini
524 11c05c42 Manuel Franceschini
        <para>
525 18fb5e1d Alexander Schreiber
          The <option>-g</option>, <option>--no-lvm-storarge</option>,
526 18fb5e1d Alexander Schreiber
          <option>--enabled-hypervisors</option>,
527 7d713344 Guido Trotter
          <option>--hypervisor-parameters</option>,
528 7d713344 Guido Trotter
          <option>--backend-parameters</option> and
529 7d713344 Guido Trotter
          <option>--nic-parameters</option> and options are
530 11c05c42 Manuel Franceschini
          described in the <command>init</command> command.
531 11c05c42 Manuel Franceschini
        </para>
532 d3b4cf9f Iustin Pop
533 d3b4cf9f Iustin Pop
      <para>
534 d3b4cf9f Iustin Pop
        The <option>-C</option> options specifies the
535 d3b4cf9f Iustin Pop
        <varname>candidate_pool_size</varname> cluster parameter. This
536 d3b4cf9f Iustin Pop
        is the number of nodes that the master will try to keep as
537 d3b4cf9f Iustin Pop
        <literal>master_candidates</literal>. For more details about
538 d3b4cf9f Iustin Pop
        this role and other node roles, see the <citerefentry>
539 d3b4cf9f Iustin Pop
        <refentrytitle>ganeti</refentrytitle><manvolnum>7</manvolnum>
540 d3b4cf9f Iustin Pop
        </citerefentry>. If you increase the size, the master will
541 d3b4cf9f Iustin Pop
        automatically promote as many nodes as required and possible
542 d3b4cf9f Iustin Pop
        to reach the intended number.
543 d3b4cf9f Iustin Pop
      </para>
544 11c05c42 Manuel Franceschini
    </refsect2>
545 11c05c42 Manuel Franceschini
546 11c05c42 Manuel Franceschini
    <refsect2>
547 18fb5e1d Alexander Schreiber
      <title>QUEUE</title>
548 18fb5e1d Alexander Schreiber
549 18fb5e1d Alexander Schreiber
      <cmdsynopsis>
550 18fb5e1d Alexander Schreiber
        <command>queue</command>
551 18fb5e1d Alexander Schreiber
        <arg choice="opt">drain</arg>
552 18fb5e1d Alexander Schreiber
        <arg choice="opt">undrain</arg>
553 18fb5e1d Alexander Schreiber
        <arg choice="opt">info</arg>
554 18fb5e1d Alexander Schreiber
555 18fb5e1d Alexander Schreiber
      </cmdsynopsis>
556 18fb5e1d Alexander Schreiber
557 18fb5e1d Alexander Schreiber
      <para>
558 18fb5e1d Alexander Schreiber
        Change job queue properties.
559 18fb5e1d Alexander Schreiber
      </para>
560 18fb5e1d Alexander Schreiber
561 18fb5e1d Alexander Schreiber
      <para>
562 18fb5e1d Alexander Schreiber
        The <option>drain</option> option sets the drain flag on the
563 18fb5e1d Alexander Schreiber
        job queue. No new jobs will be accepted, but jobs already in
564 18fb5e1d Alexander Schreiber
        the queue will be processed.
565 18fb5e1d Alexander Schreiber
      </para>
566 18fb5e1d Alexander Schreiber
567 18fb5e1d Alexander Schreiber
      <para>
568 18fb5e1d Alexander Schreiber
        The <option>undrain</option> will unset the drain flag on the
569 18fb5e1d Alexander Schreiber
        job queue. New jobs will be accepted.
570 18fb5e1d Alexander Schreiber
      </para>
571 18fb5e1d Alexander Schreiber
572 18fb5e1d Alexander Schreiber
      <para>
573 18fb5e1d Alexander Schreiber
        The <option>info</option> option shows the properties of the
574 18fb5e1d Alexander Schreiber
        job queue.
575 18fb5e1d Alexander Schreiber
      </para>
576 18fb5e1d Alexander Schreiber
    </refsect2>
577 18fb5e1d Alexander Schreiber
578 18fb5e1d Alexander Schreiber
    <refsect2>
579 95b2e626 Michael Hanselmann
      <title>WATCHER</title>
580 95b2e626 Michael Hanselmann
581 95b2e626 Michael Hanselmann
      <cmdsynopsis>
582 95b2e626 Michael Hanselmann
        <command>watcher</command>
583 95b2e626 Michael Hanselmann
        <group choice="req">
584 95b2e626 Michael Hanselmann
          <arg>pause <replaceable>duration</replaceable></arg>
585 95b2e626 Michael Hanselmann
          <arg>continue</arg>
586 95b2e626 Michael Hanselmann
          <arg>info</arg>
587 95b2e626 Michael Hanselmann
        </group>
588 95b2e626 Michael Hanselmann
      </cmdsynopsis>
589 95b2e626 Michael Hanselmann
590 95b2e626 Michael Hanselmann
      <para>
591 95b2e626 Michael Hanselmann
        Make the watcher pause or let it continue.
592 95b2e626 Michael Hanselmann
      </para>
593 95b2e626 Michael Hanselmann
594 95b2e626 Michael Hanselmann
      <para>
595 95b2e626 Michael Hanselmann
        The <option>pause</option> option causes the watcher to pause for
596 95b2e626 Michael Hanselmann
        <replaceable>duration</replaceable> seconds.
597 95b2e626 Michael Hanselmann
      </para>
598 95b2e626 Michael Hanselmann
599 95b2e626 Michael Hanselmann
      <para>
600 95b2e626 Michael Hanselmann
        The <option>continue</option> option will let the watcher continue.
601 95b2e626 Michael Hanselmann
      </para>
602 95b2e626 Michael Hanselmann
603 95b2e626 Michael Hanselmann
      <para>
604 95b2e626 Michael Hanselmann
        The <option>info</option> option shows whether the watcher is currently
605 95b2e626 Michael Hanselmann
        paused.
606 95b2e626 Michael Hanselmann
      </para>
607 95b2e626 Michael Hanselmann
    </refsect2>
608 95b2e626 Michael Hanselmann
609 95b2e626 Michael Hanselmann
    <refsect2>
610 d3b4cf9f Iustin Pop
      <title>redist-conf</title>
611 d3b4cf9f Iustin Pop
      <cmdsynopsis>
612 d3b4cf9f Iustin Pop
        <command>redist-conf</command>
613 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
614 d3b4cf9f Iustin Pop
      </cmdsynopsis>
615 d3b4cf9f Iustin Pop
616 d3b4cf9f Iustin Pop
      <para>
617 d3b4cf9f Iustin Pop
        This command forces a full push of configuration files from
618 d3b4cf9f Iustin Pop
        the master node to the other nodes in the cluster. This is
619 d3b4cf9f Iustin Pop
        normally not needed, but can be run if the
620 d3b4cf9f Iustin Pop
        <command>verify</command> complains about configuration
621 d3b4cf9f Iustin Pop
        mismatches.
622 d3b4cf9f Iustin Pop
      </para>
623 d3b4cf9f Iustin Pop
624 d3b4cf9f Iustin Pop
      <para>
625 d3b4cf9f Iustin Pop
        The <option>--submit</option> option is used to send the job
626 d3b4cf9f Iustin Pop
        to the master daemon but not wait for its completion. The job
627 d3b4cf9f Iustin Pop
        ID will be shown so that it can be examined via
628 d3b4cf9f Iustin Pop
        <command>gnt-job info</command>.
629 d3b4cf9f Iustin Pop
      </para>
630 d3b4cf9f Iustin Pop
631 d3b4cf9f Iustin Pop
    </refsect2>
632 d3b4cf9f Iustin Pop
    <refsect2>
633 cc425644 Iustin Pop
      <title>REMOVE-TAGS</title>
634 cc425644 Iustin Pop
635 cc425644 Iustin Pop
      <cmdsynopsis>
636 cc425644 Iustin Pop
        <command>remove-tags</command>
637 810c50b7 Iustin Pop
        <arg choice="opt">--from <replaceable>file</replaceable></arg>
638 cc425644 Iustin Pop
        <arg choice="req"
639 cc425644 Iustin Pop
        rep="repeat"><replaceable>tag</replaceable></arg>
640 cc425644 Iustin Pop
      </cmdsynopsis>
641 cc425644 Iustin Pop
642 cc425644 Iustin Pop
      <para>
643 cc425644 Iustin Pop
        Remove tags from the cluster. If any of the tags are not
644 cc425644 Iustin Pop
        existing on the cluster, the entire operation will abort.
645 cc425644 Iustin Pop
      </para>
646 810c50b7 Iustin Pop
647 810c50b7 Iustin Pop
      <para>
648 810c50b7 Iustin Pop
        If the <option>--from</option> option is given, the list of
649 810c50b7 Iustin Pop
        tags will be extended with the contents of that file (each
650 810c50b7 Iustin Pop
        line becomes a tag). In this case, there is not need to pass
651 810c50b7 Iustin Pop
        tags on the command line (if you do, both sources will be
652 810c50b7 Iustin Pop
        used). A file name of - will be interpreted as stdin.
653 810c50b7 Iustin Pop
      </para>
654 cc425644 Iustin Pop
    </refsect2>
655 cc425644 Iustin Pop
656 cc425644 Iustin Pop
    <refsect2>
657 75f49d9b Iustin Pop
      <title>RENAME</title>
658 75f49d9b Iustin Pop
659 75f49d9b Iustin Pop
      <cmdsynopsis>
660 75f49d9b Iustin Pop
        <command>rename</command>
661 75f49d9b Iustin Pop
        <arg>-f</arg>
662 75f49d9b Iustin Pop
        <arg choice="req"><replaceable>name</replaceable></arg>
663 75f49d9b Iustin Pop
      </cmdsynopsis>
664 75f49d9b Iustin Pop
665 75f49d9b Iustin Pop
      <para>
666 75f49d9b Iustin Pop
        Renames the cluster and in the process updates the master IP
667 75f49d9b Iustin Pop
        address to the one the new name resolves to. At least one of
668 75f49d9b Iustin Pop
        either the name or the IP address must be different, otherwise
669 75f49d9b Iustin Pop
        the operation will be aborted.
670 75f49d9b Iustin Pop
      </para>
671 75f49d9b Iustin Pop
672 75f49d9b Iustin Pop
      <para>
673 75f49d9b Iustin Pop
        Note that since this command can be dangerous (especially when
674 75f49d9b Iustin Pop
        run over SSH), the command will require confirmation unless
675 75f49d9b Iustin Pop
        run with the <option>-f</option> option.
676 75f49d9b Iustin Pop
      </para>
677 75f49d9b Iustin Pop
    </refsect2>
678 60975797 Iustin Pop
679 60975797 Iustin Pop
    <refsect2>
680 60975797 Iustin Pop
      <title>REPAIR-DISK-SIZES</title>
681 60975797 Iustin Pop
682 60975797 Iustin Pop
      <cmdsynopsis>
683 60975797 Iustin Pop
        <command>repair-disk-sizes</command>
684 60975797 Iustin Pop
        <arg rep="repeat">instance</arg>
685 60975797 Iustin Pop
      </cmdsynopsis>
686 60975797 Iustin Pop
687 60975797 Iustin Pop
      <para>
688 60975797 Iustin Pop
        This command checks that the recorded size of the given
689 60975797 Iustin Pop
        instance's disks matches the actual size and updates any
690 60975797 Iustin Pop
        mismatches found. This is needed if the Ganeti configuration
691 60975797 Iustin Pop
        is no longer consistent with reality, as it will impact some
692 60975797 Iustin Pop
        disk operations. If no arguments are given, all instances will
693 60975797 Iustin Pop
        be checked.
694 60975797 Iustin Pop
      </para>
695 60975797 Iustin Pop
696 60975797 Iustin Pop
      <para>
697 60975797 Iustin Pop
        Note that only active disks can be checked by this command; in
698 60975797 Iustin Pop
        case a disk cannot be activated it's advised to use
699 60975797 Iustin Pop
        <command>gnt-instance activate-disks --ignore-size
700 60975797 Iustin Pop
        ...</command> to force activation without regard to the
701 60975797 Iustin Pop
        current size.
702 60975797 Iustin Pop
      </para>
703 60975797 Iustin Pop
704 60975797 Iustin Pop
      <para>
705 60975797 Iustin Pop
        When the all disk sizes are consistent, the command will
706 60975797 Iustin Pop
        return no output. Otherwise it will log details about the
707 60975797 Iustin Pop
        inconsistencies in the configuration.
708 60975797 Iustin Pop
      </para>
709 60975797 Iustin Pop
    </refsect2>
710 75f49d9b Iustin Pop
711 75f49d9b Iustin Pop
    <refsect2>
712 73415719 Iustin Pop
      <title>SEARCH-TAGS</title>
713 73415719 Iustin Pop
714 73415719 Iustin Pop
      <cmdsynopsis>
715 73415719 Iustin Pop
        <command>search-tags</command>
716 73415719 Iustin Pop
        <arg choice="req"><replaceable>pattern</replaceable></arg>
717 73415719 Iustin Pop
      </cmdsynopsis>
718 73415719 Iustin Pop
719 73415719 Iustin Pop
      <para>
720 73415719 Iustin Pop
        Searches the tags on all objects in the cluster (the cluster
721 73415719 Iustin Pop
        itself, the nodes and the instances) for a given pattern. The
722 73415719 Iustin Pop
        pattern is interpreted as a regular expression and a search
723 73415719 Iustin Pop
        will be done on it (i.e. the given pattern is not anchored to
724 73415719 Iustin Pop
        the beggining of the string; if you want that, prefix the
725 73415719 Iustin Pop
        pattern with <literal>^</literal>).
726 73415719 Iustin Pop
      </para>
727 73415719 Iustin Pop
728 73415719 Iustin Pop
      <para>
729 73415719 Iustin Pop
        If no tags are matching the pattern, the exit code of the
730 73415719 Iustin Pop
        command will be one. If there is at least one match, the exit
731 73415719 Iustin Pop
        code will be zero. Each match is listed on one line, the
732 73415719 Iustin Pop
        object and the tag separated by a space. The cluster will be
733 73415719 Iustin Pop
        listed as <filename>/cluster</filename>, a node will be listed
734 73415719 Iustin Pop
        as
735 73415719 Iustin Pop
        <filename>/nodes/<replaceable>name</replaceable></filename>,
736 73415719 Iustin Pop
        and an instance as
737 73415719 Iustin Pop
        <filename>/instances/<replaceable>name</replaceable></filename>.
738 73415719 Iustin Pop
        Example:
739 73415719 Iustin Pop
      </para>
740 73415719 Iustin Pop
<screen>
741 2f49d1d2 Guido Trotter
# gnt-cluster search-tags time
742 73415719 Iustin Pop
/cluster ctime:2007-09-01
743 73415719 Iustin Pop
/nodes/node1.example.com mtime:2007-10-04
744 73415719 Iustin Pop
</screen>
745 73415719 Iustin Pop
    </refsect2>
746 73415719 Iustin Pop
747 73415719 Iustin Pop
    <refsect2>
748 75f49d9b Iustin Pop
      <title>VERIFY</title>
749 75f49d9b Iustin Pop
750 75f49d9b Iustin Pop
      <cmdsynopsis>
751 75f49d9b Iustin Pop
        <command>verify</command>
752 3cf7c9fa Guido Trotter
        <arg choice="opt">--no-nplus1-mem</arg>
753 75f49d9b Iustin Pop
      </cmdsynopsis>
754 75f49d9b Iustin Pop
755 75f49d9b Iustin Pop
      <para>
756 75f49d9b Iustin Pop
        Verify correctness of cluster configuration. This is safe with
757 75f49d9b Iustin Pop
        respect to running instances, and incurs no downtime of the
758 75f49d9b Iustin Pop
        instances.
759 75f49d9b Iustin Pop
      </para>
760 3cf7c9fa Guido Trotter
761 3cf7c9fa Guido Trotter
      <para>
762 3cf7c9fa Guido Trotter
        If the <option>--no-nplus1-mem</option> option is given, ganeti won't
763 3cf7c9fa Guido Trotter
        check whether if it loses a node it can restart all the instances on
764 3cf7c9fa Guido Trotter
        their secondaries (and report an error otherwise).
765 3cf7c9fa Guido Trotter
      </para>
766 75f49d9b Iustin Pop
    </refsect2>
767 75f49d9b Iustin Pop
768 75f49d9b Iustin Pop
    <refsect2>
769 ed2d1409 Iustin Pop
      <title>VERIFY-DISKS</title>
770 ed2d1409 Iustin Pop
771 ed2d1409 Iustin Pop
      <cmdsynopsis>
772 ed2d1409 Iustin Pop
        <command>verify-disks</command>
773 ed2d1409 Iustin Pop
      </cmdsynopsis>
774 ed2d1409 Iustin Pop
775 ed2d1409 Iustin Pop
      <para>
776 ed2d1409 Iustin Pop
        The command checks which instances have degraded DRBD disks
777 ed2d1409 Iustin Pop
        and activates the disks of those instances.
778 ed2d1409 Iustin Pop
      </para>
779 ed2d1409 Iustin Pop
780 ed2d1409 Iustin Pop
      <para>
781 ed2d1409 Iustin Pop
        This command is run from the <command>ganeti-watcher</command>
782 ed2d1409 Iustin Pop
        tool, which also has a different, complementary algorithm for
783 ed2d1409 Iustin Pop
        doing this check. Together, these two should ensure that DRBD
784 ed2d1409 Iustin Pop
        disks are kept consistent.
785 ed2d1409 Iustin Pop
      </para>
786 ed2d1409 Iustin Pop
    </refsect2>
787 ed2d1409 Iustin Pop
788 ed2d1409 Iustin Pop
    <refsect2>
789 75f49d9b Iustin Pop
      <title>VERSION</title>
790 75f49d9b Iustin Pop
791 75f49d9b Iustin Pop
      <cmdsynopsis>
792 75f49d9b Iustin Pop
        <command>version</command>
793 75f49d9b Iustin Pop
      </cmdsynopsis>
794 75f49d9b Iustin Pop
795 75f49d9b Iustin Pop
      <para>
796 75f49d9b Iustin Pop
        Show the cluster version.
797 75f49d9b Iustin Pop
      </para>
798 75f49d9b Iustin Pop
    </refsect2>
799 a8083063 Iustin Pop
800 a8083063 Iustin Pop
  </refsect1>
801 a8083063 Iustin Pop
802 a8083063 Iustin Pop
  &footer;
803 a8083063 Iustin Pop
804 a8083063 Iustin Pop
</refentry>
805 a8083063 Iustin Pop
806 a8083063 Iustin Pop
<!-- Keep this comment at the end of the file
807 a8083063 Iustin Pop
Local variables:
808 a8083063 Iustin Pop
mode: sgml
809 a8083063 Iustin Pop
sgml-omittag:t
810 a8083063 Iustin Pop
sgml-shorttag:t
811 a8083063 Iustin Pop
sgml-minimize-attributes:nil
812 a8083063 Iustin Pop
sgml-always-quote-attributes:t
813 a8083063 Iustin Pop
sgml-indent-step:2
814 a8083063 Iustin Pop
sgml-indent-data:t
815 a8083063 Iustin Pop
sgml-parent-document:nil
816 a8083063 Iustin Pop
sgml-default-dtd-file:nil
817 a8083063 Iustin Pop
sgml-exposed-tags:nil
818 a8083063 Iustin Pop
sgml-local-catalogs:nil
819 a8083063 Iustin Pop
sgml-local-ecat-files:nil
820 a8083063 Iustin Pop
End:
821 a8083063 Iustin Pop
-->