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