Statistics
| Branch: | Tag: | Revision:

root / man / gnt-node.sgml @ cc425644

History | View | Annotate | Download (10.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 a8083063 Iustin Pop
  <!ENTITY dhdate      "<date>June 20, 2007</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-node</refentrytitle>">
10 a8083063 Iustin Pop
  <!ENTITY dhpackage   "gnt-node">
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 a8083063 Iustin Pop
      <holder>Google Inc.</holder>
24 a8083063 Iustin Pop
    </copyright>
25 a8083063 Iustin Pop
    &dhdate;
26 a8083063 Iustin Pop
  </refentryinfo>
27 a8083063 Iustin Pop
  <refmeta>
28 a8083063 Iustin Pop
    &dhucpackage;
29 a8083063 Iustin Pop
30 a8083063 Iustin Pop
    &dhsection;
31 a8083063 Iustin Pop
    <refmiscinfo>ganeti 1.2</refmiscinfo>
32 a8083063 Iustin Pop
  </refmeta>
33 a8083063 Iustin Pop
  <refnamediv>
34 a8083063 Iustin Pop
    <refname>&dhpackage;</refname>
35 a8083063 Iustin Pop
36 a8083063 Iustin Pop
    <refpurpose>node administration</refpurpose>
37 a8083063 Iustin Pop
  </refnamediv>
38 a8083063 Iustin Pop
  <refsynopsisdiv>
39 a8083063 Iustin Pop
    <cmdsynopsis>
40 a8083063 Iustin Pop
      <command>&dhpackage; </command>
41 a8083063 Iustin Pop
42 a8083063 Iustin Pop
      <arg choice="req">command</arg>
43 a8083063 Iustin Pop
      <arg>arguments...</arg>
44 a8083063 Iustin Pop
    </cmdsynopsis>
45 a8083063 Iustin Pop
  </refsynopsisdiv>
46 a8083063 Iustin Pop
  <refsect1>
47 a8083063 Iustin Pop
    <title>DESCRIPTION</title>
48 a8083063 Iustin Pop
49 a8083063 Iustin Pop
    <para>
50 a8083063 Iustin Pop
      The <command>&dhpackage;</command> is used for managing the
51 a8083063 Iustin Pop
      (physical) nodes in the ganeti system.
52 a8083063 Iustin Pop
    </para>
53 a8083063 Iustin Pop
54 a8083063 Iustin Pop
  </refsect1>
55 a8083063 Iustin Pop
  <refsect1>
56 a8083063 Iustin Pop
    <title>COMMANDS</title>
57 a8083063 Iustin Pop
58 a8083063 Iustin Pop
    <refsect2>
59 a8083063 Iustin Pop
      <title>ADD</title>
60 a8083063 Iustin Pop
61 a8083063 Iustin Pop
      <cmdsynopsis>
62 a8083063 Iustin Pop
        <command>add</command>
63 a8083063 Iustin Pop
        <arg>-s <replaceable>secondary_ip</replaceable></arg>
64 a8083063 Iustin Pop
        <arg choice="req"><replaceable>nodename</replaceable></arg>
65 a8083063 Iustin Pop
      </cmdsynopsis>
66 a8083063 Iustin Pop
67 a8083063 Iustin Pop
      <para>
68 a8083063 Iustin Pop
        Adds the given node to the cluster.
69 a8083063 Iustin Pop
      </para>
70 a8083063 Iustin Pop
71 a8083063 Iustin Pop
      <para>
72 a8083063 Iustin Pop
        This command is used to join a new node to the cluster. You
73 a8083063 Iustin Pop
        will have to provide the password for root of the node to be
74 a8083063 Iustin Pop
        able to add the node in the cluster. The command needs to be
75 a8083063 Iustin Pop
        run on the ganeti master.
76 a8083063 Iustin Pop
      </para>
77 a8083063 Iustin Pop
78 a8083063 Iustin Pop
      <para>
79 a8083063 Iustin Pop
        Note that the command is potentially destructive, as it will
80 a8083063 Iustin Pop
        forcibly join the specified host the cluster, not paying
81 a8083063 Iustin Pop
        attention to its current status (it could be already in a
82 a8083063 Iustin Pop
        cluster, etc.)
83 a8083063 Iustin Pop
      </para>
84 a8083063 Iustin Pop
85 a8083063 Iustin Pop
      <para>
86 a8083063 Iustin Pop
        The <option>-s</option> is used in dual-home clusters and
87 a8083063 Iustin Pop
        specifies the new node's IP in the secondary network. See the
88 a8083063 Iustin Pop
        discussion in <citerefentry>
89 a8083063 Iustin Pop
        <refentrytitle>gnt-cluster</refentrytitle>
90 a8083063 Iustin Pop
        <manvolnum>8</manvolnum> </citerefentry> for more
91 a8083063 Iustin Pop
        informations.
92 a8083063 Iustin Pop
      </para>
93 a8083063 Iustin Pop
94 a8083063 Iustin Pop
      <para>
95 a8083063 Iustin Pop
        Example:
96 a8083063 Iustin Pop
        <screen>
97 a8083063 Iustin Pop
# gnt-node add node5.example.com
98 a8083063 Iustin Pop
# gnt-node add -s 192.168.44.5 node5.example.com
99 a8083063 Iustin Pop
        </screen>
100 a8083063 Iustin Pop
      </para>
101 a8083063 Iustin Pop
    </refsect2>
102 a8083063 Iustin Pop
103 a8083063 Iustin Pop
    <refsect2>
104 cc425644 Iustin Pop
      <title>ADD-TAGS</title>
105 cc425644 Iustin Pop
106 cc425644 Iustin Pop
      <cmdsynopsis>
107 cc425644 Iustin Pop
        <command>add-tags</command>
108 cc425644 Iustin Pop
        <arg choice="req"><replaceable>nodename</replaceable></arg>
109 cc425644 Iustin Pop
        <arg choice="req"
110 cc425644 Iustin Pop
        rep="repeat"><replaceable>tag</replaceable></arg>
111 cc425644 Iustin Pop
      </cmdsynopsis>
112 cc425644 Iustin Pop
113 cc425644 Iustin Pop
      <para>
114 cc425644 Iustin Pop
        Add tags to the given node. If any of the tags contains
115 cc425644 Iustin Pop
        invalid characters, the entire operation will abort.
116 cc425644 Iustin Pop
      </para>
117 cc425644 Iustin Pop
    </refsect2>
118 cc425644 Iustin Pop
119 cc425644 Iustin Pop
    <refsect2>
120 a8083063 Iustin Pop
      <title>INFO</title>
121 a8083063 Iustin Pop
122 a8083063 Iustin Pop
      <cmdsynopsis>
123 a8083063 Iustin Pop
        <command>info</command>
124 a8083063 Iustin Pop
        <arg rep="repeat"><replaceable>node</replaceable></arg>
125 a8083063 Iustin Pop
      </cmdsynopsis>
126 a8083063 Iustin Pop
127 a8083063 Iustin Pop
      <para>
128 a8083063 Iustin Pop
        Show detailed information about the nodes in the cluster. If you
129 a8083063 Iustin Pop
        don't give any arguments, all nodes will be shows, otherwise the
130 a8083063 Iustin Pop
        output will be restricted to the given names.
131 a8083063 Iustin Pop
      </para>
132 a8083063 Iustin Pop
    </refsect2>
133 a8083063 Iustin Pop
134 a8083063 Iustin Pop
    <refsect2>
135 a8083063 Iustin Pop
      <title>LIST</title>
136 a8083063 Iustin Pop
137 a8083063 Iustin Pop
      <cmdsynopsis>
138 a8083063 Iustin Pop
        <command>list</command>
139 a8083063 Iustin Pop
        <arg>--no-headers</arg>
140 a8083063 Iustin Pop
        <arg>--separator=<replaceable>SEPARATOR</replaceable></arg>
141 a8083063 Iustin Pop
        <arg>-o <replaceable>FIELD,...</replaceable></arg>
142 a8083063 Iustin Pop
      </cmdsynopsis>
143 a8083063 Iustin Pop
144 a8083063 Iustin Pop
      <para>
145 a8083063 Iustin Pop
        Lists the nodes in the cluster. If you give the
146 a8083063 Iustin Pop
        <option>--ip-info</option> option, the output contains just
147 a8083063 Iustin Pop
        the node name, primary ip and secondary ip. In case the
148 a8083063 Iustin Pop
        secondary ip is the same as the primary one, it will be listed
149 a8083063 Iustin Pop
        as <emphasis>"-"</emphasis>.
150 a8083063 Iustin Pop
      </para>
151 a8083063 Iustin Pop
152 a8083063 Iustin Pop
      <para>
153 a8083063 Iustin Pop
        The <option>--no-headers</option> option will skip the initial
154 a8083063 Iustin Pop
        header line. The <option>--separator</option> option takes an
155 a8083063 Iustin Pop
        argument which denotes what will be used between the output
156 a8083063 Iustin Pop
        fields. Both these options are to help scripting.
157 a8083063 Iustin Pop
      </para>
158 a8083063 Iustin Pop
159 a8083063 Iustin Pop
      <para>
160 a8083063 Iustin Pop
        The <option>-o</option> option takes a comma-separated list of
161 a8083063 Iustin Pop
        output fields. The available fields and their meaning are:
162 a8083063 Iustin Pop
        <variablelist>
163 a8083063 Iustin Pop
          <varlistentry>
164 a8083063 Iustin Pop
            <term>name</term>
165 a8083063 Iustin Pop
            <listitem>
166 a8083063 Iustin Pop
              <simpara>the node name</simpara>
167 a8083063 Iustin Pop
            </listitem>
168 a8083063 Iustin Pop
          </varlistentry>
169 a8083063 Iustin Pop
          <varlistentry>
170 a8083063 Iustin Pop
            <term>pinst</term>
171 a8083063 Iustin Pop
            <listitem>
172 a8083063 Iustin Pop
              <simpara>the number of instances having this node as
173 a8083063 Iustin Pop
              primary</simpara>
174 a8083063 Iustin Pop
            </listitem>
175 a8083063 Iustin Pop
          </varlistentry>
176 a8083063 Iustin Pop
          <varlistentry>
177 a8083063 Iustin Pop
            <term>sinst</term>
178 a8083063 Iustin Pop
            <listitem>
179 a8083063 Iustin Pop
              <simpara>the number of instances having this node as a
180 a8083063 Iustin Pop
              secondary node</simpara>
181 a8083063 Iustin Pop
            </listitem>
182 a8083063 Iustin Pop
          </varlistentry>
183 a8083063 Iustin Pop
          <varlistentry>
184 a8083063 Iustin Pop
            <term>pip</term>
185 a8083063 Iustin Pop
            <listitem>
186 a8083063 Iustin Pop
              <simpara>the primary ip of this node (used for cluster
187 a8083063 Iustin Pop
              communication)</simpara>
188 a8083063 Iustin Pop
            </listitem>
189 a8083063 Iustin Pop
          </varlistentry>
190 a8083063 Iustin Pop
          <varlistentry>
191 a8083063 Iustin Pop
            <term>sip</term>
192 a8083063 Iustin Pop
            <listitem>
193 a8083063 Iustin Pop
              <simpara>
194 a8083063 Iustin Pop
                the secondary ip of this node (used for data
195 a8083063 Iustin Pop
                replication in dual-ip clusters, see <citerefentry>
196 a8083063 Iustin Pop
                <refentrytitle>gnt-cluster</refentrytitle>
197 a8083063 Iustin Pop
                <manvolnum>8</manvolnum>
198 a8083063 Iustin Pop
                </citerefentry>
199 a8083063 Iustin Pop
              </simpara>
200 a8083063 Iustin Pop
            </listitem>
201 a8083063 Iustin Pop
          </varlistentry>
202 a8083063 Iustin Pop
          <varlistentry>
203 a8083063 Iustin Pop
            <term>dtotal</term>
204 a8083063 Iustin Pop
            <listitem>
205 a8083063 Iustin Pop
              <simpara>total disk space in the volume group used for
206 a8083063 Iustin Pop
              instance disk allocations</simpara>
207 a8083063 Iustin Pop
            </listitem>
208 a8083063 Iustin Pop
          </varlistentry>
209 a8083063 Iustin Pop
          <varlistentry>
210 a8083063 Iustin Pop
            <term>dfree</term>
211 a8083063 Iustin Pop
            <listitem>
212 a8083063 Iustin Pop
              <simpara>available disk space in the volume group</simpara>
213 a8083063 Iustin Pop
            </listitem>
214 a8083063 Iustin Pop
          </varlistentry>
215 a8083063 Iustin Pop
          <varlistentry>
216 a8083063 Iustin Pop
            <term>mtotal</term>
217 a8083063 Iustin Pop
            <listitem>
218 a8083063 Iustin Pop
              <simpara>total memory on the physical node</simpara>
219 a8083063 Iustin Pop
            </listitem>
220 a8083063 Iustin Pop
          </varlistentry>
221 a8083063 Iustin Pop
          <varlistentry>
222 a8083063 Iustin Pop
            <term>mnode</term>
223 a8083063 Iustin Pop
            <listitem>
224 a8083063 Iustin Pop
              <simpara>the memory used by the node itself</simpara>
225 a8083063 Iustin Pop
            </listitem>
226 a8083063 Iustin Pop
          </varlistentry>
227 a8083063 Iustin Pop
          <varlistentry>
228 a8083063 Iustin Pop
            <term>mfree</term>
229 a8083063 Iustin Pop
            <listitem>
230 a8083063 Iustin Pop
              <simpara>memory available for instance
231 a8083063 Iustin Pop
              allocations</simpara>
232 a8083063 Iustin Pop
            </listitem>
233 a8083063 Iustin Pop
          </varlistentry>
234 a8083063 Iustin Pop
        </variablelist>
235 a8083063 Iustin Pop
      </para>
236 a8083063 Iustin Pop
237 a8083063 Iustin Pop
      <para>
238 a8083063 Iustin Pop
        Note that some of this fields are known from the configuration
239 a8083063 Iustin Pop
        of the cluster (<simplelist type="inline">
240 a8083063 Iustin Pop
        <member>name</member> <member>pinst</member>
241 a8083063 Iustin Pop
        <member>sinst</member> <member>pip</member>
242 a8083063 Iustin Pop
        <member>sip</member> </simplelist> and thus the master does
243 a8083063 Iustin Pop
        not need to contact the node for this data (making the listing
244 a8083063 Iustin Pop
        fast if only fields from this set are selected), whereas the
245 a8083063 Iustin Pop
        other fields are "live" fields and we need to make a query to
246 a8083063 Iustin Pop
        the cluster nodes.
247 a8083063 Iustin Pop
      </para>
248 a8083063 Iustin Pop
249 a8083063 Iustin Pop
      <para>
250 a8083063 Iustin Pop
        Depending on the virtualization type and implementation
251 a8083063 Iustin Pop
        details, the mtotal, mnode and mfree may have slighly varying
252 a8083063 Iustin Pop
        meanings. For example, some solutions share the node memory
253 a8083063 Iustin Pop
        with the pool of memory used for instances
254 a8083063 Iustin Pop
        (<acronym>UML</acronym>), whereas others have separate memory
255 a8083063 Iustin Pop
        for the node and for the instances (Xen).
256 a8083063 Iustin Pop
      </para>
257 a8083063 Iustin Pop
    </refsect2>
258 a8083063 Iustin Pop
259 a8083063 Iustin Pop
    <refsect2>
260 cc425644 Iustin Pop
      <title>LIST-TAGS</title>
261 cc425644 Iustin Pop
262 cc425644 Iustin Pop
      <cmdsynopsis>
263 cc425644 Iustin Pop
        <command>list-tags</command>
264 cc425644 Iustin Pop
        <arg choice="req"><replaceable>nodename</replaceable></arg>
265 cc425644 Iustin Pop
      </cmdsynopsis>
266 cc425644 Iustin Pop
267 cc425644 Iustin Pop
      <para>List the tags of the given node.</para>
268 cc425644 Iustin Pop
    </refsect2>
269 cc425644 Iustin Pop
270 cc425644 Iustin Pop
    <refsect2>
271 a8083063 Iustin Pop
      <title>REMOVE</title>
272 a8083063 Iustin Pop
273 a8083063 Iustin Pop
      <cmdsynopsis>
274 a8083063 Iustin Pop
        <command>remove</command>
275 a8083063 Iustin Pop
        <arg choice="req"><replaceable>nodename</replaceable></arg>
276 a8083063 Iustin Pop
      </cmdsynopsis>
277 a8083063 Iustin Pop
278 a8083063 Iustin Pop
      <para>
279 a8083063 Iustin Pop
        Removes a node from the cluster. Instances must be removed or
280 a8083063 Iustin Pop
        migrated to another cluster before.
281 a8083063 Iustin Pop
      </para>
282 a8083063 Iustin Pop
283 a8083063 Iustin Pop
      <para>
284 a8083063 Iustin Pop
        Example:
285 a8083063 Iustin Pop
        <screen>
286 a8083063 Iustin Pop
# gnt-node remove node5.example.com
287 a8083063 Iustin Pop
        </screen>
288 a8083063 Iustin Pop
      </para>
289 a8083063 Iustin Pop
    </refsect2>
290 a8083063 Iustin Pop
291 dcb93971 Michael Hanselmann
    <refsect2>
292 cc425644 Iustin Pop
      <title>REMOVE-TAGS</title>
293 cc425644 Iustin Pop
      <cmdsynopsis>
294 cc425644 Iustin Pop
        <command>remove-tags</command>
295 cc425644 Iustin Pop
        <arg choice="req"><replaceable>nodename</replaceable></arg>
296 cc425644 Iustin Pop
        <arg choice="req"
297 cc425644 Iustin Pop
        rep="repeat"><replaceable>tag</replaceable></arg>
298 cc425644 Iustin Pop
      </cmdsynopsis>
299 cc425644 Iustin Pop
300 cc425644 Iustin Pop
      <para>
301 cc425644 Iustin Pop
        Remove tags from the given node. If any of the tags are not
302 cc425644 Iustin Pop
        existing on the node, the entire operation will abort.
303 cc425644 Iustin Pop
      </para>
304 cc425644 Iustin Pop
    </refsect2>
305 cc425644 Iustin Pop
306 cc425644 Iustin Pop
    <refsect2>
307 dcb93971 Michael Hanselmann
      <title>VOLUMES</title>
308 dcb93971 Michael Hanselmann
309 dcb93971 Michael Hanselmann
      <cmdsynopsis>
310 dcb93971 Michael Hanselmann
        <command>volumes</command>
311 dcb93971 Michael Hanselmann
        <arg rep="repeat"><replaceable>node</replaceable></arg>
312 dcb93971 Michael Hanselmann
      </cmdsynopsis>
313 dcb93971 Michael Hanselmann
314 dcb93971 Michael Hanselmann
      <para>
315 dcb93971 Michael Hanselmann
        Lists all logical volumes and their physical disks from the node(s)
316 dcb93971 Michael Hanselmann
        provided.
317 dcb93971 Michael Hanselmann
      </para>
318 dcb93971 Michael Hanselmann
319 dcb93971 Michael Hanselmann
      <para>
320 dcb93971 Michael Hanselmann
        Example:
321 dcb93971 Michael Hanselmann
        <screen>
322 dcb93971 Michael Hanselmann
# gnt-node volumes node5.example.com
323 dcb93971 Michael Hanselmann
Node              PhysDev   VG    Name                                 Size Instance
324 dcb93971 Michael Hanselmann
node1.example.com /dev/hdc1 xenvg instance1.example.com-sda_11000.meta 128  instance1.example.com
325 dcb93971 Michael Hanselmann
node1.example.com /dev/hdc1 xenvg instance1.example.com-sda_11001.data 256  instance1.example.com
326 dcb93971 Michael Hanselmann
        </screen>
327 dcb93971 Michael Hanselmann
      </para>
328 dcb93971 Michael Hanselmann
    </refsect2>
329 dcb93971 Michael Hanselmann
330 a8083063 Iustin Pop
  </refsect1>
331 a8083063 Iustin Pop
332 a8083063 Iustin Pop
  &footer;
333 a8083063 Iustin Pop
334 a8083063 Iustin Pop
</refentry>
335 a8083063 Iustin Pop
336 a8083063 Iustin Pop
<!-- Keep this comment at the end of the file
337 a8083063 Iustin Pop
Local variables:
338 a8083063 Iustin Pop
mode: sgml
339 a8083063 Iustin Pop
sgml-omittag:t
340 a8083063 Iustin Pop
sgml-shorttag:t
341 a8083063 Iustin Pop
sgml-minimize-attributes:nil
342 a8083063 Iustin Pop
sgml-always-quote-attributes:t
343 a8083063 Iustin Pop
sgml-indent-step:2
344 a8083063 Iustin Pop
sgml-indent-data:t
345 a8083063 Iustin Pop
sgml-parent-document:nil
346 a8083063 Iustin Pop
sgml-default-dtd-file:nil
347 a8083063 Iustin Pop
sgml-exposed-tags:nil
348 a8083063 Iustin Pop
sgml-local-catalogs:nil
349 a8083063 Iustin Pop
sgml-local-ecat-files:nil
350 a8083063 Iustin Pop
End:
351 a8083063 Iustin Pop
-->