Statistics
| Branch: | Tag: | Revision:

root / man / gnt-node.sgml @ bf6fe28b

History | View | Annotate | Download (14.6 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 810c50b7 Iustin Pop
        <arg choice="opt">--from <replaceable>file</replaceable></arg>
109 cc425644 Iustin Pop
        <arg choice="req"><replaceable>nodename</replaceable></arg>
110 cc425644 Iustin Pop
        <arg choice="req"
111 cc425644 Iustin Pop
        rep="repeat"><replaceable>tag</replaceable></arg>
112 cc425644 Iustin Pop
      </cmdsynopsis>
113 cc425644 Iustin Pop
114 cc425644 Iustin Pop
      <para>
115 cc425644 Iustin Pop
        Add tags to the given node. If any of the tags contains
116 cc425644 Iustin Pop
        invalid characters, the entire operation will abort.
117 cc425644 Iustin Pop
      </para>
118 810c50b7 Iustin Pop
119 810c50b7 Iustin Pop
      <para>
120 810c50b7 Iustin Pop
        If the <option>--from</option> option is given, the list of
121 810c50b7 Iustin Pop
        tags will be extended with the contents of that file (each
122 810c50b7 Iustin Pop
        line becomes a tag). In this case, there is not need to pass
123 810c50b7 Iustin Pop
        tags on the command line (if you do, both sources will be
124 810c50b7 Iustin Pop
        used). A file name of - will be interpreted as stdin.
125 810c50b7 Iustin Pop
      </para>
126 cc425644 Iustin Pop
    </refsect2>
127 cc425644 Iustin Pop
128 cc425644 Iustin Pop
    <refsect2>
129 a5bc662a Iustin Pop
      <title>EVACUATE</title>
130 a5bc662a Iustin Pop
131 a5bc662a Iustin Pop
      <cmdsynopsis>
132 a5bc662a Iustin Pop
        <command>evacuate</command>
133 a5bc662a Iustin Pop
        <arg>-f</arg>
134 a5bc662a Iustin Pop
        <arg choice="req"><replaceable>source_node</replaceable></arg>
135 a5bc662a Iustin Pop
        <arg choice="req"><replaceable>destination_node</replaceable></arg>
136 a5bc662a Iustin Pop
      </cmdsynopsis>
137 a5bc662a Iustin Pop
138 a5bc662a Iustin Pop
      <para>
139 a5bc662a Iustin Pop
        This command will change the secondary node from the source
140 a5bc662a Iustin Pop
        node to the destination node for all instances having the
141 a5bc662a Iustin Pop
        source node as secondary. It works only for instances having
142 a5bc662a Iustin Pop
        a remote raid disk layout.
143 a5bc662a Iustin Pop
      </para>
144 a5bc662a Iustin Pop
145 a5bc662a Iustin Pop
      <para>
146 a5bc662a Iustin Pop
        Example:
147 a5bc662a Iustin Pop
        <screen>
148 a5bc662a Iustin Pop
          # gnt-node evacuate node1.example.com node2.example.com
149 a5bc662a Iustin Pop
        </screen>
150 a5bc662a Iustin Pop
      </para>
151 a5bc662a Iustin Pop
    </refsect2>
152 a5bc662a Iustin Pop
153 a5bc662a Iustin Pop
    <refsect2>
154 c450e9b0 Iustin Pop
      <title>FAILOVER</title>
155 c450e9b0 Iustin Pop
156 c450e9b0 Iustin Pop
      <cmdsynopsis>
157 c450e9b0 Iustin Pop
        <command>failover</command>
158 c450e9b0 Iustin Pop
        <arg>-f</arg>
159 c450e9b0 Iustin Pop
        <arg>--ignore-consistency</arg>
160 c450e9b0 Iustin Pop
        <arg choice="req"><replaceable>node</replaceable></arg>
161 c450e9b0 Iustin Pop
      </cmdsynopsis>
162 c450e9b0 Iustin Pop
163 c450e9b0 Iustin Pop
      <para>
164 c450e9b0 Iustin Pop
        This command will fail over all instances having the given
165 c450e9b0 Iustin Pop
        node as primary to their secondary nodes. This works only for
166 c450e9b0 Iustin Pop
        instances having a remote raid disk layout.
167 c450e9b0 Iustin Pop
      </para>
168 c450e9b0 Iustin Pop
169 c450e9b0 Iustin Pop
      <para>
170 c450e9b0 Iustin Pop
        Normally the failover will check the consistency of the disks
171 c450e9b0 Iustin Pop
        before failing over the instance. If you are trying to migrate
172 c450e9b0 Iustin Pop
        instances off a dead node, this will fail. Use the
173 c450e9b0 Iustin Pop
        <option>--ignore-consistency</option> option for this purpose.
174 c450e9b0 Iustin Pop
      </para>
175 c450e9b0 Iustin Pop
176 c450e9b0 Iustin Pop
      <para>
177 c450e9b0 Iustin Pop
        Example:
178 c450e9b0 Iustin Pop
        <screen>
179 c450e9b0 Iustin Pop
          # gnt-node failover node1.example.com
180 c450e9b0 Iustin Pop
        </screen>
181 c450e9b0 Iustin Pop
      </para>
182 c450e9b0 Iustin Pop
    </refsect2>
183 c450e9b0 Iustin Pop
184 c450e9b0 Iustin Pop
    <refsect2>
185 a8083063 Iustin Pop
      <title>INFO</title>
186 a8083063 Iustin Pop
187 a8083063 Iustin Pop
      <cmdsynopsis>
188 a8083063 Iustin Pop
        <command>info</command>
189 a8083063 Iustin Pop
        <arg rep="repeat"><replaceable>node</replaceable></arg>
190 a8083063 Iustin Pop
      </cmdsynopsis>
191 a8083063 Iustin Pop
192 a8083063 Iustin Pop
      <para>
193 a8083063 Iustin Pop
        Show detailed information about the nodes in the cluster. If you
194 a8083063 Iustin Pop
        don't give any arguments, all nodes will be shows, otherwise the
195 a8083063 Iustin Pop
        output will be restricted to the given names.
196 a8083063 Iustin Pop
      </para>
197 a8083063 Iustin Pop
    </refsect2>
198 a8083063 Iustin Pop
199 a8083063 Iustin Pop
    <refsect2>
200 a8083063 Iustin Pop
      <title>LIST</title>
201 a8083063 Iustin Pop
202 a8083063 Iustin Pop
      <cmdsynopsis>
203 a8083063 Iustin Pop
        <command>list</command>
204 a8083063 Iustin Pop
        <arg>--no-headers</arg>
205 a8083063 Iustin Pop
        <arg>--separator=<replaceable>SEPARATOR</replaceable></arg>
206 a8083063 Iustin Pop
        <arg>-o <replaceable>FIELD,...</replaceable></arg>
207 a8083063 Iustin Pop
      </cmdsynopsis>
208 a8083063 Iustin Pop
209 a8083063 Iustin Pop
      <para>
210 a8083063 Iustin Pop
        Lists the nodes in the cluster. If you give the
211 a8083063 Iustin Pop
        <option>--ip-info</option> option, the output contains just
212 a8083063 Iustin Pop
        the node name, primary ip and secondary ip. In case the
213 a8083063 Iustin Pop
        secondary ip is the same as the primary one, it will be listed
214 a8083063 Iustin Pop
        as <emphasis>"-"</emphasis>.
215 a8083063 Iustin Pop
      </para>
216 a8083063 Iustin Pop
217 a8083063 Iustin Pop
      <para>
218 a8083063 Iustin Pop
        The <option>--no-headers</option> option will skip the initial
219 a8083063 Iustin Pop
        header line. The <option>--separator</option> option takes an
220 a8083063 Iustin Pop
        argument which denotes what will be used between the output
221 a8083063 Iustin Pop
        fields. Both these options are to help scripting.
222 a8083063 Iustin Pop
      </para>
223 a8083063 Iustin Pop
224 a8083063 Iustin Pop
      <para>
225 a8083063 Iustin Pop
        The <option>-o</option> option takes a comma-separated list of
226 a8083063 Iustin Pop
        output fields. The available fields and their meaning are:
227 a8083063 Iustin Pop
        <variablelist>
228 a8083063 Iustin Pop
          <varlistentry>
229 a8083063 Iustin Pop
            <term>name</term>
230 a8083063 Iustin Pop
            <listitem>
231 a8083063 Iustin Pop
              <simpara>the node name</simpara>
232 a8083063 Iustin Pop
            </listitem>
233 a8083063 Iustin Pop
          </varlistentry>
234 a8083063 Iustin Pop
          <varlistentry>
235 a8083063 Iustin Pop
            <term>pinst</term>
236 a8083063 Iustin Pop
            <listitem>
237 a8083063 Iustin Pop
              <simpara>the number of instances having this node as
238 a8083063 Iustin Pop
              primary</simpara>
239 a8083063 Iustin Pop
            </listitem>
240 a8083063 Iustin Pop
          </varlistentry>
241 a8083063 Iustin Pop
          <varlistentry>
242 a8083063 Iustin Pop
            <term>sinst</term>
243 a8083063 Iustin Pop
            <listitem>
244 a8083063 Iustin Pop
              <simpara>the number of instances having this node as a
245 a8083063 Iustin Pop
              secondary node</simpara>
246 a8083063 Iustin Pop
            </listitem>
247 a8083063 Iustin Pop
          </varlistentry>
248 a8083063 Iustin Pop
          <varlistentry>
249 a8083063 Iustin Pop
            <term>pip</term>
250 a8083063 Iustin Pop
            <listitem>
251 a8083063 Iustin Pop
              <simpara>the primary ip of this node (used for cluster
252 a8083063 Iustin Pop
              communication)</simpara>
253 a8083063 Iustin Pop
            </listitem>
254 a8083063 Iustin Pop
          </varlistentry>
255 a8083063 Iustin Pop
          <varlistentry>
256 a8083063 Iustin Pop
            <term>sip</term>
257 a8083063 Iustin Pop
            <listitem>
258 a8083063 Iustin Pop
              <simpara>
259 a8083063 Iustin Pop
                the secondary ip of this node (used for data
260 a8083063 Iustin Pop
                replication in dual-ip clusters, see <citerefentry>
261 a8083063 Iustin Pop
                <refentrytitle>gnt-cluster</refentrytitle>
262 a8083063 Iustin Pop
                <manvolnum>8</manvolnum>
263 a8083063 Iustin Pop
                </citerefentry>
264 a8083063 Iustin Pop
              </simpara>
265 a8083063 Iustin Pop
            </listitem>
266 a8083063 Iustin Pop
          </varlistentry>
267 a8083063 Iustin Pop
          <varlistentry>
268 a8083063 Iustin Pop
            <term>dtotal</term>
269 a8083063 Iustin Pop
            <listitem>
270 a8083063 Iustin Pop
              <simpara>total disk space in the volume group used for
271 a8083063 Iustin Pop
              instance disk allocations</simpara>
272 a8083063 Iustin Pop
            </listitem>
273 a8083063 Iustin Pop
          </varlistentry>
274 a8083063 Iustin Pop
          <varlistentry>
275 a8083063 Iustin Pop
            <term>dfree</term>
276 a8083063 Iustin Pop
            <listitem>
277 a8083063 Iustin Pop
              <simpara>available disk space in the volume group</simpara>
278 a8083063 Iustin Pop
            </listitem>
279 a8083063 Iustin Pop
          </varlistentry>
280 a8083063 Iustin Pop
          <varlistentry>
281 a8083063 Iustin Pop
            <term>mtotal</term>
282 a8083063 Iustin Pop
            <listitem>
283 a8083063 Iustin Pop
              <simpara>total memory on the physical node</simpara>
284 a8083063 Iustin Pop
            </listitem>
285 a8083063 Iustin Pop
          </varlistentry>
286 a8083063 Iustin Pop
          <varlistentry>
287 a8083063 Iustin Pop
            <term>mnode</term>
288 a8083063 Iustin Pop
            <listitem>
289 a8083063 Iustin Pop
              <simpara>the memory used by the node itself</simpara>
290 a8083063 Iustin Pop
            </listitem>
291 a8083063 Iustin Pop
          </varlistentry>
292 a8083063 Iustin Pop
          <varlistentry>
293 a8083063 Iustin Pop
            <term>mfree</term>
294 a8083063 Iustin Pop
            <listitem>
295 a8083063 Iustin Pop
              <simpara>memory available for instance
296 a8083063 Iustin Pop
              allocations</simpara>
297 a8083063 Iustin Pop
            </listitem>
298 a8083063 Iustin Pop
          </varlistentry>
299 a8083063 Iustin Pop
        </variablelist>
300 a8083063 Iustin Pop
      </para>
301 a8083063 Iustin Pop
302 a8083063 Iustin Pop
      <para>
303 a8083063 Iustin Pop
        Note that some of this fields are known from the configuration
304 a8083063 Iustin Pop
        of the cluster (<simplelist type="inline">
305 a8083063 Iustin Pop
        <member>name</member> <member>pinst</member>
306 a8083063 Iustin Pop
        <member>sinst</member> <member>pip</member>
307 a8083063 Iustin Pop
        <member>sip</member> </simplelist> and thus the master does
308 a8083063 Iustin Pop
        not need to contact the node for this data (making the listing
309 a8083063 Iustin Pop
        fast if only fields from this set are selected), whereas the
310 a8083063 Iustin Pop
        other fields are "live" fields and we need to make a query to
311 a8083063 Iustin Pop
        the cluster nodes.
312 a8083063 Iustin Pop
      </para>
313 a8083063 Iustin Pop
314 a8083063 Iustin Pop
      <para>
315 a8083063 Iustin Pop
        Depending on the virtualization type and implementation
316 a8083063 Iustin Pop
        details, the mtotal, mnode and mfree may have slighly varying
317 a8083063 Iustin Pop
        meanings. For example, some solutions share the node memory
318 a8083063 Iustin Pop
        with the pool of memory used for instances
319 a8083063 Iustin Pop
        (<acronym>UML</acronym>), whereas others have separate memory
320 a8083063 Iustin Pop
        for the node and for the instances (Xen).
321 a8083063 Iustin Pop
      </para>
322 a8083063 Iustin Pop
    </refsect2>
323 a8083063 Iustin Pop
324 a8083063 Iustin Pop
    <refsect2>
325 cc425644 Iustin Pop
      <title>LIST-TAGS</title>
326 cc425644 Iustin Pop
327 cc425644 Iustin Pop
      <cmdsynopsis>
328 cc425644 Iustin Pop
        <command>list-tags</command>
329 cc425644 Iustin Pop
        <arg choice="req"><replaceable>nodename</replaceable></arg>
330 cc425644 Iustin Pop
      </cmdsynopsis>
331 cc425644 Iustin Pop
332 cc425644 Iustin Pop
      <para>List the tags of the given node.</para>
333 cc425644 Iustin Pop
    </refsect2>
334 cc425644 Iustin Pop
335 cc425644 Iustin Pop
    <refsect2>
336 a8083063 Iustin Pop
      <title>REMOVE</title>
337 a8083063 Iustin Pop
338 a8083063 Iustin Pop
      <cmdsynopsis>
339 a8083063 Iustin Pop
        <command>remove</command>
340 a8083063 Iustin Pop
        <arg choice="req"><replaceable>nodename</replaceable></arg>
341 a8083063 Iustin Pop
      </cmdsynopsis>
342 a8083063 Iustin Pop
343 a8083063 Iustin Pop
      <para>
344 a8083063 Iustin Pop
        Removes a node from the cluster. Instances must be removed or
345 a8083063 Iustin Pop
        migrated to another cluster before.
346 a8083063 Iustin Pop
      </para>
347 a8083063 Iustin Pop
348 a8083063 Iustin Pop
      <para>
349 a8083063 Iustin Pop
        Example:
350 a8083063 Iustin Pop
        <screen>
351 a8083063 Iustin Pop
# gnt-node remove node5.example.com
352 a8083063 Iustin Pop
        </screen>
353 a8083063 Iustin Pop
      </para>
354 a8083063 Iustin Pop
    </refsect2>
355 a8083063 Iustin Pop
356 dcb93971 Michael Hanselmann
    <refsect2>
357 cc425644 Iustin Pop
      <title>REMOVE-TAGS</title>
358 cc425644 Iustin Pop
      <cmdsynopsis>
359 cc425644 Iustin Pop
        <command>remove-tags</command>
360 810c50b7 Iustin Pop
        <arg choice="opt">--from <replaceable>file</replaceable></arg>
361 cc425644 Iustin Pop
        <arg choice="req"><replaceable>nodename</replaceable></arg>
362 cc425644 Iustin Pop
        <arg choice="req"
363 cc425644 Iustin Pop
        rep="repeat"><replaceable>tag</replaceable></arg>
364 cc425644 Iustin Pop
      </cmdsynopsis>
365 cc425644 Iustin Pop
366 cc425644 Iustin Pop
      <para>
367 cc425644 Iustin Pop
        Remove tags from the given node. If any of the tags are not
368 cc425644 Iustin Pop
        existing on the node, the entire operation will abort.
369 cc425644 Iustin Pop
      </para>
370 810c50b7 Iustin Pop
371 810c50b7 Iustin Pop
      <para>
372 810c50b7 Iustin Pop
        If the <option>--from</option> option is given, the list of
373 810c50b7 Iustin Pop
        tags will be extended with the contents of that file (each
374 810c50b7 Iustin Pop
        line becomes a tag). In this case, there is not need to pass
375 810c50b7 Iustin Pop
        tags on the command line (if you do, both sources will be
376 810c50b7 Iustin Pop
        used). A file name of - will be interpreted as stdin.
377 810c50b7 Iustin Pop
      </para>
378 cc425644 Iustin Pop
    </refsect2>
379 cc425644 Iustin Pop
380 cc425644 Iustin Pop
    <refsect2>
381 dcb93971 Michael Hanselmann
      <title>VOLUMES</title>
382 dcb93971 Michael Hanselmann
383 dcb93971 Michael Hanselmann
      <cmdsynopsis>
384 dcb93971 Michael Hanselmann
        <command>volumes</command>
385 f69dab6d Iustin Pop
        <arg>--no-headers</arg>
386 f69dab6d Iustin Pop
        <arg>--human-readable</arg>
387 f69dab6d Iustin Pop
        <arg>--separator=<replaceable>SEPARATOR</replaceable></arg>
388 f69dab6d Iustin Pop
        <arg>--output=<replaceable>FIELDS</replaceable></arg>
389 f69dab6d Iustin Pop
        <sbr>
390 dcb93971 Michael Hanselmann
        <arg rep="repeat"><replaceable>node</replaceable></arg>
391 dcb93971 Michael Hanselmann
      </cmdsynopsis>
392 dcb93971 Michael Hanselmann
393 dcb93971 Michael Hanselmann
      <para>
394 dcb93971 Michael Hanselmann
        Lists all logical volumes and their physical disks from the node(s)
395 dcb93971 Michael Hanselmann
        provided.
396 dcb93971 Michael Hanselmann
      </para>
397 dcb93971 Michael Hanselmann
398 dcb93971 Michael Hanselmann
      <para>
399 f69dab6d Iustin Pop
        The <option>--no-headers</option> option will skip the initial
400 f69dab6d Iustin Pop
        header line. The <option>--separator</option> option takes an
401 f69dab6d Iustin Pop
        argument which denotes what will be used between the output
402 f69dab6d Iustin Pop
        fields. Both these options are to help scripting.
403 f69dab6d Iustin Pop
      </para>
404 f69dab6d Iustin Pop
405 f69dab6d Iustin Pop
      <para>
406 f69dab6d Iustin Pop
        The <option>-o</option> option takes a comma-separated list of
407 f69dab6d Iustin Pop
        output fields. The available fields and their meaning are:
408 f69dab6d Iustin Pop
        <variablelist>
409 f69dab6d Iustin Pop
          <varlistentry>
410 f69dab6d Iustin Pop
            <term>node</term>
411 f69dab6d Iustin Pop
            <listitem>
412 f69dab6d Iustin Pop
              <simpara>the node name on which the volume exists</simpara>
413 f69dab6d Iustin Pop
            </listitem>
414 f69dab6d Iustin Pop
          </varlistentry>
415 f69dab6d Iustin Pop
          <varlistentry>
416 f69dab6d Iustin Pop
            <term>phys</term>
417 f69dab6d Iustin Pop
            <listitem>
418 f69dab6d Iustin Pop
              <simpara>the physical drive (on which the LVM physical
419 f69dab6d Iustin Pop
              volume lives)</simpara>
420 f69dab6d Iustin Pop
            </listitem>
421 f69dab6d Iustin Pop
          </varlistentry>
422 f69dab6d Iustin Pop
          <varlistentry>
423 f69dab6d Iustin Pop
            <term>vg</term>
424 f69dab6d Iustin Pop
            <listitem>
425 f69dab6d Iustin Pop
              <simpara>the volume group name</simpara>
426 f69dab6d Iustin Pop
            </listitem>
427 f69dab6d Iustin Pop
          </varlistentry>
428 f69dab6d Iustin Pop
          <varlistentry>
429 f69dab6d Iustin Pop
            <term>name</term>
430 f69dab6d Iustin Pop
            <listitem>
431 f69dab6d Iustin Pop
              <simpara>the logical volume name</simpara>
432 f69dab6d Iustin Pop
            </listitem>
433 f69dab6d Iustin Pop
          </varlistentry>
434 f69dab6d Iustin Pop
          <varlistentry>
435 f69dab6d Iustin Pop
            <term>size</term>
436 f69dab6d Iustin Pop
            <listitem>
437 f69dab6d Iustin Pop
              <simpara>the logical volume size</simpara>
438 f69dab6d Iustin Pop
            </listitem>
439 f69dab6d Iustin Pop
          </varlistentry>
440 f69dab6d Iustin Pop
          <varlistentry>
441 f69dab6d Iustin Pop
            <term>instance</term>
442 f69dab6d Iustin Pop
            <listitem>
443 f69dab6d Iustin Pop
              <simpara>The name of the instance to which this volume
444 f69dab6d Iustin Pop
              belongs, or (in case it's an orphan volume) the
445 f69dab6d Iustin Pop
              character <quote>-</quote></simpara>
446 f69dab6d Iustin Pop
            </listitem>
447 f69dab6d Iustin Pop
          </varlistentry>
448 f69dab6d Iustin Pop
        </variablelist>
449 f69dab6d Iustin Pop
      </para>
450 f69dab6d Iustin Pop
451 f69dab6d Iustin Pop
      <para>
452 dcb93971 Michael Hanselmann
        Example:
453 dcb93971 Michael Hanselmann
        <screen>
454 dcb93971 Michael Hanselmann
# gnt-node volumes node5.example.com
455 dcb93971 Michael Hanselmann
Node              PhysDev   VG    Name                                 Size Instance
456 dcb93971 Michael Hanselmann
node1.example.com /dev/hdc1 xenvg instance1.example.com-sda_11000.meta 128  instance1.example.com
457 dcb93971 Michael Hanselmann
node1.example.com /dev/hdc1 xenvg instance1.example.com-sda_11001.data 256  instance1.example.com
458 dcb93971 Michael Hanselmann
        </screen>
459 dcb93971 Michael Hanselmann
      </para>
460 dcb93971 Michael Hanselmann
    </refsect2>
461 dcb93971 Michael Hanselmann
462 a8083063 Iustin Pop
  </refsect1>
463 a8083063 Iustin Pop
464 a8083063 Iustin Pop
  &footer;
465 a8083063 Iustin Pop
466 a8083063 Iustin Pop
</refentry>
467 a8083063 Iustin Pop
468 a8083063 Iustin Pop
<!-- Keep this comment at the end of the file
469 a8083063 Iustin Pop
Local variables:
470 a8083063 Iustin Pop
mode: sgml
471 a8083063 Iustin Pop
sgml-omittag:t
472 a8083063 Iustin Pop
sgml-shorttag:t
473 a8083063 Iustin Pop
sgml-minimize-attributes:nil
474 a8083063 Iustin Pop
sgml-always-quote-attributes:t
475 a8083063 Iustin Pop
sgml-indent-step:2
476 a8083063 Iustin Pop
sgml-indent-data:t
477 a8083063 Iustin Pop
sgml-parent-document:nil
478 a8083063 Iustin Pop
sgml-default-dtd-file:nil
479 a8083063 Iustin Pop
sgml-exposed-tags:nil
480 a8083063 Iustin Pop
sgml-local-catalogs:nil
481 a8083063 Iustin Pop
sgml-local-ecat-files:nil
482 a8083063 Iustin Pop
End:
483 a8083063 Iustin Pop
-->