1 <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
3 <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4 <!-- Please adjust the date whenever revising the manpage. -->
5 <!ENTITY dhdate "<date>June 20, 2007</date>">
6 <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7 allowed: see man(7), man(1). -->
8 <!ENTITY dhsection "<manvolnum>8</manvolnum>">
9 <!ENTITY dhucpackage "<refentrytitle>gnt-cluster</refentrytitle>">
10 <!ENTITY dhpackage "gnt-cluster">
12 <!ENTITY debian "<productname>Debian</productname>">
13 <!ENTITY gnu "<acronym>GNU</acronym>">
14 <!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
15 <!ENTITY footer SYSTEM "footer.sgml">
23 <holder>Google Inc.</holder>
31 <refmiscinfo>ganeti 1.2</refmiscinfo>
34 <refname>&dhpackage;</refname>
36 <refpurpose>ganeti administration, cluster-wide</refpurpose>
40 <command>&dhpackage; </command>
42 <arg choice="req">command</arg>
43 <arg>arguments...</arg>
47 <title>DESCRIPTION</title>
50 The <command>&dhpackage;</command> is used for cluster-wide
51 administration in the ganeti system.
56 <title>COMMANDS</title>
59 <title>ADD-TAGS</title>
62 <command>add-tags</command>
64 rep="repeat"><replaceable>tag</replaceable></arg>
68 Add tags to the cluster. If any of the tags contains invalid
69 characters, the entire operation will abort.
74 <title>COMMAND</title>
77 <command>command</command>
78 <arg>-n <replaceable>node</replaceable></arg>
79 <arg choice="req"><replaceable>command</replaceable></arg>
83 Executes a command on all nodes. If the option
84 <option>-n</option> is not given, the command will be executed
85 on all nodes, otherwise it will be executed only on the
86 node(s) specified. Use the option multiple times for running
87 it on multiple nodes, like:
90 # gnt-cluster command -n node1.example.com -n node2.example.com date
96 The command is constructed by concatenating all other command
97 line arguments. For example, to list the contents of the
98 <filename class="directory">/etc</filename> directory on all
102 # gnt-cluster command ls -l /etc
105 and the command which will be executed will be
106 <computeroutput>"ls -l /etc"</computeroutput>
111 <title>COPYFILE</title>
114 <command>copyfile</command>
115 <arg>-n <replaceable>node</replaceable></arg>
116 <arg choice="req"><replaceable>file</replaceable></arg>
120 Copies a file to all or to some nodes. The argument specifies
121 the source file (on the current system), the
122 <option>-n</option> argument specifies the target node, or
123 nodes if the option is given multiple times. If
124 <option>-n</option> is not given at all, the file will be
129 # gnt-cluster -n node1.example.com -n node2.example.com copyfile /tmp/test
132 This will copy the file <filename>/tmp/test</filename> from
133 the current node to the two named nodes.
138 <title>DESTROY</title>
141 <command>destroy</command>
145 Remove all configuration files related to the cluster, so that
146 a <command>gnt-cluster init</command> can be done again
152 <title>GETMASTER</title>
155 <command>getmaster</command>
159 Displays the current master node.
167 <command>info</command>
171 Shows runtime cluster information: cluster name, architecture
172 (32 or 64 bit), master node, node list and instance list.
180 <command>init</command>
181 <arg>-s <replaceable>secondary_ip</replaceable></arg>
182 <arg>-b <replaceable>bridge</replaceable></arg>
183 <arg choice="req"><replaceable>clustername</replaceable></arg>
187 This commands is only run once initially on the first node of
188 the cluster. It will initialize the cluster configuration and
189 setup ssh-keys and more.
193 Note that the <replaceable>clustername</replaceable> is not
194 any random name. It has to be resolvable to an IP address
195 using DNS, and it is best if you give the fully-qualified
200 The cluster can run in two modes: single-home or
201 dual-homed. In the first case, all traffic (both public
202 traffic, inter-node traffic and data replication traffic) goes
203 over the same interface. In the dual-homed case, the data
204 replication traffic goes over the second network. The
205 <option>-s</option> option here marks the cluster as
206 dual-homed and its parameter represents this node's address on
207 the second network. If you initialise the cluster with
208 <option>-s</option>, all nodes added must have a secondary IP
213 Note that for Ganeti it doesn't matter if the secondary
215 network is actually a separate physical network, or is done
216 using tunneling, etc. For performance reasons, it's
217 recommended to use a separate network, of course.
221 The <option>-b</option> option specifies the default bridge
227 <title>LIST-TAGS</title>
230 <command>list-tags</command>
233 <para>List the tags of the cluster.</para>
237 <title>MASTERFAILOVER</title>
240 <command>masterfailover</command>
244 Failover the master role to the current node.
249 <title>REMOVE-TAGS</title>
252 <command>remove-tags</command>
254 rep="repeat"><replaceable>tag</replaceable></arg>
258 Remove tags from the cluster. If any of the tags are not
259 existing on the cluster, the entire operation will abort.
264 <title>RENAME</title>
267 <command>rename</command>
269 <arg choice="req"><replaceable>name</replaceable></arg>
273 Renames the cluster and in the process updates the master IP
274 address to the one the new name resolves to. At least one of
275 either the name or the IP address must be different, otherwise
276 the operation will be aborted.
280 Note that since this command can be dangerous (especially when
281 run over SSH), the command will require confirmation unless
282 run with the <option>-f</option> option.
287 <title>VERIFY</title>
290 <command>verify</command>
294 Verify correctness of cluster configuration. This is safe with
295 respect to running instances, and incurs no downtime of the
301 <title>VERSION</title>
304 <command>version</command>
308 Show the cluster version.
318 <!-- Keep this comment at the end of the file
323 sgml-minimize-attributes:nil
324 sgml-always-quote-attributes:t
327 sgml-parent-document:nil
328 sgml-default-dtd-file:nil
329 sgml-exposed-tags:nil
330 sgml-local-catalogs:nil
331 sgml-local-ecat-files:nil