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 choice="req"><replaceable>clustername</replaceable></arg>
136 This commands is only run once initially on the first node of
137 the cluster. It will initialize the cluster configuration and
138 setup ssh-keys and more.
142 Note that the <replaceable>clustername</replaceable> is not any
143 random name. It has to be resolvable to an IP address using DNS,
144 and it is best if you give the fully-qualified domain name.
148 The cluster can run in two modes: single-home or dual-homed. In
149 the first case, all traffic (both public traffic, inter-node
150 traffic and data replication traffic) goes over the same
151 interface. In the dual-homed case, the data replication traffic
152 goes over the second network. The <option>-s</option> option
153 here marks the cluster as dual-homed and its parameter
154 represents this node's address on the second network. If you
155 initialise the cluster with <option>-s</option>, all nodes added
156 must have a secondary IP as well.
160 Note that for Ganeti it doesn't matter if the secondary network
161 is actually a separate physical network, or is done using
162 tunneling, etc. For performance reasons, it's recommended to use
163 a separate network, of course.
167 <command>masterfailover</command>
171 Failover the master role to the current node.
175 <command>destroy</command>
179 Remove all configuration files related to the cluster, so that a
180 <command>gnt-cluster init</command> can be done again afterwards.
184 <command>verify</command>
188 Verify correctness of cluster configuration. This is safe with
189 respect to running instances, and incurs no downtime of the
194 <command>version</command>
198 Show the cluster version.
207 <!-- Keep this comment at the end of the file
212 sgml-minimize-attributes:nil
213 sgml-always-quote-attributes:t
216 sgml-parent-document:nil
217 sgml-default-dtd-file:nil
218 sgml-exposed-tags:nil
219 sgml-local-catalogs:nil
220 sgml-local-ecat-files:nil