root / man / gnt-instance.sgml @ 38d7239a
History | View | Annotate | Download (47.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 | a53a1b18 | Michael Hanselmann | <!ENTITY dhdate "<date>May 29, 2008</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-instance</refentrytitle>"> |
10 | a8083063 | Iustin Pop | <!ENTITY dhpackage "gnt-instance"> |
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 | a53a1b18 | 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>ganeti instance 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 instance |
52 | a8083063 | Iustin Pop | administration 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>Creation/removal/querying</title> |
61 | a8083063 | Iustin Pop | |
62 | a8083063 | Iustin Pop | <refsect3> |
63 | a8083063 | Iustin Pop | <title>ADD</title> |
64 | a8083063 | Iustin Pop | <cmdsynopsis> |
65 | a8083063 | Iustin Pop | <command>add</command> |
66 | a8083063 | Iustin Pop | <arg>-s <replaceable>disksize</replaceable></arg> |
67 | b9ac33e9 | Iustin Pop | <arg>--swap-size <replaceable>disksize</replaceable></arg> |
68 | a8083063 | Iustin Pop | <arg>-m <replaceable>memsize</replaceable></arg> |
69 | b9ac33e9 | Iustin Pop | <sbr> |
70 | bdb7d4e8 | Michael Hanselmann | |
71 | a8083063 | Iustin Pop | <arg>-b <replaceable>bridge</replaceable></arg> |
72 | f3a55c90 | Alexander Schreiber | <arg>--mac <replaceable>MAC-address</replaceable></arg> |
73 | bdb7d4e8 | Michael Hanselmann | <sbr> |
74 | bdb7d4e8 | Michael Hanselmann | |
75 | 25c5878d | Alexander Schreiber | <arg>--hvm-boot-order <replaceable>boot-order</replaceable></arg> |
76 | ca9c49d5 | Iustin Pop | <arg>--hvm-acpi <replaceable>ACPI-support</replaceable></arg> |
77 | 783583e9 | Michael Hanselmann | <sbr> |
78 | 783583e9 | Michael Hanselmann | |
79 | ca9c49d5 | Iustin Pop | <arg>--hvm-pae <replaceable>PAE-support</replaceable></arg> |
80 | 783583e9 | Michael Hanselmann | <sbr> |
81 | 783583e9 | Michael Hanselmann | |
82 | ca9c49d5 | Iustin Pop | <arg>--hvm-cdrom-image-path |
83 | ca9c49d5 | Iustin Pop | <replaceable>cdrom-image-path</replaceable></arg> |
84 | 783583e9 | Michael Hanselmann | <sbr> |
85 | 783583e9 | Michael Hanselmann | |
86 | 02d2adf4 | Alexander Schreiber | <arg>--hvm-nic-type <replaceable>NICTYPE</replaceable></arg> |
87 | 02d2adf4 | Alexander Schreiber | <sbr> |
88 | 02d2adf4 | Alexander Schreiber | |
89 | 02d2adf4 | Alexander Schreiber | <arg>--hvm-disk-type |
90 | 87765cb0 | Guido Trotter | <replaceable>DISKTYPE</replaceable></arg> |
91 | 02d2adf4 | Alexander Schreiber | <sbr> |
92 | 02d2adf4 | Alexander Schreiber | |
93 | ca9c49d5 | Iustin Pop | <arg>--vnc-bind-address |
94 | ca9c49d5 | Iustin Pop | <replaceable>vnc-bind-address</replaceable></arg> |
95 | a8083063 | Iustin Pop | <sbr> |
96 | bdb7d4e8 | Michael Hanselmann | |
97 | bdb7d4e8 | Michael Hanselmann | <arg>--kernel<group choice="req"> |
98 | 00f98619 | Iustin Pop | <arg>default</arg> |
99 | 00f98619 | Iustin Pop | <arg><replaceable>kernel_path</replaceable></arg> |
100 | 00f98619 | Iustin Pop | </group></arg> |
101 | 00f98619 | Iustin Pop | <sbr> |
102 | bdb7d4e8 | Michael Hanselmann | |
103 | bdb7d4e8 | Michael Hanselmann | <arg>--initrd<group choice="req"> |
104 | 00f98619 | Iustin Pop | <arg>default</arg> |
105 | 00f98619 | Iustin Pop | <arg>none</arg> |
106 | 00f98619 | Iustin Pop | <arg><replaceable>initrd_path</replaceable></arg> |
107 | bdb7d4e8 | Michael Hanselmann | </group></arg> |
108 | 00f98619 | Iustin Pop | <sbr> |
109 | bdb7d4e8 | Michael Hanselmann | |
110 | 495beb42 | Manuel Franceschini | <arg>--file-storage-dir <replaceable>dir_path</replaceable></arg> |
111 | bdb7d4e8 | Michael Hanselmann | <arg>--file-driver<group choice="req"> |
112 | 495beb42 | Manuel Franceschini | <arg>loop</arg> |
113 | 495beb42 | Manuel Franceschini | <arg>blktap</arg> |
114 | 495beb42 | Manuel Franceschini | </group></arg> |
115 | 495beb42 | Manuel Franceschini | <sbr> |
116 | bdb7d4e8 | Michael Hanselmann | |
117 | bdb7d4e8 | Michael Hanselmann | <arg choice="req">-t<group choice="req"> |
118 | a8083063 | Iustin Pop | <arg>diskless</arg> |
119 | 495beb42 | Manuel Franceschini | <arg>file</arg> |
120 | a8083063 | Iustin Pop | <arg>plain</arg> |
121 | f69dab6d | Iustin Pop | <arg>drbd</arg> |
122 | bdb7d4e8 | Michael Hanselmann | </group></arg> |
123 | b9ac33e9 | Iustin Pop | <sbr> |
124 | bdb7d4e8 | Michael Hanselmann | |
125 | a53a1b18 | Michael Hanselmann | <group choice="req"> |
126 | a53a1b18 | Michael Hanselmann | <arg>-n <replaceable>node<optional>:secondary-node</optional></replaceable></arg> |
127 | a53a1b18 | Michael Hanselmann | <arg>--iallocator <replaceable>name</replaceable></arg> |
128 | a53a1b18 | Michael Hanselmann | </group> |
129 | a53a1b18 | Michael Hanselmann | <sbr> |
130 | a53a1b18 | Michael Hanselmann | |
131 | bdb7d4e8 | Michael Hanselmann | <arg choice="req">-o <replaceable>os-type</replaceable></arg> |
132 | bdb7d4e8 | Michael Hanselmann | <sbr> |
133 | bdb7d4e8 | Michael Hanselmann | |
134 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
135 | a8083063 | Iustin Pop | </cmdsynopsis> |
136 | 00f98619 | Iustin Pop | |
137 | a8083063 | Iustin Pop | <para> |
138 | a8083063 | Iustin Pop | Creates a new instance on the specified |
139 | a8083063 | Iustin Pop | host. <replaceable>instance</replaceable> must be in DNS and |
140 | a8083063 | Iustin Pop | resolve to a IP in the same network as the nodes in the |
141 | a8083063 | Iustin Pop | cluster. |
142 | a8083063 | Iustin Pop | </para> |
143 | a8083063 | Iustin Pop | |
144 | a8083063 | Iustin Pop | <para> |
145 | a8083063 | Iustin Pop | The <option>-s</option> option specifies the disk size for |
146 | b9ac33e9 | Iustin Pop | the instance, in mebibytes (defaults to |
147 | b9ac33e9 | Iustin Pop | <constant>20480MiB</constant> = |
148 | b9ac33e9 | Iustin Pop | <constant>20GiB</constant>). You can also use one of the |
149 | b9ac33e9 | Iustin Pop | suffixes <literal>m</literal>, <literal>g</literal> or |
150 | b9ac33e9 | Iustin Pop | <literal>t</literal> to specificy the exact the units used; |
151 | b9ac33e9 | Iustin Pop | these suffixes map to mebibytes, gibibytes and tebibytes. |
152 | a8083063 | Iustin Pop | </para> |
153 | a8083063 | Iustin Pop | |
154 | a8083063 | Iustin Pop | <para> |
155 | b9ac33e9 | Iustin Pop | The <option>--swap-size</option> option specifies the swap |
156 | b9ac33e9 | Iustin Pop | disk size (in mebibytes) for the instance (the one presented |
157 | b9ac33e9 | Iustin Pop | as <filename class="devicefile">/dev/sdb</filename>). The |
158 | b9ac33e9 | Iustin Pop | default is <constant>4096MiB</constant>. As for the disk |
159 | b9ac33e9 | Iustin Pop | size, you can specify other suffixes. |
160 | a8083063 | Iustin Pop | </para> |
161 | a8083063 | Iustin Pop | |
162 | a8083063 | Iustin Pop | <para> |
163 | a8083063 | Iustin Pop | The <option>-m</option> option specifies the memory size for |
164 | b9ac33e9 | Iustin Pop | the instance, in mebibytes (defaults to 128 MiB). Again, you |
165 | b9ac33e9 | Iustin Pop | can use other suffixes (e.g. <userinput>2g</userinput>). |
166 | b9ac33e9 | Iustin Pop | </para> |
167 | b9ac33e9 | Iustin Pop | |
168 | b9ac33e9 | Iustin Pop | <para> |
169 | b9ac33e9 | Iustin Pop | The <option>-o</option> options specifies the operating |
170 | b9ac33e9 | Iustin Pop | system to be installed. The available operating systems can |
171 | b9ac33e9 | Iustin Pop | be listed with <command>gnt-os list</command>. |
172 | a8083063 | Iustin Pop | </para> |
173 | a8083063 | Iustin Pop | |
174 | a8083063 | Iustin Pop | <para> |
175 | a8083063 | Iustin Pop | The <option>-b</option> option specifies the bridge to which the |
176 | a8083063 | Iustin Pop | instance will be connected. (defaults to the cluster-wide default |
177 | 7e84d392 | Michael Hanselmann | bridge specified at cluster initialization time). |
178 | a8083063 | Iustin Pop | </para> |
179 | a8083063 | Iustin Pop | |
180 | a8083063 | Iustin Pop | <para> |
181 | f3a55c90 | Alexander Schreiber | The <option>--mac</option> option specifies the MAC address |
182 | f3a55c90 | Alexander Schreiber | of the ethernet interface for the instance. If this option |
183 | f3a55c90 | Alexander Schreiber | is not specified, a new MAC address is generated randomly with |
184 | f3a55c90 | Alexander Schreiber | the configured MAC prefix. The randomly generated MAC |
185 | f3a55c90 | Alexander Schreiber | address is guaranteed to be unique among the instances of |
186 | f3a55c90 | Alexander Schreiber | this cluster. |
187 | f3a55c90 | Alexander Schreiber | </para> |
188 | f3a55c90 | Alexander Schreiber | |
189 | f3a55c90 | Alexander Schreiber | <para> |
190 | 25c5878d | Alexander Schreiber | The <option>--hvm-boot-order</option> option specifies the |
191 | 25c5878d | Alexander Schreiber | boot device order for Xen HVM instances. The boot order is a |
192 | 25c5878d | Alexander Schreiber | string of letters listing the boot devices, with valid |
193 | 25c5878d | Alexander Schreiber | device letters being: |
194 | 25c5878d | Alexander Schreiber | </para> |
195 | 25c5878d | Alexander Schreiber | |
196 | 25c5878d | Alexander Schreiber | <para> |
197 | 25c5878d | Alexander Schreiber | <variablelist> |
198 | 25c5878d | Alexander Schreiber | <varlistentry> |
199 | 25c5878d | Alexander Schreiber | <term>a</term> |
200 | 25c5878d | Alexander Schreiber | <listitem> |
201 | 25c5878d | Alexander Schreiber | <para> |
202 | 25c5878d | Alexander Schreiber | floppy drive |
203 | 25c5878d | Alexander Schreiber | </para> |
204 | 25c5878d | Alexander Schreiber | </listitem> |
205 | 25c5878d | Alexander Schreiber | </varlistentry> |
206 | 25c5878d | Alexander Schreiber | <varlistentry> |
207 | 25c5878d | Alexander Schreiber | <term>c</term> |
208 | 25c5878d | Alexander Schreiber | <listitem> |
209 | 25c5878d | Alexander Schreiber | <para> |
210 | 25c5878d | Alexander Schreiber | hard disk |
211 | 25c5878d | Alexander Schreiber | </para> |
212 | 25c5878d | Alexander Schreiber | </listitem> |
213 | 25c5878d | Alexander Schreiber | </varlistentry> |
214 | 25c5878d | Alexander Schreiber | <varlistentry> |
215 | 25c5878d | Alexander Schreiber | <term>d</term> |
216 | 25c5878d | Alexander Schreiber | <listitem> |
217 | 25c5878d | Alexander Schreiber | <para> |
218 | 25c5878d | Alexander Schreiber | CDROM drive |
219 | 25c5878d | Alexander Schreiber | </para> |
220 | 25c5878d | Alexander Schreiber | </listitem> |
221 | 25c5878d | Alexander Schreiber | </varlistentry> |
222 | 25c5878d | Alexander Schreiber | <varlistentry> |
223 | 25c5878d | Alexander Schreiber | <term>n</term> |
224 | 25c5878d | Alexander Schreiber | <listitem> |
225 | 25c5878d | Alexander Schreiber | <para> |
226 | 25c5878d | Alexander Schreiber | network boot (PXE) |
227 | 25c5878d | Alexander Schreiber | </para> |
228 | 25c5878d | Alexander Schreiber | </listitem> |
229 | 25c5878d | Alexander Schreiber | </varlistentry> |
230 | 25c5878d | Alexander Schreiber | </variablelist> |
231 | 25c5878d | Alexander Schreiber | </para> |
232 | 25c5878d | Alexander Schreiber | |
233 | 25c5878d | Alexander Schreiber | <para> |
234 | c6520286 | Alexander Schreiber | The default is not to set an HVM boot order which is |
235 | c6520286 | Alexander Schreiber | interpreted as 'dc'. This option, like all options starting |
236 | c6520286 | Alexander Schreiber | with 'hvm', is only relevant for Xen HVM instances and |
237 | c6520286 | Alexander Schreiber | ignored by all other instance types. |
238 | 25c5878d | Alexander Schreiber | </para> |
239 | 25c5878d | Alexander Schreiber | |
240 | 25c5878d | Alexander Schreiber | <para> |
241 | ca9c49d5 | Iustin Pop | The <option>--hvm-acpi</option> option specifies if Xen |
242 | ca9c49d5 | Iustin Pop | should enable ACPI support for this HVM instance. Valid |
243 | c6520286 | Alexander Schreiber | values are true or false. The default value is false, |
244 | c6520286 | Alexander Schreiber | disabling ACPI support for this instance. |
245 | ca9c49d5 | Iustin Pop | </para> |
246 | ca9c49d5 | Iustin Pop | |
247 | ca9c49d5 | Iustin Pop | <para> |
248 | ca9c49d5 | Iustin Pop | The <option>--hvm-pae</option> option specifies if Xen |
249 | ca9c49d5 | Iustin Pop | should enabled PAE support for this HVM instance. Valid |
250 | c6520286 | Alexander Schreiber | values are true or false. The default is false, disabling |
251 | c6520286 | Alexander Schreiber | PAE support for this instance. |
252 | ca9c49d5 | Iustin Pop | </para> |
253 | ca9c49d5 | Iustin Pop | |
254 | ca9c49d5 | Iustin Pop | <para> |
255 | a53a1b18 | Michael Hanselmann | The <option>--hvm-cdrom-image-path</option> option specifies the |
256 | c6520286 | Alexander Schreiber | path to the file Xen uses to emulate a virtual CDROM drive |
257 | ca9c49d5 | Iustin Pop | for this HVM instance. Valid values are either an |
258 | ca9c49d5 | Iustin Pop | absolute path to an existing file or None, which disables |
259 | c6520286 | Alexander Schreiber | virtual CDROM support for this instance. The default is |
260 | c6520286 | Alexander Schreiber | None, disabling virtual CDROM support. |
261 | ca9c49d5 | Iustin Pop | </para> |
262 | ca9c49d5 | Iustin Pop | |
263 | ca9c49d5 | Iustin Pop | <para> |
264 | 02d2adf4 | Alexander Schreiber | The <option>--hvm-nic-type</option> specifies the NIC type |
265 | 02d2adf4 | Alexander Schreiber | Xen should use for this HVM instance. Valid choices are |
266 | 02d2adf4 | Alexander Schreiber | rtl8139, ne2k_pci, ne2k_isa and paravirtual with rtl8139 |
267 | 02d2adf4 | Alexander Schreiber | as the default. The paravirtual setting is intended for use |
268 | 02d2adf4 | Alexander Schreiber | with the GPL PV drivers inside HVM Windows instances. |
269 | 02d2adf4 | Alexander Schreiber | </para> |
270 | 02d2adf4 | Alexander Schreiber | |
271 | 02d2adf4 | Alexander Schreiber | <para> |
272 | 02d2adf4 | Alexander Schreiber | The <option>--hvm-disk-type</option> specifies the disk type |
273 | 02d2adf4 | Alexander Schreiber | Xen should use for the HVM instance. Valid choices are ioemu |
274 | 02d2adf4 | Alexander Schreiber | and paravirtual with ioemu as the default. The paravirtual |
275 | 02d2adf4 | Alexander Schreiber | setting is intended for use with the GPL PV drivers inside |
276 | 02d2adf4 | Alexander Schreiber | HVM Windows instances. |
277 | 02d2adf4 | Alexander Schreiber | </para> |
278 | 02d2adf4 | Alexander Schreiber | |
279 | 02d2adf4 | Alexander Schreiber | <para> |
280 | a53a1b18 | Michael Hanselmann | The <option>--vnc-bind-address</option> option specifies the |
281 | ca9c49d5 | Iustin Pop | address that the VNC listener for this instance should bind |
282 | ca9c49d5 | Iustin Pop | to. Valid values are IPv4 addresses. Use the address 0.0.0.0 |
283 | c6520286 | Alexander Schreiber | to bind to all available interfaces (this is the default) |
284 | c6520286 | Alexander Schreiber | or specify the address of one of the interfaces on the node |
285 | c6520286 | Alexander Schreiber | to restrict listening to that interface. |
286 | ca9c49d5 | Iustin Pop | </para> |
287 | ca9c49d5 | Iustin Pop | |
288 | ca9c49d5 | Iustin Pop | <para> |
289 | a53a1b18 | Michael Hanselmann | The <option>--iallocator</option> option specifies the instance |
290 | a53a1b18 | Michael Hanselmann | allocator plugin to use. If you pass in this option the allocator |
291 | a53a1b18 | Michael Hanselmann | will select nodes for this instance automatically, so you don't need |
292 | a53a1b18 | Michael Hanselmann | to pass them with the <option>-n</option> option. For more |
293 | a53a1b18 | Michael Hanselmann | information please refer to the instance allocator documentation. |
294 | a53a1b18 | Michael Hanselmann | </para> |
295 | a53a1b18 | Michael Hanselmann | |
296 | a53a1b18 | Michael Hanselmann | <para> |
297 | a53a1b18 | Michael Hanselmann | The <option>--kernel</option> option allows the instance to |
298 | 00f98619 | Iustin Pop | use a custom kernel (if a filename is passed) or to use the |
299 | 00f98619 | Iustin Pop | default kernel (<filename>@CUSTOM_XEN_KERNEL@</filename>), if the |
300 | 00f98619 | Iustin Pop | string <constant>default</constant> is passed. |
301 | 00f98619 | Iustin Pop | </para> |
302 | 00f98619 | Iustin Pop | |
303 | 00f98619 | Iustin Pop | <para> |
304 | 00f98619 | Iustin Pop | The <option>--initrd</option> option is similar: it allows |
305 | 00f98619 | Iustin Pop | the instance to use a custom initrd (if a filename is |
306 | 00f98619 | Iustin Pop | passed) or to use the default initrd |
307 | 00f98619 | Iustin Pop | (<filename>@CUSTOM_XEN_INITRD@</filename>), if the string |
308 | 00f98619 | Iustin Pop | <constant>default</constant> is passed, or to disable the |
309 | 00f98619 | Iustin Pop | use of an initrd, if the string <constant>none</constant> is |
310 | 00f98619 | Iustin Pop | passed. Note that in the case the instance is set to use the |
311 | 00f98619 | Iustin Pop | default initrd and it doesn't exist, it will be silently |
312 | 00f98619 | Iustin Pop | ignored; if the instance is set to use a custom initrd and |
313 | 00f98619 | Iustin Pop | it doesn't exist, this will be treated as an error and will |
314 | 00f98619 | Iustin Pop | prevent the startup of the instance. |
315 | 00f98619 | Iustin Pop | </para> |
316 | 00f98619 | Iustin Pop | |
317 | 00f98619 | Iustin Pop | <para> |
318 | a8083063 | Iustin Pop | The <option>-t</option> options specifies the disk layout type for |
319 | a8083063 | Iustin Pop | the instance. The available choices are: |
320 | a8083063 | Iustin Pop | <variablelist> |
321 | a8083063 | Iustin Pop | <varlistentry> |
322 | a8083063 | Iustin Pop | <term>diskless</term> |
323 | a8083063 | Iustin Pop | <listitem> |
324 | a8083063 | Iustin Pop | <para> |
325 | a8083063 | Iustin Pop | This creates an instance with no disks. Its useful for |
326 | a8083063 | Iustin Pop | testing only (or other special cases). |
327 | a8083063 | Iustin Pop | </para> |
328 | a8083063 | Iustin Pop | </listitem> |
329 | a8083063 | Iustin Pop | </varlistentry> |
330 | a8083063 | Iustin Pop | <varlistentry> |
331 | 495beb42 | Manuel Franceschini | <term>file</term> |
332 | 495beb42 | Manuel Franceschini | <listitem> |
333 | 495beb42 | Manuel Franceschini | <para>Disk devices will be regular files.</para> |
334 | 495beb42 | Manuel Franceschini | </listitem> |
335 | 495beb42 | Manuel Franceschini | </varlistentry> |
336 | 495beb42 | Manuel Franceschini | <varlistentry> |
337 | a8083063 | Iustin Pop | <term>plain</term> |
338 | a8083063 | Iustin Pop | <listitem> |
339 | a8083063 | Iustin Pop | <para>Disk devices will be logical volumes.</para> |
340 | a8083063 | Iustin Pop | </listitem> |
341 | a8083063 | Iustin Pop | </varlistentry> |
342 | a8083063 | Iustin Pop | <varlistentry> |
343 | f69dab6d | Iustin Pop | <term>drbd</term> |
344 | f69dab6d | Iustin Pop | <listitem> |
345 | f69dab6d | Iustin Pop | <para> |
346 | f69dab6d | Iustin Pop | Disk devices will be drbd (version 8.x) on top of |
347 | f9193417 | Iustin Pop | lvm volumes. |
348 | a8083063 | Iustin Pop | </para> |
349 | a8083063 | Iustin Pop | </listitem> |
350 | a8083063 | Iustin Pop | </varlistentry> |
351 | a8083063 | Iustin Pop | </variablelist> |
352 | a8083063 | Iustin Pop | </para> |
353 | a8083063 | Iustin Pop | |
354 | a8083063 | Iustin Pop | <para> |
355 | 4677a909 | Michael Hanselmann | The optional second value of the <option>--node</option> is used for |
356 | bd028152 | Iustin Pop | the drbd template type and specifies the remote node. |
357 | a8083063 | Iustin Pop | </para> |
358 | a8083063 | Iustin Pop | |
359 | a8083063 | Iustin Pop | <para> |
360 | a8083063 | Iustin Pop | If you do not want gnt-instance to wait for the disk mirror |
361 | a8083063 | Iustin Pop | to be synced, use the <option>--no-wait-for-sync</option> |
362 | a8083063 | Iustin Pop | option. |
363 | a8083063 | Iustin Pop | </para> |
364 | a8083063 | Iustin Pop | |
365 | a8083063 | Iustin Pop | <para> |
366 | 495beb42 | Manuel Franceschini | The <option>--file-storage-dir</option> specifies the relative path |
367 | 495beb42 | Manuel Franceschini | under the cluster-wide file storage directory to store file-based |
368 | 495beb42 | Manuel Franceschini | disks. It is useful for having different subdirectories for |
369 | 495beb42 | Manuel Franceschini | different instances. The full path of the directory where the disk |
370 | 495beb42 | Manuel Franceschini | files are stored will consist of cluster-wide file storage directory |
371 | 495beb42 | Manuel Franceschini | + optional subdirectory + instance name. Example: |
372 | 495beb42 | Manuel Franceschini | /srv/ganeti/file-storage/mysubdir/instance1.example.com. This option |
373 | 495beb42 | Manuel Franceschini | is only relevant for instances using the file storage backend. |
374 | 495beb42 | Manuel Franceschini | </para> |
375 | 495beb42 | Manuel Franceschini | |
376 | 495beb42 | Manuel Franceschini | <para> |
377 | 495beb42 | Manuel Franceschini | The <option>--file-driver</option> specifies the driver to use for |
378 | 495beb42 | Manuel Franceschini | file-based disks. Note that currently these drivers work with the |
379 | 495beb42 | Manuel Franceschini | xen hypervisor only. This option is only relevant for instances using |
380 | 495beb42 | Manuel Franceschini | the file storage backend. The available choices are: |
381 | 495beb42 | Manuel Franceschini | <variablelist> |
382 | 495beb42 | Manuel Franceschini | <varlistentry> |
383 | 495beb42 | Manuel Franceschini | <term>loop</term> |
384 | 495beb42 | Manuel Franceschini | <listitem> |
385 | 495beb42 | Manuel Franceschini | <para>Kernel loopback driver.</para> |
386 | 495beb42 | Manuel Franceschini | </listitem> |
387 | 495beb42 | Manuel Franceschini | </varlistentry> |
388 | 495beb42 | Manuel Franceschini | <varlistentry> |
389 | 495beb42 | Manuel Franceschini | <term>blktap</term> |
390 | 495beb42 | Manuel Franceschini | <listitem> |
391 | 495beb42 | Manuel Franceschini | <para>blktap driver.</para> |
392 | 495beb42 | Manuel Franceschini | </listitem> |
393 | 495beb42 | Manuel Franceschini | </varlistentry> |
394 | 67470f58 | Iustin Pop | </variablelist> |
395 | 495beb42 | Manuel Franceschini | </para> |
396 | 495beb42 | Manuel Franceschini | |
397 | 495beb42 | Manuel Franceschini | <para> |
398 | 495beb42 | Manuel Franceschini | The loop driver uses loopback devices to access the filesystem |
399 | 495beb42 | Manuel Franceschini | within the file. However, running I/O intensive applications |
400 | 495beb42 | Manuel Franceschini | in your instance using the loop driver might result in slowdowns. |
401 | 495beb42 | Manuel Franceschini | Furthermore, if you use the loopback driver consider increasing |
402 | 495beb42 | Manuel Franceschini | the maximum amount of loopback devices (on most systems it's 8) |
403 | 495beb42 | Manuel Franceschini | using the max_loop param. |
404 | 495beb42 | Manuel Franceschini | </para> |
405 | 495beb42 | Manuel Franceschini | |
406 | 495beb42 | Manuel Franceschini | <para> |
407 | 495beb42 | Manuel Franceschini | In order to be able to use the blktap driver you should check |
408 | 495beb42 | Manuel Franceschini | if the 'blktapctrl' user space disk agent is running (usually |
409 | 495beb42 | Manuel Franceschini | automatically started via xend). This user-level disk I/O |
410 | 495beb42 | Manuel Franceschini | interface has the advantage of better performance. Especially |
411 | 495beb42 | Manuel Franceschini | if you use a network file system (e.g. NFS) to store your instances |
412 | 495beb42 | Manuel Franceschini | this is the recommended choice. |
413 | bd028152 | Iustin Pop | </para> |
414 | 495beb42 | Manuel Franceschini | |
415 | 495beb42 | Manuel Franceschini | <para> |
416 | a8083063 | Iustin Pop | Example: |
417 | a8083063 | Iustin Pop | <screen> |
418 | 495beb42 | Manuel Franceschini | # gnt-instance add -t file -s 30g -m 512 -o debian-etch \ |
419 | 495beb42 | Manuel Franceschini | -n node1.example.com --file-storage-dir=mysubdir instance1.example.com |
420 | b9ac33e9 | Iustin Pop | # gnt-instance add -t plain -s 30g -m 512 -o debian-etch \ |
421 | b9ac33e9 | Iustin Pop | -n node1.example.com instance1.example.com |
422 | f9193417 | Iustin Pop | # gnt-instance add -t drbd -s 30g -m 512 -o debian-etch \ |
423 | 4677a909 | Michael Hanselmann | -n node1.example.com:node2.example.com instance2.example.com |
424 | a8083063 | Iustin Pop | </screen> |
425 | a8083063 | Iustin Pop | </para> |
426 | a8083063 | Iustin Pop | </refsect3> |
427 | a8083063 | Iustin Pop | |
428 | a8083063 | Iustin Pop | <refsect3> |
429 | a8083063 | Iustin Pop | <title>REMOVE</title> |
430 | a8083063 | Iustin Pop | |
431 | a8083063 | Iustin Pop | <cmdsynopsis> |
432 | a8083063 | Iustin Pop | <command>remove</command> |
433 | 1d67656e | Iustin Pop | <arg>--ignore-failures</arg> |
434 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
435 | a8083063 | Iustin Pop | </cmdsynopsis> |
436 | a8083063 | Iustin Pop | |
437 | a8083063 | Iustin Pop | <para> |
438 | a8083063 | Iustin Pop | Remove an instance. This will remove all data from the |
439 | a8083063 | Iustin Pop | instance and there is <emphasis>no way back</emphasis>. If |
440 | a8083063 | Iustin Pop | you are not sure if you use an instance again, use |
441 | a8083063 | Iustin Pop | <command>shutdown</command> first and leave it in the |
442 | a8083063 | Iustin Pop | shutdown state for a while. |
443 | 1d67656e | Iustin Pop | |
444 | 1d67656e | Iustin Pop | </para> |
445 | 1d67656e | Iustin Pop | |
446 | 1d67656e | Iustin Pop | <para> |
447 | 1d67656e | Iustin Pop | The <option>--ignore-failures</option> option will cause the |
448 | 1d67656e | Iustin Pop | removal to proceed even in the presence of errors during the |
449 | 1d67656e | Iustin Pop | removal of the instance (e.g. during the shutdown or the |
450 | 1d67656e | Iustin Pop | disk removal). If this option is not given, the command will |
451 | 1d67656e | Iustin Pop | stop at the first error. |
452 | a8083063 | Iustin Pop | </para> |
453 | a8083063 | Iustin Pop | |
454 | a8083063 | Iustin Pop | <para> |
455 | a8083063 | Iustin Pop | Example: |
456 | a8083063 | Iustin Pop | <screen> |
457 | a8083063 | Iustin Pop | # gnt-instance remove instance1.example.com |
458 | a8083063 | Iustin Pop | </screen> |
459 | a8083063 | Iustin Pop | </para> |
460 | a8083063 | Iustin Pop | </refsect3> |
461 | a8083063 | Iustin Pop | |
462 | a8083063 | Iustin Pop | <refsect3> |
463 | a8083063 | Iustin Pop | <title>LIST</title> |
464 | a8083063 | Iustin Pop | |
465 | a8083063 | Iustin Pop | <cmdsynopsis> |
466 | a8083063 | Iustin Pop | <command>list</command> |
467 | a8083063 | Iustin Pop | <arg>--no-headers</arg> |
468 | a8083063 | Iustin Pop | <arg>--separator=<replaceable>SEPARATOR</replaceable></arg> |
469 | 48c4dfa8 | Iustin Pop | <arg>-o <replaceable>[+]FIELD,...</replaceable></arg> |
470 | a8083063 | Iustin Pop | </cmdsynopsis> |
471 | a8083063 | Iustin Pop | |
472 | a8083063 | Iustin Pop | <para> |
473 | a8083063 | Iustin Pop | Shows the currently configured instances with memory usage, |
474 | a8083063 | Iustin Pop | disk usage, the node they are running on, and the CPU time, |
475 | a8083063 | Iustin Pop | counted in seconds, used by each instance since its latest |
476 | a8083063 | Iustin Pop | restart. |
477 | a8083063 | Iustin Pop | </para> |
478 | a8083063 | Iustin Pop | |
479 | a8083063 | Iustin Pop | <para> |
480 | a8083063 | Iustin Pop | The <option>--no-headers</option> option will skip the |
481 | a8083063 | Iustin Pop | initial header line. The <option>--separator</option> option |
482 | a8083063 | Iustin Pop | takes an argument which denotes what will be used between |
483 | a8083063 | Iustin Pop | the output fields. Both these options are to help scripting. |
484 | a8083063 | Iustin Pop | </para> |
485 | a8083063 | Iustin Pop | |
486 | a8083063 | Iustin Pop | <para> |
487 | a8083063 | Iustin Pop | The <option>-o</option> option takes a comma-separated list |
488 | a8083063 | Iustin Pop | of output fields. The available fields and their meaning |
489 | a8083063 | Iustin Pop | are: |
490 | a8083063 | Iustin Pop | <variablelist> |
491 | a8083063 | Iustin Pop | <varlistentry> |
492 | a8083063 | Iustin Pop | <term>name</term> |
493 | a8083063 | Iustin Pop | <listitem> |
494 | a8083063 | Iustin Pop | <simpara>the instance name</simpara> |
495 | a8083063 | Iustin Pop | </listitem> |
496 | a8083063 | Iustin Pop | </varlistentry> |
497 | a8083063 | Iustin Pop | <varlistentry> |
498 | a8083063 | Iustin Pop | <term>os</term> |
499 | a8083063 | Iustin Pop | <listitem> |
500 | a8083063 | Iustin Pop | <simpara>the OS of the instance</simpara> |
501 | a8083063 | Iustin Pop | </listitem> |
502 | a8083063 | Iustin Pop | </varlistentry> |
503 | a8083063 | Iustin Pop | <varlistentry> |
504 | a8083063 | Iustin Pop | <term>pnode</term> |
505 | a8083063 | Iustin Pop | <listitem> |
506 | a8083063 | Iustin Pop | <simpara>the primary node of the instance</simpara> |
507 | a8083063 | Iustin Pop | </listitem> |
508 | a8083063 | Iustin Pop | </varlistentry> |
509 | a8083063 | Iustin Pop | <varlistentry> |
510 | a8083063 | Iustin Pop | <term>snodes</term> |
511 | a8083063 | Iustin Pop | <listitem> |
512 | 4677a909 | Michael Hanselmann | <simpara>comma-separated list of secondary nodes for the |
513 | a8083063 | Iustin Pop | instance; usually this will be just one node</simpara> |
514 | a8083063 | Iustin Pop | </listitem> |
515 | a8083063 | Iustin Pop | </varlistentry> |
516 | a8083063 | Iustin Pop | <varlistentry> |
517 | a8083063 | Iustin Pop | <term>admin_state</term> |
518 | a8083063 | Iustin Pop | <listitem> |
519 | a8083063 | Iustin Pop | <simpara>the desired state of the instance (either "yes" |
520 | a8083063 | Iustin Pop | or "no" denoting the instance should run or |
521 | a8083063 | Iustin Pop | not)</simpara> |
522 | a8083063 | Iustin Pop | </listitem> |
523 | a8083063 | Iustin Pop | </varlistentry> |
524 | a8083063 | Iustin Pop | <varlistentry> |
525 | a8083063 | Iustin Pop | <term>admin_ram</term> |
526 | a8083063 | Iustin Pop | <listitem> |
527 | a8083063 | Iustin Pop | <simpara>the desired memory for the instance</simpara> |
528 | a8083063 | Iustin Pop | </listitem> |
529 | a8083063 | Iustin Pop | </varlistentry> |
530 | a8083063 | Iustin Pop | <varlistentry> |
531 | a8083063 | Iustin Pop | <term>disk_template</term> |
532 | a8083063 | Iustin Pop | <listitem> |
533 | a8083063 | Iustin Pop | <simpara>the disk template of the instance</simpara> |
534 | a8083063 | Iustin Pop | </listitem> |
535 | a8083063 | Iustin Pop | </varlistentry> |
536 | a8083063 | Iustin Pop | <varlistentry> |
537 | a8083063 | Iustin Pop | <term>oper_state</term> |
538 | a8083063 | Iustin Pop | <listitem> |
539 | d8052456 | Iustin Pop | <simpara>the actual state of the instance; can be |
540 | d8052456 | Iustin Pop | one of the values "running", "stopped", "(node |
541 | d8052456 | Iustin Pop | down)"</simpara> |
542 | d8052456 | Iustin Pop | </listitem> |
543 | d8052456 | Iustin Pop | </varlistentry> |
544 | d8052456 | Iustin Pop | <varlistentry> |
545 | d8052456 | Iustin Pop | <term>status</term> |
546 | d8052456 | Iustin Pop | <listitem> |
547 | d8052456 | Iustin Pop | <simpara>combined form of admin_state and oper_stat; |
548 | d8052456 | Iustin Pop | this can be one of: |
549 | d8052456 | Iustin Pop | <computeroutput>ERROR_nodedown</computeroutput> if the |
550 | d8052456 | Iustin Pop | node of the instance is down, |
551 | d8052456 | Iustin Pop | <computeroutput>ERROR_down</computeroutput> if the |
552 | d8052456 | Iustin Pop | instance should run but is down, |
553 | d8052456 | Iustin Pop | <computeroutput>ERROR_up</computeroutput> if the |
554 | d8052456 | Iustin Pop | instance should be stopped but is actually running, |
555 | d8052456 | Iustin Pop | <computeroutput>ADMIN_down</computeroutput> if the |
556 | d8052456 | Iustin Pop | instance has been stopped (and is stopped) and |
557 | d8052456 | Iustin Pop | <computeroutput>running</computeroutput> if the |
558 | d8052456 | Iustin Pop | instance is set to be running (and is |
559 | d8052456 | Iustin Pop | running)</simpara> |
560 | a8083063 | Iustin Pop | </listitem> |
561 | a8083063 | Iustin Pop | </varlistentry> |
562 | a8083063 | Iustin Pop | <varlistentry> |
563 | a8083063 | Iustin Pop | <term>oper_ram</term> |
564 | a8083063 | Iustin Pop | <listitem> |
565 | a8083063 | Iustin Pop | <simpara>the actual memory usage of the instance as seen |
566 | a8083063 | Iustin Pop | by the hypervisor</simpara> |
567 | a8083063 | Iustin Pop | </listitem> |
568 | a8083063 | Iustin Pop | </varlistentry> |
569 | a8083063 | Iustin Pop | <varlistentry> |
570 | a8083063 | Iustin Pop | <term>ip</term> |
571 | a8083063 | Iustin Pop | <listitem> |
572 | a8083063 | Iustin Pop | <simpara>the ip address ganeti recognizes as associated with |
573 | a8083063 | Iustin Pop | the instance interface</simpara> |
574 | a8083063 | Iustin Pop | </listitem> |
575 | a8083063 | Iustin Pop | </varlistentry> |
576 | a8083063 | Iustin Pop | <varlistentry> |
577 | a8083063 | Iustin Pop | <term>mac</term> |
578 | a8083063 | Iustin Pop | <listitem> |
579 | a8083063 | Iustin Pop | <simpara>the instance interface MAC address</simpara> |
580 | a8083063 | Iustin Pop | </listitem> |
581 | a8083063 | Iustin Pop | </varlistentry> |
582 | a8083063 | Iustin Pop | <varlistentry> |
583 | a8083063 | Iustin Pop | <term>bridge</term> |
584 | a8083063 | Iustin Pop | <listitem> |
585 | a8083063 | Iustin Pop | <simpara>bridge the instance is connected to |
586 | a8083063 | Iustin Pop | </simpara> |
587 | a8083063 | Iustin Pop | </listitem> |
588 | a8083063 | Iustin Pop | </varlistentry> |
589 | d8a4b51d | Iustin Pop | <varlistentry> |
590 | d8a4b51d | Iustin Pop | <term>sda_size</term> |
591 | d8a4b51d | Iustin Pop | <listitem> |
592 | d8a4b51d | Iustin Pop | <simpara>the size of the instance's first disk</simpara> |
593 | d8a4b51d | Iustin Pop | </listitem> |
594 | d8a4b51d | Iustin Pop | </varlistentry> |
595 | d8a4b51d | Iustin Pop | <varlistentry> |
596 | d8a4b51d | Iustin Pop | <term>sdb_size</term> |
597 | d8a4b51d | Iustin Pop | <listitem> |
598 | d8a4b51d | Iustin Pop | <simpara>the size of the instance's second disk</simpara> |
599 | d8a4b51d | Iustin Pop | </listitem> |
600 | d8a4b51d | Iustin Pop | </varlistentry> |
601 | d8a4b51d | Iustin Pop | <varlistentry> |
602 | d8a4b51d | Iustin Pop | <term>vcpus</term> |
603 | d8a4b51d | Iustin Pop | <listitem> |
604 | d8a4b51d | Iustin Pop | <simpara>the number of VCPUs allocated to the |
605 | d8a4b51d | Iustin Pop | instance</simpara> |
606 | d8a4b51d | Iustin Pop | </listitem> |
607 | d8a4b51d | Iustin Pop | </varlistentry> |
608 | 130a6a6f | Iustin Pop | <varlistentry> |
609 | 130a6a6f | Iustin Pop | <term>tags</term> |
610 | 130a6a6f | Iustin Pop | <listitem> |
611 | 130a6a6f | Iustin Pop | <simpara>comma-separated list of the instances's |
612 | 130a6a6f | Iustin Pop | tags</simpara> |
613 | 130a6a6f | Iustin Pop | </listitem> |
614 | 130a6a6f | Iustin Pop | </varlistentry> |
615 | 38d7239a | Iustin Pop | <varlistentry> |
616 | 38d7239a | Iustin Pop | <term>serial_no</term> |
617 | 38d7239a | Iustin Pop | <listitem> |
618 | 38d7239a | Iustin Pop | <simpara>the so called 'serial number' of the |
619 | 38d7239a | Iustin Pop | instance; this is a numeric field that is incremented |
620 | 38d7239a | Iustin Pop | each time the instance is modified, and it can be used |
621 | 38d7239a | Iustin Pop | to detect modifications</simpara> |
622 | 38d7239a | Iustin Pop | </listitem> |
623 | 38d7239a | Iustin Pop | </varlistentry> |
624 | a8083063 | Iustin Pop | </variablelist> |
625 | a8083063 | Iustin Pop | </para> |
626 | a8083063 | Iustin Pop | |
627 | a8083063 | Iustin Pop | <para> |
628 | 48c4dfa8 | Iustin Pop | If the value of the option starts with the character |
629 | 48c4dfa8 | Iustin Pop | <constant>+</constant>, the new fields will be added to the |
630 | 48c4dfa8 | Iustin Pop | default list. This allows to quickly see the default list |
631 | 48c4dfa8 | Iustin Pop | plus a few other fields, instead of retyping the entire list |
632 | 48c4dfa8 | Iustin Pop | of fields. |
633 | 48c4dfa8 | Iustin Pop | </para> |
634 | 48c4dfa8 | Iustin Pop | |
635 | 48c4dfa8 | Iustin Pop | <para> |
636 | a8083063 | Iustin Pop | There is a subtle grouping about the available output |
637 | 872c949f | Iustin Pop | fields: all fields except for <option>oper_state</option>, |
638 | 872c949f | Iustin Pop | <option>oper_ram</option> and <option>status</option> are |
639 | 872c949f | Iustin Pop | configuration value and not run-time values. So if you don't |
640 | 872c949f | Iustin Pop | select any of the these fields, the query will be satisfied |
641 | a8083063 | Iustin Pop | instantly from the cluster configuration, without having to |
642 | a8083063 | Iustin Pop | ask the remote nodes for the data. This can be helpful for |
643 | a8083063 | Iustin Pop | big clusters when you only want some data and it makes sense |
644 | a8083063 | Iustin Pop | to specify a reduced set of output fields. |
645 | a8083063 | Iustin Pop | </para> |
646 | a8083063 | Iustin Pop | |
647 | a8083063 | Iustin Pop | <para>The default output field list is: |
648 | a8083063 | Iustin Pop | <simplelist type="inline"> |
649 | a8083063 | Iustin Pop | <member>name</member> |
650 | a8083063 | Iustin Pop | <member>os</member> |
651 | a8083063 | Iustin Pop | <member>pnode</member> |
652 | a8083063 | Iustin Pop | <member>admin_state</member> |
653 | a8083063 | Iustin Pop | <member>oper_state</member> |
654 | a8083063 | Iustin Pop | <member>oper_ram</member> |
655 | a8083063 | Iustin Pop | </simplelist>. |
656 | a8083063 | Iustin Pop | </para> |
657 | a8083063 | Iustin Pop | </refsect3> |
658 | a8083063 | Iustin Pop | |
659 | a8083063 | Iustin Pop | <refsect3> |
660 | a8083063 | Iustin Pop | <title>INFO</title> |
661 | a8083063 | Iustin Pop | |
662 | a8083063 | Iustin Pop | <cmdsynopsis> |
663 | a8083063 | Iustin Pop | <command>info</command> |
664 | a8083063 | Iustin Pop | <arg rep="repeat"><replaceable>instance</replaceable></arg> |
665 | a8083063 | Iustin Pop | </cmdsynopsis> |
666 | a8083063 | Iustin Pop | |
667 | a8083063 | Iustin Pop | <para> |
668 | a8083063 | Iustin Pop | Show detailed information about the (given) instances. This |
669 | a8083063 | Iustin Pop | is different from <command>list</command> as it shows |
670 | a8083063 | Iustin Pop | detailed data about the instance's disks (especially useful |
671 | bd028152 | Iustin Pop | for drbd disk template). |
672 | a8083063 | Iustin Pop | </para> |
673 | a8083063 | Iustin Pop | </refsect3> |
674 | a8083063 | Iustin Pop | |
675 | a8083063 | Iustin Pop | <refsect3> |
676 | a8083063 | Iustin Pop | <title>MODIFY</title> |
677 | a8083063 | Iustin Pop | |
678 | a8083063 | Iustin Pop | <cmdsynopsis> |
679 | a8083063 | Iustin Pop | <command>modify</command> |
680 | a8083063 | Iustin Pop | <arg choice="opt">-m <replaceable>memsize</replaceable></arg> |
681 | a8083063 | Iustin Pop | <arg choice="opt">-p <replaceable>vcpus</replaceable></arg> |
682 | a8083063 | Iustin Pop | <arg choice="opt">-i <replaceable>ip</replaceable></arg> |
683 | a8083063 | Iustin Pop | <arg choice="opt">-b <replaceable>bridge</replaceable></arg> |
684 | 61854511 | Iustin Pop | <arg choice="opt">--mac <replaceable>MAC-address</replaceable></arg> |
685 | 25c5878d | Alexander Schreiber | <arg>--hvm-boot-order <replaceable>boot-order</replaceable></arg> |
686 | ca9c49d5 | Iustin Pop | <arg>--hvm-acpi <replaceable>ACPI-support</replaceable></arg> |
687 | ca9c49d5 | Iustin Pop | <arg>--hvm-pae <replaceable>PAE-support</replaceable></arg> |
688 | ca9c49d5 | Iustin Pop | <arg>--hvm-cdrom-image-path |
689 | ca9c49d5 | Iustin Pop | <replaceable>cdrom-image-path</replaceable></arg> |
690 | 02d2adf4 | Alexander Schreiber | <arg>--hvm-nic-type <replaceable>NICTYPE</replaceable></arg> |
691 | 02d2adf4 | Alexander Schreiber | <arg>--hvm-disk-type <replaceable>DISKTYPE</replaceable></arg> |
692 | ca9c49d5 | Iustin Pop | <arg>--vnc-bind-address |
693 | ca9c49d5 | Iustin Pop | <replaceable>vnc-bind-address</replaceable></arg> |
694 | ca9c49d5 | Iustin Pop | |
695 | 00f98619 | Iustin Pop | <sbr> |
696 | 00f98619 | Iustin Pop | <arg>--kernel <group choice="req"> |
697 | 00f98619 | Iustin Pop | <arg>default</arg> |
698 | 00f98619 | Iustin Pop | <arg><replaceable>kernel_path</replaceable></arg> |
699 | 00f98619 | Iustin Pop | </group></arg> |
700 | 00f98619 | Iustin Pop | <sbr> |
701 | 00f98619 | Iustin Pop | <arg>--initrd <group choice="req"> |
702 | 00f98619 | Iustin Pop | <arg>default</arg> |
703 | 00f98619 | Iustin Pop | <arg>none</arg> |
704 | 00f98619 | Iustin Pop | <arg><replaceable>initrd_path</replaceable></arg> |
705 | 00f98619 | Iustin Pop | </group> </arg> |
706 | 00f98619 | Iustin Pop | <sbr> |
707 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
708 | a8083063 | Iustin Pop | </cmdsynopsis> |
709 | a8083063 | Iustin Pop | |
710 | a8083063 | Iustin Pop | <para> |
711 | f3a55c90 | Alexander Schreiber | Modify the memory size, number of vcpus, ip address, MAC |
712 | f3a55c90 | Alexander Schreiber | address and/or bridge for an instance. |
713 | a8083063 | Iustin Pop | </para> |
714 | a8083063 | Iustin Pop | |
715 | a8083063 | Iustin Pop | <para> |
716 | a8083063 | Iustin Pop | The memory size is given in MiB. Note that you need to give |
717 | a8083063 | Iustin Pop | at least one of the arguments, otherwise the command |
718 | a8083063 | Iustin Pop | complains. |
719 | a8083063 | Iustin Pop | </para> |
720 | a8083063 | Iustin Pop | |
721 | a8083063 | Iustin Pop | <para> |
722 | 25c5878d | Alexander Schreiber | The <option>--kernel</option>, <option>--initrd</option> |
723 | 25c5878d | Alexander Schreiber | and <option>--hvm-boot-order</option> |
724 | 00f98619 | Iustin Pop | options are described in the <command>add</command> command. |
725 | 00f98619 | Iustin Pop | </para> |
726 | 00f98619 | Iustin Pop | |
727 | 00f98619 | Iustin Pop | <para> |
728 | 25c5878d | Alexander Schreiber | Additionally, the HVM boot order can be reset to the default |
729 | 25c5878d | Alexander Schreiber | values by using <option>--hvm-boot-order=default</option>. |
730 | 25c5878d | Alexander Schreiber | </para> |
731 | 25c5878d | Alexander Schreiber | |
732 | 25c5878d | Alexander Schreiber | <para> |
733 | ca9c49d5 | Iustin Pop | The <option>--hvm-acpi</option> option specifies if Xen |
734 | ca9c49d5 | Iustin Pop | should enable ACPI support for this HVM instance. Valid |
735 | ca9c49d5 | Iustin Pop | values are true or false. |
736 | ca9c49d5 | Iustin Pop | </para> |
737 | ca9c49d5 | Iustin Pop | |
738 | ca9c49d5 | Iustin Pop | <para> |
739 | ca9c49d5 | Iustin Pop | The <option>--hvm-pae</option> option specifies if Xen |
740 | ca9c49d5 | Iustin Pop | should enabled PAE support for this HVM instance. Valid |
741 | ca9c49d5 | Iustin Pop | values are true or false. |
742 | ca9c49d5 | Iustin Pop | </para> |
743 | ca9c49d5 | Iustin Pop | |
744 | ca9c49d5 | Iustin Pop | <para> |
745 | ca9c49d5 | Iustin Pop | The <option>--hvm-cdrom-image-path</option> specifies the |
746 | ca9c49d5 | Iustin Pop | path to the file xen uses to emulate a virtual CDROM drive |
747 | ca9c49d5 | Iustin Pop | for this HVM instance. Valid values are either an |
748 | ca9c49d5 | Iustin Pop | absolute path to an existing file or None, which disables |
749 | ca9c49d5 | Iustin Pop | virtual CDROM support for this instance. |
750 | ca9c49d5 | Iustin Pop | </para> |
751 | ca9c49d5 | Iustin Pop | |
752 | ca9c49d5 | Iustin Pop | <para> |
753 | 02d2adf4 | Alexander Schreiber | The <option>--hvm-nic-type</option> specifies the NIC type |
754 | 02d2adf4 | Alexander Schreiber | Xen should use for this HVM instance. Valid choices are |
755 | 02d2adf4 | Alexander Schreiber | rtl8139, ne2k_pci, ne2k_isa and paravirtual with rtl8139 |
756 | 02d2adf4 | Alexander Schreiber | as the default. The paravirtual setting is intended for use |
757 | 02d2adf4 | Alexander Schreiber | with the GPL PV drivers inside HVM Windows instances. |
758 | 02d2adf4 | Alexander Schreiber | </para> |
759 | 02d2adf4 | Alexander Schreiber | |
760 | 02d2adf4 | Alexander Schreiber | <para> |
761 | 02d2adf4 | Alexander Schreiber | The <option>--hvm-disk-type</option> specifies the disk type |
762 | 02d2adf4 | Alexander Schreiber | Xen should use for the HVM instance. Valid choices are ioemu |
763 | 02d2adf4 | Alexander Schreiber | and paravirtual with ioemu as the default. The paravirtual |
764 | 02d2adf4 | Alexander Schreiber | setting is intended for use with the GPL PV drivers inside |
765 | 02d2adf4 | Alexander Schreiber | HVM Windows instances. |
766 | 02d2adf4 | Alexander Schreiber | </para> |
767 | 02d2adf4 | Alexander Schreiber | |
768 | 02d2adf4 | Alexander Schreiber | <para> |
769 | ca9c49d5 | Iustin Pop | The <option>--vnc-bind-address</option> specifies the |
770 | ca9c49d5 | Iustin Pop | address that the VNC listener for this instance should bind |
771 | ca9c49d5 | Iustin Pop | to. Valid values are IPv4 addresses. Use the address 0.0.0.0 |
772 | ca9c49d5 | Iustin Pop | to bind to all available interfaces. |
773 | ca9c49d5 | Iustin Pop | </para> |
774 | ca9c49d5 | Iustin Pop | |
775 | ca9c49d5 | Iustin Pop | <para> |
776 | a8083063 | Iustin Pop | All the changes take effect at the next restart. If the |
777 | a8083063 | Iustin Pop | instance is running, there is no effect on the instance. |
778 | a8083063 | Iustin Pop | </para> |
779 | a8083063 | Iustin Pop | </refsect3> |
780 | a8083063 | Iustin Pop | |
781 | d0834de3 | Michael Hanselmann | <refsect3> |
782 | d0834de3 | Michael Hanselmann | <title>REINSTALL</title> |
783 | d0834de3 | Michael Hanselmann | |
784 | d0834de3 | Michael Hanselmann | <cmdsynopsis> |
785 | d0834de3 | Michael Hanselmann | <command>reinstall</command> |
786 | d0834de3 | Michael Hanselmann | <arg choice="opt">-o <replaceable>os-type</replaceable></arg> |
787 | d0834de3 | Michael Hanselmann | <arg choice="opt">-f <replaceable>force</replaceable></arg> |
788 | 20e23543 | Alexander Schreiber | <arg>--select-os</arg> |
789 | d0834de3 | Michael Hanselmann | <arg choice="req"><replaceable>instance</replaceable></arg> |
790 | d0834de3 | Michael Hanselmann | </cmdsynopsis> |
791 | d0834de3 | Michael Hanselmann | |
792 | d0834de3 | Michael Hanselmann | <para> |
793 | d0834de3 | Michael Hanselmann | Reinstalls the operating system on the given instance. The instance |
794 | d0834de3 | Michael Hanselmann | must be stopped when running this command. If the |
795 | d0834de3 | Michael Hanselmann | <option>--os-type</option> is specified, the operating system is |
796 | d0834de3 | Michael Hanselmann | changed. |
797 | d0834de3 | Michael Hanselmann | </para> |
798 | 20e23543 | Alexander Schreiber | |
799 | 20e23543 | Alexander Schreiber | <para> |
800 | 20e23543 | Alexander Schreiber | The <option>--select-os</option> option switches to an |
801 | 20e23543 | Alexander Schreiber | interactive OS reinstall. The user is prompted to select the OS |
802 | 20e23543 | Alexander Schreiber | template from the list of available OS templates. |
803 | 20e23543 | Alexander Schreiber | </para> |
804 | d0834de3 | Michael Hanselmann | </refsect3> |
805 | d0834de3 | Michael Hanselmann | |
806 | decd5f45 | Iustin Pop | <refsect3> |
807 | decd5f45 | Iustin Pop | <title>RENAME</title> |
808 | decd5f45 | Iustin Pop | |
809 | decd5f45 | Iustin Pop | <cmdsynopsis> |
810 | decd5f45 | Iustin Pop | <command>rename</command> |
811 | decd5f45 | Iustin Pop | <arg>--no-ip-check</arg> |
812 | decd5f45 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
813 | decd5f45 | Iustin Pop | <arg choice="req"><replaceable>new_name</replaceable></arg> |
814 | decd5f45 | Iustin Pop | </cmdsynopsis> |
815 | decd5f45 | Iustin Pop | |
816 | decd5f45 | Iustin Pop | <para> |
817 | decd5f45 | Iustin Pop | Renames the given instance. The instance must be stopped |
818 | decd5f45 | Iustin Pop | when running this command. The requirements for the new name |
819 | decd5f45 | Iustin Pop | are the same as for adding an instance: the new name must be |
820 | decd5f45 | Iustin Pop | resolvable and the IP it resolves to must not be reachable |
821 | decd5f45 | Iustin Pop | (in order to prevent duplicate IPs the next time the |
822 | decd5f45 | Iustin Pop | instance is started). The IP test can be skipped if the |
823 | decd5f45 | Iustin Pop | <option>--no-ip-check</option> option is passed. |
824 | decd5f45 | Iustin Pop | </para> |
825 | decd5f45 | Iustin Pop | </refsect3> |
826 | decd5f45 | Iustin Pop | |
827 | a8083063 | Iustin Pop | </refsect2> |
828 | a8083063 | Iustin Pop | |
829 | a8083063 | Iustin Pop | <refsect2> |
830 | a8083063 | Iustin Pop | <title>Starting/stopping/connecting to console</title> |
831 | a8083063 | Iustin Pop | |
832 | a8083063 | Iustin Pop | <refsect3> |
833 | a8083063 | Iustin Pop | <title>STARTUP</title> |
834 | a8083063 | Iustin Pop | |
835 | a8083063 | Iustin Pop | <cmdsynopsis> |
836 | a8083063 | Iustin Pop | <command>startup</command> |
837 | a8083063 | Iustin Pop | <arg>--extra=<replaceable>PARAMS</replaceable></arg> |
838 | 3bd5f059 | Michael Hanselmann | <arg>--force</arg> |
839 | 312ac745 | Iustin Pop | <sbr> |
840 | 312ac745 | Iustin Pop | <group choice="opt"> |
841 | 312ac745 | Iustin Pop | <arg>--instance</arg> |
842 | 312ac745 | Iustin Pop | <arg>--node</arg> |
843 | 312ac745 | Iustin Pop | <arg>--primary</arg> |
844 | 312ac745 | Iustin Pop | <arg>--secondary</arg> |
845 | 312ac745 | Iustin Pop | <arg>--all</arg> |
846 | 312ac745 | Iustin Pop | </group> |
847 | 312ac745 | Iustin Pop | <sbr> |
848 | 312ac745 | Iustin Pop | <arg choice="opt" |
849 | 312ac745 | Iustin Pop | rep="repeat"><replaceable>name</replaceable></arg> |
850 | a8083063 | Iustin Pop | </cmdsynopsis> |
851 | a8083063 | Iustin Pop | |
852 | a8083063 | Iustin Pop | <para> |
853 | bcee9cb4 | Iustin Pop | Starts one or more instances, depending on the following |
854 | bcee9cb4 | Iustin Pop | options. The four available modes are: |
855 | 312ac745 | Iustin Pop | <variablelist> |
856 | 312ac745 | Iustin Pop | <varlistentry> |
857 | 312ac745 | Iustin Pop | <term><option>--instance</option></term> |
858 | 312ac745 | Iustin Pop | <listitem> |
859 | 312ac745 | Iustin Pop | <simpara>will start the instances given as arguments |
860 | 312ac745 | Iustin Pop | (at least one argument required); this is the default |
861 | 312ac745 | Iustin Pop | selection</simpara> |
862 | 312ac745 | Iustin Pop | </listitem> |
863 | 312ac745 | Iustin Pop | </varlistentry> |
864 | 312ac745 | Iustin Pop | <varlistentry> |
865 | 312ac745 | Iustin Pop | <term>--node</term> |
866 | 312ac745 | Iustin Pop | <listitem> |
867 | 312ac745 | Iustin Pop | <simpara>will start the instances who have the given |
868 | 312ac745 | Iustin Pop | node as either primary or secondary</simpara> |
869 | 312ac745 | Iustin Pop | </listitem> |
870 | 312ac745 | Iustin Pop | </varlistentry> |
871 | 312ac745 | Iustin Pop | <varlistentry> |
872 | 312ac745 | Iustin Pop | <term><option>--primary</option></term> |
873 | 312ac745 | Iustin Pop | <listitem> |
874 | 312ac745 | Iustin Pop | <simpara>will start all instances whose primary node |
875 | 312ac745 | Iustin Pop | is in the list of nodes passed as arguments (at least |
876 | 312ac745 | Iustin Pop | one node required)</simpara> |
877 | 312ac745 | Iustin Pop | </listitem> |
878 | 312ac745 | Iustin Pop | </varlistentry> |
879 | 312ac745 | Iustin Pop | <varlistentry> |
880 | 312ac745 | Iustin Pop | <term><option>--secondary</option></term> |
881 | 312ac745 | Iustin Pop | <listitem> |
882 | 312ac745 | Iustin Pop | <simpara>will start all instances whose secondary node |
883 | 312ac745 | Iustin Pop | is in the list of nodes passed as arguments (at least |
884 | 312ac745 | Iustin Pop | one node required)</simpara> |
885 | 312ac745 | Iustin Pop | </listitem> |
886 | 312ac745 | Iustin Pop | </varlistentry> |
887 | 312ac745 | Iustin Pop | <varlistentry> |
888 | 312ac745 | Iustin Pop | <term>--all</term> |
889 | 312ac745 | Iustin Pop | <listitem> |
890 | 312ac745 | Iustin Pop | <simpara>will start all instances in the cluster (no |
891 | 312ac745 | Iustin Pop | arguments accepted)</simpara> |
892 | 312ac745 | Iustin Pop | </listitem> |
893 | 312ac745 | Iustin Pop | </varlistentry> |
894 | 312ac745 | Iustin Pop | </variablelist> |
895 | 312ac745 | Iustin Pop | </para> |
896 | 312ac745 | Iustin Pop | |
897 | 312ac745 | Iustin Pop | <para> |
898 | bcee9cb4 | Iustin Pop | Note that although you can pass more than one selection |
899 | bcee9cb4 | Iustin Pop | option, the last one wins, so in order to guarantee the |
900 | bcee9cb4 | Iustin Pop | desired result, don't pass more than one such option. |
901 | a8083063 | Iustin Pop | </para> |
902 | a8083063 | Iustin Pop | |
903 | a8083063 | Iustin Pop | <para> |
904 | a8083063 | Iustin Pop | The <option>--extra</option> option is used to pass |
905 | a8083063 | Iustin Pop | additional argument to the instance's kernel for this start |
906 | a8083063 | Iustin Pop | only. Currently there is no way to specify a persistent set |
907 | a8083063 | Iustin Pop | of arguments (beside the one hardcoded). Note that this may |
908 | a8083063 | Iustin Pop | not apply to all virtualization types. |
909 | a8083063 | Iustin Pop | </para> |
910 | a8083063 | Iustin Pop | |
911 | 3bd5f059 | Michael Hanselmann | <para> |
912 | 3bd5f059 | Michael Hanselmann | Use <option>--force</option> to start even if secondary disks are |
913 | 3bd5f059 | Michael Hanselmann | failing. |
914 | 3bd5f059 | Michael Hanselmann | </para> |
915 | a8083063 | Iustin Pop | |
916 | a8083063 | Iustin Pop | <para> |
917 | a8083063 | Iustin Pop | Example: |
918 | a8083063 | Iustin Pop | <screen> |
919 | a8083063 | Iustin Pop | # gnt-instance start instance1.example.com |
920 | a8083063 | Iustin Pop | # gnt-instance start --extra single test1.example.com |
921 | bcee9cb4 | Iustin Pop | # gnt-instance start --node node1.example.com node2.example.com |
922 | bcee9cb4 | Iustin Pop | # gnt-instance start --all |
923 | a8083063 | Iustin Pop | </screen> |
924 | a8083063 | Iustin Pop | </para> |
925 | a8083063 | Iustin Pop | </refsect3> |
926 | a8083063 | Iustin Pop | |
927 | a8083063 | Iustin Pop | <refsect3> |
928 | a8083063 | Iustin Pop | <title>SHUTDOWN</title> |
929 | a8083063 | Iustin Pop | |
930 | a8083063 | Iustin Pop | <cmdsynopsis> |
931 | a8083063 | Iustin Pop | <command>shutdown</command> |
932 | 312ac745 | Iustin Pop | <sbr> |
933 | 312ac745 | Iustin Pop | <group choice="opt"> |
934 | 312ac745 | Iustin Pop | <arg>--instance</arg> |
935 | 312ac745 | Iustin Pop | <arg>--node</arg> |
936 | 312ac745 | Iustin Pop | <arg>--primary</arg> |
937 | 312ac745 | Iustin Pop | <arg>--secondary</arg> |
938 | 312ac745 | Iustin Pop | <arg>--all</arg> |
939 | 312ac745 | Iustin Pop | </group> |
940 | 312ac745 | Iustin Pop | <sbr> |
941 | 312ac745 | Iustin Pop | |
942 | 312ac745 | Iustin Pop | <arg choice="opt" |
943 | 312ac745 | Iustin Pop | rep="repeat"><replaceable>name</replaceable></arg> |
944 | a8083063 | Iustin Pop | </cmdsynopsis> |
945 | a8083063 | Iustin Pop | |
946 | a8083063 | Iustin Pop | <para> |
947 | 312ac745 | Iustin Pop | Stops one or more instances. If the instance cannot be |
948 | 312ac745 | Iustin Pop | cleanly stopped during a hardcoded interval (currently 2 |
949 | 312ac745 | Iustin Pop | minutes), it will forcibly stop the instance (equivalent to |
950 | 312ac745 | Iustin Pop | switching off the power on a physical machine). |
951 | 312ac745 | Iustin Pop | </para> |
952 | 312ac745 | Iustin Pop | |
953 | 312ac745 | Iustin Pop | <para> |
954 | 312ac745 | Iustin Pop | The <option>--instance</option>, <option>--node</option>, |
955 | 312ac745 | Iustin Pop | <option>--primary</option>, <option>--secondary</option> and |
956 | 312ac745 | Iustin Pop | <option>--all</option> options are similar as for the |
957 | 312ac745 | Iustin Pop | <command>startup</command> command and they influence the |
958 | 86b8c6ae | Alexander Schreiber | actual instances being shutdown. |
959 | a8083063 | Iustin Pop | </para> |
960 | a8083063 | Iustin Pop | |
961 | a8083063 | Iustin Pop | <para> |
962 | a8083063 | Iustin Pop | Example: |
963 | a8083063 | Iustin Pop | <screen> |
964 | a8083063 | Iustin Pop | # gnt-instance shutdown instance1.example.com |
965 | bcee9cb4 | Iustin Pop | # gnt-instance shutdown --all |
966 | a8083063 | Iustin Pop | </screen> |
967 | a8083063 | Iustin Pop | </para> |
968 | a8083063 | Iustin Pop | </refsect3> |
969 | a8083063 | Iustin Pop | |
970 | a8083063 | Iustin Pop | <refsect3> |
971 | 579d4337 | Alexander Schreiber | <title>REBOOT</title> |
972 | 579d4337 | Alexander Schreiber | |
973 | 579d4337 | Alexander Schreiber | <cmdsynopsis> |
974 | 579d4337 | Alexander Schreiber | <command>reboot</command> |
975 | 579d4337 | Alexander Schreiber | <sbr> |
976 | 579d4337 | Alexander Schreiber | <arg>--extra=<replaceable>PARAMS</replaceable></arg> |
977 | 579d4337 | Alexander Schreiber | <sbr> |
978 | 579d4337 | Alexander Schreiber | <arg>--type=<replaceable>REBOOT-TYPE</replaceable></arg> |
979 | 579d4337 | Alexander Schreiber | <sbr> |
980 | 579d4337 | Alexander Schreiber | <arg>--ignore-secondaries</arg> |
981 | 579d4337 | Alexander Schreiber | <sbr> |
982 | 579d4337 | Alexander Schreiber | <arg>--force-multiple</arg> |
983 | 579d4337 | Alexander Schreiber | <sbr> |
984 | 579d4337 | Alexander Schreiber | <group choice="opt"> |
985 | 579d4337 | Alexander Schreiber | <arg>--instance</arg> |
986 | 579d4337 | Alexander Schreiber | <arg>--node</arg> |
987 | 579d4337 | Alexander Schreiber | <arg>--primary</arg> |
988 | 579d4337 | Alexander Schreiber | <arg>--secondary</arg> |
989 | 579d4337 | Alexander Schreiber | <arg>--all</arg> |
990 | 579d4337 | Alexander Schreiber | </group> |
991 | 579d4337 | Alexander Schreiber | <sbr> |
992 | 579d4337 | Alexander Schreiber | |
993 | 579d4337 | Alexander Schreiber | <arg choice="opt" |
994 | 579d4337 | Alexander Schreiber | rep="repeat"><replaceable>name</replaceable></arg> |
995 | 579d4337 | Alexander Schreiber | </cmdsynopsis> |
996 | 579d4337 | Alexander Schreiber | |
997 | 579d4337 | Alexander Schreiber | <para> |
998 | 579d4337 | Alexander Schreiber | Reboots one or more instances. The type of reboot depends on |
999 | 579d4337 | Alexander Schreiber | the value of <option>--type</option>. A soft reboot does a |
1000 | 579d4337 | Alexander Schreiber | hypervisor reboot, a hard reboot does a instance stop, |
1001 | 579d4337 | Alexander Schreiber | recreates the hypervisor config for the instance and |
1002 | 579d4337 | Alexander Schreiber | starts the instance. A full reboot does the equivalent |
1003 | 579d4337 | Alexander Schreiber | of <command>gnt-instance shutdown && gnt-instance |
1004 | 579d4337 | Alexander Schreiber | startup</command>. The default is soft reboot. |
1005 | 579d4337 | Alexander Schreiber | </para> |
1006 | 579d4337 | Alexander Schreiber | |
1007 | 579d4337 | Alexander Schreiber | <para> |
1008 | 579d4337 | Alexander Schreiber | For the hard reboot the option |
1009 | 579d4337 | Alexander Schreiber | <option>--ignore-secondaries</option> ignores errors for the |
1010 | 579d4337 | Alexander Schreiber | secondary node while re-assembling the instance disks. |
1011 | 579d4337 | Alexander Schreiber | </para> |
1012 | 579d4337 | Alexander Schreiber | |
1013 | 579d4337 | Alexander Schreiber | <para> |
1014 | 579d4337 | Alexander Schreiber | The <option>--instance</option>, <option>--node</option>, |
1015 | 579d4337 | Alexander Schreiber | <option>--primary</option>, <option>--secondary</option> and |
1016 | 579d4337 | Alexander Schreiber | <option>--all</option> options are similar as for the |
1017 | 579d4337 | Alexander Schreiber | <command>startup</command> command and they influence the |
1018 | 579d4337 | Alexander Schreiber | actual instances being rebooted. |
1019 | 579d4337 | Alexander Schreiber | </para> |
1020 | 36c87212 | Iustin Pop | |
1021 | 579d4337 | Alexander Schreiber | <para> |
1022 | 3bd5f059 | Michael Hanselmann | Use the <option>--force-multiple</option> option to keep |
1023 | 579d4337 | Alexander Schreiber | gnt-instance from asking for confirmation when more than one |
1024 | 579d4337 | Alexander Schreiber | instance is affected. |
1025 | 579d4337 | Alexander Schreiber | </para> |
1026 | 579d4337 | Alexander Schreiber | |
1027 | 579d4337 | Alexander Schreiber | <para> |
1028 | 579d4337 | Alexander Schreiber | Example: |
1029 | 579d4337 | Alexander Schreiber | <screen> |
1030 | 579d4337 | Alexander Schreiber | # gnt-instance reboot instance1.example.com |
1031 | 579d4337 | Alexander Schreiber | # gnt-instance reboot --type=full instance1.example.com |
1032 | 579d4337 | Alexander Schreiber | </screen> |
1033 | 579d4337 | Alexander Schreiber | </para> |
1034 | 579d4337 | Alexander Schreiber | </refsect3> |
1035 | 579d4337 | Alexander Schreiber | |
1036 | 579d4337 | Alexander Schreiber | <refsect3> |
1037 | a8083063 | Iustin Pop | <title>CONSOLE</title> |
1038 | a8083063 | Iustin Pop | <cmdsynopsis> |
1039 | a8083063 | Iustin Pop | <command>console</command> |
1040 | 51c6e7b5 | Michael Hanselmann | <arg choice="opt">--show-cmd</arg> |
1041 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
1042 | a8083063 | Iustin Pop | </cmdsynopsis> |
1043 | a8083063 | Iustin Pop | |
1044 | a8083063 | Iustin Pop | <para> |
1045 | a8083063 | Iustin Pop | Connects to the console of the given instance. If the instance |
1046 | 51c6e7b5 | Michael Hanselmann | is not up, an error is returned. Use the <option>--show-cmd</option> |
1047 | 51c6e7b5 | Michael Hanselmann | option to display the command instead of executing it. |
1048 | a8083063 | Iustin Pop | </para> |
1049 | a8083063 | Iustin Pop | |
1050 | a8083063 | Iustin Pop | <para> |
1051 | 16034f1f | Alexander Schreiber | For HVM instances, this will attempt to connect to the serial |
1052 | 16034f1f | Alexander Schreiber | console of the instance. To connect to the virtualized |
1053 | 16034f1f | Alexander Schreiber | "physical" console of a HVM instance, use a VNC client with |
1054 | 16034f1f | Alexander Schreiber | the connection info from gnt-instance info. |
1055 | 16034f1f | Alexander Schreiber | </para> |
1056 | 16034f1f | Alexander Schreiber | |
1057 | 16034f1f | Alexander Schreiber | <para> |
1058 | a8083063 | Iustin Pop | Example: |
1059 | a8083063 | Iustin Pop | <screen> |
1060 | a8083063 | Iustin Pop | # gnt-instance console instance1.example.com |
1061 | a8083063 | Iustin Pop | </screen> |
1062 | a8083063 | Iustin Pop | </para> |
1063 | a8083063 | Iustin Pop | </refsect3> |
1064 | a8083063 | Iustin Pop | |
1065 | a8083063 | Iustin Pop | </refsect2> |
1066 | a8083063 | Iustin Pop | |
1067 | a8083063 | Iustin Pop | <refsect2> |
1068 | a8083063 | Iustin Pop | <title>Disk management</title> |
1069 | a8083063 | Iustin Pop | |
1070 | a8083063 | Iustin Pop | <refsect3> |
1071 | a8083063 | Iustin Pop | <title>REPLACE-DISKS</title> |
1072 | a8083063 | Iustin Pop | |
1073 | a8083063 | Iustin Pop | <cmdsynopsis> |
1074 | a8083063 | Iustin Pop | <command>replace-disks</command> |
1075 | a53a1b18 | Michael Hanselmann | |
1076 | a53a1b18 | Michael Hanselmann | <group choice="req"> |
1077 | a53a1b18 | Michael Hanselmann | <arg>--iallocator <replaceable>name</replaceable></arg> |
1078 | a53a1b18 | Michael Hanselmann | <arg>--new-secondary <replaceable>NODE</replaceable></arg> |
1079 | a53a1b18 | Michael Hanselmann | </group> |
1080 | a53a1b18 | Michael Hanselmann | <sbr> |
1081 | a53a1b18 | Michael Hanselmann | |
1082 | 6536dfa1 | Guido Trotter | <arg choice="opt">-s</arg> |
1083 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
1084 | a8083063 | Iustin Pop | </cmdsynopsis> |
1085 | a8083063 | Iustin Pop | |
1086 | 0b0dea6a | Iustin Pop | <cmdsynopsis> |
1087 | 0b0dea6a | Iustin Pop | <command>replace-disks</command> |
1088 | a53a1b18 | Michael Hanselmann | |
1089 | 0b0dea6a | Iustin Pop | <group> |
1090 | 0b0dea6a | Iustin Pop | <arg choice="req">-s</arg> |
1091 | 0b0dea6a | Iustin Pop | <arg choice="req">-p</arg> |
1092 | 0b0dea6a | Iustin Pop | </group> |
1093 | 0b0dea6a | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
1094 | 0b0dea6a | Iustin Pop | </cmdsynopsis> |
1095 | 0b0dea6a | Iustin Pop | |
1096 | a8083063 | Iustin Pop | <para> |
1097 | 0b0dea6a | Iustin Pop | This command is a generalized form for adding and replacing |
1098 | bd028152 | Iustin Pop | disks. It is currently only valid for the mirrored (DRBD) |
1099 | bd028152 | Iustin Pop | disk template. |
1100 | a8083063 | Iustin Pop | </para> |
1101 | 0b0dea6a | Iustin Pop | |
1102 | 0b0dea6a | Iustin Pop | <para> |
1103 | bd028152 | Iustin Pop | The first form will do a secondary node change, while the |
1104 | bd028152 | Iustin Pop | second form will replace the disks on either the primary |
1105 | 0b0dea6a | Iustin Pop | (<option>-p</option>) or the secondary (<option>-s</option>) |
1106 | 0b0dea6a | Iustin Pop | node of the instance only, without changing the node. |
1107 | 0b0dea6a | Iustin Pop | </para> |
1108 | 0b0dea6a | Iustin Pop | |
1109 | a53a1b18 | Michael Hanselmann | <para> |
1110 | a53a1b18 | Michael Hanselmann | Specifying <option>--iallocator</option> enables secondary node |
1111 | a53a1b18 | Michael Hanselmann | replacement and and makes the new secondary be selected automatically |
1112 | a53a1b18 | Michael Hanselmann | by the specified allocator plugin. |
1113 | a53a1b18 | Michael Hanselmann | </para> |
1114 | a8083063 | Iustin Pop | </refsect3> |
1115 | a8083063 | Iustin Pop | |
1116 | a8083063 | Iustin Pop | <refsect3> |
1117 | a8083063 | Iustin Pop | <title>ACTIVATE-DISKS</title> |
1118 | a8083063 | Iustin Pop | |
1119 | a8083063 | Iustin Pop | <cmdsynopsis> |
1120 | a8083063 | Iustin Pop | <command>activate-disks</command> |
1121 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
1122 | a8083063 | Iustin Pop | </cmdsynopsis> |
1123 | a8083063 | Iustin Pop | <para> |
1124 | a8083063 | Iustin Pop | Activates the block devices of the given instance. If |
1125 | a8083063 | Iustin Pop | successful, the command will show the location and name of |
1126 | a8083063 | Iustin Pop | the block devices: |
1127 | a8083063 | Iustin Pop | <screen> |
1128 | bd028152 | Iustin Pop | node1.example.com:sda:/dev/drbd0 |
1129 | bd028152 | Iustin Pop | node1.example.com:sdb:/dev/drbd1 |
1130 | a8083063 | Iustin Pop | </screen> |
1131 | a8083063 | Iustin Pop | |
1132 | a8083063 | Iustin Pop | In this example, <emphasis>node1.example.com</emphasis> is |
1133 | a8083063 | Iustin Pop | the name of the node on which the devices have been |
1134 | a8083063 | Iustin Pop | activated. The <emphasis>sda</emphasis> and |
1135 | a8083063 | Iustin Pop | <emphasis>sdb</emphasis> are the names of the block devices |
1136 | bd028152 | Iustin Pop | inside the instance. <emphasis>/dev/drbd0</emphasis> and |
1137 | bd028152 | Iustin Pop | <emphasis>/dev/drbd1</emphasis> are the names of the block |
1138 | a8083063 | Iustin Pop | devices as visible on the node. |
1139 | a8083063 | Iustin Pop | </para> |
1140 | a8083063 | Iustin Pop | |
1141 | a8083063 | Iustin Pop | <para> |
1142 | a8083063 | Iustin Pop | Note that it is safe to run this command while the instance |
1143 | a8083063 | Iustin Pop | is already running. |
1144 | a8083063 | Iustin Pop | </para> |
1145 | a8083063 | Iustin Pop | </refsect3> |
1146 | a8083063 | Iustin Pop | |
1147 | a8083063 | Iustin Pop | <refsect3> |
1148 | a8083063 | Iustin Pop | <title>DEACTIVATE-DISKS</title> |
1149 | a8083063 | Iustin Pop | |
1150 | a8083063 | Iustin Pop | <cmdsynopsis> |
1151 | a8083063 | Iustin Pop | <command>deactivate-disks</command> |
1152 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
1153 | a8083063 | Iustin Pop | </cmdsynopsis> |
1154 | a8083063 | Iustin Pop | <para> |
1155 | a8083063 | Iustin Pop | De-activates the block devices of the given instance. Note |
1156 | bd028152 | Iustin Pop | that if you run this command for an instance with a drbd |
1157 | bd028152 | Iustin Pop | disk template, while it is running, it will not be able to |
1158 | bd028152 | Iustin Pop | shutdown the block devices on the primary node, but it will |
1159 | bd028152 | Iustin Pop | shutdown the block devices on the secondary nodes, thus |
1160 | bd028152 | Iustin Pop | breaking the replication. |
1161 | a8083063 | Iustin Pop | </para> |
1162 | a8083063 | Iustin Pop | |
1163 | a8083063 | Iustin Pop | </refsect3> |
1164 | a8083063 | Iustin Pop | |
1165 | eb65d354 | Iustin Pop | <refsect3> |
1166 | eb65d354 | Iustin Pop | <title>GROW-DISK</title> |
1167 | eb65d354 | Iustin Pop | <cmdsynopsis> |
1168 | eb65d354 | Iustin Pop | <command>grow-disk</command> |
1169 | eb65d354 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
1170 | eb65d354 | Iustin Pop | <arg choice="req"><replaceable>disk</replaceable></arg> |
1171 | eb65d354 | Iustin Pop | <arg choice="req"><replaceable>amount</replaceable></arg> |
1172 | eb65d354 | Iustin Pop | </cmdsynopsis> |
1173 | eb65d354 | Iustin Pop | |
1174 | eb65d354 | Iustin Pop | <para> |
1175 | eb65d354 | Iustin Pop | Grows an instance's disk. This is only possible for |
1176 | eb65d354 | Iustin Pop | instances having a <literal>plain</literal> or |
1177 | eb65d354 | Iustin Pop | <literal>drbd</literal> disk template. |
1178 | eb65d354 | Iustin Pop | </para> |
1179 | eb65d354 | Iustin Pop | |
1180 | eb65d354 | Iustin Pop | <para> |
1181 | eb65d354 | Iustin Pop | Note that this command only change the block device size; it |
1182 | eb65d354 | Iustin Pop | will not grow the actual filesystems, partitions, etc. that |
1183 | eb65d354 | Iustin Pop | live on that disk. Usually, you will need to: |
1184 | eb65d354 | Iustin Pop | <orderedlist> |
1185 | eb65d354 | Iustin Pop | <listitem> |
1186 | eb65d354 | Iustin Pop | <simpara>use <command>gnt-instance grow-disk</command></simpara> |
1187 | eb65d354 | Iustin Pop | </listitem> |
1188 | eb65d354 | Iustin Pop | <listitem> |
1189 | eb65d354 | Iustin Pop | <simpara>reboot the instance (later, at a convenient |
1190 | eb65d354 | Iustin Pop | time)</simpara> |
1191 | eb65d354 | Iustin Pop | </listitem> |
1192 | eb65d354 | Iustin Pop | <listitem> |
1193 | eb65d354 | Iustin Pop | <simpara>use a filesystem resizer, such as |
1194 | eb65d354 | Iustin Pop | <citerefentry> <refentrytitle>ext2online</refentrytitle> |
1195 | eb65d354 | Iustin Pop | <manvolnum>8</manvolnum> </citerefentry> or |
1196 | eb65d354 | Iustin Pop | <citerefentry> <refentrytitle>xfs_growfs</refentrytitle> |
1197 | eb65d354 | Iustin Pop | <manvolnum>8</manvolnum> </citerefentry> to resize the |
1198 | eb65d354 | Iustin Pop | filesystem, or use <citerefentry> |
1199 | eb65d354 | Iustin Pop | <refentrytitle>fdisk</refentrytitle> |
1200 | eb65d354 | Iustin Pop | <manvolnum>8</manvolnum> </citerefentry> to change the |
1201 | eb65d354 | Iustin Pop | partition table on the disk |
1202 | eb65d354 | Iustin Pop | </simpara> |
1203 | eb65d354 | Iustin Pop | </listitem> |
1204 | eb65d354 | Iustin Pop | </orderedlist> |
1205 | eb65d354 | Iustin Pop | </para> |
1206 | eb65d354 | Iustin Pop | |
1207 | eb65d354 | Iustin Pop | |
1208 | eb65d354 | Iustin Pop | <para> |
1209 | eb65d354 | Iustin Pop | The <replaceable>disk</replaceable> argument is either |
1210 | eb65d354 | Iustin Pop | <literal>sda</literal> or <literal>sdb</literal>. The |
1211 | eb65d354 | Iustin Pop | <replaceable>amount</replaceable> argument is given either |
1212 | eb65d354 | Iustin Pop | as a number (and it represents the amount to increase the |
1213 | eb65d354 | Iustin Pop | disk with in mebibytes) or can be given similar to the |
1214 | eb65d354 | Iustin Pop | arguments in the create instance operation, with a suffix |
1215 | eb65d354 | Iustin Pop | denoting the unit. |
1216 | eb65d354 | Iustin Pop | </para> |
1217 | eb65d354 | Iustin Pop | |
1218 | eb65d354 | Iustin Pop | <para> |
1219 | eb65d354 | Iustin Pop | Note that the disk grow operation might complete on one node |
1220 | eb65d354 | Iustin Pop | but fail on the other; this will leave the instance with |
1221 | eb65d354 | Iustin Pop | different-sized LVs on the two nodes, but this will not |
1222 | eb65d354 | Iustin Pop | create problems (except for unused space). |
1223 | eb65d354 | Iustin Pop | </para> |
1224 | eb65d354 | Iustin Pop | |
1225 | eb65d354 | Iustin Pop | <para>Example (increasing sda for instance1 with 16GiB): |
1226 | eb65d354 | Iustin Pop | <screen> |
1227 | eb65d354 | Iustin Pop | # gnt-instance grow-disk instance1.example.com sda 16g |
1228 | eb65d354 | Iustin Pop | </screen> |
1229 | eb65d354 | Iustin Pop | </para> |
1230 | eb65d354 | Iustin Pop | |
1231 | eb65d354 | Iustin Pop | <para> |
1232 | eb65d354 | Iustin Pop | Also note that disk shrinking will not be supported; use |
1233 | eb65d354 | Iustin Pop | <command>gnt-backup export</command> and then |
1234 | eb65d354 | Iustin Pop | <command>gnt-backup import</command> to reduce the disk size |
1235 | eb65d354 | Iustin Pop | of an instance. |
1236 | eb65d354 | Iustin Pop | </para> |
1237 | eb65d354 | Iustin Pop | </refsect3> |
1238 | eb65d354 | Iustin Pop | |
1239 | a8083063 | Iustin Pop | </refsect2> |
1240 | a8083063 | Iustin Pop | |
1241 | a8083063 | Iustin Pop | <refsect2> |
1242 | a8083063 | Iustin Pop | <title>Recovery</title> |
1243 | a8083063 | Iustin Pop | |
1244 | a8083063 | Iustin Pop | <refsect3> |
1245 | a8083063 | Iustin Pop | <title>FAILOVER</title> |
1246 | a8083063 | Iustin Pop | |
1247 | a8083063 | Iustin Pop | <cmdsynopsis> |
1248 | a8083063 | Iustin Pop | <command>failover</command> |
1249 | a8083063 | Iustin Pop | <arg>-f</arg> |
1250 | a8083063 | Iustin Pop | <arg>--ignore-consistency</arg> |
1251 | 80de0e3f | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
1252 | a8083063 | Iustin Pop | </cmdsynopsis> |
1253 | a8083063 | Iustin Pop | |
1254 | a8083063 | Iustin Pop | <para> |
1255 | 80de0e3f | Iustin Pop | Failover will fail the instance over its secondary |
1256 | bd028152 | Iustin Pop | node. This works only for instances having a drbd disk |
1257 | bd028152 | Iustin Pop | template. |
1258 | a8083063 | Iustin Pop | </para> |
1259 | a8083063 | Iustin Pop | |
1260 | a8083063 | Iustin Pop | <para> |
1261 | a8083063 | Iustin Pop | Normally the failover will check the consistency of the |
1262 | 80de0e3f | Iustin Pop | disks before failing over the instance. If you are trying to |
1263 | a8083063 | Iustin Pop | migrate instances off a dead node, this will fail. Use the |
1264 | a8083063 | Iustin Pop | <option>--ignore-consistency</option> option for this |
1265 | 24a40d57 | Iustin Pop | purpose. Note that this option can be dangerous as errors in |
1266 | 24a40d57 | Iustin Pop | shutting down the instance will be ignored, resulting in |
1267 | 24a40d57 | Iustin Pop | possibly having the instance running on two machines in |
1268 | 24a40d57 | Iustin Pop | parallel (on disconnected DRBD drives). |
1269 | a8083063 | Iustin Pop | </para> |
1270 | a8083063 | Iustin Pop | |
1271 | a8083063 | Iustin Pop | <para> |
1272 | a8083063 | Iustin Pop | Example: |
1273 | a8083063 | Iustin Pop | <screen> |
1274 | a8083063 | Iustin Pop | # gnt-instance failover instance1.example.com |
1275 | a8083063 | Iustin Pop | </screen> |
1276 | a8083063 | Iustin Pop | </para> |
1277 | a8083063 | Iustin Pop | </refsect3> |
1278 | a8083063 | Iustin Pop | |
1279 | a8083063 | Iustin Pop | </refsect2> |
1280 | a8083063 | Iustin Pop | |
1281 | cc425644 | Iustin Pop | <refsect2> |
1282 | cc425644 | Iustin Pop | <title>TAGS</title> |
1283 | cc425644 | Iustin Pop | |
1284 | cc425644 | Iustin Pop | <refsect3> |
1285 | cc425644 | Iustin Pop | <title>ADD-TAGS</title> |
1286 | cc425644 | Iustin Pop | |
1287 | cc425644 | Iustin Pop | <cmdsynopsis> |
1288 | cc425644 | Iustin Pop | <command>add-tags</command> |
1289 | 810c50b7 | Iustin Pop | <arg choice="opt">--from <replaceable>file</replaceable></arg> |
1290 | cc425644 | Iustin Pop | <arg choice="req"><replaceable>instancename</replaceable></arg> |
1291 | cc425644 | Iustin Pop | <arg choice="req" |
1292 | cc425644 | Iustin Pop | rep="repeat"><replaceable>tag</replaceable></arg> |
1293 | cc425644 | Iustin Pop | </cmdsynopsis> |
1294 | cc425644 | Iustin Pop | |
1295 | cc425644 | Iustin Pop | <para> |
1296 | cc425644 | Iustin Pop | Add tags to the given instance. If any of the tags contains |
1297 | cc425644 | Iustin Pop | invalid characters, the entire operation will abort. |
1298 | cc425644 | Iustin Pop | </para> |
1299 | 810c50b7 | Iustin Pop | <para> |
1300 | 810c50b7 | Iustin Pop | If the <option>--from</option> option is given, the list of |
1301 | 810c50b7 | Iustin Pop | tags will be extended with the contents of that file (each |
1302 | 810c50b7 | Iustin Pop | line becomes a tag). In this case, there is not need to pass |
1303 | 810c50b7 | Iustin Pop | tags on the command line (if you do, both sources will be |
1304 | 810c50b7 | Iustin Pop | used). A file name of - will be interpreted as stdin. |
1305 | 810c50b7 | Iustin Pop | </para> |
1306 | cc425644 | Iustin Pop | </refsect3> |
1307 | cc425644 | Iustin Pop | |
1308 | cc425644 | Iustin Pop | <refsect3> |
1309 | cc425644 | Iustin Pop | <title>LIST-TAGS</title> |
1310 | cc425644 | Iustin Pop | |
1311 | cc425644 | Iustin Pop | <cmdsynopsis> |
1312 | cc425644 | Iustin Pop | <command>list-tags</command> |
1313 | cc425644 | Iustin Pop | <arg choice="req"><replaceable>instancename</replaceable></arg> |
1314 | cc425644 | Iustin Pop | </cmdsynopsis> |
1315 | cc425644 | Iustin Pop | |
1316 | cc425644 | Iustin Pop | <para>List the tags of the given instance.</para> |
1317 | cc425644 | Iustin Pop | </refsect3> |
1318 | cc425644 | Iustin Pop | |
1319 | cc425644 | Iustin Pop | <refsect3> |
1320 | cc425644 | Iustin Pop | <title>REMOVE-TAGS</title> |
1321 | cc425644 | Iustin Pop | <cmdsynopsis> |
1322 | cc425644 | Iustin Pop | <command>remove-tags</command> |
1323 | 810c50b7 | Iustin Pop | <arg choice="opt">--from <replaceable>file</replaceable></arg> |
1324 | cc425644 | Iustin Pop | <arg choice="req"><replaceable>instancename</replaceable></arg> |
1325 | cc425644 | Iustin Pop | <arg choice="req" |
1326 | cc425644 | Iustin Pop | rep="repeat"><replaceable>tag</replaceable></arg> |
1327 | cc425644 | Iustin Pop | </cmdsynopsis> |
1328 | cc425644 | Iustin Pop | |
1329 | cc425644 | Iustin Pop | <para> |
1330 | cc425644 | Iustin Pop | Remove tags from the given instance. If any of the tags are |
1331 | cc425644 | Iustin Pop | not existing on the node, the entire operation will abort. |
1332 | cc425644 | Iustin Pop | </para> |
1333 | 810c50b7 | Iustin Pop | |
1334 | 810c50b7 | Iustin Pop | <para> |
1335 | 810c50b7 | Iustin Pop | If the <option>--from</option> option is given, the list of |
1336 | 810c50b7 | Iustin Pop | tags will be extended with the contents of that file (each |
1337 | 810c50b7 | Iustin Pop | line becomes a tag). In this case, there is not need to pass |
1338 | 810c50b7 | Iustin Pop | tags on the command line (if you do, both sources will be |
1339 | 810c50b7 | Iustin Pop | used). A file name of - will be interpreted as stdin. |
1340 | 810c50b7 | Iustin Pop | </para> |
1341 | cc425644 | Iustin Pop | </refsect3> |
1342 | cc425644 | Iustin Pop | |
1343 | cc425644 | Iustin Pop | </refsect2> |
1344 | cc425644 | Iustin Pop | |
1345 | a8083063 | Iustin Pop | </refsect1> |
1346 | a8083063 | Iustin Pop | |
1347 | a8083063 | Iustin Pop | &footer; |
1348 | a8083063 | Iustin Pop | |
1349 | a8083063 | Iustin Pop | </refentry> |
1350 | a8083063 | Iustin Pop | |
1351 | a8083063 | Iustin Pop | <!-- Keep this comment at the end of the file |
1352 | a8083063 | Iustin Pop | Local variables: |
1353 | a8083063 | Iustin Pop | mode: sgml |
1354 | a8083063 | Iustin Pop | sgml-omittag:t |
1355 | a8083063 | Iustin Pop | sgml-shorttag:t |
1356 | a8083063 | Iustin Pop | sgml-minimize-attributes:nil |
1357 | a8083063 | Iustin Pop | sgml-always-quote-attributes:t |
1358 | a8083063 | Iustin Pop | sgml-indent-step:2 |
1359 | a8083063 | Iustin Pop | sgml-indent-data:t |
1360 | a8083063 | Iustin Pop | sgml-parent-document:nil |
1361 | a8083063 | Iustin Pop | sgml-default-dtd-file:nil |
1362 | a8083063 | Iustin Pop | sgml-exposed-tags:nil |
1363 | a8083063 | Iustin Pop | sgml-local-catalogs:nil |
1364 | a8083063 | Iustin Pop | sgml-local-ecat-files:nil |
1365 | a8083063 | Iustin Pop | End: |
1366 | a8083063 | Iustin Pop | --> |