Statistics
| Branch: | Tag: | Revision:

root / man / gnt-node.sgml @ cc425644

History | View | Annotate | Download (10.2 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="req"><replaceable>nodename</replaceable></arg>
109
        <arg choice="req"
110
        rep="repeat"><replaceable>tag</replaceable></arg>
111
      </cmdsynopsis>
112

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

    
119
    <refsect2>
120
      <title>INFO</title>
121

    
122
      <cmdsynopsis>
123
        <command>info</command>
124
        <arg rep="repeat"><replaceable>node</replaceable></arg>
125
      </cmdsynopsis>
126

    
127
      <para>
128
        Show detailed information about the nodes in the cluster. If you
129
        don't give any arguments, all nodes will be shows, otherwise the
130
        output will be restricted to the given names.
131
      </para>
132
    </refsect2>
133

    
134
    <refsect2>
135
      <title>LIST</title>
136

    
137
      <cmdsynopsis>
138
        <command>list</command>
139
        <arg>--no-headers</arg>
140
        <arg>--separator=<replaceable>SEPARATOR</replaceable></arg>
141
        <arg>-o <replaceable>FIELD,...</replaceable></arg>
142
      </cmdsynopsis>
143

    
144
      <para>
145
        Lists the nodes in the cluster. If you give the
146
        <option>--ip-info</option> option, the output contains just
147
        the node name, primary ip and secondary ip. In case the
148
        secondary ip is the same as the primary one, it will be listed
149
        as <emphasis>"-"</emphasis>.
150
      </para>
151

    
152
      <para>
153
        The <option>--no-headers</option> option will skip the initial
154
        header line. The <option>--separator</option> option takes an
155
        argument which denotes what will be used between the output
156
        fields. Both these options are to help scripting.
157
      </para>
158

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

    
237
      <para>
238
        Note that some of this fields are known from the configuration
239
        of the cluster (<simplelist type="inline">
240
        <member>name</member> <member>pinst</member>
241
        <member>sinst</member> <member>pip</member>
242
        <member>sip</member> </simplelist> and thus the master does
243
        not need to contact the node for this data (making the listing
244
        fast if only fields from this set are selected), whereas the
245
        other fields are "live" fields and we need to make a query to
246
        the cluster nodes.
247
      </para>
248

    
249
      <para>
250
        Depending on the virtualization type and implementation
251
        details, the mtotal, mnode and mfree may have slighly varying
252
        meanings. For example, some solutions share the node memory
253
        with the pool of memory used for instances
254
        (<acronym>UML</acronym>), whereas others have separate memory
255
        for the node and for the instances (Xen).
256
      </para>
257
    </refsect2>
258

    
259
    <refsect2>
260
      <title>LIST-TAGS</title>
261

    
262
      <cmdsynopsis>
263
        <command>list-tags</command>
264
        <arg choice="req"><replaceable>nodename</replaceable></arg>
265
      </cmdsynopsis>
266

    
267
      <para>List the tags of the given node.</para>
268
    </refsect2>
269

    
270
    <refsect2>
271
      <title>REMOVE</title>
272

    
273
      <cmdsynopsis>
274
        <command>remove</command>
275
        <arg choice="req"><replaceable>nodename</replaceable></arg>
276
      </cmdsynopsis>
277

    
278
      <para>
279
        Removes a node from the cluster. Instances must be removed or
280
        migrated to another cluster before.
281
      </para>
282

    
283
      <para>
284
        Example:
285
        <screen>
286
# gnt-node remove node5.example.com
287
        </screen>
288
      </para>
289
    </refsect2>
290

    
291
    <refsect2>
292
      <title>REMOVE-TAGS</title>
293
      <cmdsynopsis>
294
        <command>remove-tags</command>
295
        <arg choice="req"><replaceable>nodename</replaceable></arg>
296
        <arg choice="req"
297
        rep="repeat"><replaceable>tag</replaceable></arg>
298
      </cmdsynopsis>
299

    
300
      <para>
301
        Remove tags from the given node. If any of the tags are not
302
        existing on the node, the entire operation will abort.
303
      </para>
304
    </refsect2>
305

    
306
    <refsect2>
307
      <title>VOLUMES</title>
308

    
309
      <cmdsynopsis>
310
        <command>volumes</command>
311
        <arg rep="repeat"><replaceable>node</replaceable></arg>
312
      </cmdsynopsis>
313

    
314
      <para>
315
        Lists all logical volumes and their physical disks from the node(s)
316
        provided.
317
      </para>
318

    
319
      <para>
320
        Example:
321
        <screen>
322
# gnt-node volumes node5.example.com
323
Node              PhysDev   VG    Name                                 Size Instance
324
node1.example.com /dev/hdc1 xenvg instance1.example.com-sda_11000.meta 128  instance1.example.com
325
node1.example.com /dev/hdc1 xenvg instance1.example.com-sda_11001.data 256  instance1.example.com
326
        </screen>
327
      </para>
328
    </refsect2>
329

    
330
  </refsect1>
331

    
332
  &footer;
333

    
334
</refentry>
335

    
336
<!-- Keep this comment at the end of the file
337
Local variables:
338
mode: sgml
339
sgml-omittag:t
340
sgml-shorttag:t
341
sgml-minimize-attributes:nil
342
sgml-always-quote-attributes:t
343
sgml-indent-step:2
344
sgml-indent-data:t
345
sgml-parent-document:nil
346
sgml-default-dtd-file:nil
347
sgml-exposed-tags:nil
348
sgml-local-catalogs:nil
349
sgml-local-ecat-files:nil
350
End:
351
-->