root / man / gnt-node.sgml @ 188fbf41
History | View | Annotate | Download (16.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 | e7c6e02b | Michael Hanselmann | <year>2008</year> |
24 | a8083063 | Iustin Pop | <holder>Google Inc.</holder> |
25 | a8083063 | Iustin Pop | </copyright> |
26 | a8083063 | Iustin Pop | &dhdate; |
27 | a8083063 | Iustin Pop | </refentryinfo> |
28 | a8083063 | Iustin Pop | <refmeta> |
29 | a8083063 | Iustin Pop | &dhucpackage; |
30 | a8083063 | Iustin Pop | |
31 | a8083063 | Iustin Pop | &dhsection; |
32 | a8083063 | Iustin Pop | <refmiscinfo>ganeti 1.2</refmiscinfo> |
33 | a8083063 | Iustin Pop | </refmeta> |
34 | a8083063 | Iustin Pop | <refnamediv> |
35 | a8083063 | Iustin Pop | <refname>&dhpackage;</refname> |
36 | a8083063 | Iustin Pop | |
37 | a8083063 | Iustin Pop | <refpurpose>node administration</refpurpose> |
38 | a8083063 | Iustin Pop | </refnamediv> |
39 | a8083063 | Iustin Pop | <refsynopsisdiv> |
40 | a8083063 | Iustin Pop | <cmdsynopsis> |
41 | a8083063 | Iustin Pop | <command>&dhpackage; </command> |
42 | a8083063 | Iustin Pop | |
43 | a8083063 | Iustin Pop | <arg choice="req">command</arg> |
44 | a8083063 | Iustin Pop | <arg>arguments...</arg> |
45 | a8083063 | Iustin Pop | </cmdsynopsis> |
46 | a8083063 | Iustin Pop | </refsynopsisdiv> |
47 | a8083063 | Iustin Pop | <refsect1> |
48 | a8083063 | Iustin Pop | <title>DESCRIPTION</title> |
49 | a8083063 | Iustin Pop | |
50 | a8083063 | Iustin Pop | <para> |
51 | a8083063 | Iustin Pop | The <command>&dhpackage;</command> is used for managing the |
52 | a8083063 | Iustin Pop | (physical) nodes in the ganeti system. |
53 | a8083063 | Iustin Pop | </para> |
54 | a8083063 | Iustin Pop | |
55 | a8083063 | Iustin Pop | </refsect1> |
56 | a8083063 | Iustin Pop | <refsect1> |
57 | a8083063 | Iustin Pop | <title>COMMANDS</title> |
58 | a8083063 | Iustin Pop | |
59 | a8083063 | Iustin Pop | <refsect2> |
60 | a8083063 | Iustin Pop | <title>ADD</title> |
61 | a8083063 | Iustin Pop | |
62 | a8083063 | Iustin Pop | <cmdsynopsis> |
63 | a8083063 | Iustin Pop | <command>add</command> |
64 | e7c6e02b | Michael Hanselmann | <arg>--readd</arg> |
65 | a8083063 | Iustin Pop | <arg>-s <replaceable>secondary_ip</replaceable></arg> |
66 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>nodename</replaceable></arg> |
67 | a8083063 | Iustin Pop | </cmdsynopsis> |
68 | a8083063 | Iustin Pop | |
69 | a8083063 | Iustin Pop | <para> |
70 | a8083063 | Iustin Pop | Adds the given node to the cluster. |
71 | a8083063 | Iustin Pop | </para> |
72 | a8083063 | Iustin Pop | |
73 | a8083063 | Iustin Pop | <para> |
74 | a8083063 | Iustin Pop | This command is used to join a new node to the cluster. You |
75 | a8083063 | Iustin Pop | will have to provide the password for root of the node to be |
76 | a8083063 | Iustin Pop | able to add the node in the cluster. The command needs to be |
77 | a8083063 | Iustin Pop | run on the ganeti master. |
78 | a8083063 | Iustin Pop | </para> |
79 | a8083063 | Iustin Pop | |
80 | a8083063 | Iustin Pop | <para> |
81 | a8083063 | Iustin Pop | Note that the command is potentially destructive, as it will |
82 | a8083063 | Iustin Pop | forcibly join the specified host the cluster, not paying |
83 | a8083063 | Iustin Pop | attention to its current status (it could be already in a |
84 | a8083063 | Iustin Pop | cluster, etc.) |
85 | a8083063 | Iustin Pop | </para> |
86 | a8083063 | Iustin Pop | |
87 | a8083063 | Iustin Pop | <para> |
88 | a8083063 | Iustin Pop | The <option>-s</option> is used in dual-home clusters and |
89 | a8083063 | Iustin Pop | specifies the new node's IP in the secondary network. See the |
90 | a8083063 | Iustin Pop | discussion in <citerefentry> |
91 | a8083063 | Iustin Pop | <refentrytitle>gnt-cluster</refentrytitle> |
92 | a8083063 | Iustin Pop | <manvolnum>8</manvolnum> </citerefentry> for more |
93 | a8083063 | Iustin Pop | informations. |
94 | a8083063 | Iustin Pop | </para> |
95 | a8083063 | Iustin Pop | |
96 | a8083063 | Iustin Pop | <para> |
97 | e7c6e02b | Michael Hanselmann | In case you're readding a node after hardware failure, you |
98 | e7c6e02b | Michael Hanselmann | can use the <option>--readd</option> parameter. |
99 | e7c6e02b | Michael Hanselmann | </para> |
100 | e7c6e02b | Michael Hanselmann | |
101 | e7c6e02b | Michael Hanselmann | <para> |
102 | a8083063 | Iustin Pop | Example: |
103 | a8083063 | Iustin Pop | <screen> |
104 | a8083063 | Iustin Pop | # gnt-node add node5.example.com |
105 | a8083063 | Iustin Pop | # gnt-node add -s 192.168.44.5 node5.example.com |
106 | a8083063 | Iustin Pop | </screen> |
107 | a8083063 | Iustin Pop | </para> |
108 | a8083063 | Iustin Pop | </refsect2> |
109 | a8083063 | Iustin Pop | |
110 | a8083063 | Iustin Pop | <refsect2> |
111 | cc425644 | Iustin Pop | <title>ADD-TAGS</title> |
112 | cc425644 | Iustin Pop | |
113 | cc425644 | Iustin Pop | <cmdsynopsis> |
114 | cc425644 | Iustin Pop | <command>add-tags</command> |
115 | 810c50b7 | Iustin Pop | <arg choice="opt">--from <replaceable>file</replaceable></arg> |
116 | cc425644 | Iustin Pop | <arg choice="req"><replaceable>nodename</replaceable></arg> |
117 | cc425644 | Iustin Pop | <arg choice="req" |
118 | cc425644 | Iustin Pop | rep="repeat"><replaceable>tag</replaceable></arg> |
119 | cc425644 | Iustin Pop | </cmdsynopsis> |
120 | cc425644 | Iustin Pop | |
121 | cc425644 | Iustin Pop | <para> |
122 | cc425644 | Iustin Pop | Add tags to the given node. If any of the tags contains |
123 | cc425644 | Iustin Pop | invalid characters, the entire operation will abort. |
124 | cc425644 | Iustin Pop | </para> |
125 | 810c50b7 | Iustin Pop | |
126 | 810c50b7 | Iustin Pop | <para> |
127 | 810c50b7 | Iustin Pop | If the <option>--from</option> option is given, the list of |
128 | 810c50b7 | Iustin Pop | tags will be extended with the contents of that file (each |
129 | 810c50b7 | Iustin Pop | line becomes a tag). In this case, there is not need to pass |
130 | 810c50b7 | Iustin Pop | tags on the command line (if you do, both sources will be |
131 | 810c50b7 | Iustin Pop | used). A file name of - will be interpreted as stdin. |
132 | 810c50b7 | Iustin Pop | </para> |
133 | cc425644 | Iustin Pop | </refsect2> |
134 | cc425644 | Iustin Pop | |
135 | cc425644 | Iustin Pop | <refsect2> |
136 | a5bc662a | Iustin Pop | <title>EVACUATE</title> |
137 | a5bc662a | Iustin Pop | |
138 | a5bc662a | Iustin Pop | <cmdsynopsis> |
139 | a5bc662a | Iustin Pop | <command>evacuate</command> |
140 | a5bc662a | Iustin Pop | <arg>-f</arg> |
141 | a5bc662a | Iustin Pop | <arg choice="req"><replaceable>source_node</replaceable></arg> |
142 | a5bc662a | Iustin Pop | <arg choice="req"><replaceable>destination_node</replaceable></arg> |
143 | a5bc662a | Iustin Pop | </cmdsynopsis> |
144 | a5bc662a | Iustin Pop | |
145 | a5bc662a | Iustin Pop | <para> |
146 | a5bc662a | Iustin Pop | This command will change the secondary node from the source |
147 | a5bc662a | Iustin Pop | node to the destination node for all instances having the |
148 | a5bc662a | Iustin Pop | source node as secondary. It works only for instances having |
149 | bd028152 | Iustin Pop | a drbd disk template. |
150 | a5bc662a | Iustin Pop | </para> |
151 | a5bc662a | Iustin Pop | |
152 | a5bc662a | Iustin Pop | <para> |
153 | a5bc662a | Iustin Pop | Example: |
154 | a5bc662a | Iustin Pop | <screen> |
155 | a5bc662a | Iustin Pop | # gnt-node evacuate node1.example.com node2.example.com |
156 | a5bc662a | Iustin Pop | </screen> |
157 | a5bc662a | Iustin Pop | </para> |
158 | a5bc662a | Iustin Pop | </refsect2> |
159 | a5bc662a | Iustin Pop | |
160 | a5bc662a | Iustin Pop | <refsect2> |
161 | c450e9b0 | Iustin Pop | <title>FAILOVER</title> |
162 | c450e9b0 | Iustin Pop | |
163 | c450e9b0 | Iustin Pop | <cmdsynopsis> |
164 | c450e9b0 | Iustin Pop | <command>failover</command> |
165 | c450e9b0 | Iustin Pop | <arg>-f</arg> |
166 | c450e9b0 | Iustin Pop | <arg>--ignore-consistency</arg> |
167 | c450e9b0 | Iustin Pop | <arg choice="req"><replaceable>node</replaceable></arg> |
168 | c450e9b0 | Iustin Pop | </cmdsynopsis> |
169 | c450e9b0 | Iustin Pop | |
170 | c450e9b0 | Iustin Pop | <para> |
171 | c450e9b0 | Iustin Pop | This command will fail over all instances having the given |
172 | c450e9b0 | Iustin Pop | node as primary to their secondary nodes. This works only for |
173 | bd028152 | Iustin Pop | instances having a drbd disk template. |
174 | c450e9b0 | Iustin Pop | </para> |
175 | c450e9b0 | Iustin Pop | |
176 | c450e9b0 | Iustin Pop | <para> |
177 | c450e9b0 | Iustin Pop | Normally the failover will check the consistency of the disks |
178 | c450e9b0 | Iustin Pop | before failing over the instance. If you are trying to migrate |
179 | c450e9b0 | Iustin Pop | instances off a dead node, this will fail. Use the |
180 | c450e9b0 | Iustin Pop | <option>--ignore-consistency</option> option for this purpose. |
181 | c450e9b0 | Iustin Pop | </para> |
182 | c450e9b0 | Iustin Pop | |
183 | c450e9b0 | Iustin Pop | <para> |
184 | c450e9b0 | Iustin Pop | Example: |
185 | c450e9b0 | Iustin Pop | <screen> |
186 | c450e9b0 | Iustin Pop | # gnt-node failover node1.example.com |
187 | c450e9b0 | Iustin Pop | </screen> |
188 | c450e9b0 | Iustin Pop | </para> |
189 | c450e9b0 | Iustin Pop | </refsect2> |
190 | c450e9b0 | Iustin Pop | |
191 | c450e9b0 | Iustin Pop | <refsect2> |
192 | a8083063 | Iustin Pop | <title>INFO</title> |
193 | a8083063 | Iustin Pop | |
194 | a8083063 | Iustin Pop | <cmdsynopsis> |
195 | a8083063 | Iustin Pop | <command>info</command> |
196 | a8083063 | Iustin Pop | <arg rep="repeat"><replaceable>node</replaceable></arg> |
197 | a8083063 | Iustin Pop | </cmdsynopsis> |
198 | a8083063 | Iustin Pop | |
199 | a8083063 | Iustin Pop | <para> |
200 | a8083063 | Iustin Pop | Show detailed information about the nodes in the cluster. If you |
201 | a8083063 | Iustin Pop | don't give any arguments, all nodes will be shows, otherwise the |
202 | a8083063 | Iustin Pop | output will be restricted to the given names. |
203 | a8083063 | Iustin Pop | </para> |
204 | a8083063 | Iustin Pop | </refsect2> |
205 | a8083063 | Iustin Pop | |
206 | a8083063 | Iustin Pop | <refsect2> |
207 | a8083063 | Iustin Pop | <title>LIST</title> |
208 | a8083063 | Iustin Pop | |
209 | a8083063 | Iustin Pop | <cmdsynopsis> |
210 | a8083063 | Iustin Pop | <command>list</command> |
211 | a8083063 | Iustin Pop | <arg>--no-headers</arg> |
212 | a8083063 | Iustin Pop | <arg>--separator=<replaceable>SEPARATOR</replaceable></arg> |
213 | 48c4dfa8 | Iustin Pop | <arg>-o <replaceable>[+]FIELD,...</replaceable></arg> |
214 | a8083063 | Iustin Pop | </cmdsynopsis> |
215 | a8083063 | Iustin Pop | |
216 | a8083063 | Iustin Pop | <para> |
217 | a8083063 | Iustin Pop | Lists the nodes in the cluster. If you give the |
218 | a8083063 | Iustin Pop | <option>--ip-info</option> option, the output contains just |
219 | a8083063 | Iustin Pop | the node name, primary ip and secondary ip. In case the |
220 | a8083063 | Iustin Pop | secondary ip is the same as the primary one, it will be listed |
221 | a8083063 | Iustin Pop | as <emphasis>"-"</emphasis>. |
222 | a8083063 | Iustin Pop | </para> |
223 | a8083063 | Iustin Pop | |
224 | a8083063 | Iustin Pop | <para> |
225 | a8083063 | Iustin Pop | The <option>--no-headers</option> option will skip the initial |
226 | a8083063 | Iustin Pop | header line. The <option>--separator</option> option takes an |
227 | a8083063 | Iustin Pop | argument which denotes what will be used between the output |
228 | a8083063 | Iustin Pop | fields. Both these options are to help scripting. |
229 | a8083063 | Iustin Pop | </para> |
230 | a8083063 | Iustin Pop | |
231 | a8083063 | Iustin Pop | <para> |
232 | a8083063 | Iustin Pop | The <option>-o</option> option takes a comma-separated list of |
233 | a8083063 | Iustin Pop | output fields. The available fields and their meaning are: |
234 | a8083063 | Iustin Pop | <variablelist> |
235 | a8083063 | Iustin Pop | <varlistentry> |
236 | a8083063 | Iustin Pop | <term>name</term> |
237 | a8083063 | Iustin Pop | <listitem> |
238 | a8083063 | Iustin Pop | <simpara>the node name</simpara> |
239 | a8083063 | Iustin Pop | </listitem> |
240 | a8083063 | Iustin Pop | </varlistentry> |
241 | a8083063 | Iustin Pop | <varlistentry> |
242 | d8a4b51d | Iustin Pop | <term>pinst_cnt</term> |
243 | a8083063 | Iustin Pop | <listitem> |
244 | a8083063 | Iustin Pop | <simpara>the number of instances having this node as |
245 | a8083063 | Iustin Pop | primary</simpara> |
246 | a8083063 | Iustin Pop | </listitem> |
247 | a8083063 | Iustin Pop | </varlistentry> |
248 | a8083063 | Iustin Pop | <varlistentry> |
249 | d8a4b51d | Iustin Pop | <term>pinst_list</term> |
250 | d8a4b51d | Iustin Pop | <listitem> |
251 | d8a4b51d | Iustin Pop | <simpara>the list of instances having this node as |
252 | d8a4b51d | Iustin Pop | primary, comma separated</simpara> |
253 | d8a4b51d | Iustin Pop | </listitem> |
254 | d8a4b51d | Iustin Pop | </varlistentry> |
255 | d8a4b51d | Iustin Pop | <varlistentry> |
256 | d8a4b51d | Iustin Pop | <term>sinst_cnt</term> |
257 | a8083063 | Iustin Pop | <listitem> |
258 | a8083063 | Iustin Pop | <simpara>the number of instances having this node as a |
259 | a8083063 | Iustin Pop | secondary node</simpara> |
260 | a8083063 | Iustin Pop | </listitem> |
261 | a8083063 | Iustin Pop | </varlistentry> |
262 | a8083063 | Iustin Pop | <varlistentry> |
263 | d8a4b51d | Iustin Pop | <term>sinst_list</term> |
264 | d8a4b51d | Iustin Pop | <listitem> |
265 | d8a4b51d | Iustin Pop | <simpara>the list of instances having this node as a |
266 | d8a4b51d | Iustin Pop | secondary node, comma separated</simpara> |
267 | d8a4b51d | Iustin Pop | </listitem> |
268 | d8a4b51d | Iustin Pop | </varlistentry> |
269 | d8a4b51d | Iustin Pop | <varlistentry> |
270 | a8083063 | Iustin Pop | <term>pip</term> |
271 | a8083063 | Iustin Pop | <listitem> |
272 | a8083063 | Iustin Pop | <simpara>the primary ip of this node (used for cluster |
273 | a8083063 | Iustin Pop | communication)</simpara> |
274 | a8083063 | Iustin Pop | </listitem> |
275 | a8083063 | Iustin Pop | </varlistentry> |
276 | a8083063 | Iustin Pop | <varlistentry> |
277 | a8083063 | Iustin Pop | <term>sip</term> |
278 | a8083063 | Iustin Pop | <listitem> |
279 | a8083063 | Iustin Pop | <simpara> |
280 | a8083063 | Iustin Pop | the secondary ip of this node (used for data |
281 | a8083063 | Iustin Pop | replication in dual-ip clusters, see <citerefentry> |
282 | a8083063 | Iustin Pop | <refentrytitle>gnt-cluster</refentrytitle> |
283 | a8083063 | Iustin Pop | <manvolnum>8</manvolnum> |
284 | a8083063 | Iustin Pop | </citerefentry> |
285 | a8083063 | Iustin Pop | </simpara> |
286 | a8083063 | Iustin Pop | </listitem> |
287 | a8083063 | Iustin Pop | </varlistentry> |
288 | a8083063 | Iustin Pop | <varlistentry> |
289 | a8083063 | Iustin Pop | <term>dtotal</term> |
290 | a8083063 | Iustin Pop | <listitem> |
291 | a8083063 | Iustin Pop | <simpara>total disk space in the volume group used for |
292 | a8083063 | Iustin Pop | instance disk allocations</simpara> |
293 | a8083063 | Iustin Pop | </listitem> |
294 | a8083063 | Iustin Pop | </varlistentry> |
295 | a8083063 | Iustin Pop | <varlistentry> |
296 | a8083063 | Iustin Pop | <term>dfree</term> |
297 | a8083063 | Iustin Pop | <listitem> |
298 | a8083063 | Iustin Pop | <simpara>available disk space in the volume group</simpara> |
299 | a8083063 | Iustin Pop | </listitem> |
300 | a8083063 | Iustin Pop | </varlistentry> |
301 | a8083063 | Iustin Pop | <varlistentry> |
302 | a8083063 | Iustin Pop | <term>mtotal</term> |
303 | a8083063 | Iustin Pop | <listitem> |
304 | a8083063 | Iustin Pop | <simpara>total memory on the physical node</simpara> |
305 | a8083063 | Iustin Pop | </listitem> |
306 | a8083063 | Iustin Pop | </varlistentry> |
307 | a8083063 | Iustin Pop | <varlistentry> |
308 | a8083063 | Iustin Pop | <term>mnode</term> |
309 | a8083063 | Iustin Pop | <listitem> |
310 | a8083063 | Iustin Pop | <simpara>the memory used by the node itself</simpara> |
311 | a8083063 | Iustin Pop | </listitem> |
312 | a8083063 | Iustin Pop | </varlistentry> |
313 | a8083063 | Iustin Pop | <varlistentry> |
314 | a8083063 | Iustin Pop | <term>mfree</term> |
315 | a8083063 | Iustin Pop | <listitem> |
316 | a8083063 | Iustin Pop | <simpara>memory available for instance |
317 | a8083063 | Iustin Pop | allocations</simpara> |
318 | a8083063 | Iustin Pop | </listitem> |
319 | a8083063 | Iustin Pop | </varlistentry> |
320 | d8a4b51d | Iustin Pop | <varlistentry> |
321 | d8a4b51d | Iustin Pop | <term>bootid</term> |
322 | d8a4b51d | Iustin Pop | <listitem> |
323 | d8a4b51d | Iustin Pop | <simpara>the node bootid value; this is a linux specific |
324 | d8a4b51d | Iustin Pop | feature that assigns a new UUID to the node at each boot |
325 | d8a4b51d | Iustin Pop | and can be use to detect node reboots (by tracking |
326 | d8a4b51d | Iustin Pop | changes in this value)</simpara> |
327 | d8a4b51d | Iustin Pop | </listitem> |
328 | d8a4b51d | Iustin Pop | </varlistentry> |
329 | 130a6a6f | Iustin Pop | <varlistentry> |
330 | 130a6a6f | Iustin Pop | <term>tags</term> |
331 | 130a6a6f | Iustin Pop | <listitem> |
332 | 130a6a6f | Iustin Pop | <simpara>comma-separated list of the node's |
333 | 130a6a6f | Iustin Pop | tags</simpara> |
334 | 130a6a6f | Iustin Pop | </listitem> |
335 | 130a6a6f | Iustin Pop | </varlistentry> |
336 | 38d7239a | Iustin Pop | <varlistentry> |
337 | 38d7239a | Iustin Pop | <term>serial_no</term> |
338 | 38d7239a | Iustin Pop | <listitem> |
339 | 38d7239a | Iustin Pop | <simpara>the so called 'serial number' of the instance; |
340 | 38d7239a | Iustin Pop | this is a numeric field that is incremented each time |
341 | 38d7239a | Iustin Pop | the instance is modified, and it can be used to detect |
342 | 38d7239a | Iustin Pop | modifications</simpara> |
343 | 38d7239a | Iustin Pop | </listitem> |
344 | 38d7239a | Iustin Pop | </varlistentry> |
345 | a8083063 | Iustin Pop | </variablelist> |
346 | a8083063 | Iustin Pop | </para> |
347 | a8083063 | Iustin Pop | |
348 | a8083063 | Iustin Pop | <para> |
349 | 48c4dfa8 | Iustin Pop | If the value of the option starts with the character |
350 | 48c4dfa8 | Iustin Pop | <constant>+</constant>, the new fields will be added to the |
351 | 48c4dfa8 | Iustin Pop | default list. This allows to quickly see the default list plus |
352 | 48c4dfa8 | Iustin Pop | a few other fields, instead of retyping the entire list of |
353 | 48c4dfa8 | Iustin Pop | fields. |
354 | 48c4dfa8 | Iustin Pop | </para> |
355 | 48c4dfa8 | Iustin Pop | |
356 | 48c4dfa8 | Iustin Pop | <para> |
357 | a8083063 | Iustin Pop | Note that some of this fields are known from the configuration |
358 | a8083063 | Iustin Pop | of the cluster (<simplelist type="inline"> |
359 | a8083063 | Iustin Pop | <member>name</member> <member>pinst</member> |
360 | a8083063 | Iustin Pop | <member>sinst</member> <member>pip</member> |
361 | a8083063 | Iustin Pop | <member>sip</member> </simplelist> and thus the master does |
362 | a8083063 | Iustin Pop | not need to contact the node for this data (making the listing |
363 | a8083063 | Iustin Pop | fast if only fields from this set are selected), whereas the |
364 | a8083063 | Iustin Pop | other fields are "live" fields and we need to make a query to |
365 | a8083063 | Iustin Pop | the cluster nodes. |
366 | a8083063 | Iustin Pop | </para> |
367 | a8083063 | Iustin Pop | |
368 | a8083063 | Iustin Pop | <para> |
369 | a8083063 | Iustin Pop | Depending on the virtualization type and implementation |
370 | a8083063 | Iustin Pop | details, the mtotal, mnode and mfree may have slighly varying |
371 | a8083063 | Iustin Pop | meanings. For example, some solutions share the node memory |
372 | a8083063 | Iustin Pop | with the pool of memory used for instances |
373 | a8083063 | Iustin Pop | (<acronym>UML</acronym>), whereas others have separate memory |
374 | a8083063 | Iustin Pop | for the node and for the instances (Xen). |
375 | a8083063 | Iustin Pop | </para> |
376 | a8083063 | Iustin Pop | </refsect2> |
377 | a8083063 | Iustin Pop | |
378 | a8083063 | Iustin Pop | <refsect2> |
379 | cc425644 | Iustin Pop | <title>LIST-TAGS</title> |
380 | cc425644 | Iustin Pop | |
381 | cc425644 | Iustin Pop | <cmdsynopsis> |
382 | cc425644 | Iustin Pop | <command>list-tags</command> |
383 | cc425644 | Iustin Pop | <arg choice="req"><replaceable>nodename</replaceable></arg> |
384 | cc425644 | Iustin Pop | </cmdsynopsis> |
385 | cc425644 | Iustin Pop | |
386 | cc425644 | Iustin Pop | <para>List the tags of the given node.</para> |
387 | cc425644 | Iustin Pop | </refsect2> |
388 | cc425644 | Iustin Pop | |
389 | cc425644 | Iustin Pop | <refsect2> |
390 | a8083063 | Iustin Pop | <title>REMOVE</title> |
391 | a8083063 | Iustin Pop | |
392 | a8083063 | Iustin Pop | <cmdsynopsis> |
393 | a8083063 | Iustin Pop | <command>remove</command> |
394 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>nodename</replaceable></arg> |
395 | a8083063 | Iustin Pop | </cmdsynopsis> |
396 | a8083063 | Iustin Pop | |
397 | a8083063 | Iustin Pop | <para> |
398 | a8083063 | Iustin Pop | Removes a node from the cluster. Instances must be removed or |
399 | a8083063 | Iustin Pop | migrated to another cluster before. |
400 | a8083063 | Iustin Pop | </para> |
401 | a8083063 | Iustin Pop | |
402 | a8083063 | Iustin Pop | <para> |
403 | a8083063 | Iustin Pop | Example: |
404 | a8083063 | Iustin Pop | <screen> |
405 | a8083063 | Iustin Pop | # gnt-node remove node5.example.com |
406 | a8083063 | Iustin Pop | </screen> |
407 | a8083063 | Iustin Pop | </para> |
408 | a8083063 | Iustin Pop | </refsect2> |
409 | a8083063 | Iustin Pop | |
410 | dcb93971 | Michael Hanselmann | <refsect2> |
411 | cc425644 | Iustin Pop | <title>REMOVE-TAGS</title> |
412 | cc425644 | Iustin Pop | <cmdsynopsis> |
413 | cc425644 | Iustin Pop | <command>remove-tags</command> |
414 | 810c50b7 | Iustin Pop | <arg choice="opt">--from <replaceable>file</replaceable></arg> |
415 | cc425644 | Iustin Pop | <arg choice="req"><replaceable>nodename</replaceable></arg> |
416 | cc425644 | Iustin Pop | <arg choice="req" |
417 | cc425644 | Iustin Pop | rep="repeat"><replaceable>tag</replaceable></arg> |
418 | cc425644 | Iustin Pop | </cmdsynopsis> |
419 | cc425644 | Iustin Pop | |
420 | cc425644 | Iustin Pop | <para> |
421 | cc425644 | Iustin Pop | Remove tags from the given node. If any of the tags are not |
422 | cc425644 | Iustin Pop | existing on the node, the entire operation will abort. |
423 | cc425644 | Iustin Pop | </para> |
424 | 810c50b7 | Iustin Pop | |
425 | 810c50b7 | Iustin Pop | <para> |
426 | 810c50b7 | Iustin Pop | If the <option>--from</option> option is given, the list of |
427 | 810c50b7 | Iustin Pop | tags will be extended with the contents of that file (each |
428 | 810c50b7 | Iustin Pop | line becomes a tag). In this case, there is not need to pass |
429 | 810c50b7 | Iustin Pop | tags on the command line (if you do, both sources will be |
430 | 810c50b7 | Iustin Pop | used). A file name of - will be interpreted as stdin. |
431 | 810c50b7 | Iustin Pop | </para> |
432 | cc425644 | Iustin Pop | </refsect2> |
433 | cc425644 | Iustin Pop | |
434 | cc425644 | Iustin Pop | <refsect2> |
435 | dcb93971 | Michael Hanselmann | <title>VOLUMES</title> |
436 | dcb93971 | Michael Hanselmann | |
437 | dcb93971 | Michael Hanselmann | <cmdsynopsis> |
438 | dcb93971 | Michael Hanselmann | <command>volumes</command> |
439 | f69dab6d | Iustin Pop | <arg>--no-headers</arg> |
440 | f69dab6d | Iustin Pop | <arg>--human-readable</arg> |
441 | f69dab6d | Iustin Pop | <arg>--separator=<replaceable>SEPARATOR</replaceable></arg> |
442 | f69dab6d | Iustin Pop | <arg>--output=<replaceable>FIELDS</replaceable></arg> |
443 | f69dab6d | Iustin Pop | <sbr> |
444 | dcb93971 | Michael Hanselmann | <arg rep="repeat"><replaceable>node</replaceable></arg> |
445 | dcb93971 | Michael Hanselmann | </cmdsynopsis> |
446 | dcb93971 | Michael Hanselmann | |
447 | dcb93971 | Michael Hanselmann | <para> |
448 | dcb93971 | Michael Hanselmann | Lists all logical volumes and their physical disks from the node(s) |
449 | dcb93971 | Michael Hanselmann | provided. |
450 | dcb93971 | Michael Hanselmann | </para> |
451 | dcb93971 | Michael Hanselmann | |
452 | dcb93971 | Michael Hanselmann | <para> |
453 | f69dab6d | Iustin Pop | The <option>--no-headers</option> option will skip the initial |
454 | f69dab6d | Iustin Pop | header line. The <option>--separator</option> option takes an |
455 | f69dab6d | Iustin Pop | argument which denotes what will be used between the output |
456 | f69dab6d | Iustin Pop | fields. Both these options are to help scripting. |
457 | f69dab6d | Iustin Pop | </para> |
458 | f69dab6d | Iustin Pop | |
459 | f69dab6d | Iustin Pop | <para> |
460 | f69dab6d | Iustin Pop | The <option>-o</option> option takes a comma-separated list of |
461 | f69dab6d | Iustin Pop | output fields. The available fields and their meaning are: |
462 | f69dab6d | Iustin Pop | <variablelist> |
463 | f69dab6d | Iustin Pop | <varlistentry> |
464 | f69dab6d | Iustin Pop | <term>node</term> |
465 | f69dab6d | Iustin Pop | <listitem> |
466 | f69dab6d | Iustin Pop | <simpara>the node name on which the volume exists</simpara> |
467 | f69dab6d | Iustin Pop | </listitem> |
468 | f69dab6d | Iustin Pop | </varlistentry> |
469 | f69dab6d | Iustin Pop | <varlistentry> |
470 | f69dab6d | Iustin Pop | <term>phys</term> |
471 | f69dab6d | Iustin Pop | <listitem> |
472 | f69dab6d | Iustin Pop | <simpara>the physical drive (on which the LVM physical |
473 | f69dab6d | Iustin Pop | volume lives)</simpara> |
474 | f69dab6d | Iustin Pop | </listitem> |
475 | f69dab6d | Iustin Pop | </varlistentry> |
476 | f69dab6d | Iustin Pop | <varlistentry> |
477 | f69dab6d | Iustin Pop | <term>vg</term> |
478 | f69dab6d | Iustin Pop | <listitem> |
479 | f69dab6d | Iustin Pop | <simpara>the volume group name</simpara> |
480 | f69dab6d | Iustin Pop | </listitem> |
481 | f69dab6d | Iustin Pop | </varlistentry> |
482 | f69dab6d | Iustin Pop | <varlistentry> |
483 | f69dab6d | Iustin Pop | <term>name</term> |
484 | f69dab6d | Iustin Pop | <listitem> |
485 | f69dab6d | Iustin Pop | <simpara>the logical volume name</simpara> |
486 | f69dab6d | Iustin Pop | </listitem> |
487 | f69dab6d | Iustin Pop | </varlistentry> |
488 | f69dab6d | Iustin Pop | <varlistentry> |
489 | f69dab6d | Iustin Pop | <term>size</term> |
490 | f69dab6d | Iustin Pop | <listitem> |
491 | f69dab6d | Iustin Pop | <simpara>the logical volume size</simpara> |
492 | f69dab6d | Iustin Pop | </listitem> |
493 | f69dab6d | Iustin Pop | </varlistentry> |
494 | f69dab6d | Iustin Pop | <varlistentry> |
495 | f69dab6d | Iustin Pop | <term>instance</term> |
496 | f69dab6d | Iustin Pop | <listitem> |
497 | f69dab6d | Iustin Pop | <simpara>The name of the instance to which this volume |
498 | f69dab6d | Iustin Pop | belongs, or (in case it's an orphan volume) the |
499 | f69dab6d | Iustin Pop | character <quote>-</quote></simpara> |
500 | f69dab6d | Iustin Pop | </listitem> |
501 | f69dab6d | Iustin Pop | </varlistentry> |
502 | f69dab6d | Iustin Pop | </variablelist> |
503 | f69dab6d | Iustin Pop | </para> |
504 | f69dab6d | Iustin Pop | |
505 | f69dab6d | Iustin Pop | <para> |
506 | dcb93971 | Michael Hanselmann | Example: |
507 | dcb93971 | Michael Hanselmann | <screen> |
508 | dcb93971 | Michael Hanselmann | # gnt-node volumes node5.example.com |
509 | dcb93971 | Michael Hanselmann | Node PhysDev VG Name Size Instance |
510 | dcb93971 | Michael Hanselmann | node1.example.com /dev/hdc1 xenvg instance1.example.com-sda_11000.meta 128 instance1.example.com |
511 | dcb93971 | Michael Hanselmann | node1.example.com /dev/hdc1 xenvg instance1.example.com-sda_11001.data 256 instance1.example.com |
512 | dcb93971 | Michael Hanselmann | </screen> |
513 | dcb93971 | Michael Hanselmann | </para> |
514 | dcb93971 | Michael Hanselmann | </refsect2> |
515 | dcb93971 | Michael Hanselmann | |
516 | a8083063 | Iustin Pop | </refsect1> |
517 | a8083063 | Iustin Pop | |
518 | a8083063 | Iustin Pop | &footer; |
519 | a8083063 | Iustin Pop | |
520 | a8083063 | Iustin Pop | </refentry> |
521 | a8083063 | Iustin Pop | |
522 | a8083063 | Iustin Pop | <!-- Keep this comment at the end of the file |
523 | a8083063 | Iustin Pop | Local variables: |
524 | a8083063 | Iustin Pop | mode: sgml |
525 | a8083063 | Iustin Pop | sgml-omittag:t |
526 | a8083063 | Iustin Pop | sgml-shorttag:t |
527 | a8083063 | Iustin Pop | sgml-minimize-attributes:nil |
528 | a8083063 | Iustin Pop | sgml-always-quote-attributes:t |
529 | a8083063 | Iustin Pop | sgml-indent-step:2 |
530 | a8083063 | Iustin Pop | sgml-indent-data:t |
531 | a8083063 | Iustin Pop | sgml-parent-document:nil |
532 | a8083063 | Iustin Pop | sgml-default-dtd-file:nil |
533 | a8083063 | Iustin Pop | sgml-exposed-tags:nil |
534 | a8083063 | Iustin Pop | sgml-local-catalogs:nil |
535 | a8083063 | Iustin Pop | sgml-local-ecat-files:nil |
536 | a8083063 | Iustin Pop | End: |
537 | a8083063 | Iustin Pop | --> |