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 <command>command</command>
60 <arg>-n <replaceable>node</replaceable></arg>
61 <arg choice="req"><replaceable>command</replaceable></arg>
65 Executes a command on all nodes. If the option
66 <option>-n</option> is not given, the command will be executed
67 on all nodes, otherwise it will be executed only on the node(s)
68 specified. Use the option multiple times for running it on
72 # gnt-cluster command -n node1.example.com -n node2.example.com date
77 <para>The command is constructed by concatenating all other
78 command line arguments. For example, to list the contents of the
79 <filename class="directory">/etc</filename> directory on all
83 # gnt-cluster command ls -l /etc
86 and the command which will be executed will be
87 <computeroutput>"ls -l /etc"</computeroutput>
92 <command>copyfile</command>
93 <arg>-n <replaceable>node</replaceable></arg>
94 <arg choice="req"><replaceable>file</replaceable></arg>
98 Copies a file to all or to some nodes. The argument specifies
99 the source file (on the current system), the <option>-n</option>
100 argument specifies the target node, or nodes if the option is
101 given multiple times. If <option>-n</option> is not given at
102 all, the file will be copied to all nodes.
106 # gnt-cluster -n node1.example.com -n node2.example.com copyfile /tmp/test
109 This will copy the file <filename>/tmp/test</filename> from the
110 current node to the two named nodes.
114 <command>getmaster</command>
118 Displays the current master node.
122 <command>info</command>
126 Shows runtime cluster information: cluster name, architecture
127 (32 or 64 bit), master node, node list and instance list.
131 <command>init</command>
132 <arg>-s <replaceable>secondary_ip</replaceable></arg>
133 <arg>-b <replaceable>bridge</replaceable></arg>
134 <arg choice="req"><replaceable>clustername</replaceable></arg>
137 This commands is only run once initially on the first node of
138 the cluster. It will initialize the cluster configuration and
139 setup ssh-keys and more.
143 Note that the <replaceable>clustername</replaceable> is not any
144 random name. It has to be resolvable to an IP address using DNS,
145 and it is best if you give the fully-qualified domain name.
149 The cluster can run in two modes: single-home or dual-homed. In
150 the first case, all traffic (both public traffic, inter-node
151 traffic and data replication traffic) goes over the same
152 interface. In the dual-homed case, the data replication traffic
153 goes over the second network. The <option>-s</option> option
154 here marks the cluster as dual-homed and its parameter
155 represents this node's address on the second network. If you
156 initialise the cluster with <option>-s</option>, all nodes added
157 must have a secondary IP as well.
161 Note that for Ganeti it doesn't matter if the secondary network
162 is actually a separate physical network, or is done using
163 tunneling, etc. For performance reasons, it's recommended to use
164 a separate network, of course.
168 The <option>-b</option> option specifies the default bridge for
173 <command>masterfailover</command>
177 Failover the master role to the current node.
181 <command>destroy</command>
185 Remove all configuration files related to the cluster, so that a
186 <command>gnt-cluster init</command> can be done again afterwards.
190 <command>verify</command>
194 Verify correctness of cluster configuration. This is safe with
195 respect to running instances, and incurs no downtime of the
200 <command>version</command>
204 Show the cluster version.
213 <!-- Keep this comment at the end of the file
218 sgml-minimize-attributes:nil
219 sgml-always-quote-attributes:t
222 sgml-parent-document:nil
223 sgml-default-dtd-file:nil
224 sgml-exposed-tags:nil
225 sgml-local-catalogs:nil
226 sgml-local-ecat-files:nil