root / man / gnt-node.sgml @ 3fc175f0
History | View | Annotate | Download (16.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 | 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 | a8083063 | Iustin Pop | </variablelist> |
337 | a8083063 | Iustin Pop | </para> |
338 | a8083063 | Iustin Pop | |
339 | a8083063 | Iustin Pop | <para> |
340 | 48c4dfa8 | Iustin Pop | If the value of the option starts with the character |
341 | 48c4dfa8 | Iustin Pop | <constant>+</constant>, the new fields will be added to the |
342 | 48c4dfa8 | Iustin Pop | default list. This allows to quickly see the default list plus |
343 | 48c4dfa8 | Iustin Pop | a few other fields, instead of retyping the entire list of |
344 | 48c4dfa8 | Iustin Pop | fields. |
345 | 48c4dfa8 | Iustin Pop | </para> |
346 | 48c4dfa8 | Iustin Pop | |
347 | 48c4dfa8 | Iustin Pop | <para> |
348 | a8083063 | Iustin Pop | Note that some of this fields are known from the configuration |
349 | a8083063 | Iustin Pop | of the cluster (<simplelist type="inline"> |
350 | a8083063 | Iustin Pop | <member>name</member> <member>pinst</member> |
351 | a8083063 | Iustin Pop | <member>sinst</member> <member>pip</member> |
352 | a8083063 | Iustin Pop | <member>sip</member> </simplelist> and thus the master does |
353 | a8083063 | Iustin Pop | not need to contact the node for this data (making the listing |
354 | a8083063 | Iustin Pop | fast if only fields from this set are selected), whereas the |
355 | a8083063 | Iustin Pop | other fields are "live" fields and we need to make a query to |
356 | a8083063 | Iustin Pop | the cluster nodes. |
357 | a8083063 | Iustin Pop | </para> |
358 | a8083063 | Iustin Pop | |
359 | a8083063 | Iustin Pop | <para> |
360 | a8083063 | Iustin Pop | Depending on the virtualization type and implementation |
361 | a8083063 | Iustin Pop | details, the mtotal, mnode and mfree may have slighly varying |
362 | a8083063 | Iustin Pop | meanings. For example, some solutions share the node memory |
363 | a8083063 | Iustin Pop | with the pool of memory used for instances |
364 | a8083063 | Iustin Pop | (<acronym>UML</acronym>), whereas others have separate memory |
365 | a8083063 | Iustin Pop | for the node and for the instances (Xen). |
366 | a8083063 | Iustin Pop | </para> |
367 | a8083063 | Iustin Pop | </refsect2> |
368 | a8083063 | Iustin Pop | |
369 | a8083063 | Iustin Pop | <refsect2> |
370 | cc425644 | Iustin Pop | <title>LIST-TAGS</title> |
371 | cc425644 | Iustin Pop | |
372 | cc425644 | Iustin Pop | <cmdsynopsis> |
373 | cc425644 | Iustin Pop | <command>list-tags</command> |
374 | cc425644 | Iustin Pop | <arg choice="req"><replaceable>nodename</replaceable></arg> |
375 | cc425644 | Iustin Pop | </cmdsynopsis> |
376 | cc425644 | Iustin Pop | |
377 | cc425644 | Iustin Pop | <para>List the tags of the given node.</para> |
378 | cc425644 | Iustin Pop | </refsect2> |
379 | cc425644 | Iustin Pop | |
380 | cc425644 | Iustin Pop | <refsect2> |
381 | a8083063 | Iustin Pop | <title>REMOVE</title> |
382 | a8083063 | Iustin Pop | |
383 | a8083063 | Iustin Pop | <cmdsynopsis> |
384 | a8083063 | Iustin Pop | <command>remove</command> |
385 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>nodename</replaceable></arg> |
386 | a8083063 | Iustin Pop | </cmdsynopsis> |
387 | a8083063 | Iustin Pop | |
388 | a8083063 | Iustin Pop | <para> |
389 | a8083063 | Iustin Pop | Removes a node from the cluster. Instances must be removed or |
390 | a8083063 | Iustin Pop | migrated to another cluster before. |
391 | a8083063 | Iustin Pop | </para> |
392 | a8083063 | Iustin Pop | |
393 | a8083063 | Iustin Pop | <para> |
394 | a8083063 | Iustin Pop | Example: |
395 | a8083063 | Iustin Pop | <screen> |
396 | a8083063 | Iustin Pop | # gnt-node remove node5.example.com |
397 | a8083063 | Iustin Pop | </screen> |
398 | a8083063 | Iustin Pop | </para> |
399 | a8083063 | Iustin Pop | </refsect2> |
400 | a8083063 | Iustin Pop | |
401 | dcb93971 | Michael Hanselmann | <refsect2> |
402 | cc425644 | Iustin Pop | <title>REMOVE-TAGS</title> |
403 | cc425644 | Iustin Pop | <cmdsynopsis> |
404 | cc425644 | Iustin Pop | <command>remove-tags</command> |
405 | 810c50b7 | Iustin Pop | <arg choice="opt">--from <replaceable>file</replaceable></arg> |
406 | cc425644 | Iustin Pop | <arg choice="req"><replaceable>nodename</replaceable></arg> |
407 | cc425644 | Iustin Pop | <arg choice="req" |
408 | cc425644 | Iustin Pop | rep="repeat"><replaceable>tag</replaceable></arg> |
409 | cc425644 | Iustin Pop | </cmdsynopsis> |
410 | cc425644 | Iustin Pop | |
411 | cc425644 | Iustin Pop | <para> |
412 | cc425644 | Iustin Pop | Remove tags from the given node. If any of the tags are not |
413 | cc425644 | Iustin Pop | existing on the node, the entire operation will abort. |
414 | cc425644 | Iustin Pop | </para> |
415 | 810c50b7 | Iustin Pop | |
416 | 810c50b7 | Iustin Pop | <para> |
417 | 810c50b7 | Iustin Pop | If the <option>--from</option> option is given, the list of |
418 | 810c50b7 | Iustin Pop | tags will be extended with the contents of that file (each |
419 | 810c50b7 | Iustin Pop | line becomes a tag). In this case, there is not need to pass |
420 | 810c50b7 | Iustin Pop | tags on the command line (if you do, both sources will be |
421 | 810c50b7 | Iustin Pop | used). A file name of - will be interpreted as stdin. |
422 | 810c50b7 | Iustin Pop | </para> |
423 | cc425644 | Iustin Pop | </refsect2> |
424 | cc425644 | Iustin Pop | |
425 | cc425644 | Iustin Pop | <refsect2> |
426 | dcb93971 | Michael Hanselmann | <title>VOLUMES</title> |
427 | dcb93971 | Michael Hanselmann | |
428 | dcb93971 | Michael Hanselmann | <cmdsynopsis> |
429 | dcb93971 | Michael Hanselmann | <command>volumes</command> |
430 | f69dab6d | Iustin Pop | <arg>--no-headers</arg> |
431 | f69dab6d | Iustin Pop | <arg>--human-readable</arg> |
432 | f69dab6d | Iustin Pop | <arg>--separator=<replaceable>SEPARATOR</replaceable></arg> |
433 | f69dab6d | Iustin Pop | <arg>--output=<replaceable>FIELDS</replaceable></arg> |
434 | f69dab6d | Iustin Pop | <sbr> |
435 | dcb93971 | Michael Hanselmann | <arg rep="repeat"><replaceable>node</replaceable></arg> |
436 | dcb93971 | Michael Hanselmann | </cmdsynopsis> |
437 | dcb93971 | Michael Hanselmann | |
438 | dcb93971 | Michael Hanselmann | <para> |
439 | dcb93971 | Michael Hanselmann | Lists all logical volumes and their physical disks from the node(s) |
440 | dcb93971 | Michael Hanselmann | provided. |
441 | dcb93971 | Michael Hanselmann | </para> |
442 | dcb93971 | Michael Hanselmann | |
443 | dcb93971 | Michael Hanselmann | <para> |
444 | f69dab6d | Iustin Pop | The <option>--no-headers</option> option will skip the initial |
445 | f69dab6d | Iustin Pop | header line. The <option>--separator</option> option takes an |
446 | f69dab6d | Iustin Pop | argument which denotes what will be used between the output |
447 | f69dab6d | Iustin Pop | fields. Both these options are to help scripting. |
448 | f69dab6d | Iustin Pop | </para> |
449 | f69dab6d | Iustin Pop | |
450 | f69dab6d | Iustin Pop | <para> |
451 | f69dab6d | Iustin Pop | The <option>-o</option> option takes a comma-separated list of |
452 | f69dab6d | Iustin Pop | output fields. The available fields and their meaning are: |
453 | f69dab6d | Iustin Pop | <variablelist> |
454 | f69dab6d | Iustin Pop | <varlistentry> |
455 | f69dab6d | Iustin Pop | <term>node</term> |
456 | f69dab6d | Iustin Pop | <listitem> |
457 | f69dab6d | Iustin Pop | <simpara>the node name on which the volume exists</simpara> |
458 | f69dab6d | Iustin Pop | </listitem> |
459 | f69dab6d | Iustin Pop | </varlistentry> |
460 | f69dab6d | Iustin Pop | <varlistentry> |
461 | f69dab6d | Iustin Pop | <term>phys</term> |
462 | f69dab6d | Iustin Pop | <listitem> |
463 | f69dab6d | Iustin Pop | <simpara>the physical drive (on which the LVM physical |
464 | f69dab6d | Iustin Pop | volume lives)</simpara> |
465 | f69dab6d | Iustin Pop | </listitem> |
466 | f69dab6d | Iustin Pop | </varlistentry> |
467 | f69dab6d | Iustin Pop | <varlistentry> |
468 | f69dab6d | Iustin Pop | <term>vg</term> |
469 | f69dab6d | Iustin Pop | <listitem> |
470 | f69dab6d | Iustin Pop | <simpara>the volume group name</simpara> |
471 | f69dab6d | Iustin Pop | </listitem> |
472 | f69dab6d | Iustin Pop | </varlistentry> |
473 | f69dab6d | Iustin Pop | <varlistentry> |
474 | f69dab6d | Iustin Pop | <term>name</term> |
475 | f69dab6d | Iustin Pop | <listitem> |
476 | f69dab6d | Iustin Pop | <simpara>the logical volume name</simpara> |
477 | f69dab6d | Iustin Pop | </listitem> |
478 | f69dab6d | Iustin Pop | </varlistentry> |
479 | f69dab6d | Iustin Pop | <varlistentry> |
480 | f69dab6d | Iustin Pop | <term>size</term> |
481 | f69dab6d | Iustin Pop | <listitem> |
482 | f69dab6d | Iustin Pop | <simpara>the logical volume size</simpara> |
483 | f69dab6d | Iustin Pop | </listitem> |
484 | f69dab6d | Iustin Pop | </varlistentry> |
485 | f69dab6d | Iustin Pop | <varlistentry> |
486 | f69dab6d | Iustin Pop | <term>instance</term> |
487 | f69dab6d | Iustin Pop | <listitem> |
488 | f69dab6d | Iustin Pop | <simpara>The name of the instance to which this volume |
489 | f69dab6d | Iustin Pop | belongs, or (in case it's an orphan volume) the |
490 | f69dab6d | Iustin Pop | character <quote>-</quote></simpara> |
491 | f69dab6d | Iustin Pop | </listitem> |
492 | f69dab6d | Iustin Pop | </varlistentry> |
493 | f69dab6d | Iustin Pop | </variablelist> |
494 | f69dab6d | Iustin Pop | </para> |
495 | f69dab6d | Iustin Pop | |
496 | f69dab6d | Iustin Pop | <para> |
497 | dcb93971 | Michael Hanselmann | Example: |
498 | dcb93971 | Michael Hanselmann | <screen> |
499 | dcb93971 | Michael Hanselmann | # gnt-node volumes node5.example.com |
500 | dcb93971 | Michael Hanselmann | Node PhysDev VG Name Size Instance |
501 | dcb93971 | Michael Hanselmann | node1.example.com /dev/hdc1 xenvg instance1.example.com-sda_11000.meta 128 instance1.example.com |
502 | dcb93971 | Michael Hanselmann | node1.example.com /dev/hdc1 xenvg instance1.example.com-sda_11001.data 256 instance1.example.com |
503 | dcb93971 | Michael Hanselmann | </screen> |
504 | dcb93971 | Michael Hanselmann | </para> |
505 | dcb93971 | Michael Hanselmann | </refsect2> |
506 | dcb93971 | Michael Hanselmann | |
507 | a8083063 | Iustin Pop | </refsect1> |
508 | a8083063 | Iustin Pop | |
509 | a8083063 | Iustin Pop | &footer; |
510 | a8083063 | Iustin Pop | |
511 | a8083063 | Iustin Pop | </refentry> |
512 | a8083063 | Iustin Pop | |
513 | a8083063 | Iustin Pop | <!-- Keep this comment at the end of the file |
514 | a8083063 | Iustin Pop | Local variables: |
515 | a8083063 | Iustin Pop | mode: sgml |
516 | a8083063 | Iustin Pop | sgml-omittag:t |
517 | a8083063 | Iustin Pop | sgml-shorttag:t |
518 | a8083063 | Iustin Pop | sgml-minimize-attributes:nil |
519 | a8083063 | Iustin Pop | sgml-always-quote-attributes:t |
520 | a8083063 | Iustin Pop | sgml-indent-step:2 |
521 | a8083063 | Iustin Pop | sgml-indent-data:t |
522 | a8083063 | Iustin Pop | sgml-parent-document:nil |
523 | a8083063 | Iustin Pop | sgml-default-dtd-file:nil |
524 | a8083063 | Iustin Pop | sgml-exposed-tags:nil |
525 | a8083063 | Iustin Pop | sgml-local-catalogs:nil |
526 | a8083063 | Iustin Pop | sgml-local-ecat-files:nil |
527 | a8083063 | Iustin Pop | End: |
528 | a8083063 | Iustin Pop | --> |