Statistics
| Branch: | Tag: | Revision:

root / man / gnt-cluster.sgml @ f38ea602

History | View | Annotate | Download (34.2 kB)

1 a8083063 Iustin Pop
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2 a8083063 Iustin Pop
3 a8083063 Iustin Pop
  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4 a8083063 Iustin Pop
  <!-- Please adjust the date whenever revising the manpage. -->
5 e0897adf Michael Hanselmann
  <!ENTITY dhdate      "<date>June 08, 2010</date>">
6 a8083063 Iustin Pop
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7 a8083063 Iustin Pop
       allowed: see man(7), man(1). -->
8 a8083063 Iustin Pop
  <!ENTITY dhsection   "<manvolnum>8</manvolnum>">
9 a8083063 Iustin Pop
  <!ENTITY dhucpackage "<refentrytitle>gnt-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 e0897adf Michael Hanselmann
    <refmiscinfo>Ganeti 2.2</refmiscinfo>
34 a8083063 Iustin Pop
  </refmeta>
35 a8083063 Iustin Pop
  <refnamediv>
36 a8083063 Iustin Pop
    <refname>&dhpackage;</refname>
37 a8083063 Iustin Pop
38 e0897adf Michael Hanselmann
    <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 e0897adf Michael Hanselmann
      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 74adc100 Iustin Pop
        <arg>--use-replication-network</arg>
142 75f49d9b Iustin Pop
        <arg>-n <replaceable>node</replaceable></arg>
143 75f49d9b Iustin Pop
        <arg choice="req"><replaceable>file</replaceable></arg>
144 75f49d9b Iustin Pop
      </cmdsynopsis>
145 75f49d9b Iustin Pop
146 75f49d9b Iustin Pop
      <para>
147 75f49d9b Iustin Pop
        Copies a file to all or to some nodes. The argument specifies
148 75f49d9b Iustin Pop
        the source file (on the current system), the
149 75f49d9b Iustin Pop
        <option>-n</option> argument specifies the target node, or
150 75f49d9b Iustin Pop
        nodes if the option is given multiple times. If
151 75f49d9b Iustin Pop
        <option>-n</option> is not given at all, the file will be
152 75f49d9b Iustin Pop
        copied to all nodes.
153 75f49d9b Iustin Pop
154 74adc100 Iustin Pop
        Passing the <option>--use-replication-network</option> option
155 74adc100 Iustin Pop
        will cause the copy to be done over the replication network
156 74adc100 Iustin Pop
        (only matters if the primary/secondary IPs are different).
157 74adc100 Iustin Pop
158 75f49d9b Iustin Pop
        Example:
159 75f49d9b Iustin Pop
        <screen>
160 75f49d9b Iustin Pop
          # gnt-cluster -n node1.example.com -n node2.example.com copyfile /tmp/test
161 75f49d9b Iustin Pop
        </screen>
162 75f49d9b Iustin Pop
163 75f49d9b Iustin Pop
        This will copy the file <filename>/tmp/test</filename> from
164 75f49d9b Iustin Pop
        the current node to the two named nodes.
165 75f49d9b Iustin Pop
      </para>
166 75f49d9b Iustin Pop
    </refsect2>
167 75f49d9b Iustin Pop
168 75f49d9b Iustin Pop
    <refsect2>
169 75f49d9b Iustin Pop
      <title>DESTROY</title>
170 75f49d9b Iustin Pop
171 75f49d9b Iustin Pop
      <cmdsynopsis>
172 75f49d9b Iustin Pop
        <command>destroy</command>
173 f69dab6d Iustin Pop
        <arg choice="req">--yes-do-it</arg>
174 75f49d9b Iustin Pop
      </cmdsynopsis>
175 75f49d9b Iustin Pop
176 75f49d9b Iustin Pop
      <para>
177 75f49d9b Iustin Pop
        Remove all configuration files related to the cluster, so that
178 75f49d9b Iustin Pop
        a <command>gnt-cluster init</command> can be done again
179 75f49d9b Iustin Pop
        afterwards.
180 75f49d9b Iustin Pop
      </para>
181 f69dab6d Iustin Pop
182 f69dab6d Iustin Pop
      <para>
183 f69dab6d Iustin Pop
        Since this is a dangerous command, you are required to pass
184 f69dab6d Iustin Pop
        the argument <replaceable>--yes-do-it.</replaceable>
185 f69dab6d Iustin Pop
      </para>
186 75f49d9b Iustin Pop
    </refsect2>
187 75f49d9b Iustin Pop
188 75f49d9b Iustin Pop
    <refsect2>
189 75f49d9b Iustin Pop
      <title>GETMASTER</title>
190 75f49d9b Iustin Pop
191 75f49d9b Iustin Pop
      <cmdsynopsis>
192 75f49d9b Iustin Pop
        <command>getmaster</command>
193 75f49d9b Iustin Pop
      </cmdsynopsis>
194 75f49d9b Iustin Pop
195 75f49d9b Iustin Pop
      <para>
196 75f49d9b Iustin Pop
        Displays the current master node.
197 75f49d9b Iustin Pop
      </para>
198 75f49d9b Iustin Pop
    </refsect2>
199 75f49d9b Iustin Pop
200 75f49d9b Iustin Pop
    <refsect2>
201 75f49d9b Iustin Pop
      <title>INFO</title>
202 75f49d9b Iustin Pop
203 75f49d9b Iustin Pop
      <cmdsynopsis>
204 75f49d9b Iustin Pop
        <command>info</command>
205 d729e03a Guido Trotter
        <arg>--roman</arg>
206 75f49d9b Iustin Pop
      </cmdsynopsis>
207 75f49d9b Iustin Pop
208 75f49d9b Iustin Pop
      <para>
209 75f49d9b Iustin Pop
        Shows runtime cluster information: cluster name, architecture
210 75f49d9b Iustin Pop
        (32 or 64 bit), master node, node list and instance list.
211 75f49d9b Iustin Pop
      </para>
212 d729e03a Guido Trotter
213 d729e03a Guido Trotter
      <para>
214 d729e03a Guido Trotter
        Passing the <option>--roman</option> option gnt-cluster info will try
215 d729e03a Guido Trotter
        to print its integer fields in a latin friendly way. This allows
216 d729e03a Guido Trotter
        further diffusion of Ganeti among ancient cultures.
217 d729e03a Guido Trotter
      </para>
218 d729e03a Guido Trotter
219 75f49d9b Iustin Pop
    </refsect2>
220 75f49d9b Iustin Pop
221 75f49d9b Iustin Pop
    <refsect2>
222 75f49d9b Iustin Pop
      <title>INIT</title>
223 75f49d9b Iustin Pop
224 75f49d9b Iustin Pop
      <cmdsynopsis>
225 75f49d9b Iustin Pop
        <command>init</command>
226 d3b4cf9f Iustin Pop
        <sbr>
227 75f49d9b Iustin Pop
        <arg>-s <replaceable>secondary_ip</replaceable></arg>
228 d3b4cf9f Iustin Pop
        <sbr>
229 f3b100e1 Guido Trotter
        <arg>-g <replaceable>vg-name</replaceable></arg>
230 d3b4cf9f Iustin Pop
        <sbr>
231 f3b100e1 Guido Trotter
        <arg>--master-netdev <replaceable>vg-name</replaceable></arg>
232 d3b4cf9f Iustin Pop
        <sbr>
233 f3b100e1 Guido Trotter
        <arg>-m <replaceable>mac-prefix</replaceable></arg>
234 d3b4cf9f Iustin Pop
        <sbr>
235 11c05c42 Manuel Franceschini
        <arg>--no-lvm-storage</arg>
236 d3b4cf9f Iustin Pop
        <sbr>
237 b989b9d9 Ken Wehr
        <arg>--no-etc-hosts</arg>
238 b989b9d9 Ken Wehr
        <sbr>
239 b989b9d9 Ken Wehr
        <arg>--no-ssh-init</arg>
240 b989b9d9 Ken Wehr
        <sbr>
241 19ae0895 Alexander Schreiber
        <arg>--file-storage-dir <replaceable>dir</replaceable></arg>
242 d3b4cf9f Iustin Pop
        <sbr>
243 19ae0895 Alexander Schreiber
        <arg>--enabled-hypervisors <replaceable>hypervisors</replaceable></arg>
244 d3b4cf9f Iustin Pop
        <sbr>
245 19ae0895 Alexander Schreiber
        <arg>-t <replaceable>hypervisor name</replaceable></arg>
246 d3b4cf9f Iustin Pop
        <sbr>
247 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>
248 d3b4cf9f Iustin Pop
        <sbr>
249 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>
250 d3b4cf9f Iustin Pop
        <sbr>
251 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>
252 7d713344 Guido Trotter
        <sbr>
253 3953242f Iustin Pop
        <arg>--maintain-node-health <group choice="req"><arg>yes</arg><arg>no</arg></group></arg>
254 3953242f Iustin Pop
        <sbr>
255 89100352 Balazs Lecz
        <arg>--uid-pool <replaceable>user-id pool definition</replaceable></arg>
256 89100352 Balazs Lecz
        <sbr>
257 92be7021 Apollon Oikonomopoulos
        <arg>-I <replaceable>default instance allocator</replaceable></arg>
258 92be7021 Apollon Oikonomopoulos
        <sbr>
259 75f49d9b Iustin Pop
        <arg choice="req"><replaceable>clustername</replaceable></arg>
260 75f49d9b Iustin Pop
      </cmdsynopsis>
261 75f49d9b Iustin Pop
262 75f49d9b Iustin Pop
      <para>
263 75f49d9b Iustin Pop
        This commands is only run once initially on the first node of
264 75f49d9b Iustin Pop
        the cluster. It will initialize the cluster configuration and
265 75f49d9b Iustin Pop
        setup ssh-keys and more.
266 75f49d9b Iustin Pop
      </para>
267 75f49d9b Iustin Pop
268 75f49d9b Iustin Pop
      <para>
269 75f49d9b Iustin Pop
        Note that the <replaceable>clustername</replaceable> is not
270 75f49d9b Iustin Pop
        any random name. It has to be resolvable to an IP address
271 75f49d9b Iustin Pop
        using DNS, and it is best if you give the fully-qualified
272 56db8a84 Alexander Schreiber
        domain name. This hostname must resolve to an IP address
273 56db8a84 Alexander Schreiber
        reserved exclusively for this purpose.
274 75f49d9b Iustin Pop
      </para>
275 75f49d9b Iustin Pop
276 75f49d9b Iustin Pop
      <para>
277 75f49d9b Iustin Pop
        The cluster can run in two modes: single-home or
278 75f49d9b Iustin Pop
        dual-homed. In the first case, all traffic (both public
279 75f49d9b Iustin Pop
        traffic, inter-node traffic and data replication traffic) goes
280 75f49d9b Iustin Pop
        over the same interface. In the dual-homed case, the data
281 75f49d9b Iustin Pop
        replication traffic goes over the second network. The
282 75f49d9b Iustin Pop
        <option>-s</option> option here marks the cluster as
283 75f49d9b Iustin Pop
        dual-homed and its parameter represents this node's address on
284 75f49d9b Iustin Pop
        the second network. If you initialise the cluster with
285 75f49d9b Iustin Pop
        <option>-s</option>, all nodes added must have a secondary IP
286 75f49d9b Iustin Pop
        as well.
287 75f49d9b Iustin Pop
      </para>
288 75f49d9b Iustin Pop
289 75f49d9b Iustin Pop
      <para>
290 75f49d9b Iustin Pop
        Note that for Ganeti it doesn't matter if the secondary
291 75f49d9b Iustin Pop
        network is actually a separate physical network, or is done
292 75f49d9b Iustin Pop
        using tunneling, etc. For performance reasons, it's
293 75f49d9b Iustin Pop
        recommended to use a separate network, of course.
294 75f49d9b Iustin Pop
      </para>
295 75f49d9b Iustin Pop
296 75f49d9b Iustin Pop
      <para>
297 f3b100e1 Guido Trotter
        The <option>-g</option> option will let you specify a volume group
298 e0897adf Michael Hanselmann
        different than "xenvg" for Ganeti to use when creating instance disks.
299 11c05c42 Manuel Franceschini
        This volume group must have the same name on all nodes. Once the
300 11c05c42 Manuel Franceschini
        cluster is initialized this can be altered by using the
301 11c05c42 Manuel Franceschini
        <command>modify</command> command. If you don't want to use lvm
302 11c05c42 Manuel Franceschini
        storage at all use the <option>--no-lvm-storage</option> option.
303 11c05c42 Manuel Franceschini
        Once the cluster is initialized you can change this setup with the
304 11c05c42 Manuel Franceschini
        <command>modify</command> command.
305 f3b100e1 Guido Trotter
      </para>
306 f3b100e1 Guido Trotter
307 f3b100e1 Guido Trotter
      <para>
308 f3b100e1 Guido Trotter
        The <option>--master-netdev</option> option is useful for specifying a
309 f3b100e1 Guido Trotter
        different interface on which the master will activate its IP address.
310 f3b100e1 Guido Trotter
        It's important that all nodes have this interface because you'll need
311 f3b100e1 Guido Trotter
        it for a master failover.
312 f3b100e1 Guido Trotter
      </para>
313 f3b100e1 Guido Trotter
314 f3b100e1 Guido Trotter
      <para>
315 f3b100e1 Guido Trotter
        The <option>-m</option> option will let you specify a three byte prefix
316 f3b100e1 Guido Trotter
        under which the virtual MAC addresses of your instances will be
317 f3b100e1 Guido Trotter
        generated. The prefix must be specified in the format XX:XX:XX and the
318 f3b100e1 Guido Trotter
        default is aa:00:00.
319 f3b100e1 Guido Trotter
      </para>
320 f3b100e1 Guido Trotter
321 11c05c42 Manuel Franceschini
      <para>
322 b989b9d9 Ken Wehr
        The <option>--no-lvm-storage</option> option allows you to initialize
323 b989b9d9 Ken Wehr
        the cluster without lvm support. This means that only instances using
324 11c05c42 Manuel Franceschini
        files as storage backend will be possible to create. Once the cluster
325 11c05c42 Manuel Franceschini
        is initialized you can change this setup with the
326 11c05c42 Manuel Franceschini
        <command>modify</command> command.
327 11c05c42 Manuel Franceschini
      </para>
328 19ae0895 Alexander Schreiber
329 19ae0895 Alexander Schreiber
      <para>
330 b989b9d9 Ken Wehr
        The <option>--no-etc-hosts</option> option allows you to initialize the
331 b989b9d9 Ken Wehr
        cluster without modifying the <filename>/etc/hosts</filename> file.
332 b989b9d9 Ken Wehr
      </para>
333 b989b9d9 Ken Wehr
334 b989b9d9 Ken Wehr
      <para>
335 b989b9d9 Ken Wehr
        The <option>--no-ssh-init</option> option allows you to initialize the
336 b989b9d9 Ken Wehr
        cluster without creating or distributing SSH key pairs.
337 b989b9d9 Ken Wehr
      </para>
338 b989b9d9 Ken Wehr
339 b989b9d9 Ken Wehr
      <para>
340 19ae0895 Alexander Schreiber
        The <option>--file-storage-dir</option> option allows you
341 19ae0895 Alexander Schreiber
        set the directory to use for storing the instance disk
342 19ae0895 Alexander Schreiber
        files when using file storage as backend for instance disks.
343 19ae0895 Alexander Schreiber
      </para>
344 19ae0895 Alexander Schreiber
345 19ae0895 Alexander Schreiber
      <para>
346 19ae0895 Alexander Schreiber
        The <option>--enabled-hypervisors</option> option allows you
347 19ae0895 Alexander Schreiber
        to set the list of hypervisors that will be enabled for
348 ba0b05fe Iustin Pop
        this cluster. Instance hypervisors can only be chosen from
349 066f465d Guido Trotter
        the list of enabled hypervisors, and the first entry of this list
350 066f465d Guido Trotter
        will be used by default. Currently, the following hypervisors are
351 066f465d Guido Trotter
        available:
352 19ae0895 Alexander Schreiber
      </para>
353 19ae0895 Alexander Schreiber
354 19ae0895 Alexander Schreiber
      <para>
355 19ae0895 Alexander Schreiber
        <variablelist>
356 19ae0895 Alexander Schreiber
          <varlistentry>
357 19ae0895 Alexander Schreiber
            <term>xen-pvm</term>
358 19ae0895 Alexander Schreiber
            <listitem>
359 19ae0895 Alexander Schreiber
              <para>
360 19ae0895 Alexander Schreiber
                Xen PVM hypervisor
361 19ae0895 Alexander Schreiber
              </para>
362 19ae0895 Alexander Schreiber
            </listitem>
363 19ae0895 Alexander Schreiber
          </varlistentry>
364 19ae0895 Alexander Schreiber
          <varlistentry>
365 19ae0895 Alexander Schreiber
            <term>xen-hvm</term>
366 19ae0895 Alexander Schreiber
            <listitem>
367 19ae0895 Alexander Schreiber
              <para>
368 19ae0895 Alexander Schreiber
                Xen HVM hypervisor
369 19ae0895 Alexander Schreiber
              </para>
370 19ae0895 Alexander Schreiber
            </listitem>
371 19ae0895 Alexander Schreiber
          </varlistentry>
372 19ae0895 Alexander Schreiber
          <varlistentry>
373 19ae0895 Alexander Schreiber
            <term>kvm</term>
374 19ae0895 Alexander Schreiber
            <listitem>
375 19ae0895 Alexander Schreiber
              <para>
376 19ae0895 Alexander Schreiber
                Linux KVM hypervisor
377 19ae0895 Alexander Schreiber
              </para>
378 19ae0895 Alexander Schreiber
            </listitem>
379 19ae0895 Alexander Schreiber
          </varlistentry>
380 19ae0895 Alexander Schreiber
          <varlistentry>
381 e8a3bf18 Iustin Pop
            <term>chroot</term>
382 e8a3bf18 Iustin Pop
            <listitem>
383 e8a3bf18 Iustin Pop
              <para>
384 e8a3bf18 Iustin Pop
                a simple chroot manager that starts chroot based on a
385 e8a3bf18 Iustin Pop
                script at the root of the filesystem holding the
386 e8a3bf18 Iustin Pop
                chroot
387 e8a3bf18 Iustin Pop
          <varlistentry>
388 19ae0895 Alexander Schreiber
            <term>fake</term>
389 19ae0895 Alexander Schreiber
            <listitem>
390 19ae0895 Alexander Schreiber
              <para>
391 19ae0895 Alexander Schreiber
                fake hypervisor for development/testing
392 19ae0895 Alexander Schreiber
              </para>
393 19ae0895 Alexander Schreiber
            </listitem>
394 19ae0895 Alexander Schreiber
          </varlistentry>
395 19ae0895 Alexander Schreiber
        </variablelist>
396 19ae0895 Alexander Schreiber
      </para>
397 19ae0895 Alexander Schreiber
398 19ae0895 Alexander Schreiber
      <para>
399 19ae0895 Alexander Schreiber
        Either a single hypervisor name or a comma-separated list of
400 19ae0895 Alexander Schreiber
        hypervisor names can be specified. If this option is not
401 19ae0895 Alexander Schreiber
        specified, only the xen-pvm hypervisor is enabled by default.
402 19ae0895 Alexander Schreiber
      </para>
403 19ae0895 Alexander Schreiber
404 19ae0895 Alexander Schreiber
      <para>
405 e8a3bf18 Iustin Pop
        The <option>--hypervisor-parameters</option> option allows you
406 e8a3bf18 Iustin Pop
        to set default hypervisor specific parameters for the
407 e8a3bf18 Iustin Pop
        cluster. The format of this option is the name of the
408 e8a3bf18 Iustin Pop
        hypervisor, followed by a colon and a comma-separated list of
409 e8a3bf18 Iustin Pop
        key=value pairs. The keys available for each hypervisors are
410 e8a3bf18 Iustin Pop
        detailed in the <citerefentry>
411 e8a3bf18 Iustin Pop
        <refentrytitle>gnt-instance</refentrytitle>
412 e8a3bf18 Iustin Pop
        <manvolnum>8</manvolnum> </citerefentry> man page, in the
413 e8a3bf18 Iustin Pop
        <command>add</command> command plus the following parameters
414 e8a3bf18 Iustin Pop
        which are only configurable globally (at cluster level):
415 e8a3bf18 Iustin Pop
416 e8a3bf18 Iustin Pop
        <variablelist>
417 e8a3bf18 Iustin Pop
          <varlistentry>
418 e8a3bf18 Iustin Pop
            <term>migration_port</term>
419 e8a3bf18 Iustin Pop
            <listitem>
420 e8a3bf18 Iustin Pop
              <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara>
421 e8a3bf18 Iustin Pop
422 e8a3bf18 Iustin Pop
              <para>
423 e8a3bf18 Iustin Pop
                This options specifies the TCP port to use for
424 e8a3bf18 Iustin Pop
                live-migration. For Xen, the same port should be
425 e8a3bf18 Iustin Pop
                configured on all nodes in
426 e8a3bf18 Iustin Pop
                the <filename>/etc/xen/xend-config.sxp</filename>
427 e8a3bf18 Iustin Pop
                file, under the
428 e8a3bf18 Iustin Pop
                key <quote>xend-relocation-port</quote>.
429 e8a3bf18 Iustin Pop
              </para>
430 e8a3bf18 Iustin Pop
            </listitem>
431 e8a3bf18 Iustin Pop
          </varlistentry>
432 e43d4f9f Apollon Oikonomopoulos
          <varlistentry>
433 e43d4f9f Apollon Oikonomopoulos
            <term>migration_bandwidth</term>
434 e43d4f9f Apollon Oikonomopoulos
            <listitem>
435 e43d4f9f Apollon Oikonomopoulos
              <simpara>Valid for the KVM hypervisor.</simpara>
436 e43d4f9f Apollon Oikonomopoulos
437 e43d4f9f Apollon Oikonomopoulos
              <para>
438 e43d4f9f Apollon Oikonomopoulos
                This option specifies the maximum bandwidth that KVM will
439 e43d4f9f Apollon Oikonomopoulos
                use for instance live migrations. The value is in MiB/s.
440 e43d4f9f Apollon Oikonomopoulos
              </para>
441 e43d4f9f Apollon Oikonomopoulos
442 e43d4f9f Apollon Oikonomopoulos
              <simpara>This option is only effective with kvm versions >= 78
443 e43d4f9f Apollon Oikonomopoulos
              and qemu-kvm versions >= 0.10.0.
444 e43d4f9f Apollon Oikonomopoulos
              </simpara>
445 e43d4f9f Apollon Oikonomopoulos
            </listitem>
446 e43d4f9f Apollon Oikonomopoulos
          </varlistentry>
447 e8a3bf18 Iustin Pop
        </variablelist>
448 e8a3bf18 Iustin Pop
449 e8a3bf18 Iustin Pop
      </para>
450 e8a3bf18 Iustin Pop
451 e8a3bf18 Iustin Pop
      <para>
452 280b79b3 Guido Trotter
        The <option>--backend-parameters</option> option allows you to set
453 19ae0895 Alexander Schreiber
        the default backend parameters for the cluster. The parameter
454 19ae0895 Alexander Schreiber
        format is a comma-separated list of key=value pairs with the
455 19ae0895 Alexander Schreiber
        following supported keys:
456 19ae0895 Alexander Schreiber
      </para>
457 19ae0895 Alexander Schreiber
458 19ae0895 Alexander Schreiber
      <para>
459 19ae0895 Alexander Schreiber
        <variablelist>
460 19ae0895 Alexander Schreiber
          <varlistentry>
461 19ae0895 Alexander Schreiber
            <term>vcpus</term>
462 19ae0895 Alexander Schreiber
            <listitem>
463 19ae0895 Alexander Schreiber
              <para>
464 19ae0895 Alexander Schreiber
                Number of VCPUs to set for an instance by default, must
465 19ae0895 Alexander Schreiber
                be an integer, will be set to 1 if no specified.
466 19ae0895 Alexander Schreiber
              </para>
467 19ae0895 Alexander Schreiber
            </listitem>
468 19ae0895 Alexander Schreiber
          </varlistentry>
469 19ae0895 Alexander Schreiber
          <varlistentry>
470 19ae0895 Alexander Schreiber
            <term>memory</term>
471 19ae0895 Alexander Schreiber
            <listitem>
472 19ae0895 Alexander Schreiber
              <para>
473 19ae0895 Alexander Schreiber
                Amount of memory to allocate for an instance by default,
474 19ae0895 Alexander Schreiber
                can be either an integer or an integer followed by a
475 19ae0895 Alexander Schreiber
                unit (M for mebibytes and G for gibibytes are
476 19ae0895 Alexander Schreiber
                supported), will be set to 128M if not specified.
477 19ae0895 Alexander Schreiber
              </para>
478 19ae0895 Alexander Schreiber
            </listitem>
479 19ae0895 Alexander Schreiber
          </varlistentry>
480 19ae0895 Alexander Schreiber
          <varlistentry>
481 19ae0895 Alexander Schreiber
            <term>auto_balance</term>
482 19ae0895 Alexander Schreiber
            <listitem>
483 19ae0895 Alexander Schreiber
              <para>
484 19ae0895 Alexander Schreiber
                Value of the auto_balance flag for instances to use by
485 19ae0895 Alexander Schreiber
                default, will be set to true if not specified.
486 19ae0895 Alexander Schreiber
              </para>
487 19ae0895 Alexander Schreiber
            </listitem>
488 19ae0895 Alexander Schreiber
          </varlistentry>
489 19ae0895 Alexander Schreiber
        </variablelist>
490 19ae0895 Alexander Schreiber
      </para>
491 19ae0895 Alexander Schreiber
492 19ae0895 Alexander Schreiber
      <para>
493 7d713344 Guido Trotter
        The <option>--nic-parameters</option> option allows you to set
494 7d713344 Guido Trotter
        the default nic parameters for the cluster. The parameter
495 7d713344 Guido Trotter
        format is a comma-separated list of key=value pairs with the
496 7d713344 Guido Trotter
        following supported keys:
497 7d713344 Guido Trotter
        <variablelist>
498 7d713344 Guido Trotter
          <varlistentry>
499 7d713344 Guido Trotter
            <term>mode</term>
500 7d713344 Guido Trotter
            <listitem>
501 7d713344 Guido Trotter
              <para>
502 7d713344 Guido Trotter
                The default nic mode, 'routed' or 'bridged'.
503 7d713344 Guido Trotter
              </para>
504 7d713344 Guido Trotter
            </listitem>
505 7d713344 Guido Trotter
          </varlistentry>
506 7d713344 Guido Trotter
          <varlistentry>
507 7d713344 Guido Trotter
            <term>link</term>
508 7d713344 Guido Trotter
            <listitem>
509 7d713344 Guido Trotter
              <para>
510 8063787e Guido Trotter
                In bridged mode the default NIC bridge. In routed mode it
511 8063787e Guido Trotter
                represents an hypervisor-vif-script dependent value to allow
512 8063787e Guido Trotter
                different instance groups. For example under the KVM default
513 8063787e Guido Trotter
                network script it is interpreted as a routing table number or
514 8063787e Guido Trotter
                name.
515 7d713344 Guido Trotter
              </para>
516 7d713344 Guido Trotter
            </listitem>
517 7d713344 Guido Trotter
          </varlistentry>
518 7d713344 Guido Trotter
        </variablelist>
519 7d713344 Guido Trotter
      </para>
520 7d713344 Guido Trotter
521 3953242f Iustin Pop
      <para>
522 3953242f Iustin Pop
        The option <option>--maintain-node-health</option> allows to
523 3953242f Iustin Pop
        enable/disable automatic maintenance actions on
524 3953242f Iustin Pop
        nodes. Currently these include automatic shutdown of instances
525 3953242f Iustin Pop
        and deactivation of DRBD devices on offline nodes; in the
526 3953242f Iustin Pop
        future it might be extended to automatic removal of unknown
527 3953242f Iustin Pop
        LVM volumes, etc.
528 3953242f Iustin Pop
      </para>
529 3953242f Iustin Pop
530 89100352 Balazs Lecz
      <para>
531 89100352 Balazs Lecz
        The <option>--uid-pool</option> option initializes the user-id pool.
532 89100352 Balazs Lecz
        The <replaceable>user-id pool definition</replaceable> can contain a
533 89100352 Balazs Lecz
        list of user-ids and/or a list of user-id ranges. The parameter format
534 89100352 Balazs Lecz
        is a comma-separated list of numeric user-ids or user-id ranges.
535 89100352 Balazs Lecz
        The ranges are defined by a lower and higher boundary, separated
536 89100352 Balazs Lecz
        by a dash. The boundaries are inclusive.
537 89100352 Balazs Lecz
        If the <option>--uid-pool</option> option is not supplied, the
538 89100352 Balazs Lecz
        user-id pool is initialized to an empty list. An empty list means that
539 89100352 Balazs Lecz
        the user-id pool feature is disabled.
540 89100352 Balazs Lecz
      </para>
541 89100352 Balazs Lecz
542 92be7021 Apollon Oikonomopoulos
      <para>
543 f38ea602 Iustin Pop
        The <option>-I (--default-iallocator)</option> option specifies the
544 f38ea602 Iustin Pop
        default instance allocator. The instance allocator will be used for
545 f38ea602 Iustin Pop
        operations like instance creation, instance and node migration, etc.
546 f38ea602 Iustin Pop
        when no manual override is specified. If this option is not specified,
547 f38ea602 Iustin Pop
        the default instance allocator will be blank, which means that relevant
548 f38ea602 Iustin Pop
        operations will require the administrator to manually specify either an
549 92be7021 Apollon Oikonomopoulos
        instance allocator, or a set of nodes.
550 f38ea602 Iustin Pop
        The default iallocator can be changed later using the
551 92be7021 Apollon Oikonomopoulos
        <command>modify</command> command.
552 92be7021 Apollon Oikonomopoulos
      </para>
553 92be7021 Apollon Oikonomopoulos
554 75f49d9b Iustin Pop
    </refsect2>
555 75f49d9b Iustin Pop
556 75f49d9b Iustin Pop
    <refsect2>
557 cc425644 Iustin Pop
      <title>LIST-TAGS</title>
558 cc425644 Iustin Pop
559 cc425644 Iustin Pop
      <cmdsynopsis>
560 cc425644 Iustin Pop
        <command>list-tags</command>
561 cc425644 Iustin Pop
      </cmdsynopsis>
562 cc425644 Iustin Pop
563 cc425644 Iustin Pop
      <para>List the tags of the cluster.</para>
564 cc425644 Iustin Pop
    </refsect2>
565 cc425644 Iustin Pop
566 cc425644 Iustin Pop
    <refsect2>
567 75f49d9b Iustin Pop
      <title>MASTERFAILOVER</title>
568 75f49d9b Iustin Pop
569 75f49d9b Iustin Pop
      <cmdsynopsis>
570 75f49d9b Iustin Pop
        <command>masterfailover</command>
571 8e2524c3 Guido Trotter
        <arg>--no-voting</arg>
572 75f49d9b Iustin Pop
      </cmdsynopsis>
573 75f49d9b Iustin Pop
574 75f49d9b Iustin Pop
      <para>
575 75f49d9b Iustin Pop
        Failover the master role to the current node.
576 75f49d9b Iustin Pop
      </para>
577 8e2524c3 Guido Trotter
578 8e2524c3 Guido Trotter
      <para>
579 8e2524c3 Guido Trotter
        The <option>--no-voting</option> option skips the remote node agreement
580 8e2524c3 Guido Trotter
        checks. This is dangerous, but necessary in some cases (for example
581 e0897adf Michael Hanselmann
        failing over the master role in a 2 node cluster with the original
582 e0897adf Michael Hanselmann
        master down). If the original master then comes up, it won't be able to
583 e0897adf Michael Hanselmann
        start its master daemon because it won't have enough votes, but so
584 e0897adf Michael Hanselmann
        won't the new master, if the master daemon ever needs a restart. You
585 e0897adf Michael Hanselmann
        can pass <option>--no-voting</option> to
586 e0897adf Michael Hanselmann
        <command>ganeti-masterd</command> on the new master to solve this
587 e0897adf Michael Hanselmann
        problem, and run <command>gnt-cluster redist-conf</command> to make
588 e0897adf Michael Hanselmann
        sure the cluster is consistent again.
589 8e2524c3 Guido Trotter
      </para>
590 8e2524c3 Guido Trotter
591 75f49d9b Iustin Pop
    </refsect2>
592 75f49d9b Iustin Pop
593 75f49d9b Iustin Pop
    <refsect2>
594 11c05c42 Manuel Franceschini
      <title>MODIFY</title>
595 11c05c42 Manuel Franceschini
596 11c05c42 Manuel Franceschini
      <cmdsynopsis>
597 11c05c42 Manuel Franceschini
        <command>modify</command>
598 d3b4cf9f Iustin Pop
        <sbr>
599 11c05c42 Manuel Franceschini
        <arg choice="opt">-g <replaceable>vg-name</replaceable></arg>
600 d3b4cf9f Iustin Pop
        <sbr>
601 11c05c42 Manuel Franceschini
        <arg choice="opt">--no-lvm-storage</arg>
602 d3b4cf9f Iustin Pop
        <sbr>
603 18fb5e1d Alexander Schreiber
        <arg choice="opt">--enabled-hypervisors
604 18fb5e1d Alexander Schreiber
        <replaceable>hypervisors</replaceable></arg>
605 d3b4cf9f Iustin Pop
        <sbr>
606 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>
607 d3b4cf9f Iustin Pop
        <sbr>
608 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>
609 d3b4cf9f Iustin Pop
        <sbr>
610 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>
611 7d713344 Guido Trotter
        <sbr>
612 89100352 Balazs Lecz
        <arg choice="opt">--uid-pool <replaceable>user-id pool definition</replaceable></arg>
613 89100352 Balazs Lecz
        <sbr>
614 89100352 Balazs Lecz
        <arg choice="opt">--add-uids <replaceable>user-id pool definition</replaceable></arg>
615 89100352 Balazs Lecz
        <sbr>
616 89100352 Balazs Lecz
        <arg choice="opt">--remove-uids <replaceable>user-id pool definition</replaceable></arg>
617 89100352 Balazs Lecz
        <sbr>
618 6d4a1656 Michael Hanselmann
        <arg choice="opt">-C <replaceable>candidate_pool_size</replaceable></arg>
619 3953242f Iustin Pop
        <sbr>
620 3953242f Iustin Pop
        <arg>--maintain-node-health <group choice="req"><arg>yes</arg><arg>no</arg></group></arg>
621 92be7021 Apollon Oikonomopoulos
        <sbr>
622 92be7021 Apollon Oikonomopoulos
        <arg choice="opt">-I <replaceable>default instance allocator</replaceable></arg>
623 18fb5e1d Alexander Schreiber
624 f38ea602 Iustin Pop
        <sbr>
625 f38ea602 Iustin Pop
        <arg>--reserved-lvs=<replaceable>NAMES</replaceable></arg>
626 f38ea602 Iustin Pop
627 11c05c42 Manuel Franceschini
      </cmdsynopsis>
628 11c05c42 Manuel Franceschini
629 11c05c42 Manuel Franceschini
        <para>
630 11c05c42 Manuel Franceschini
          Modify the options for the cluster.
631 11c05c42 Manuel Franceschini
        </para>
632 11c05c42 Manuel Franceschini
633 11c05c42 Manuel Franceschini
        <para>
634 18fb5e1d Alexander Schreiber
          The <option>-g</option>, <option>--no-lvm-storarge</option>,
635 18fb5e1d Alexander Schreiber
          <option>--enabled-hypervisors</option>,
636 7d713344 Guido Trotter
          <option>--hypervisor-parameters</option>,
637 89100352 Balazs Lecz
          <option>--backend-parameters</option>,
638 89100352 Balazs Lecz
          <option>--nic-parameters</option>,
639 92be7021 Apollon Oikonomopoulos
          <option>--maintain-node-health</option>,
640 92be7021 Apollon Oikonomopoulos
          <option>--uid-pool</option> and
641 92be7021 Apollon Oikonomopoulos
          <option>-I</option> options are
642 11c05c42 Manuel Franceschini
          described in the <command>init</command> command.
643 11c05c42 Manuel Franceschini
        </para>
644 d3b4cf9f Iustin Pop
645 d3b4cf9f Iustin Pop
      <para>
646 6d4a1656 Michael Hanselmann
        The <option>-C</option> option specifies the
647 d3b4cf9f Iustin Pop
        <varname>candidate_pool_size</varname> cluster parameter. This
648 d3b4cf9f Iustin Pop
        is the number of nodes that the master will try to keep as
649 d3b4cf9f Iustin Pop
        <literal>master_candidates</literal>. For more details about
650 d3b4cf9f Iustin Pop
        this role and other node roles, see the <citerefentry>
651 d3b4cf9f Iustin Pop
        <refentrytitle>ganeti</refentrytitle><manvolnum>7</manvolnum>
652 d3b4cf9f Iustin Pop
        </citerefentry>. If you increase the size, the master will
653 d3b4cf9f Iustin Pop
        automatically promote as many nodes as required and possible
654 d3b4cf9f Iustin Pop
        to reach the intended number.
655 d3b4cf9f Iustin Pop
      </para>
656 89100352 Balazs Lecz
657 89100352 Balazs Lecz
      <para>
658 89100352 Balazs Lecz
        The <option>--add-uids</option> and <option>--remove-uids</option>
659 89100352 Balazs Lecz
        options can be used to modify the user-id pool by adding/removing
660 89100352 Balazs Lecz
        a list of user-ids or user-id ranges.
661 f38ea602 Iustin Pop
      </para>
662 f38ea602 Iustin Pop
663 f38ea602 Iustin Pop
      <para>
664 f38ea602 Iustin Pop
        The option <option>--reserved-lvs</option> specifies a list
665 f38ea602 Iustin Pop
        (comma-separated) of logical volume group names (regular
666 f38ea602 Iustin Pop
        expressions) that will be ignored by the cluster verify
667 f38ea602 Iustin Pop
        operation. This is useful if the volume group used for Ganeti
668 f38ea602 Iustin Pop
        is shared with the system for other uses. Note that it's not
669 f38ea602 Iustin Pop
        recommended to create and mark as ignored logical volume names
670 f38ea602 Iustin Pop
        which match Ganeti's own name format (starting with UUID and
671 f38ea602 Iustin Pop
        then <literal>.diskN</literal>), as this option only skips the
672 f38ea602 Iustin Pop
        verification, but not the actual use of the names given.
673 f38ea602 Iustin Pop
      </para>
674 f38ea602 Iustin Pop
675 f38ea602 Iustin Pop
      <para>
676 f38ea602 Iustin Pop
        To remove all reserved logical volumes, pass in an empty
677 f38ea602 Iustin Pop
        argument to the option, as in <option>--reserved-lvs=</option>
678 f38ea602 Iustin Pop
        or <option>--reserved-lvs ''</option>.
679 f38ea602 Iustin Pop
      </para>
680 f38ea602 Iustin Pop
681 11c05c42 Manuel Franceschini
    </refsect2>
682 11c05c42 Manuel Franceschini
683 11c05c42 Manuel Franceschini
    <refsect2>
684 18fb5e1d Alexander Schreiber
      <title>QUEUE</title>
685 18fb5e1d Alexander Schreiber
686 18fb5e1d Alexander Schreiber
      <cmdsynopsis>
687 18fb5e1d Alexander Schreiber
        <command>queue</command>
688 18fb5e1d Alexander Schreiber
        <arg choice="opt">drain</arg>
689 18fb5e1d Alexander Schreiber
        <arg choice="opt">undrain</arg>
690 18fb5e1d Alexander Schreiber
        <arg choice="opt">info</arg>
691 18fb5e1d Alexander Schreiber
692 18fb5e1d Alexander Schreiber
      </cmdsynopsis>
693 18fb5e1d Alexander Schreiber
694 18fb5e1d Alexander Schreiber
      <para>
695 18fb5e1d Alexander Schreiber
        Change job queue properties.
696 18fb5e1d Alexander Schreiber
      </para>
697 18fb5e1d Alexander Schreiber
698 18fb5e1d Alexander Schreiber
      <para>
699 18fb5e1d Alexander Schreiber
        The <option>drain</option> option sets the drain flag on the
700 18fb5e1d Alexander Schreiber
        job queue. No new jobs will be accepted, but jobs already in
701 18fb5e1d Alexander Schreiber
        the queue will be processed.
702 18fb5e1d Alexander Schreiber
      </para>
703 18fb5e1d Alexander Schreiber
704 18fb5e1d Alexander Schreiber
      <para>
705 18fb5e1d Alexander Schreiber
        The <option>undrain</option> will unset the drain flag on the
706 18fb5e1d Alexander Schreiber
        job queue. New jobs will be accepted.
707 18fb5e1d Alexander Schreiber
      </para>
708 18fb5e1d Alexander Schreiber
709 18fb5e1d Alexander Schreiber
      <para>
710 18fb5e1d Alexander Schreiber
        The <option>info</option> option shows the properties of the
711 18fb5e1d Alexander Schreiber
        job queue.
712 18fb5e1d Alexander Schreiber
      </para>
713 18fb5e1d Alexander Schreiber
    </refsect2>
714 18fb5e1d Alexander Schreiber
715 18fb5e1d Alexander Schreiber
    <refsect2>
716 95b2e626 Michael Hanselmann
      <title>WATCHER</title>
717 95b2e626 Michael Hanselmann
718 95b2e626 Michael Hanselmann
      <cmdsynopsis>
719 95b2e626 Michael Hanselmann
        <command>watcher</command>
720 95b2e626 Michael Hanselmann
        <group choice="req">
721 95b2e626 Michael Hanselmann
          <arg>pause <replaceable>duration</replaceable></arg>
722 95b2e626 Michael Hanselmann
          <arg>continue</arg>
723 95b2e626 Michael Hanselmann
          <arg>info</arg>
724 95b2e626 Michael Hanselmann
        </group>
725 95b2e626 Michael Hanselmann
      </cmdsynopsis>
726 95b2e626 Michael Hanselmann
727 95b2e626 Michael Hanselmann
      <para>
728 95b2e626 Michael Hanselmann
        Make the watcher pause or let it continue.
729 95b2e626 Michael Hanselmann
      </para>
730 95b2e626 Michael Hanselmann
731 95b2e626 Michael Hanselmann
      <para>
732 95b2e626 Michael Hanselmann
        The <option>pause</option> option causes the watcher to pause for
733 95b2e626 Michael Hanselmann
        <replaceable>duration</replaceable> seconds.
734 95b2e626 Michael Hanselmann
      </para>
735 95b2e626 Michael Hanselmann
736 95b2e626 Michael Hanselmann
      <para>
737 95b2e626 Michael Hanselmann
        The <option>continue</option> option will let the watcher continue.
738 95b2e626 Michael Hanselmann
      </para>
739 95b2e626 Michael Hanselmann
740 95b2e626 Michael Hanselmann
      <para>
741 95b2e626 Michael Hanselmann
        The <option>info</option> option shows whether the watcher is currently
742 95b2e626 Michael Hanselmann
        paused.
743 95b2e626 Michael Hanselmann
      </para>
744 95b2e626 Michael Hanselmann
    </refsect2>
745 95b2e626 Michael Hanselmann
746 95b2e626 Michael Hanselmann
    <refsect2>
747 d3b4cf9f Iustin Pop
      <title>redist-conf</title>
748 d3b4cf9f Iustin Pop
      <cmdsynopsis>
749 d3b4cf9f Iustin Pop
        <command>redist-conf</command>
750 d3b4cf9f Iustin Pop
          <arg>--submit</arg>
751 d3b4cf9f Iustin Pop
      </cmdsynopsis>
752 d3b4cf9f Iustin Pop
753 d3b4cf9f Iustin Pop
      <para>
754 d3b4cf9f Iustin Pop
        This command forces a full push of configuration files from
755 d3b4cf9f Iustin Pop
        the master node to the other nodes in the cluster. This is
756 d3b4cf9f Iustin Pop
        normally not needed, but can be run if the
757 d3b4cf9f Iustin Pop
        <command>verify</command> complains about configuration
758 d3b4cf9f Iustin Pop
        mismatches.
759 d3b4cf9f Iustin Pop
      </para>
760 d3b4cf9f Iustin Pop
761 d3b4cf9f Iustin Pop
      <para>
762 d3b4cf9f Iustin Pop
        The <option>--submit</option> option is used to send the job
763 d3b4cf9f Iustin Pop
        to the master daemon but not wait for its completion. The job
764 d3b4cf9f Iustin Pop
        ID will be shown so that it can be examined via
765 d3b4cf9f Iustin Pop
        <command>gnt-job info</command>.
766 d3b4cf9f Iustin Pop
      </para>
767 d3b4cf9f Iustin Pop
768 d3b4cf9f Iustin Pop
    </refsect2>
769 d3b4cf9f Iustin Pop
    <refsect2>
770 cc425644 Iustin Pop
      <title>REMOVE-TAGS</title>
771 cc425644 Iustin Pop
772 cc425644 Iustin Pop
      <cmdsynopsis>
773 cc425644 Iustin Pop
        <command>remove-tags</command>
774 810c50b7 Iustin Pop
        <arg choice="opt">--from <replaceable>file</replaceable></arg>
775 cc425644 Iustin Pop
        <arg choice="req"
776 cc425644 Iustin Pop
        rep="repeat"><replaceable>tag</replaceable></arg>
777 cc425644 Iustin Pop
      </cmdsynopsis>
778 cc425644 Iustin Pop
779 cc425644 Iustin Pop
      <para>
780 cc425644 Iustin Pop
        Remove tags from the cluster. If any of the tags are not
781 cc425644 Iustin Pop
        existing on the cluster, the entire operation will abort.
782 cc425644 Iustin Pop
      </para>
783 810c50b7 Iustin Pop
784 810c50b7 Iustin Pop
      <para>
785 810c50b7 Iustin Pop
        If the <option>--from</option> option is given, the list of
786 810c50b7 Iustin Pop
        tags will be extended with the contents of that file (each
787 810c50b7 Iustin Pop
        line becomes a tag). In this case, there is not need to pass
788 810c50b7 Iustin Pop
        tags on the command line (if you do, both sources will be
789 810c50b7 Iustin Pop
        used). A file name of - will be interpreted as stdin.
790 810c50b7 Iustin Pop
      </para>
791 cc425644 Iustin Pop
    </refsect2>
792 cc425644 Iustin Pop
793 cc425644 Iustin Pop
    <refsect2>
794 75f49d9b Iustin Pop
      <title>RENAME</title>
795 75f49d9b Iustin Pop
796 75f49d9b Iustin Pop
      <cmdsynopsis>
797 75f49d9b Iustin Pop
        <command>rename</command>
798 75f49d9b Iustin Pop
        <arg>-f</arg>
799 75f49d9b Iustin Pop
        <arg choice="req"><replaceable>name</replaceable></arg>
800 75f49d9b Iustin Pop
      </cmdsynopsis>
801 75f49d9b Iustin Pop
802 75f49d9b Iustin Pop
      <para>
803 75f49d9b Iustin Pop
        Renames the cluster and in the process updates the master IP
804 75f49d9b Iustin Pop
        address to the one the new name resolves to. At least one of
805 75f49d9b Iustin Pop
        either the name or the IP address must be different, otherwise
806 75f49d9b Iustin Pop
        the operation will be aborted.
807 75f49d9b Iustin Pop
      </para>
808 75f49d9b Iustin Pop
809 75f49d9b Iustin Pop
      <para>
810 75f49d9b Iustin Pop
        Note that since this command can be dangerous (especially when
811 75f49d9b Iustin Pop
        run over SSH), the command will require confirmation unless
812 75f49d9b Iustin Pop
        run with the <option>-f</option> option.
813 75f49d9b Iustin Pop
      </para>
814 75f49d9b Iustin Pop
    </refsect2>
815 60975797 Iustin Pop
816 60975797 Iustin Pop
    <refsect2>
817 6d4a1656 Michael Hanselmann
      <title>RENEW-CRYPTO</title>
818 6d4a1656 Michael Hanselmann
819 6d4a1656 Michael Hanselmann
      <cmdsynopsis>
820 6d4a1656 Michael Hanselmann
        <command>renew-crypto</command>
821 6d4a1656 Michael Hanselmann
        <arg>-f</arg>
822 6d4a1656 Michael Hanselmann
        <sbr>
823 6d4a1656 Michael Hanselmann
        <arg choice="opt">--new-cluster-certificate</arg>
824 6b7d5878 Michael Hanselmann
        <arg choice="opt">--new-confd-hmac-key</arg>
825 6d4a1656 Michael Hanselmann
        <sbr>
826 6d4a1656 Michael Hanselmann
        <arg choice="opt">--new-rapi-certificate</arg>
827 6d4a1656 Michael Hanselmann
        <arg choice="opt">--rapi-certificate <replaceable>rapi-cert</replaceable></arg>
828 3db3eb2a Michael Hanselmann
        <sbr>
829 3db3eb2a Michael Hanselmann
        <arg choice="opt">--new-cluster-domain-secret</arg>
830 3db3eb2a Michael Hanselmann
        <arg choice="opt">--cluster-domain-secret <replaceable>filename</replaceable></arg>
831 6d4a1656 Michael Hanselmann
      </cmdsynopsis>
832 6d4a1656 Michael Hanselmann
833 6d4a1656 Michael Hanselmann
      <para>
834 6d4a1656 Michael Hanselmann
        This command will stop all
835 6d4a1656 Michael Hanselmann
        Ganeti daemons in the cluster and start them again once the new
836 6d4a1656 Michael Hanselmann
        certificates and keys are replicated. The options
837 6d4a1656 Michael Hanselmann
        <option>--new-cluster-certificate</option> and
838 6b7d5878 Michael Hanselmann
        <option>--new-confd-hmac-key</option> can be used to regenerate the
839 6d4a1656 Michael Hanselmann
        cluster-internal SSL certificate respective the HMAC key used by
840 6d4a1656 Michael Hanselmann
        <citerefentry>
841 6d4a1656 Michael Hanselmann
        <refentrytitle>ganeti-confd</refentrytitle><manvolnum>8</manvolnum>
842 3db3eb2a Michael Hanselmann
        </citerefentry>.
843 3db3eb2a Michael Hanselmann
      </para>
844 3db3eb2a Michael Hanselmann
845 3db3eb2a Michael Hanselmann
      <para>
846 3db3eb2a Michael Hanselmann
        To generate a new self-signed RAPI certificate (used by <citerefentry>
847 6d4a1656 Michael Hanselmann
        <refentrytitle>ganeti-rapi</refentrytitle><manvolnum>8</manvolnum>
848 6d4a1656 Michael Hanselmann
        </citerefentry>) specify <option>--new-rapi-certificate</option>. If
849 6d4a1656 Michael Hanselmann
        you want to use your own certificate, e.g. one signed by a certificate
850 6d4a1656 Michael Hanselmann
        authority (CA), pass its filename to
851 6d4a1656 Michael Hanselmann
        <option>--rapi-certificate</option>.
852 6d4a1656 Michael Hanselmann
      </para>
853 3db3eb2a Michael Hanselmann
854 3db3eb2a Michael Hanselmann
      <para>
855 3db3eb2a Michael Hanselmann
        <option>--new-cluster-domain-secret</option> generates a new, random
856 3db3eb2a Michael Hanselmann
        cluster domain secret. <option>--cluster-domain-secret</option> reads
857 3db3eb2a Michael Hanselmann
        the secret from a file. The cluster domain secret is used to sign
858 3db3eb2a Michael Hanselmann
        information exchanged between separate clusters via a third party.
859 3db3eb2a Michael Hanselmann
      </para>
860 6d4a1656 Michael Hanselmann
    </refsect2>
861 6d4a1656 Michael Hanselmann
862 6d4a1656 Michael Hanselmann
    <refsect2>
863 60975797 Iustin Pop
      <title>REPAIR-DISK-SIZES</title>
864 60975797 Iustin Pop
865 60975797 Iustin Pop
      <cmdsynopsis>
866 60975797 Iustin Pop
        <command>repair-disk-sizes</command>
867 60975797 Iustin Pop
        <arg rep="repeat">instance</arg>
868 60975797 Iustin Pop
      </cmdsynopsis>
869 60975797 Iustin Pop
870 60975797 Iustin Pop
      <para>
871 60975797 Iustin Pop
        This command checks that the recorded size of the given
872 60975797 Iustin Pop
        instance's disks matches the actual size and updates any
873 60975797 Iustin Pop
        mismatches found. This is needed if the Ganeti configuration
874 60975797 Iustin Pop
        is no longer consistent with reality, as it will impact some
875 60975797 Iustin Pop
        disk operations. If no arguments are given, all instances will
876 60975797 Iustin Pop
        be checked.
877 60975797 Iustin Pop
      </para>
878 60975797 Iustin Pop
879 60975797 Iustin Pop
      <para>
880 60975797 Iustin Pop
        Note that only active disks can be checked by this command; in
881 60975797 Iustin Pop
        case a disk cannot be activated it's advised to use
882 a4f12da4 Michael Hanselmann
        <command>gnt-instance activate-disks --ignore-size ...</command> to
883 a4f12da4 Michael Hanselmann
        force activation without regard to the
884 60975797 Iustin Pop
        current size.
885 60975797 Iustin Pop
      </para>
886 60975797 Iustin Pop
887 60975797 Iustin Pop
      <para>
888 60975797 Iustin Pop
        When the all disk sizes are consistent, the command will
889 60975797 Iustin Pop
        return no output. Otherwise it will log details about the
890 60975797 Iustin Pop
        inconsistencies in the configuration.
891 60975797 Iustin Pop
      </para>
892 60975797 Iustin Pop
    </refsect2>
893 75f49d9b Iustin Pop
894 75f49d9b Iustin Pop
    <refsect2>
895 73415719 Iustin Pop
      <title>SEARCH-TAGS</title>
896 73415719 Iustin Pop
897 73415719 Iustin Pop
      <cmdsynopsis>
898 73415719 Iustin Pop
        <command>search-tags</command>
899 73415719 Iustin Pop
        <arg choice="req"><replaceable>pattern</replaceable></arg>
900 73415719 Iustin Pop
      </cmdsynopsis>
901 73415719 Iustin Pop
902 73415719 Iustin Pop
      <para>
903 73415719 Iustin Pop
        Searches the tags on all objects in the cluster (the cluster
904 73415719 Iustin Pop
        itself, the nodes and the instances) for a given pattern. The
905 73415719 Iustin Pop
        pattern is interpreted as a regular expression and a search
906 73415719 Iustin Pop
        will be done on it (i.e. the given pattern is not anchored to
907 73415719 Iustin Pop
        the beggining of the string; if you want that, prefix the
908 73415719 Iustin Pop
        pattern with <literal>^</literal>).
909 73415719 Iustin Pop
      </para>
910 73415719 Iustin Pop
911 73415719 Iustin Pop
      <para>
912 73415719 Iustin Pop
        If no tags are matching the pattern, the exit code of the
913 73415719 Iustin Pop
        command will be one. If there is at least one match, the exit
914 73415719 Iustin Pop
        code will be zero. Each match is listed on one line, the
915 73415719 Iustin Pop
        object and the tag separated by a space. The cluster will be
916 73415719 Iustin Pop
        listed as <filename>/cluster</filename>, a node will be listed
917 73415719 Iustin Pop
        as
918 73415719 Iustin Pop
        <filename>/nodes/<replaceable>name</replaceable></filename>,
919 73415719 Iustin Pop
        and an instance as
920 73415719 Iustin Pop
        <filename>/instances/<replaceable>name</replaceable></filename>.
921 73415719 Iustin Pop
        Example:
922 73415719 Iustin Pop
      </para>
923 73415719 Iustin Pop
<screen>
924 2f49d1d2 Guido Trotter
# gnt-cluster search-tags time
925 73415719 Iustin Pop
/cluster ctime:2007-09-01
926 73415719 Iustin Pop
/nodes/node1.example.com mtime:2007-10-04
927 73415719 Iustin Pop
</screen>
928 73415719 Iustin Pop
    </refsect2>
929 73415719 Iustin Pop
930 73415719 Iustin Pop
    <refsect2>
931 75f49d9b Iustin Pop
      <title>VERIFY</title>
932 75f49d9b Iustin Pop
933 75f49d9b Iustin Pop
      <cmdsynopsis>
934 75f49d9b Iustin Pop
        <command>verify</command>
935 3cf7c9fa Guido Trotter
        <arg choice="opt">--no-nplus1-mem</arg>
936 75f49d9b Iustin Pop
      </cmdsynopsis>
937 75f49d9b Iustin Pop
938 75f49d9b Iustin Pop
      <para>
939 75f49d9b Iustin Pop
        Verify correctness of cluster configuration. This is safe with
940 75f49d9b Iustin Pop
        respect to running instances, and incurs no downtime of the
941 75f49d9b Iustin Pop
        instances.
942 75f49d9b Iustin Pop
      </para>
943 3cf7c9fa Guido Trotter
944 3cf7c9fa Guido Trotter
      <para>
945 e0897adf Michael Hanselmann
        If the <option>--no-nplus1-mem</option> option is given, Ganeti won't
946 3cf7c9fa Guido Trotter
        check whether if it loses a node it can restart all the instances on
947 3cf7c9fa Guido Trotter
        their secondaries (and report an error otherwise).
948 3cf7c9fa Guido Trotter
      </para>
949 75f49d9b Iustin Pop
    </refsect2>
950 75f49d9b Iustin Pop
951 75f49d9b Iustin Pop
    <refsect2>
952 ed2d1409 Iustin Pop
      <title>VERIFY-DISKS</title>
953 ed2d1409 Iustin Pop
954 ed2d1409 Iustin Pop
      <cmdsynopsis>
955 ed2d1409 Iustin Pop
        <command>verify-disks</command>
956 ed2d1409 Iustin Pop
      </cmdsynopsis>
957 ed2d1409 Iustin Pop
958 ed2d1409 Iustin Pop
      <para>
959 ed2d1409 Iustin Pop
        The command checks which instances have degraded DRBD disks
960 ed2d1409 Iustin Pop
        and activates the disks of those instances.
961 ed2d1409 Iustin Pop
      </para>
962 ed2d1409 Iustin Pop
963 ed2d1409 Iustin Pop
      <para>
964 ed2d1409 Iustin Pop
        This command is run from the <command>ganeti-watcher</command>
965 ed2d1409 Iustin Pop
        tool, which also has a different, complementary algorithm for
966 ed2d1409 Iustin Pop
        doing this check. Together, these two should ensure that DRBD
967 ed2d1409 Iustin Pop
        disks are kept consistent.
968 ed2d1409 Iustin Pop
      </para>
969 ed2d1409 Iustin Pop
    </refsect2>
970 ed2d1409 Iustin Pop
971 ed2d1409 Iustin Pop
    <refsect2>
972 75f49d9b Iustin Pop
      <title>VERSION</title>
973 75f49d9b Iustin Pop
974 75f49d9b Iustin Pop
      <cmdsynopsis>
975 75f49d9b Iustin Pop
        <command>version</command>
976 75f49d9b Iustin Pop
      </cmdsynopsis>
977 75f49d9b Iustin Pop
978 75f49d9b Iustin Pop
      <para>
979 75f49d9b Iustin Pop
        Show the cluster version.
980 75f49d9b Iustin Pop
      </para>
981 75f49d9b Iustin Pop
    </refsect2>
982 a8083063 Iustin Pop
983 a8083063 Iustin Pop
  </refsect1>
984 a8083063 Iustin Pop
985 a8083063 Iustin Pop
  &footer;
986 a8083063 Iustin Pop
987 a8083063 Iustin Pop
</refentry>
988 a8083063 Iustin Pop
989 a8083063 Iustin Pop
<!-- Keep this comment at the end of the file
990 a8083063 Iustin Pop
Local variables:
991 a8083063 Iustin Pop
mode: sgml
992 a8083063 Iustin Pop
sgml-omittag:t
993 a8083063 Iustin Pop
sgml-shorttag:t
994 a8083063 Iustin Pop
sgml-minimize-attributes:nil
995 a8083063 Iustin Pop
sgml-always-quote-attributes:t
996 a8083063 Iustin Pop
sgml-indent-step:2
997 a8083063 Iustin Pop
sgml-indent-data:t
998 a8083063 Iustin Pop
sgml-parent-document:nil
999 a8083063 Iustin Pop
sgml-default-dtd-file:nil
1000 a8083063 Iustin Pop
sgml-exposed-tags:nil
1001 a8083063 Iustin Pop
sgml-local-catalogs:nil
1002 a8083063 Iustin Pop
sgml-local-ecat-files:nil
1003 a8083063 Iustin Pop
End:
1004 a8083063 Iustin Pop
-->