Statistics
| Branch: | Tag: | Revision:

root / man / gnt-node.sgml @ 810c50b7

History | View | Annotate | Download (11.1 kB)

1
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2

    
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-node</refentrytitle>">
10
  <!ENTITY dhpackage   "gnt-node">
11

    
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">
16
]>
17

    
18
<refentry>
19
  <refentryinfo>
20
    <copyright>
21
      <year>2006</year>
22
      <year>2007</year>
23
      <holder>Google Inc.</holder>
24
    </copyright>
25
    &dhdate;
26
  </refentryinfo>
27
  <refmeta>
28
    &dhucpackage;
29

    
30
    &dhsection;
31
    <refmiscinfo>ganeti 1.2</refmiscinfo>
32
  </refmeta>
33
  <refnamediv>
34
    <refname>&dhpackage;</refname>
35

    
36
    <refpurpose>node administration</refpurpose>
37
  </refnamediv>
38
  <refsynopsisdiv>
39
    <cmdsynopsis>
40
      <command>&dhpackage; </command>
41

    
42
      <arg choice="req">command</arg>
43
      <arg>arguments...</arg>
44
    </cmdsynopsis>
45
  </refsynopsisdiv>
46
  <refsect1>
47
    <title>DESCRIPTION</title>
48

    
49
    <para>
50
      The <command>&dhpackage;</command> is used for managing the
51
      (physical) nodes in the ganeti system.
52
    </para>
53

    
54
  </refsect1>
55
  <refsect1>
56
    <title>COMMANDS</title>
57

    
58
    <refsect2>
59
      <title>ADD</title>
60

    
61
      <cmdsynopsis>
62
        <command>add</command>
63
        <arg>-s <replaceable>secondary_ip</replaceable></arg>
64
        <arg choice="req"><replaceable>nodename</replaceable></arg>
65
      </cmdsynopsis>
66

    
67
      <para>
68
        Adds the given node to the cluster.
69
      </para>
70

    
71
      <para>
72
        This command is used to join a new node to the cluster. You
73
        will have to provide the password for root of the node to be
74
        able to add the node in the cluster. The command needs to be
75
        run on the ganeti master.
76
      </para>
77

    
78
      <para>
79
        Note that the command is potentially destructive, as it will
80
        forcibly join the specified host the cluster, not paying
81
        attention to its current status (it could be already in a
82
        cluster, etc.)
83
      </para>
84

    
85
      <para>
86
        The <option>-s</option> is used in dual-home clusters and
87
        specifies the new node's IP in the secondary network. See the
88
        discussion in <citerefentry>
89
        <refentrytitle>gnt-cluster</refentrytitle>
90
        <manvolnum>8</manvolnum> </citerefentry> for more
91
        informations.
92
      </para>
93

    
94
      <para>
95
        Example:
96
        <screen>
97
# gnt-node add node5.example.com
98
# gnt-node add -s 192.168.44.5 node5.example.com
99
        </screen>
100
      </para>
101
    </refsect2>
102

    
103
    <refsect2>
104
      <title>ADD-TAGS</title>
105

    
106
      <cmdsynopsis>
107
        <command>add-tags</command>
108
        <arg choice="opt">--from <replaceable>file</replaceable></arg>
109
        <arg choice="req"><replaceable>nodename</replaceable></arg>
110
        <arg choice="req"
111
        rep="repeat"><replaceable>tag</replaceable></arg>
112
      </cmdsynopsis>
113

    
114
      <para>
115
        Add tags to the given node. If any of the tags contains
116
        invalid characters, the entire operation will abort.
117
      </para>
118

    
119
      <para>
120
        If the <option>--from</option> option is given, the list of
121
        tags will be extended with the contents of that file (each
122
        line becomes a tag). In this case, there is not need to pass
123
        tags on the command line (if you do, both sources will be
124
        used). A file name of - will be interpreted as stdin.
125
      </para>
126
    </refsect2>
127

    
128
    <refsect2>
129
      <title>INFO</title>
130

    
131
      <cmdsynopsis>
132
        <command>info</command>
133
        <arg rep="repeat"><replaceable>node</replaceable></arg>
134
      </cmdsynopsis>
135

    
136
      <para>
137
        Show detailed information about the nodes in the cluster. If you
138
        don't give any arguments, all nodes will be shows, otherwise the
139
        output will be restricted to the given names.
140
      </para>
141
    </refsect2>
142

    
143
    <refsect2>
144
      <title>LIST</title>
145

    
146
      <cmdsynopsis>
147
        <command>list</command>
148
        <arg>--no-headers</arg>
149
        <arg>--separator=<replaceable>SEPARATOR</replaceable></arg>
150
        <arg>-o <replaceable>FIELD,...</replaceable></arg>
151
      </cmdsynopsis>
152

    
153
      <para>
154
        Lists the nodes in the cluster. If you give the
155
        <option>--ip-info</option> option, the output contains just
156
        the node name, primary ip and secondary ip. In case the
157
        secondary ip is the same as the primary one, it will be listed
158
        as <emphasis>"-"</emphasis>.
159
      </para>
160

    
161
      <para>
162
        The <option>--no-headers</option> option will skip the initial
163
        header line. The <option>--separator</option> option takes an
164
        argument which denotes what will be used between the output
165
        fields. Both these options are to help scripting.
166
      </para>
167

    
168
      <para>
169
        The <option>-o</option> option takes a comma-separated list of
170
        output fields. The available fields and their meaning are:
171
        <variablelist>
172
          <varlistentry>
173
            <term>name</term>
174
            <listitem>
175
              <simpara>the node name</simpara>
176
            </listitem>
177
          </varlistentry>
178
          <varlistentry>
179
            <term>pinst</term>
180
            <listitem>
181
              <simpara>the number of instances having this node as
182
              primary</simpara>
183
            </listitem>
184
          </varlistentry>
185
          <varlistentry>
186
            <term>sinst</term>
187
            <listitem>
188
              <simpara>the number of instances having this node as a
189
              secondary node</simpara>
190
            </listitem>
191
          </varlistentry>
192
          <varlistentry>
193
            <term>pip</term>
194
            <listitem>
195
              <simpara>the primary ip of this node (used for cluster
196
              communication)</simpara>
197
            </listitem>
198
          </varlistentry>
199
          <varlistentry>
200
            <term>sip</term>
201
            <listitem>
202
              <simpara>
203
                the secondary ip of this node (used for data
204
                replication in dual-ip clusters, see <citerefentry>
205
                <refentrytitle>gnt-cluster</refentrytitle>
206
                <manvolnum>8</manvolnum>
207
                </citerefentry>
208
              </simpara>
209
            </listitem>
210
          </varlistentry>
211
          <varlistentry>
212
            <term>dtotal</term>
213
            <listitem>
214
              <simpara>total disk space in the volume group used for
215
              instance disk allocations</simpara>
216
            </listitem>
217
          </varlistentry>
218
          <varlistentry>
219
            <term>dfree</term>
220
            <listitem>
221
              <simpara>available disk space in the volume group</simpara>
222
            </listitem>
223
          </varlistentry>
224
          <varlistentry>
225
            <term>mtotal</term>
226
            <listitem>
227
              <simpara>total memory on the physical node</simpara>
228
            </listitem>
229
          </varlistentry>
230
          <varlistentry>
231
            <term>mnode</term>
232
            <listitem>
233
              <simpara>the memory used by the node itself</simpara>
234
            </listitem>
235
          </varlistentry>
236
          <varlistentry>
237
            <term>mfree</term>
238
            <listitem>
239
              <simpara>memory available for instance
240
              allocations</simpara>
241
            </listitem>
242
          </varlistentry>
243
        </variablelist>
244
      </para>
245

    
246
      <para>
247
        Note that some of this fields are known from the configuration
248
        of the cluster (<simplelist type="inline">
249
        <member>name</member> <member>pinst</member>
250
        <member>sinst</member> <member>pip</member>
251
        <member>sip</member> </simplelist> and thus the master does
252
        not need to contact the node for this data (making the listing
253
        fast if only fields from this set are selected), whereas the
254
        other fields are "live" fields and we need to make a query to
255
        the cluster nodes.
256
      </para>
257

    
258
      <para>
259
        Depending on the virtualization type and implementation
260
        details, the mtotal, mnode and mfree may have slighly varying
261
        meanings. For example, some solutions share the node memory
262
        with the pool of memory used for instances
263
        (<acronym>UML</acronym>), whereas others have separate memory
264
        for the node and for the instances (Xen).
265
      </para>
266
    </refsect2>
267

    
268
    <refsect2>
269
      <title>LIST-TAGS</title>
270

    
271
      <cmdsynopsis>
272
        <command>list-tags</command>
273
        <arg choice="req"><replaceable>nodename</replaceable></arg>
274
      </cmdsynopsis>
275

    
276
      <para>List the tags of the given node.</para>
277
    </refsect2>
278

    
279
    <refsect2>
280
      <title>REMOVE</title>
281

    
282
      <cmdsynopsis>
283
        <command>remove</command>
284
        <arg choice="req"><replaceable>nodename</replaceable></arg>
285
      </cmdsynopsis>
286

    
287
      <para>
288
        Removes a node from the cluster. Instances must be removed or
289
        migrated to another cluster before.
290
      </para>
291

    
292
      <para>
293
        Example:
294
        <screen>
295
# gnt-node remove node5.example.com
296
        </screen>
297
      </para>
298
    </refsect2>
299

    
300
    <refsect2>
301
      <title>REMOVE-TAGS</title>
302
      <cmdsynopsis>
303
        <command>remove-tags</command>
304
        <arg choice="opt">--from <replaceable>file</replaceable></arg>
305
        <arg choice="req"><replaceable>nodename</replaceable></arg>
306
        <arg choice="req"
307
        rep="repeat"><replaceable>tag</replaceable></arg>
308
      </cmdsynopsis>
309

    
310
      <para>
311
        Remove tags from the given node. If any of the tags are not
312
        existing on the node, the entire operation will abort.
313
      </para>
314

    
315
      <para>
316
        If the <option>--from</option> option is given, the list of
317
        tags will be extended with the contents of that file (each
318
        line becomes a tag). In this case, there is not need to pass
319
        tags on the command line (if you do, both sources will be
320
        used). A file name of - will be interpreted as stdin.
321
      </para>
322
    </refsect2>
323

    
324
    <refsect2>
325
      <title>VOLUMES</title>
326

    
327
      <cmdsynopsis>
328
        <command>volumes</command>
329
        <arg rep="repeat"><replaceable>node</replaceable></arg>
330
      </cmdsynopsis>
331

    
332
      <para>
333
        Lists all logical volumes and their physical disks from the node(s)
334
        provided.
335
      </para>
336

    
337
      <para>
338
        Example:
339
        <screen>
340
# gnt-node volumes node5.example.com
341
Node              PhysDev   VG    Name                                 Size Instance
342
node1.example.com /dev/hdc1 xenvg instance1.example.com-sda_11000.meta 128  instance1.example.com
343
node1.example.com /dev/hdc1 xenvg instance1.example.com-sda_11001.data 256  instance1.example.com
344
        </screen>
345
      </para>
346
    </refsect2>
347

    
348
  </refsect1>
349

    
350
  &footer;
351

    
352
</refentry>
353

    
354
<!-- Keep this comment at the end of the file
355
Local variables:
356
mode: sgml
357
sgml-omittag:t
358
sgml-shorttag:t
359
sgml-minimize-attributes:nil
360
sgml-always-quote-attributes:t
361
sgml-indent-step:2
362
sgml-indent-data:t
363
sgml-parent-document:nil
364
sgml-default-dtd-file:nil
365
sgml-exposed-tags:nil
366
sgml-local-catalogs:nil
367
sgml-local-ecat-files:nil
368
End:
369
-->