root / man / gnt-instance.sgml @ 4f958b0b
History | View | Annotate | Download (96.3 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 | e0897adf | Michael Hanselmann | <!ENTITY dhdate "<date>June 08, 2010</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 | d3b4cf9f | Iustin Pop | <year>2009</year> |
25 | c7c568b4 | René Nussbaumer | <year>2010</year> |
26 | a8083063 | Iustin Pop | <holder>Google Inc.</holder> |
27 | a8083063 | Iustin Pop | </copyright> |
28 | a8083063 | Iustin Pop | &dhdate; |
29 | a8083063 | Iustin Pop | </refentryinfo> |
30 | a8083063 | Iustin Pop | <refmeta> |
31 | a8083063 | Iustin Pop | &dhucpackage; |
32 | a8083063 | Iustin Pop | |
33 | a8083063 | Iustin Pop | &dhsection; |
34 | e0897adf | Michael Hanselmann | <refmiscinfo>Ganeti 2.2</refmiscinfo> |
35 | a8083063 | Iustin Pop | </refmeta> |
36 | a8083063 | Iustin Pop | <refnamediv> |
37 | a8083063 | Iustin Pop | <refname>&dhpackage;</refname> |
38 | a8083063 | Iustin Pop | |
39 | e0897adf | Michael Hanselmann | <refpurpose>Ganeti instance administration</refpurpose> |
40 | a8083063 | Iustin Pop | </refnamediv> |
41 | a8083063 | Iustin Pop | <refsynopsisdiv> |
42 | a8083063 | Iustin Pop | <cmdsynopsis> |
43 | a8083063 | Iustin Pop | <command>&dhpackage; </command> |
44 | a8083063 | Iustin Pop | |
45 | a8083063 | Iustin Pop | <arg choice="req">command</arg> |
46 | a8083063 | Iustin Pop | <arg>arguments...</arg> |
47 | a8083063 | Iustin Pop | </cmdsynopsis> |
48 | a8083063 | Iustin Pop | </refsynopsisdiv> |
49 | a8083063 | Iustin Pop | <refsect1> |
50 | a8083063 | Iustin Pop | <title>DESCRIPTION</title> |
51 | a8083063 | Iustin Pop | |
52 | a8083063 | Iustin Pop | <para> |
53 | a8083063 | Iustin Pop | The <command>&dhpackage;</command> is used for instance |
54 | e0897adf | Michael Hanselmann | administration in the Ganeti system. |
55 | a8083063 | Iustin Pop | </para> |
56 | a8083063 | Iustin Pop | |
57 | a8083063 | Iustin Pop | </refsect1> |
58 | a8083063 | Iustin Pop | <refsect1> |
59 | a8083063 | Iustin Pop | <title>COMMANDS</title> |
60 | a8083063 | Iustin Pop | |
61 | a8083063 | Iustin Pop | <refsect2> |
62 | a8083063 | Iustin Pop | <title>Creation/removal/querying</title> |
63 | a8083063 | Iustin Pop | |
64 | a8083063 | Iustin Pop | <refsect3> |
65 | a8083063 | Iustin Pop | <title>ADD</title> |
66 | a8083063 | Iustin Pop | <cmdsynopsis> |
67 | a8083063 | Iustin Pop | <command>add</command> |
68 | b9ac33e9 | Iustin Pop | <sbr> |
69 | c0e4a2c3 | Iustin Pop | <arg choice="req">-t<group choice="req"> |
70 | c0e4a2c3 | Iustin Pop | <arg>diskless</arg> |
71 | c0e4a2c3 | Iustin Pop | <arg>file</arg> |
72 | c0e4a2c3 | Iustin Pop | <arg>plain</arg> |
73 | c0e4a2c3 | Iustin Pop | <arg>drbd</arg> |
74 | c0e4a2c3 | Iustin Pop | </group></arg> |
75 | c0e4a2c3 | Iustin Pop | <sbr> |
76 | c0e4a2c3 | Iustin Pop | |
77 | c0e4a2c3 | Iustin Pop | <group choice="req"> |
78 | 17227cd1 | Iustin Pop | <arg rep="repeat">--disk=<replaceable>N</replaceable>:<group choice="req"> |
79 | 17227cd1 | Iustin Pop | <arg>size=<replaceable>VAL</replaceable></arg> |
80 | 17227cd1 | Iustin Pop | <arg>adopt=<replaceable>LV</replaceable></arg> |
81 | 17227cd1 | Iustin Pop | </group>,mode=<replaceable>ro|rw</replaceable></arg> |
82 | c0e4a2c3 | Iustin Pop | <arg>-s <replaceable>SIZE</replaceable></arg> |
83 | c0e4a2c3 | Iustin Pop | </group> |
84 | 783583e9 | Michael Hanselmann | <sbr> |
85 | 1d65264b | Iustin Pop | <arg>--no-ip-check</arg> |
86 | 1d65264b | Iustin Pop | <arg>--no-name-check</arg> |
87 | 1d65264b | Iustin Pop | <arg>--no-start</arg> |
88 | 25a8792c | Iustin Pop | <arg>--no-install</arg> |
89 | 1d65264b | Iustin Pop | <sbr> |
90 | d3b4cf9f | Iustin Pop | <group> |
91 | d3b4cf9f | Iustin Pop | <arg rep="repeat">--net=<replaceable>N</replaceable><arg rep="repeat">:options</arg></arg> |
92 | d3b4cf9f | Iustin Pop | <arg>--no-nics</arg> |
93 | d3b4cf9f | Iustin Pop | </group> |
94 | a8083063 | Iustin Pop | <sbr> |
95 | d3b4cf9f | Iustin Pop | <arg>-B <replaceable>BEPARAMS</replaceable></arg> |
96 | 00f98619 | Iustin Pop | <sbr> |
97 | bdb7d4e8 | Michael Hanselmann | |
98 | d3b4cf9f | Iustin Pop | <arg>-H <replaceable>HYPERVISOR</replaceable><arg>:<arg choice="plain" rep="repeat">option=<replaceable>value</replaceable></arg></arg></arg> |
99 | 00f98619 | Iustin Pop | <sbr> |
100 | bdb7d4e8 | Michael Hanselmann | |
101 | 495beb42 | Manuel Franceschini | <arg>--file-storage-dir <replaceable>dir_path</replaceable></arg> |
102 | bdb7d4e8 | Michael Hanselmann | <arg>--file-driver<group choice="req"> |
103 | 495beb42 | Manuel Franceschini | <arg>loop</arg> |
104 | 495beb42 | Manuel Franceschini | <arg>blktap</arg> |
105 | 495beb42 | Manuel Franceschini | </group></arg> |
106 | 495beb42 | Manuel Franceschini | <sbr> |
107 | bdb7d4e8 | Michael Hanselmann | |
108 | a53a1b18 | Michael Hanselmann | <group choice="req"> |
109 | a53a1b18 | Michael Hanselmann | <arg>-n <replaceable>node<optional>:secondary-node</optional></replaceable></arg> |
110 | a53a1b18 | Michael Hanselmann | <arg>--iallocator <replaceable>name</replaceable></arg> |
111 | a53a1b18 | Michael Hanselmann | </group> |
112 | a53a1b18 | Michael Hanselmann | <sbr> |
113 | a53a1b18 | Michael Hanselmann | |
114 | bdb7d4e8 | Michael Hanselmann | <arg choice="req">-o <replaceable>os-type</replaceable></arg> |
115 | bdb7d4e8 | Michael Hanselmann | <sbr> |
116 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
117 | d3b4cf9f | Iustin Pop | <sbr> |
118 | bdb7d4e8 | Michael Hanselmann | |
119 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
120 | a8083063 | Iustin Pop | </cmdsynopsis> |
121 | 00f98619 | Iustin Pop | |
122 | a8083063 | Iustin Pop | <para> |
123 | d3b4cf9f | Iustin Pop | Creates a new instance on the specified host. The |
124 | d3b4cf9f | Iustin Pop | <replaceable>instance</replaceable> argument must be in DNS, |
125 | 7d713344 | Guido Trotter | but depending on the bridge/routing setup, need not be in |
126 | 7d713344 | Guido Trotter | the same network as the nodes in the cluster. |
127 | a8083063 | Iustin Pop | </para> |
128 | a8083063 | Iustin Pop | |
129 | a8083063 | Iustin Pop | <para> |
130 | d3b4cf9f | Iustin Pop | The <option>disk</option> option specifies the parameters |
131 | d3b4cf9f | Iustin Pop | for the disks of the instance. The numbering of disks starts |
132 | d3b4cf9f | Iustin Pop | at zero, and at least one disk needs to be passed. For each |
133 | 17227cd1 | Iustin Pop | disk, either the size or the adoption source needs to be |
134 | 17227cd1 | Iustin Pop | given, and optionally the access mode (read-only or the |
135 | 17227cd1 | Iustin Pop | default of read-write) can also be specified. The size is |
136 | 17227cd1 | Iustin Pop | interpreted (when no unit is given) in mebibytes. You can |
137 | 17227cd1 | Iustin Pop | also use one of the suffixes |
138 | d3b4cf9f | Iustin Pop | <literal>m</literal>, <literal>g</literal> or |
139 | b9ac33e9 | Iustin Pop | <literal>t</literal> to specificy the exact the units used; |
140 | b9ac33e9 | Iustin Pop | these suffixes map to mebibytes, gibibytes and tebibytes. |
141 | a8083063 | Iustin Pop | </para> |
142 | a8083063 | Iustin Pop | |
143 | a8083063 | Iustin Pop | <para> |
144 | 17227cd1 | Iustin Pop | When using the <option>adopt</option> key in the disk |
145 | 17227cd1 | Iustin Pop | definition, Ganeti will reuse those volumes (instead of |
146 | 17227cd1 | Iustin Pop | creating new ones) as the instance's disks. Ganeti will |
147 | 17227cd1 | Iustin Pop | rename these volumes to the standard format, and (without |
148 | 17227cd1 | Iustin Pop | installing the OS) will use them as-is for the |
149 | 17227cd1 | Iustin Pop | instance. This allows migrating instances from non-managed |
150 | 17227cd1 | Iustin Pop | mode (e.q. plain KVM with LVM) to being managed via |
151 | 17227cd1 | Iustin Pop | Ganeti. Note that this works only for the `plain' disk |
152 | 17227cd1 | Iustin Pop | template (see below for template details). |
153 | 17227cd1 | Iustin Pop | </para> |
154 | 17227cd1 | Iustin Pop | |
155 | 17227cd1 | Iustin Pop | <para> |
156 | c0e4a2c3 | Iustin Pop | Alternatively, a single-disk instance can be created via the |
157 | c0e4a2c3 | Iustin Pop | <option>-s</option> option which takes a single argument, |
158 | c0e4a2c3 | Iustin Pop | the size of the disk. This is similar to the Ganeti 1.2 |
159 | c0e4a2c3 | Iustin Pop | version (but will only create one disk). |
160 | c0e4a2c3 | Iustin Pop | </para> |
161 | c0e4a2c3 | Iustin Pop | |
162 | c0e4a2c3 | Iustin Pop | <para> |
163 | d3b4cf9f | Iustin Pop | The minimum disk specification is therefore |
164 | c0e4a2c3 | Iustin Pop | <userinput>--disk 0:size=20G</userinput> (or <userinput>-s |
165 | c0e4a2c3 | Iustin Pop | 20G</userinput> when using the <option>-s</option> option), |
166 | c0e4a2c3 | Iustin Pop | and a three-disk instance can be specified as |
167 | c0e4a2c3 | Iustin Pop | <userinput>--disk 0:size=20G --disk 1:size=4G --disk |
168 | c0e4a2c3 | Iustin Pop | 2:size=100G</userinput>. |
169 | a8083063 | Iustin Pop | </para> |
170 | a8083063 | Iustin Pop | |
171 | a8083063 | Iustin Pop | <para> |
172 | 1d65264b | Iustin Pop | The <option>--no-ip-check</option> skips the checks that are |
173 | 1d65264b | Iustin Pop | done to see if the instance's IP is not already alive |
174 | 1d65264b | Iustin Pop | (i.e. reachable from the master node). |
175 | 1d65264b | Iustin Pop | </para> |
176 | 1d65264b | Iustin Pop | |
177 | 1d65264b | Iustin Pop | <para> |
178 | 1d65264b | Iustin Pop | The <option>--no-name-check</option> skips the check for the |
179 | 1d65264b | Iustin Pop | instance name via the resolver (e.g. in DNS or /etc/hosts, |
180 | 1d65264b | Iustin Pop | depending on your setup). Since the name check is used to |
181 | 1d65264b | Iustin Pop | compute the IP address, if you pass this option you must |
182 | 1d65264b | Iustin Pop | also pass the <option>--no-ip-check</option> option. |
183 | 1d65264b | Iustin Pop | </para> |
184 | 1d65264b | Iustin Pop | |
185 | 1d65264b | Iustin Pop | <para> |
186 | 1d65264b | Iustin Pop | If you don't wat the instance to automatically start after |
187 | 1d65264b | Iustin Pop | creation, this is possible via the |
188 | 1d65264b | Iustin Pop | <option>--no-start</option> option. This will leave the |
189 | 1d65264b | Iustin Pop | instance down until a subsequent <command>gnt-instance |
190 | 1d65264b | Iustin Pop | start</command> command. |
191 | 1d65264b | Iustin Pop | </para> |
192 | 1d65264b | Iustin Pop | |
193 | 1d65264b | Iustin Pop | <para> |
194 | d3b4cf9f | Iustin Pop | The NICs of the instances can be specified via the |
195 | 091c2c64 | Guido Trotter | <option>--net</option> option. By default, one NIC is |
196 | 7d713344 | Guido Trotter | created for the instance, with a random MAC, and set |
197 | 7d713344 | Guido Trotter | up according the the cluster level nic parameters. |
198 | 7d713344 | Guido Trotter | Each NIC can take these parameters (all optional): |
199 | d3b4cf9f | Iustin Pop | <variablelist> |
200 | d3b4cf9f | Iustin Pop | <varlistentry> |
201 | d3b4cf9f | Iustin Pop | <term>mac</term> |
202 | d3b4cf9f | Iustin Pop | <listitem> |
203 | d4068f64 | Iustin Pop | <simpara>either a value or 'generate' to generate a |
204 | d4068f64 | Iustin Pop | new unique MAC</simpara> |
205 | d3b4cf9f | Iustin Pop | </listitem> |
206 | d3b4cf9f | Iustin Pop | </varlistentry> |
207 | d3b4cf9f | Iustin Pop | <varlistentry> |
208 | d3b4cf9f | Iustin Pop | <term>ip</term> |
209 | d3b4cf9f | Iustin Pop | <listitem> |
210 | d3b4cf9f | Iustin Pop | <simpara>specifies the IP address assigned to the |
211 | d3b4cf9f | Iustin Pop | instance from the Ganeti side (this is not necessarily |
212 | d3b4cf9f | Iustin Pop | what the instance will use, but what the node expects |
213 | d3b4cf9f | Iustin Pop | the instance to use)</simpara> |
214 | d3b4cf9f | Iustin Pop | </listitem> |
215 | d3b4cf9f | Iustin Pop | </varlistentry> |
216 | d3b4cf9f | Iustin Pop | <varlistentry> |
217 | 7d713344 | Guido Trotter | <term>mode</term> |
218 | d3b4cf9f | Iustin Pop | <listitem> |
219 | 7d713344 | Guido Trotter | <simpara>specifies the connection mode for this nic: |
220 | 7d713344 | Guido Trotter | routed or bridged.</simpara> |
221 | 7d713344 | Guido Trotter | </listitem> |
222 | 7d713344 | Guido Trotter | </varlistentry> |
223 | 7d713344 | Guido Trotter | <varlistentry> |
224 | 7d713344 | Guido Trotter | <term>link</term> |
225 | 7d713344 | Guido Trotter | <listitem> |
226 | 7d713344 | Guido Trotter | <simpara>in bridged mode specifies the bridge to attach |
227 | 7d713344 | Guido Trotter | this NIC to, in routed mode it's intended to |
228 | 7d713344 | Guido Trotter | differentiate between different routing tables/instance |
229 | 7d713344 | Guido Trotter | groups (but the meaning is dependent on the network |
230 | 8063787e | Guido Trotter | script, see gnt-cluster(8) for more details)</simpara> |
231 | d3b4cf9f | Iustin Pop | </listitem> |
232 | d3b4cf9f | Iustin Pop | </varlistentry> |
233 | d3b4cf9f | Iustin Pop | </variablelist> |
234 | 7d713344 | Guido Trotter | Of these "mode" and "link" are nic parameters, and inherit their |
235 | 7d713344 | Guido Trotter | default at cluster level. |
236 | b9ac33e9 | Iustin Pop | </para> |
237 | b9ac33e9 | Iustin Pop | |
238 | b9ac33e9 | Iustin Pop | <para> |
239 | d3b4cf9f | Iustin Pop | Alternatively, if no network is desired for the instance, you |
240 | d3b4cf9f | Iustin Pop | can prevent the default of one NIC with the |
241 | d3b4cf9f | Iustin Pop | <option>--no-nics</option> option. |
242 | a8083063 | Iustin Pop | </para> |
243 | a8083063 | Iustin Pop | |
244 | a8083063 | Iustin Pop | <para> |
245 | d3b4cf9f | Iustin Pop | The <option>-o</option> options specifies the operating |
246 | d3b4cf9f | Iustin Pop | system to be installed. The available operating systems can |
247 | 25a8792c | Iustin Pop | be listed with <command>gnt-os |
248 | 25a8792c | Iustin Pop | list</command>. Passing <option>--no-install</option> will |
249 | 25a8792c | Iustin Pop | however skip the OS installation, allowing a manual import |
250 | 25a8792c | Iustin Pop | if so desired. Note that the no-installation mode will |
251 | 25a8792c | Iustin Pop | automatically disable the start-up of the instance (without |
252 | 25a8792c | Iustin Pop | an OS, it most likely won't be able to start-up |
253 | 25a8792c | Iustin Pop | successfully). |
254 | a8083063 | Iustin Pop | </para> |
255 | a8083063 | Iustin Pop | |
256 | a8083063 | Iustin Pop | <para> |
257 | d3b4cf9f | Iustin Pop | The <option>-B</option> option specifies the backend |
258 | d3b4cf9f | Iustin Pop | parameters for the instance. If no such parameters are |
259 | d3b4cf9f | Iustin Pop | specified, the values are inherited from the cluster. Possible |
260 | d3b4cf9f | Iustin Pop | parameters are: |
261 | d3b4cf9f | Iustin Pop | <variablelist> |
262 | d3b4cf9f | Iustin Pop | <varlistentry> |
263 | d3b4cf9f | Iustin Pop | <term>memory</term> |
264 | d3b4cf9f | Iustin Pop | <listitem> |
265 | d3b4cf9f | Iustin Pop | <simpara>the memory size of the instance; as usual, |
266 | d3b4cf9f | Iustin Pop | suffixes can be used to denote the unit, otherwise the |
267 | d3b4cf9f | Iustin Pop | value is taken in mebibites</simpara> |
268 | d3b4cf9f | Iustin Pop | </listitem> |
269 | d3b4cf9f | Iustin Pop | </varlistentry> |
270 | d3b4cf9f | Iustin Pop | <varlistentry> |
271 | d3b4cf9f | Iustin Pop | <term>vcpus</term> |
272 | d3b4cf9f | Iustin Pop | <listitem> |
273 | d3b4cf9f | Iustin Pop | <simpara>the number of VCPUs to assign to the instance |
274 | d3b4cf9f | Iustin Pop | (if this value makes sense for the hypervisor)</simpara> |
275 | d3b4cf9f | Iustin Pop | </listitem> |
276 | d3b4cf9f | Iustin Pop | </varlistentry> |
277 | d3b4cf9f | Iustin Pop | <varlistentry> |
278 | d3b4cf9f | Iustin Pop | <term>auto_balance</term> |
279 | d3b4cf9f | Iustin Pop | <listitem> |
280 | d3b4cf9f | Iustin Pop | <simpara>whether the instance is considered in the N+1 |
281 | d3b4cf9f | Iustin Pop | cluster checks (enough redundancy in the cluster to |
282 | d3b4cf9f | Iustin Pop | survive a node failure)</simpara> |
283 | d3b4cf9f | Iustin Pop | </listitem> |
284 | d3b4cf9f | Iustin Pop | </varlistentry> |
285 | d3b4cf9f | Iustin Pop | </variablelist> |
286 | f3a55c90 | Alexander Schreiber | </para> |
287 | f3a55c90 | Alexander Schreiber | |
288 | f3a55c90 | Alexander Schreiber | <para> |
289 | d3b4cf9f | Iustin Pop | The <option>-H</option> option specified the hypervisor to |
290 | d3b4cf9f | Iustin Pop | use for the instance (must be one of the enabled hypervisors |
291 | d3b4cf9f | Iustin Pop | on the cluster) and optionally custom parameters for this |
292 | d3b4cf9f | Iustin Pop | instance. If not other options are used (i.e. the invocation |
293 | d3b4cf9f | Iustin Pop | is just <userinput>-H |
294 | d3b4cf9f | Iustin Pop | <replaceable>NAME</replaceable></userinput>) the instance |
295 | d3b4cf9f | Iustin Pop | will inherit the cluster options. The defaults below show |
296 | d3b4cf9f | Iustin Pop | the cluster defaults at cluster creation time. |
297 | 25c5878d | Alexander Schreiber | </para> |
298 | 25c5878d | Alexander Schreiber | |
299 | 25c5878d | Alexander Schreiber | <para> |
300 | d3b4cf9f | Iustin Pop | The possible hypervisor options are as follows: |
301 | 25c5878d | Alexander Schreiber | <variablelist> |
302 | 25c5878d | Alexander Schreiber | <varlistentry> |
303 | d3b4cf9f | Iustin Pop | <term>boot_order</term> |
304 | 25c5878d | Alexander Schreiber | <listitem> |
305 | d3b4cf9f | Iustin Pop | <simpara>Valid for the Xen HVM and KVM |
306 | d3b4cf9f | Iustin Pop | hypervisors.</simpara> |
307 | d3b4cf9f | Iustin Pop | |
308 | d3b4cf9f | Iustin Pop | <simpara>A string value denoting the boot order. This |
309 | d3b4cf9f | Iustin Pop | has different meaning for the Xen HVM hypervisor and |
310 | d3b4cf9f | Iustin Pop | for the KVM one.</simpara> |
311 | d3b4cf9f | Iustin Pop | |
312 | d3b4cf9f | Iustin Pop | <simpara> |
313 | d3b4cf9f | Iustin Pop | For Xen HVM, The boot order is a string of letters |
314 | d3b4cf9f | Iustin Pop | listing the boot devices, with valid device letters |
315 | d3b4cf9f | Iustin Pop | being: |
316 | d3b4cf9f | Iustin Pop | </simpara> |
317 | d3b4cf9f | Iustin Pop | <variablelist> |
318 | d3b4cf9f | Iustin Pop | <varlistentry> |
319 | d3b4cf9f | Iustin Pop | <term>a</term> |
320 | d3b4cf9f | Iustin Pop | <listitem> |
321 | d3b4cf9f | Iustin Pop | <para> |
322 | d3b4cf9f | Iustin Pop | floppy drive |
323 | d3b4cf9f | Iustin Pop | </para> |
324 | d3b4cf9f | Iustin Pop | </listitem> |
325 | d3b4cf9f | Iustin Pop | </varlistentry> |
326 | d3b4cf9f | Iustin Pop | <varlistentry> |
327 | d3b4cf9f | Iustin Pop | <term>c</term> |
328 | d3b4cf9f | Iustin Pop | <listitem> |
329 | d3b4cf9f | Iustin Pop | <para> |
330 | d3b4cf9f | Iustin Pop | hard disk |
331 | d3b4cf9f | Iustin Pop | </para> |
332 | d3b4cf9f | Iustin Pop | </listitem> |
333 | d3b4cf9f | Iustin Pop | </varlistentry> |
334 | d3b4cf9f | Iustin Pop | <varlistentry> |
335 | d3b4cf9f | Iustin Pop | <term>d</term> |
336 | d3b4cf9f | Iustin Pop | <listitem> |
337 | d3b4cf9f | Iustin Pop | <para> |
338 | d3b4cf9f | Iustin Pop | CDROM drive |
339 | d3b4cf9f | Iustin Pop | </para> |
340 | d3b4cf9f | Iustin Pop | </listitem> |
341 | d3b4cf9f | Iustin Pop | </varlistentry> |
342 | d3b4cf9f | Iustin Pop | <varlistentry> |
343 | d3b4cf9f | Iustin Pop | <term>n</term> |
344 | d3b4cf9f | Iustin Pop | <listitem> |
345 | d3b4cf9f | Iustin Pop | <para> |
346 | d3b4cf9f | Iustin Pop | network boot (PXE) |
347 | d3b4cf9f | Iustin Pop | </para> |
348 | d3b4cf9f | Iustin Pop | </listitem> |
349 | d3b4cf9f | Iustin Pop | </varlistentry> |
350 | d3b4cf9f | Iustin Pop | </variablelist> |
351 | d3b4cf9f | Iustin Pop | <simpara> |
352 | d3b4cf9f | Iustin Pop | The default is not to set an HVM boot order which is |
353 | d3b4cf9f | Iustin Pop | interpreted as 'dc'. |
354 | d3b4cf9f | Iustin Pop | </simpara> |
355 | d3b4cf9f | Iustin Pop | |
356 | ac620f3a | Guido Trotter | <simpara> |
357 | 73a19fcd | Guido Trotter | For KVM the boot order is either |
358 | 73a19fcd | Guido Trotter | <quote>cdrom</quote>, <quote>disk</quote> or |
359 | 73a19fcd | Guido Trotter | <quote>network</quote>. Please note that older |
360 | 73a19fcd | Guido Trotter | versions of KVM couldn't netboot from virtio |
361 | 73a19fcd | Guido Trotter | interfaces. This has been fixed in more recent |
362 | 73a19fcd | Guido Trotter | versions and is confirmed to work at least with |
363 | 73a19fcd | Guido Trotter | qemu-kvm 0.11.1. |
364 | ac620f3a | Guido Trotter | </simpara> |
365 | ac620f3a | Guido Trotter | |
366 | d3b4cf9f | Iustin Pop | </listitem> |
367 | d3b4cf9f | Iustin Pop | </varlistentry> |
368 | d3b4cf9f | Iustin Pop | <varlistentry> |
369 | d3b4cf9f | Iustin Pop | <term>cdrom_image_path</term> |
370 | d3b4cf9f | Iustin Pop | <listitem> |
371 | d3b4cf9f | Iustin Pop | <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara> |
372 | d3b4cf9f | Iustin Pop | |
373 | d3b4cf9f | Iustin Pop | <simpara>The path to a CDROM image to attach to the |
374 | d3b4cf9f | Iustin Pop | instance.</simpara> |
375 | d3b4cf9f | Iustin Pop | |
376 | d3b4cf9f | Iustin Pop | </listitem> |
377 | d3b4cf9f | Iustin Pop | </varlistentry> |
378 | d3b4cf9f | Iustin Pop | <varlistentry> |
379 | d3b4cf9f | Iustin Pop | <term>nic_type</term> |
380 | d3b4cf9f | Iustin Pop | <listitem> |
381 | d3b4cf9f | Iustin Pop | <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara> |
382 | d3b4cf9f | Iustin Pop | |
383 | 25c5878d | Alexander Schreiber | <para> |
384 | d3b4cf9f | Iustin Pop | This parameter determines the way the network cards |
385 | d3b4cf9f | Iustin Pop | are presented to the instance. The possible options are: |
386 | d3b4cf9f | Iustin Pop | <simplelist> |
387 | d3b4cf9f | Iustin Pop | <member>rtl8139 (default for Xen HVM) (HVM & KVM)</member> |
388 | d3b4cf9f | Iustin Pop | <member>ne2k_isa (HVM & KVM)</member> |
389 | d3b4cf9f | Iustin Pop | <member>ne2k_pci (HVM & KVM)</member> |
390 | d3b4cf9f | Iustin Pop | <member>i82551 (KVM)</member> |
391 | d3b4cf9f | Iustin Pop | <member>i82557b (KVM)</member> |
392 | d3b4cf9f | Iustin Pop | <member>i82559er (KVM)</member> |
393 | d3b4cf9f | Iustin Pop | <member>pcnet (KVM)</member> |
394 | d3b4cf9f | Iustin Pop | <member>e1000 (KVM)</member> |
395 | d3b4cf9f | Iustin Pop | <member>paravirtual (default for KVM) (HVM & KVM)</member> |
396 | d3b4cf9f | Iustin Pop | </simplelist> |
397 | 25c5878d | Alexander Schreiber | </para> |
398 | 25c5878d | Alexander Schreiber | </listitem> |
399 | 25c5878d | Alexander Schreiber | </varlistentry> |
400 | 25c5878d | Alexander Schreiber | <varlistentry> |
401 | d3b4cf9f | Iustin Pop | <term>disk_type</term> |
402 | 25c5878d | Alexander Schreiber | <listitem> |
403 | d3b4cf9f | Iustin Pop | <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara> |
404 | d3b4cf9f | Iustin Pop | |
405 | 25c5878d | Alexander Schreiber | <para> |
406 | d3b4cf9f | Iustin Pop | This parameter determines the way the disks are |
407 | d3b4cf9f | Iustin Pop | presented to the instance. The possible options are: |
408 | d3b4cf9f | Iustin Pop | <simplelist> |
409 | d3b4cf9f | Iustin Pop | <member>ioemu (default for HVM & KVM) (HVM & KVM)</member> |
410 | d3b4cf9f | Iustin Pop | <member>ide (HVM & KVM)</member> |
411 | d3b4cf9f | Iustin Pop | <member>scsi (KVM)</member> |
412 | d3b4cf9f | Iustin Pop | <member>sd (KVM)</member> |
413 | d3b4cf9f | Iustin Pop | <member>mtd (KVM)</member> |
414 | d3b4cf9f | Iustin Pop | <member>pflash (KVM)</member> |
415 | d3b4cf9f | Iustin Pop | </simplelist> |
416 | 25c5878d | Alexander Schreiber | </para> |
417 | 25c5878d | Alexander Schreiber | </listitem> |
418 | 25c5878d | Alexander Schreiber | </varlistentry> |
419 | 25c5878d | Alexander Schreiber | <varlistentry> |
420 | d3b4cf9f | Iustin Pop | <term>vnc_bind_address</term> |
421 | 25c5878d | Alexander Schreiber | <listitem> |
422 | d3b4cf9f | Iustin Pop | <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara> |
423 | d3b4cf9f | Iustin Pop | |
424 | d3b4cf9f | Iustin Pop | <para>Specifies the address that the VNC listener for |
425 | d3b4cf9f | Iustin Pop | this instance should bind to. Valid values are IPv4 |
426 | d3b4cf9f | Iustin Pop | addresses. Use the address 0.0.0.0 to bind to all |
427 | d3b4cf9f | Iustin Pop | available interfaces (this is the default) or specify |
428 | d3b4cf9f | Iustin Pop | the address of one of the interfaces on the node to |
429 | d3b4cf9f | Iustin Pop | restrict listening to that interface.</para> |
430 | d3b4cf9f | Iustin Pop | </listitem> |
431 | d3b4cf9f | Iustin Pop | </varlistentry> |
432 | d3b4cf9f | Iustin Pop | |
433 | d3b4cf9f | Iustin Pop | <varlistentry> |
434 | d3b4cf9f | Iustin Pop | <term>vnc_tls</term> |
435 | d3b4cf9f | Iustin Pop | <listitem> |
436 | d3b4cf9f | Iustin Pop | <simpara>Valid for the KVM hypervisor.</simpara> |
437 | d3b4cf9f | Iustin Pop | |
438 | d3b4cf9f | Iustin Pop | <simpara>A boolean option that controls whether the |
439 | d3b4cf9f | Iustin Pop | VNC connection is secured with TLS.</simpara> |
440 | d3b4cf9f | Iustin Pop | </listitem> |
441 | d3b4cf9f | Iustin Pop | </varlistentry> |
442 | d3b4cf9f | Iustin Pop | |
443 | d3b4cf9f | Iustin Pop | <varlistentry> |
444 | d3b4cf9f | Iustin Pop | <term>vnc_x509_path</term> |
445 | d3b4cf9f | Iustin Pop | <listitem> |
446 | d3b4cf9f | Iustin Pop | <simpara>Valid for the KVM hypervisor.</simpara> |
447 | d3b4cf9f | Iustin Pop | |
448 | d3b4cf9f | Iustin Pop | <para>If <option>vnc_tls</option> is enabled, this |
449 | d3b4cf9f | Iustin Pop | options specifies the path to the x509 certificate to |
450 | d3b4cf9f | Iustin Pop | use.</para> |
451 | d3b4cf9f | Iustin Pop | </listitem> |
452 | d3b4cf9f | Iustin Pop | </varlistentry> |
453 | d3b4cf9f | Iustin Pop | |
454 | d3b4cf9f | Iustin Pop | <varlistentry> |
455 | d3b4cf9f | Iustin Pop | <term>vnc_x509_verify</term> |
456 | d3b4cf9f | Iustin Pop | <listitem> |
457 | d3b4cf9f | Iustin Pop | <simpara>Valid for the KVM hypervisor.</simpara> |
458 | d3b4cf9f | Iustin Pop | </listitem> |
459 | d3b4cf9f | Iustin Pop | </varlistentry> |
460 | d3b4cf9f | Iustin Pop | |
461 | d3b4cf9f | Iustin Pop | <varlistentry> |
462 | d3b4cf9f | Iustin Pop | <term>acpi</term> |
463 | d3b4cf9f | Iustin Pop | <listitem> |
464 | d3b4cf9f | Iustin Pop | <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara> |
465 | d3b4cf9f | Iustin Pop | |
466 | 25c5878d | Alexander Schreiber | <para> |
467 | d3b4cf9f | Iustin Pop | A boolean option that specifies if the hypervisor |
468 | d3b4cf9f | Iustin Pop | should enable ACPI support for this instance. By |
469 | d3b4cf9f | Iustin Pop | default, ACPI is disabled. |
470 | 25c5878d | Alexander Schreiber | </para> |
471 | 25c5878d | Alexander Schreiber | </listitem> |
472 | 25c5878d | Alexander Schreiber | </varlistentry> |
473 | d3b4cf9f | Iustin Pop | |
474 | 25c5878d | Alexander Schreiber | <varlistentry> |
475 | d3b4cf9f | Iustin Pop | <term>pae</term> |
476 | 25c5878d | Alexander Schreiber | <listitem> |
477 | d3b4cf9f | Iustin Pop | <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara> |
478 | d3b4cf9f | Iustin Pop | |
479 | 25c5878d | Alexander Schreiber | <para> |
480 | d3b4cf9f | Iustin Pop | A boolean option that specifies if the hypervisor |
481 | d3b4cf9f | Iustin Pop | should enabled PAE support for this instance. The |
482 | d3b4cf9f | Iustin Pop | default is false, disabling PAE support. |
483 | 25c5878d | Alexander Schreiber | </para> |
484 | 25c5878d | Alexander Schreiber | </listitem> |
485 | 25c5878d | Alexander Schreiber | </varlistentry> |
486 | 25c5878d | Alexander Schreiber | |
487 | d3b4cf9f | Iustin Pop | <varlistentry> |
488 | bfe61b0b | Iustin Pop | <term>use_localtime</term> |
489 | bfe61b0b | Iustin Pop | <listitem> |
490 | bfe61b0b | Iustin Pop | <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara> |
491 | bfe61b0b | Iustin Pop | |
492 | bfe61b0b | Iustin Pop | <para> |
493 | bfe61b0b | Iustin Pop | A boolean option that specifies if the instance |
494 | bfe61b0b | Iustin Pop | should be started with its clock set to the |
495 | bfe61b0b | Iustin Pop | localtime of the machine (when true) or to the UTC |
496 | bfe61b0b | Iustin Pop | (When false). The default is false, which is useful |
497 | bfe61b0b | Iustin Pop | for Linux/Unix machines; for Windows OSes, it is |
498 | bfe61b0b | Iustin Pop | recommended to enable this parameter. |
499 | bfe61b0b | Iustin Pop | </para> |
500 | bfe61b0b | Iustin Pop | </listitem> |
501 | bfe61b0b | Iustin Pop | </varlistentry> |
502 | bfe61b0b | Iustin Pop | |
503 | bfe61b0b | Iustin Pop | <varlistentry> |
504 | d3b4cf9f | Iustin Pop | <term>kernel_path</term> |
505 | d3b4cf9f | Iustin Pop | <listitem> |
506 | d3b4cf9f | Iustin Pop | <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara> |
507 | 25c5878d | Alexander Schreiber | |
508 | d3b4cf9f | Iustin Pop | <para> |
509 | d3b4cf9f | Iustin Pop | This option specifies the path (on the node) to the |
510 | d3b4cf9f | Iustin Pop | kernel to boot the instance with. Xen PVM instances |
511 | d3b4cf9f | Iustin Pop | always require this, while for KVM if this option is |
512 | d3b4cf9f | Iustin Pop | empty, it will cause the machine to load the kernel |
513 | d3b4cf9f | Iustin Pop | from its disks. |
514 | d3b4cf9f | Iustin Pop | </para> |
515 | d3b4cf9f | Iustin Pop | </listitem> |
516 | d3b4cf9f | Iustin Pop | </varlistentry> |
517 | ca9c49d5 | Iustin Pop | |
518 | d3b4cf9f | Iustin Pop | <varlistentry> |
519 | 07813a9e | Iustin Pop | <term>kernel_args</term> |
520 | 07813a9e | Iustin Pop | <listitem> |
521 | 07813a9e | Iustin Pop | <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara> |
522 | 07813a9e | Iustin Pop | |
523 | 07813a9e | Iustin Pop | <para> |
524 | 07813a9e | Iustin Pop | This options specifies extra arguments to the kernel |
525 | 07813a9e | Iustin Pop | that will be loaded. device. This is always used |
526 | 07813a9e | Iustin Pop | for Xen PVM, while for KVM it is only used if the |
527 | 07813a9e | Iustin Pop | <option>kernel_path</option> option is also |
528 | 07813a9e | Iustin Pop | specified. |
529 | 07813a9e | Iustin Pop | </para> |
530 | 07813a9e | Iustin Pop | |
531 | 07813a9e | Iustin Pop | <para> |
532 | 07813a9e | Iustin Pop | The default setting for this value is simply |
533 | 07813a9e | Iustin Pop | <constant>"ro"</constant>, which mounts the root |
534 | 07813a9e | Iustin Pop | disk (initially) in read-only one. For example, |
535 | 07813a9e | Iustin Pop | setting this to <userinput>single</userinput> will |
536 | 07813a9e | Iustin Pop | cause the instance to start in single-user mode. |
537 | 07813a9e | Iustin Pop | </para> |
538 | 07813a9e | Iustin Pop | </listitem> |
539 | 07813a9e | Iustin Pop | </varlistentry> |
540 | 07813a9e | Iustin Pop | |
541 | 07813a9e | Iustin Pop | <varlistentry> |
542 | d3b4cf9f | Iustin Pop | <term>initrd_path</term> |
543 | d3b4cf9f | Iustin Pop | <listitem> |
544 | d3b4cf9f | Iustin Pop | <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara> |
545 | ca9c49d5 | Iustin Pop | |
546 | d3b4cf9f | Iustin Pop | <para> |
547 | d3b4cf9f | Iustin Pop | This option specifies the path (on the node) to the |
548 | d3b4cf9f | Iustin Pop | initrd to boot the instance with. Xen PVM instances |
549 | d3b4cf9f | Iustin Pop | can use this always, while for KVM if this option is |
550 | d3b4cf9f | Iustin Pop | only used if the <option>kernel_path</option> option |
551 | 5645d16b | Iustin Pop | is also specified. You can pass here either an |
552 | 5645d16b | Iustin Pop | absolute filename (the path to the initrd) if you |
553 | 5645d16b | Iustin Pop | want to use an initrd, or use the format |
554 | 5645d16b | Iustin Pop | <userinput>no_initrd_path</userinput> for no initrd. |
555 | d3b4cf9f | Iustin Pop | </para> |
556 | d3b4cf9f | Iustin Pop | </listitem> |
557 | d3b4cf9f | Iustin Pop | </varlistentry> |
558 | ca9c49d5 | Iustin Pop | |
559 | d3b4cf9f | Iustin Pop | <varlistentry> |
560 | d3b4cf9f | Iustin Pop | <term>root_path</term> |
561 | d3b4cf9f | Iustin Pop | <listitem> |
562 | d3b4cf9f | Iustin Pop | <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara> |
563 | 02d2adf4 | Alexander Schreiber | |
564 | d3b4cf9f | Iustin Pop | <para> |
565 | d3b4cf9f | Iustin Pop | This options specifies the name of the root |
566 | d3b4cf9f | Iustin Pop | device. This is always needed for Xen PVM, while for |
567 | d3b4cf9f | Iustin Pop | KVM it is only used if the |
568 | d3b4cf9f | Iustin Pop | <option>kernel_path</option> option is also |
569 | d3b4cf9f | Iustin Pop | specified. |
570 | d3b4cf9f | Iustin Pop | </para> |
571 | d3b4cf9f | Iustin Pop | </listitem> |
572 | d3b4cf9f | Iustin Pop | </varlistentry> |
573 | d3b4cf9f | Iustin Pop | |
574 | d3b4cf9f | Iustin Pop | <varlistentry> |
575 | d3b4cf9f | Iustin Pop | <term>serial_console</term> |
576 | d3b4cf9f | Iustin Pop | <listitem> |
577 | d3b4cf9f | Iustin Pop | <simpara>Valid for the KVM hypervisor.</simpara> |
578 | d3b4cf9f | Iustin Pop | |
579 | d3b4cf9f | Iustin Pop | <simpara>This boolean option specifies whether to |
580 | d3b4cf9f | Iustin Pop | emulate a serial console for the instance.</simpara> |
581 | d3b4cf9f | Iustin Pop | </listitem> |
582 | d3b4cf9f | Iustin Pop | </varlistentry> |
583 | 78411c60 | Iustin Pop | |
584 | 19572932 | Iustin Pop | <varlistentry> |
585 | 19572932 | Iustin Pop | <term>disk_cache</term> |
586 | 19572932 | Iustin Pop | <listitem> |
587 | 19572932 | Iustin Pop | <simpara>Valid for the KVM hypervisor.</simpara> |
588 | 19572932 | Iustin Pop | |
589 | 19572932 | Iustin Pop | <simpara>The disk cache mode. It can be either |
590 | 19572932 | Iustin Pop | <userinput>default</userinput> to not pass any cache |
591 | 19572932 | Iustin Pop | option to KVM, or one of the KVM cache modes: none |
592 | 19572932 | Iustin Pop | (for direct I/O), writethrough (to use the host cache |
593 | 19572932 | Iustin Pop | but report completion to the guest only when the host |
594 | ffd91011 | Iustin Pop | has committed the changes to disk) or writeback (to |
595 | ffd91011 | Iustin Pop | use the host cache and report completion as soon as |
596 | ffd91011 | Iustin Pop | the data is in the host cache). Note that there are |
597 | 19572932 | Iustin Pop | special considerations for the cache mode depending on |
598 | 19572932 | Iustin Pop | version of KVM used and disk type (always raw file |
599 | 19572932 | Iustin Pop | under Ganeti), please refer to the KVM documentation |
600 | 19572932 | Iustin Pop | for more details. |
601 | 19572932 | Iustin Pop | </simpara> |
602 | 19572932 | Iustin Pop | </listitem> |
603 | 19572932 | Iustin Pop | </varlistentry> |
604 | 19572932 | Iustin Pop | |
605 | caf39b8a | Guido Trotter | <varlistentry> |
606 | caf39b8a | Guido Trotter | <term>security_model</term> |
607 | caf39b8a | Guido Trotter | <listitem> |
608 | caf39b8a | Guido Trotter | <simpara>Valid for the KVM hypervisor.</simpara> |
609 | caf39b8a | Guido Trotter | |
610 | caf39b8a | Guido Trotter | <simpara>The security model for kvm. Currently one of |
611 | caf39b8a | Guido Trotter | <quote>none</quote>, <quote>user</quote> or |
612 | caf39b8a | Guido Trotter | <quote>pool</quote>. Under <quote>none</quote>, the |
613 | caf39b8a | Guido Trotter | default, nothing is done and instances are run as |
614 | e0897adf | Michael Hanselmann | the Ganeti daemon user (normally root). |
615 | caf39b8a | Guido Trotter | </simpara> |
616 | caf39b8a | Guido Trotter | |
617 | caf39b8a | Guido Trotter | <simpara>Under <quote>user</quote> kvm will drop |
618 | caf39b8a | Guido Trotter | privileges and become the user specified by the |
619 | caf39b8a | Guido Trotter | security_domain parameter. |
620 | caf39b8a | Guido Trotter | </simpara> |
621 | caf39b8a | Guido Trotter | |
622 | caf39b8a | Guido Trotter | <simpara>Under <quote>pool</quote> a global cluster |
623 | caf39b8a | Guido Trotter | pool of users will be used, making sure no two |
624 | caf39b8a | Guido Trotter | instances share the same user on the same node. |
625 | caf39b8a | Guido Trotter | (this mode is not implemented yet) |
626 | caf39b8a | Guido Trotter | </simpara> |
627 | caf39b8a | Guido Trotter | |
628 | caf39b8a | Guido Trotter | </listitem> |
629 | caf39b8a | Guido Trotter | </varlistentry> |
630 | caf39b8a | Guido Trotter | |
631 | caf39b8a | Guido Trotter | <varlistentry> |
632 | caf39b8a | Guido Trotter | <term>security_domain</term> |
633 | caf39b8a | Guido Trotter | <listitem> |
634 | caf39b8a | Guido Trotter | <simpara>Valid for the KVM hypervisor.</simpara> |
635 | caf39b8a | Guido Trotter | |
636 | e0897adf | Michael Hanselmann | <simpara>Under security model <quote>user</quote> the username |
637 | e0897adf | Michael Hanselmann | to run the instance under. It must be a valid username |
638 | caf39b8a | Guido Trotter | existing on the host. |
639 | caf39b8a | Guido Trotter | </simpara> |
640 | caf39b8a | Guido Trotter | <simpara>Cannot be set under security model <quote>none</quote> |
641 | caf39b8a | Guido Trotter | or <quote>pool</quote>. |
642 | caf39b8a | Guido Trotter | </simpara> |
643 | caf39b8a | Guido Trotter | |
644 | caf39b8a | Guido Trotter | </listitem> |
645 | caf39b8a | Guido Trotter | </varlistentry> |
646 | caf39b8a | Guido Trotter | |
647 | 7ba594c0 | Guido Trotter | <varlistentry> |
648 | 7ba594c0 | Guido Trotter | <term>kvm_flag</term> |
649 | 7ba594c0 | Guido Trotter | <listitem> |
650 | 7ba594c0 | Guido Trotter | <simpara>Valid for the KVM hypervisor.</simpara> |
651 | 7ba594c0 | Guido Trotter | |
652 | 7ba594c0 | Guido Trotter | <simpara>If <quote>enabled</quote> the -enable-kvm flag is |
653 | 7ba594c0 | Guido Trotter | passed to kvm. If <quote>disabled</quote> -disable-kvm is |
654 | 7ba594c0 | Guido Trotter | passed. If unset no flag is passed, and the default running |
655 | 7ba594c0 | Guido Trotter | mode for your kvm binary will be used. |
656 | 7ba594c0 | Guido Trotter | </simpara> |
657 | 4f958b0b | Miguel Di Ciurcio Filho | |
658 | 4f958b0b | Miguel Di Ciurcio Filho | </listitem> |
659 | 4f958b0b | Miguel Di Ciurcio Filho | </varlistentry> |
660 | 4f958b0b | Miguel Di Ciurcio Filho | |
661 | 4f958b0b | Miguel Di Ciurcio Filho | <varlistentry> |
662 | 4f958b0b | Miguel Di Ciurcio Filho | <term>mem_path</term> |
663 | 4f958b0b | Miguel Di Ciurcio Filho | <listitem> |
664 | 4f958b0b | Miguel Di Ciurcio Filho | <simpara>Valid for the KVM hypervisor.</simpara> |
665 | 4f958b0b | Miguel Di Ciurcio Filho | |
666 | 4f958b0b | Miguel Di Ciurcio Filho | <simpara>This option passes the -mem-path argument to kvm with |
667 | 4f958b0b | Miguel Di Ciurcio Filho | the path (on the node) to the mount point of the hugetlbfs |
668 | 4f958b0b | Miguel Di Ciurcio Filho | file system, along with the -mem-prealloc argument too. |
669 | 4f958b0b | Miguel Di Ciurcio Filho | </simpara> |
670 | 7ba594c0 | Guido Trotter | |
671 | 7ba594c0 | Guido Trotter | </listitem> |
672 | 7ba594c0 | Guido Trotter | </varlistentry> |
673 | 7ba594c0 | Guido Trotter | |
674 | 84c08e4e | Balazs Lecz | <varlistentry> |
675 | 84c08e4e | Balazs Lecz | <term>use_chroot</term> |
676 | 84c08e4e | Balazs Lecz | <listitem> |
677 | 84c08e4e | Balazs Lecz | <simpara>Valid for the KVM hypervisor.</simpara> |
678 | 84c08e4e | Balazs Lecz | |
679 | 84c08e4e | Balazs Lecz | <simpara>This boolean option determines wether to run the KVM |
680 | 84c08e4e | Balazs Lecz | instance in a chroot directory. |
681 | 84c08e4e | Balazs Lecz | </simpara> |
682 | 84c08e4e | Balazs Lecz | <para>If it is set to <quote>true</quote>, an empty directory |
683 | 84c08e4e | Balazs Lecz | is created before starting the instance and its path is passed via |
684 | 84c08e4e | Balazs Lecz | the -chroot flag to kvm. |
685 | 84c08e4e | Balazs Lecz | The directory is removed when the instance is stopped. |
686 | 84c08e4e | Balazs Lecz | </para> |
687 | 84c08e4e | Balazs Lecz | |
688 | 84c08e4e | Balazs Lecz | <simpara>It is set to <quote>false</quote> by default.</simpara> |
689 | d4d1e3dd | Guido Trotter | </listitem> |
690 | d4d1e3dd | Guido Trotter | </varlistentry> |
691 | d4d1e3dd | Guido Trotter | |
692 | d4d1e3dd | Guido Trotter | <varlistentry> |
693 | e43d4f9f | Apollon Oikonomopoulos | <term>migration_downtime</term> |
694 | e43d4f9f | Apollon Oikonomopoulos | <listitem> |
695 | e43d4f9f | Apollon Oikonomopoulos | <simpara>Valid for the KVM hypervisor.</simpara> |
696 | e43d4f9f | Apollon Oikonomopoulos | |
697 | e43d4f9f | Apollon Oikonomopoulos | <simpara>The maximum amount of time (in ms) a KVM instance is |
698 | e43d4f9f | Apollon Oikonomopoulos | allowed to be frozen during a live migration, in order to copy |
699 | e43d4f9f | Apollon Oikonomopoulos | dirty memory pages. Default value is 30ms, but you may need to |
700 | e43d4f9f | Apollon Oikonomopoulos | increase this value for busy instances. |
701 | e43d4f9f | Apollon Oikonomopoulos | </simpara> |
702 | e43d4f9f | Apollon Oikonomopoulos | |
703 | e43d4f9f | Apollon Oikonomopoulos | <simpara>This option is only effective with kvm versions >= 87 |
704 | e43d4f9f | Apollon Oikonomopoulos | and qemu-kvm versions >= 0.11.0. |
705 | e43d4f9f | Apollon Oikonomopoulos | </simpara> |
706 | 547a63b7 | Balazs Lecz | </listitem> |
707 | 547a63b7 | Balazs Lecz | </varlistentry> |
708 | 84c08e4e | Balazs Lecz | |
709 | 547a63b7 | Balazs Lecz | <varlistentry> |
710 | 547a63b7 | Balazs Lecz | <term>use_chroot</term> |
711 | 547a63b7 | Balazs Lecz | <listitem> |
712 | 547a63b7 | Balazs Lecz | <simpara>Valid for the KVM hypervisor.</simpara> |
713 | 547a63b7 | Balazs Lecz | |
714 | 547a63b7 | Balazs Lecz | <simpara>This boolean option determines wether to run the KVM |
715 | 547a63b7 | Balazs Lecz | instance in a chroot directory. |
716 | 547a63b7 | Balazs Lecz | </simpara> |
717 | 547a63b7 | Balazs Lecz | <para>If it is set to <quote>true</quote>, an empty directory |
718 | e0897adf | Michael Hanselmann | is created before starting the instance and its path is passed |
719 | e0897adf | Michael Hanselmann | via the <option>-chroot</option> flag to kvm. |
720 | 547a63b7 | Balazs Lecz | The directory is removed when the instance is stopped. |
721 | 547a63b7 | Balazs Lecz | </para> |
722 | e43d4f9f | Apollon Oikonomopoulos | |
723 | 547a63b7 | Balazs Lecz | <simpara>It is set to <quote>false</quote> by default.</simpara> |
724 | 84c08e4e | Balazs Lecz | </listitem> |
725 | 84c08e4e | Balazs Lecz | </varlistentry> |
726 | 84c08e4e | Balazs Lecz | |
727 | e3ed5316 | Balazs Lecz | <varlistentry> |
728 | e3ed5316 | Balazs Lecz | <term>cpu_mask</term> |
729 | e3ed5316 | Balazs Lecz | <listitem> |
730 | e3ed5316 | Balazs Lecz | <simpara>Valid for the LXC hypervisor.</simpara> |
731 | e3ed5316 | Balazs Lecz | |
732 | e3ed5316 | Balazs Lecz | <simpara>The processes belonging to the given instance are |
733 | e3ed5316 | Balazs Lecz | only scheduled on the specified CPUs. |
734 | e3ed5316 | Balazs Lecz | </simpara> |
735 | e3ed5316 | Balazs Lecz | |
736 | e3ed5316 | Balazs Lecz | <simpara> |
737 | e3ed5316 | Balazs Lecz | The parameter format is a comma-separated list of CPU IDs or |
738 | e3ed5316 | Balazs Lecz | CPU ID ranges. The ranges are defined by a lower and higher |
739 | e3ed5316 | Balazs Lecz | boundary, separated by a dash. The boundaries are inclusive. |
740 | e3ed5316 | Balazs Lecz | </simpara> |
741 | e3ed5316 | Balazs Lecz | |
742 | e3ed5316 | Balazs Lecz | </listitem> |
743 | e3ed5316 | Balazs Lecz | </varlistentry> |
744 | e3ed5316 | Balazs Lecz | |
745 | 623fea30 | Guido Trotter | <varlistentry> |
746 | 77a2f6f4 | Guido Trotter | <term>usb_mouse</term> |
747 | 77a2f6f4 | Guido Trotter | <listitem> |
748 | 77a2f6f4 | Guido Trotter | <simpara>Valid for the KVM hypervisor.</simpara> |
749 | 77a2f6f4 | Guido Trotter | |
750 | 77a2f6f4 | Guido Trotter | <simpara>This option specifies the usb mouse type to be used. |
751 | 77a2f6f4 | Guido Trotter | It can be <quote>mouse</quote> or <quote>tablet</quote>. When |
752 | 77a2f6f4 | Guido Trotter | using VNC it's recommended to set it to <quote>tablet</quote>. |
753 | 77a2f6f4 | Guido Trotter | </simpara> |
754 | 77a2f6f4 | Guido Trotter | </listitem> |
755 | 77a2f6f4 | Guido Trotter | </varlistentry> |
756 | 77a2f6f4 | Guido Trotter | |
757 | d3b4cf9f | Iustin Pop | </variablelist> |
758 | 78411c60 | Iustin Pop | |
759 | 02d2adf4 | Alexander Schreiber | </para> |
760 | 02d2adf4 | Alexander Schreiber | |
761 | 02d2adf4 | Alexander Schreiber | <para> |
762 | a53a1b18 | Michael Hanselmann | The <option>--iallocator</option> option specifies the instance |
763 | a53a1b18 | Michael Hanselmann | allocator plugin to use. If you pass in this option the allocator |
764 | a53a1b18 | Michael Hanselmann | will select nodes for this instance automatically, so you don't need |
765 | a53a1b18 | Michael Hanselmann | to pass them with the <option>-n</option> option. For more |
766 | a53a1b18 | Michael Hanselmann | information please refer to the instance allocator documentation. |
767 | a53a1b18 | Michael Hanselmann | </para> |
768 | a53a1b18 | Michael Hanselmann | |
769 | a53a1b18 | Michael Hanselmann | <para> |
770 | a8083063 | Iustin Pop | The <option>-t</option> options specifies the disk layout type for |
771 | a8083063 | Iustin Pop | the instance. The available choices are: |
772 | a8083063 | Iustin Pop | <variablelist> |
773 | a8083063 | Iustin Pop | <varlistentry> |
774 | a8083063 | Iustin Pop | <term>diskless</term> |
775 | a8083063 | Iustin Pop | <listitem> |
776 | a8083063 | Iustin Pop | <para> |
777 | a8083063 | Iustin Pop | This creates an instance with no disks. Its useful for |
778 | a8083063 | Iustin Pop | testing only (or other special cases). |
779 | a8083063 | Iustin Pop | </para> |
780 | a8083063 | Iustin Pop | </listitem> |
781 | a8083063 | Iustin Pop | </varlistentry> |
782 | a8083063 | Iustin Pop | <varlistentry> |
783 | 495beb42 | Manuel Franceschini | <term>file</term> |
784 | 495beb42 | Manuel Franceschini | <listitem> |
785 | 495beb42 | Manuel Franceschini | <para>Disk devices will be regular files.</para> |
786 | 495beb42 | Manuel Franceschini | </listitem> |
787 | 495beb42 | Manuel Franceschini | </varlistentry> |
788 | 495beb42 | Manuel Franceschini | <varlistentry> |
789 | a8083063 | Iustin Pop | <term>plain</term> |
790 | a8083063 | Iustin Pop | <listitem> |
791 | a8083063 | Iustin Pop | <para>Disk devices will be logical volumes.</para> |
792 | a8083063 | Iustin Pop | </listitem> |
793 | a8083063 | Iustin Pop | </varlistentry> |
794 | a8083063 | Iustin Pop | <varlistentry> |
795 | f69dab6d | Iustin Pop | <term>drbd</term> |
796 | f69dab6d | Iustin Pop | <listitem> |
797 | f69dab6d | Iustin Pop | <para> |
798 | f69dab6d | Iustin Pop | Disk devices will be drbd (version 8.x) on top of |
799 | f9193417 | Iustin Pop | lvm volumes. |
800 | a8083063 | Iustin Pop | </para> |
801 | a8083063 | Iustin Pop | </listitem> |
802 | a8083063 | Iustin Pop | </varlistentry> |
803 | a8083063 | Iustin Pop | </variablelist> |
804 | a8083063 | Iustin Pop | </para> |
805 | a8083063 | Iustin Pop | |
806 | a8083063 | Iustin Pop | <para> |
807 | 4677a909 | Michael Hanselmann | The optional second value of the <option>--node</option> is used for |
808 | bd028152 | Iustin Pop | the drbd template type and specifies the remote node. |
809 | a8083063 | Iustin Pop | </para> |
810 | a8083063 | Iustin Pop | |
811 | a8083063 | Iustin Pop | <para> |
812 | a8083063 | Iustin Pop | If you do not want gnt-instance to wait for the disk mirror |
813 | a8083063 | Iustin Pop | to be synced, use the <option>--no-wait-for-sync</option> |
814 | a8083063 | Iustin Pop | option. |
815 | a8083063 | Iustin Pop | </para> |
816 | a8083063 | Iustin Pop | |
817 | a8083063 | Iustin Pop | <para> |
818 | 495beb42 | Manuel Franceschini | The <option>--file-storage-dir</option> specifies the relative path |
819 | 495beb42 | Manuel Franceschini | under the cluster-wide file storage directory to store file-based |
820 | 495beb42 | Manuel Franceschini | disks. It is useful for having different subdirectories for |
821 | 495beb42 | Manuel Franceschini | different instances. The full path of the directory where the disk |
822 | 495beb42 | Manuel Franceschini | files are stored will consist of cluster-wide file storage directory |
823 | 495beb42 | Manuel Franceschini | + optional subdirectory + instance name. Example: |
824 | 495beb42 | Manuel Franceschini | /srv/ganeti/file-storage/mysubdir/instance1.example.com. This option |
825 | 495beb42 | Manuel Franceschini | is only relevant for instances using the file storage backend. |
826 | 495beb42 | Manuel Franceschini | </para> |
827 | 495beb42 | Manuel Franceschini | |
828 | 495beb42 | Manuel Franceschini | <para> |
829 | 495beb42 | Manuel Franceschini | The <option>--file-driver</option> specifies the driver to use for |
830 | 495beb42 | Manuel Franceschini | file-based disks. Note that currently these drivers work with the |
831 | 495beb42 | Manuel Franceschini | xen hypervisor only. This option is only relevant for instances using |
832 | 495beb42 | Manuel Franceschini | the file storage backend. The available choices are: |
833 | 495beb42 | Manuel Franceschini | <variablelist> |
834 | 495beb42 | Manuel Franceschini | <varlistentry> |
835 | 495beb42 | Manuel Franceschini | <term>loop</term> |
836 | 495beb42 | Manuel Franceschini | <listitem> |
837 | d3b4cf9f | Iustin Pop | <para> |
838 | d3b4cf9f | Iustin Pop | Kernel loopback driver. This driver uses loopback |
839 | d3b4cf9f | Iustin Pop | devices to access the filesystem within the |
840 | d3b4cf9f | Iustin Pop | file. However, running I/O intensive applications in |
841 | d3b4cf9f | Iustin Pop | your instance using the loop driver might result in |
842 | d3b4cf9f | Iustin Pop | slowdowns. Furthermore, if you use the loopback |
843 | d3b4cf9f | Iustin Pop | driver consider increasing the maximum amount of |
844 | d3b4cf9f | Iustin Pop | loopback devices (on most systems it's 8) using the |
845 | d3b4cf9f | Iustin Pop | max_loop param. |
846 | d3b4cf9f | Iustin Pop | </para> |
847 | 495beb42 | Manuel Franceschini | </listitem> |
848 | 495beb42 | Manuel Franceschini | </varlistentry> |
849 | 495beb42 | Manuel Franceschini | <varlistentry> |
850 | 495beb42 | Manuel Franceschini | <term>blktap</term> |
851 | 495beb42 | Manuel Franceschini | <listitem> |
852 | d3b4cf9f | Iustin Pop | <para>The blktap driver (for Xen hypervisors). In |
853 | d3b4cf9f | Iustin Pop | order to be able to use the blktap driver you should |
854 | d3b4cf9f | Iustin Pop | check if the 'blktapctrl' user space disk agent is |
855 | d3b4cf9f | Iustin Pop | running (usually automatically started via xend). This |
856 | d3b4cf9f | Iustin Pop | user-level disk I/O interface has the advantage of |
857 | d3b4cf9f | Iustin Pop | better performance. Especially if you use a network |
858 | d3b4cf9f | Iustin Pop | file system (e.g. NFS) to store your instances this is |
859 | d3b4cf9f | Iustin Pop | the recommended choice. |
860 | d3b4cf9f | Iustin Pop | </para> |
861 | 495beb42 | Manuel Franceschini | </listitem> |
862 | 495beb42 | Manuel Franceschini | </varlistentry> |
863 | 67470f58 | Iustin Pop | </variablelist> |
864 | 495beb42 | Manuel Franceschini | </para> |
865 | 495beb42 | Manuel Franceschini | |
866 | 495beb42 | Manuel Franceschini | <para> |
867 | d3b4cf9f | Iustin Pop | The <option>--submit</option> option is used to send the job to |
868 | d3b4cf9f | Iustin Pop | the master daemon but not wait for its completion. The job |
869 | d3b4cf9f | Iustin Pop | ID will be shown so that it can be examined via |
870 | d3b4cf9f | Iustin Pop | <command>gnt-job info</command>. |
871 | bd028152 | Iustin Pop | </para> |
872 | 495beb42 | Manuel Franceschini | |
873 | 495beb42 | Manuel Franceschini | <para> |
874 | a8083063 | Iustin Pop | Example: |
875 | a8083063 | Iustin Pop | <screen> |
876 | d3b4cf9f | Iustin Pop | # gnt-instance add -t file --disk 0:size=30g -B memory=512 -o debian-etch \ |
877 | 495beb42 | Manuel Franceschini | -n node1.example.com --file-storage-dir=mysubdir instance1.example.com |
878 | d3b4cf9f | Iustin Pop | # gnt-instance add -t plain --disk 0:size=30g -B memory=512 -o debian-etch \ |
879 | b9ac33e9 | Iustin Pop | -n node1.example.com instance1.example.com |
880 | d3b4cf9f | Iustin Pop | # gnt-instance add -t drbd --disk 0:size=30g -B memory=512 -o debian-etch \ |
881 | 4677a909 | Michael Hanselmann | -n node1.example.com:node2.example.com instance2.example.com |
882 | a8083063 | Iustin Pop | </screen> |
883 | a8083063 | Iustin Pop | </para> |
884 | a8083063 | Iustin Pop | </refsect3> |
885 | a8083063 | Iustin Pop | |
886 | a8083063 | Iustin Pop | <refsect3> |
887 | d3b4cf9f | Iustin Pop | <title>BATCH-CREATE</title> |
888 | d3b4cf9f | Iustin Pop | <cmdsynopsis> |
889 | d3b4cf9f | Iustin Pop | <command>batch-create</command> |
890 | d3b4cf9f | Iustin Pop | <arg choice="req">instances_file.json</arg> |
891 | d3b4cf9f | Iustin Pop | </cmdsynopsis> |
892 | d3b4cf9f | Iustin Pop | |
893 | d3b4cf9f | Iustin Pop | <para> |
894 | d3b4cf9f | Iustin Pop | This command (similar to the Ganeti 1.2 |
895 | d3b4cf9f | Iustin Pop | <command>batcher</command> tool) submits multiple instance |
896 | d3b4cf9f | Iustin Pop | creation jobs based on a definition file. The instance |
897 | d3b4cf9f | Iustin Pop | configurations do not encompass all the possible options for |
898 | d3b4cf9f | Iustin Pop | the <command>add</command> command, but only a subset. |
899 | d3b4cf9f | Iustin Pop | </para> |
900 | d3b4cf9f | Iustin Pop | |
901 | d3b4cf9f | Iustin Pop | <para> |
902 | d3b4cf9f | Iustin Pop | The instance file should be a valid-formed JSON file, |
903 | d3b4cf9f | Iustin Pop | containing a dictionary with instance name and instance |
904 | d3b4cf9f | Iustin Pop | parameters. The accepted parameters are: |
905 | d3b4cf9f | Iustin Pop | |
906 | d3b4cf9f | Iustin Pop | <variablelist> |
907 | d3b4cf9f | Iustin Pop | <varlistentry> |
908 | d3b4cf9f | Iustin Pop | <term>disk_size</term> |
909 | d3b4cf9f | Iustin Pop | <listitem> |
910 | d3b4cf9f | Iustin Pop | <simpara>The size of the disks of the instance.</simpara> |
911 | d3b4cf9f | Iustin Pop | </listitem> |
912 | d3b4cf9f | Iustin Pop | </varlistentry> |
913 | d3b4cf9f | Iustin Pop | <varlistentry> |
914 | ee1de6a1 | Iustin Pop | <term>disk_template</term> |
915 | d3b4cf9f | Iustin Pop | <listitem> |
916 | d3b4cf9f | Iustin Pop | <simpara>The disk template to use for the instance, |
917 | d3b4cf9f | Iustin Pop | the same as in the <command>add</command> |
918 | d3b4cf9f | Iustin Pop | command.</simpara> |
919 | d3b4cf9f | Iustin Pop | </listitem> |
920 | d3b4cf9f | Iustin Pop | </varlistentry> |
921 | d3b4cf9f | Iustin Pop | <varlistentry> |
922 | d3b4cf9f | Iustin Pop | <term>backend</term> |
923 | d3b4cf9f | Iustin Pop | <listitem> |
924 | d3b4cf9f | Iustin Pop | <simpara>A dictionary of backend parameters.</simpara> |
925 | d3b4cf9f | Iustin Pop | </listitem> |
926 | d3b4cf9f | Iustin Pop | </varlistentry> |
927 | d3b4cf9f | Iustin Pop | <varlistentry> |
928 | d3b4cf9f | Iustin Pop | <term>hypervisor</term> |
929 | d3b4cf9f | Iustin Pop | <listitem> |
930 | d3b4cf9f | Iustin Pop | <simpara>A dictionary with a single key (the |
931 | d3b4cf9f | Iustin Pop | hypervisor name), and as value the hypervisor |
932 | d3b4cf9f | Iustin Pop | options. If not passed, the default hypervisor and |
933 | d3b4cf9f | Iustin Pop | hypervisor options will be inherited.</simpara> |
934 | d3b4cf9f | Iustin Pop | </listitem> |
935 | d3b4cf9f | Iustin Pop | </varlistentry> |
936 | d3b4cf9f | Iustin Pop | <varlistentry> |
937 | 7d713344 | Guido Trotter | <term>mac, ip, mode, link</term> |
938 | d3b4cf9f | Iustin Pop | <listitem> |
939 | d3b4cf9f | Iustin Pop | <simpara>Specifications for the one NIC that will be |
940 | 0b063b42 | Guido Trotter | created for the instance. 'bridge' is also accepted |
941 | 0b063b42 | Guido Trotter | as a backwards compatibile key.</simpara> |
942 | 0b063b42 | Guido Trotter | </listitem> |
943 | 0b063b42 | Guido Trotter | </varlistentry> |
944 | 0b063b42 | Guido Trotter | <varlistentry> |
945 | 0b063b42 | Guido Trotter | <term>nics</term> |
946 | 0b063b42 | Guido Trotter | <listitem> |
947 | 0b063b42 | Guido Trotter | <simpara>List of nics that will be created for the |
948 | 0b063b42 | Guido Trotter | instance. Each entry should be a dict, with mac, ip, mode |
949 | 0b063b42 | Guido Trotter | and link as possible keys. Please don't provide the "mac, |
950 | 0b063b42 | Guido Trotter | ip, mode, link" parent keys if you use this method for |
951 | 0b063b42 | Guido Trotter | specifying nics.</simpara> |
952 | d3b4cf9f | Iustin Pop | </listitem> |
953 | d3b4cf9f | Iustin Pop | </varlistentry> |
954 | d3b4cf9f | Iustin Pop | <varlistentry> |
955 | d3b4cf9f | Iustin Pop | <term>primary_node, secondary_node</term> |
956 | d3b4cf9f | Iustin Pop | <listitem> |
957 | d3b4cf9f | Iustin Pop | <simpara>The primary and optionally the secondary node |
958 | d3b4cf9f | Iustin Pop | to use for the instance (in case an iallocator script |
959 | d3b4cf9f | Iustin Pop | is not used).</simpara> |
960 | d3b4cf9f | Iustin Pop | </listitem> |
961 | d3b4cf9f | Iustin Pop | </varlistentry> |
962 | d3b4cf9f | Iustin Pop | <varlistentry> |
963 | d3b4cf9f | Iustin Pop | <term>iallocator</term> |
964 | d3b4cf9f | Iustin Pop | <listitem> |
965 | d3b4cf9f | Iustin Pop | <simpara>Instead of specifying the nodes, an |
966 | d3b4cf9f | Iustin Pop | iallocator script can be used to automatically compute |
967 | d3b4cf9f | Iustin Pop | them.</simpara> |
968 | d3b4cf9f | Iustin Pop | </listitem> |
969 | d3b4cf9f | Iustin Pop | </varlistentry> |
970 | d3b4cf9f | Iustin Pop | <varlistentry> |
971 | d3b4cf9f | Iustin Pop | <term>start</term> |
972 | d3b4cf9f | Iustin Pop | <listitem> |
973 | d3b4cf9f | Iustin Pop | <simpara>whether to start the instance</simpara> |
974 | d3b4cf9f | Iustin Pop | </listitem> |
975 | d3b4cf9f | Iustin Pop | </varlistentry> |
976 | d3b4cf9f | Iustin Pop | <varlistentry> |
977 | d3b4cf9f | Iustin Pop | <term>ip_check</term> |
978 | d3b4cf9f | Iustin Pop | <listitem> |
979 | d3b4cf9f | Iustin Pop | <simpara>Skip the check for already-in-use instance; |
980 | d3b4cf9f | Iustin Pop | see the description in the <command>add</command> |
981 | d3b4cf9f | Iustin Pop | command for details.</simpara> |
982 | d3b4cf9f | Iustin Pop | </listitem> |
983 | d3b4cf9f | Iustin Pop | </varlistentry> |
984 | d3b4cf9f | Iustin Pop | <varlistentry> |
985 | 1d65264b | Iustin Pop | <term>name_check</term> |
986 | 1d65264b | Iustin Pop | <listitem> |
987 | 1d65264b | Iustin Pop | <simpara>Skip the name check for instances; |
988 | 1d65264b | Iustin Pop | see the description in the <command>add</command> |
989 | 1d65264b | Iustin Pop | command for details.</simpara> |
990 | 1d65264b | Iustin Pop | </listitem> |
991 | 1d65264b | Iustin Pop | </varlistentry> |
992 | 1d65264b | Iustin Pop | <varlistentry> |
993 | d3b4cf9f | Iustin Pop | <term>file_storage_dir, file_driver</term> |
994 | d3b4cf9f | Iustin Pop | <listitem> |
995 | d3b4cf9f | Iustin Pop | <simpara>Configuration for the <literal>file</literal> |
996 | d3b4cf9f | Iustin Pop | disk type, see the <command>add</command> command for |
997 | d3b4cf9f | Iustin Pop | details.</simpara> |
998 | d3b4cf9f | Iustin Pop | </listitem> |
999 | d3b4cf9f | Iustin Pop | </varlistentry> |
1000 | d3b4cf9f | Iustin Pop | </variablelist> |
1001 | d3b4cf9f | Iustin Pop | </para> |
1002 | d3b4cf9f | Iustin Pop | |
1003 | d3b4cf9f | Iustin Pop | <para> |
1004 | d3b4cf9f | Iustin Pop | A simple definition for one instance can be (with most of |
1005 | d3b4cf9f | Iustin Pop | the parameters taken from the cluster defaults): |
1006 | d3b4cf9f | Iustin Pop | <screen> |
1007 | d3b4cf9f | Iustin Pop | { |
1008 | d3b4cf9f | Iustin Pop | "instance3": { |
1009 | d3b4cf9f | Iustin Pop | "template": "drbd", |
1010 | d3b4cf9f | Iustin Pop | "os": "debootstrap", |
1011 | d3b4cf9f | Iustin Pop | "disk_size": ["25G"], |
1012 | d3b4cf9f | Iustin Pop | "iallocator": "dumb" |
1013 | d3b4cf9f | Iustin Pop | }, |
1014 | d3b4cf9f | Iustin Pop | "instance5": { |
1015 | d3b4cf9f | Iustin Pop | "template": "drbd", |
1016 | d3b4cf9f | Iustin Pop | "os": "debootstrap", |
1017 | d3b4cf9f | Iustin Pop | "disk_size": ["25G"], |
1018 | d3b4cf9f | Iustin Pop | "iallocator": "dumb", |
1019 | d3b4cf9f | Iustin Pop | "hypervisor": "xen-hvm", |
1020 | d3b4cf9f | Iustin Pop | "hvparams": {"acpi": true}, |
1021 | d3b4cf9f | Iustin Pop | "backend": {"memory": 512} |
1022 | d3b4cf9f | Iustin Pop | } |
1023 | d3b4cf9f | Iustin Pop | } |
1024 | d3b4cf9f | Iustin Pop | </screen> |
1025 | d3b4cf9f | Iustin Pop | </para> |
1026 | d3b4cf9f | Iustin Pop | |
1027 | d3b4cf9f | Iustin Pop | <para> |
1028 | d3b4cf9f | Iustin Pop | The command will display the job id for each submitted instance, as follows: |
1029 | d3b4cf9f | Iustin Pop | <screen> |
1030 | d3b4cf9f | Iustin Pop | # gnt-instance batch-create instances.json |
1031 | d3b4cf9f | Iustin Pop | instance3: 11224 |
1032 | d3b4cf9f | Iustin Pop | instance5: 11225 |
1033 | d3b4cf9f | Iustin Pop | </screen> |
1034 | d3b4cf9f | Iustin Pop | </para> |
1035 | d3b4cf9f | Iustin Pop | |
1036 | d3b4cf9f | Iustin Pop | </refsect3> |
1037 | d3b4cf9f | Iustin Pop | |
1038 | d3b4cf9f | Iustin Pop | <refsect3> |
1039 | a8083063 | Iustin Pop | <title>REMOVE</title> |
1040 | a8083063 | Iustin Pop | |
1041 | a8083063 | Iustin Pop | <cmdsynopsis> |
1042 | a8083063 | Iustin Pop | <command>remove</command> |
1043 | 1d67656e | Iustin Pop | <arg>--ignore-failures</arg> |
1044 | 1e2c9fd3 | Guido Trotter | <arg>--shutdown-timeout=<replaceable>N</replaceable></arg> |
1045 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
1046 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
1047 | a8083063 | Iustin Pop | </cmdsynopsis> |
1048 | a8083063 | Iustin Pop | |
1049 | a8083063 | Iustin Pop | <para> |
1050 | a8083063 | Iustin Pop | Remove an instance. This will remove all data from the |
1051 | a8083063 | Iustin Pop | instance and there is <emphasis>no way back</emphasis>. If |
1052 | a8083063 | Iustin Pop | you are not sure if you use an instance again, use |
1053 | a8083063 | Iustin Pop | <command>shutdown</command> first and leave it in the |
1054 | a8083063 | Iustin Pop | shutdown state for a while. |
1055 | 1d67656e | Iustin Pop | |
1056 | 1d67656e | Iustin Pop | </para> |
1057 | 1d67656e | Iustin Pop | |
1058 | 1d67656e | Iustin Pop | <para> |
1059 | 1d67656e | Iustin Pop | The <option>--ignore-failures</option> option will cause the |
1060 | 1d67656e | Iustin Pop | removal to proceed even in the presence of errors during the |
1061 | 1d67656e | Iustin Pop | removal of the instance (e.g. during the shutdown or the |
1062 | 1d67656e | Iustin Pop | disk removal). If this option is not given, the command will |
1063 | 1d67656e | Iustin Pop | stop at the first error. |
1064 | a8083063 | Iustin Pop | </para> |
1065 | a8083063 | Iustin Pop | |
1066 | a8083063 | Iustin Pop | <para> |
1067 | 1e2c9fd3 | Guido Trotter | The <option>--shutdown-timeout</option> is used to specify how |
1068 | 1e2c9fd3 | Guido Trotter | much time to wait before forcing the shutdown (xm destroy in xen, |
1069 | 1e2c9fd3 | Guido Trotter | killing the kvm process, for kvm). By default two minutes are |
1070 | 1e2c9fd3 | Guido Trotter | given to each instance to stop. |
1071 | 1e2c9fd3 | Guido Trotter | </para> |
1072 | 1e2c9fd3 | Guido Trotter | |
1073 | 1e2c9fd3 | Guido Trotter | <para> |
1074 | d3b4cf9f | Iustin Pop | The <option>--submit</option> option is used to send the job to |
1075 | d3b4cf9f | Iustin Pop | the master daemon but not wait for its completion. The job |
1076 | d3b4cf9f | Iustin Pop | ID will be shown so that it can be examined via |
1077 | d3b4cf9f | Iustin Pop | <command>gnt-job info</command>. |
1078 | d3b4cf9f | Iustin Pop | </para> |
1079 | d3b4cf9f | Iustin Pop | |
1080 | d3b4cf9f | Iustin Pop | <para> |
1081 | a8083063 | Iustin Pop | Example: |
1082 | a8083063 | Iustin Pop | <screen> |
1083 | a8083063 | Iustin Pop | # gnt-instance remove instance1.example.com |
1084 | a8083063 | Iustin Pop | </screen> |
1085 | a8083063 | Iustin Pop | </para> |
1086 | a8083063 | Iustin Pop | </refsect3> |
1087 | a8083063 | Iustin Pop | |
1088 | a8083063 | Iustin Pop | <refsect3> |
1089 | a8083063 | Iustin Pop | <title>LIST</title> |
1090 | a8083063 | Iustin Pop | |
1091 | a8083063 | Iustin Pop | <cmdsynopsis> |
1092 | a8083063 | Iustin Pop | <command>list</command> |
1093 | a8083063 | Iustin Pop | <arg>--no-headers</arg> |
1094 | a8083063 | Iustin Pop | <arg>--separator=<replaceable>SEPARATOR</replaceable></arg> |
1095 | 48c4dfa8 | Iustin Pop | <arg>-o <replaceable>[+]FIELD,...</replaceable></arg> |
1096 | e2736e40 | Guido Trotter | <arg>--roman</arg> |
1097 | d3b4cf9f | Iustin Pop | <arg rep="repeat">instance</arg> |
1098 | a8083063 | Iustin Pop | </cmdsynopsis> |
1099 | a8083063 | Iustin Pop | |
1100 | a8083063 | Iustin Pop | <para> |
1101 | a8083063 | Iustin Pop | Shows the currently configured instances with memory usage, |
1102 | d3b4cf9f | Iustin Pop | disk usage, the node they are running on, and their run |
1103 | d3b4cf9f | Iustin Pop | status. |
1104 | a8083063 | Iustin Pop | </para> |
1105 | a8083063 | Iustin Pop | |
1106 | a8083063 | Iustin Pop | <para> |
1107 | a8083063 | Iustin Pop | The <option>--no-headers</option> option will skip the |
1108 | a8083063 | Iustin Pop | initial header line. The <option>--separator</option> option |
1109 | a8083063 | Iustin Pop | takes an argument which denotes what will be used between |
1110 | a8083063 | Iustin Pop | the output fields. Both these options are to help scripting. |
1111 | a8083063 | Iustin Pop | </para> |
1112 | a8083063 | Iustin Pop | |
1113 | a8083063 | Iustin Pop | <para> |
1114 | e2736e40 | Guido Trotter | The <option>--roman</option> option allows latin people to better |
1115 | e2736e40 | Guido Trotter | understand the cluster instances' status. |
1116 | e2736e40 | Guido Trotter | </para> |
1117 | e2736e40 | Guido Trotter | |
1118 | e2736e40 | Guido Trotter | <para> |
1119 | a8083063 | Iustin Pop | The <option>-o</option> option takes a comma-separated list |
1120 | a8083063 | Iustin Pop | of output fields. The available fields and their meaning |
1121 | a8083063 | Iustin Pop | are: |
1122 | a8083063 | Iustin Pop | <variablelist> |
1123 | a8083063 | Iustin Pop | <varlistentry> |
1124 | a8083063 | Iustin Pop | <term>name</term> |
1125 | a8083063 | Iustin Pop | <listitem> |
1126 | a8083063 | Iustin Pop | <simpara>the instance name</simpara> |
1127 | a8083063 | Iustin Pop | </listitem> |
1128 | a8083063 | Iustin Pop | </varlistentry> |
1129 | a8083063 | Iustin Pop | <varlistentry> |
1130 | a8083063 | Iustin Pop | <term>os</term> |
1131 | a8083063 | Iustin Pop | <listitem> |
1132 | a8083063 | Iustin Pop | <simpara>the OS of the instance</simpara> |
1133 | a8083063 | Iustin Pop | </listitem> |
1134 | a8083063 | Iustin Pop | </varlistentry> |
1135 | a8083063 | Iustin Pop | <varlistentry> |
1136 | a8083063 | Iustin Pop | <term>pnode</term> |
1137 | a8083063 | Iustin Pop | <listitem> |
1138 | a8083063 | Iustin Pop | <simpara>the primary node of the instance</simpara> |
1139 | a8083063 | Iustin Pop | </listitem> |
1140 | a8083063 | Iustin Pop | </varlistentry> |
1141 | a8083063 | Iustin Pop | <varlistentry> |
1142 | a8083063 | Iustin Pop | <term>snodes</term> |
1143 | a8083063 | Iustin Pop | <listitem> |
1144 | 4677a909 | Michael Hanselmann | <simpara>comma-separated list of secondary nodes for the |
1145 | a8083063 | Iustin Pop | instance; usually this will be just one node</simpara> |
1146 | a8083063 | Iustin Pop | </listitem> |
1147 | a8083063 | Iustin Pop | </varlistentry> |
1148 | a8083063 | Iustin Pop | <varlistentry> |
1149 | a8083063 | Iustin Pop | <term>admin_state</term> |
1150 | a8083063 | Iustin Pop | <listitem> |
1151 | a8083063 | Iustin Pop | <simpara>the desired state of the instance (either "yes" |
1152 | a8083063 | Iustin Pop | or "no" denoting the instance should run or |
1153 | a8083063 | Iustin Pop | not)</simpara> |
1154 | a8083063 | Iustin Pop | </listitem> |
1155 | a8083063 | Iustin Pop | </varlistentry> |
1156 | a8083063 | Iustin Pop | <varlistentry> |
1157 | a8083063 | Iustin Pop | <term>disk_template</term> |
1158 | a8083063 | Iustin Pop | <listitem> |
1159 | a8083063 | Iustin Pop | <simpara>the disk template of the instance</simpara> |
1160 | a8083063 | Iustin Pop | </listitem> |
1161 | a8083063 | Iustin Pop | </varlistentry> |
1162 | a8083063 | Iustin Pop | <varlistentry> |
1163 | a8083063 | Iustin Pop | <term>oper_state</term> |
1164 | a8083063 | Iustin Pop | <listitem> |
1165 | d8052456 | Iustin Pop | <simpara>the actual state of the instance; can be |
1166 | d8052456 | Iustin Pop | one of the values "running", "stopped", "(node |
1167 | d8052456 | Iustin Pop | down)"</simpara> |
1168 | d8052456 | Iustin Pop | </listitem> |
1169 | d8052456 | Iustin Pop | </varlistentry> |
1170 | d8052456 | Iustin Pop | <varlistentry> |
1171 | d8052456 | Iustin Pop | <term>status</term> |
1172 | d8052456 | Iustin Pop | <listitem> |
1173 | d8052456 | Iustin Pop | <simpara>combined form of admin_state and oper_stat; |
1174 | d8052456 | Iustin Pop | this can be one of: |
1175 | d8052456 | Iustin Pop | <computeroutput>ERROR_nodedown</computeroutput> if the |
1176 | d8052456 | Iustin Pop | node of the instance is down, |
1177 | d8052456 | Iustin Pop | <computeroutput>ERROR_down</computeroutput> if the |
1178 | d8052456 | Iustin Pop | instance should run but is down, |
1179 | d8052456 | Iustin Pop | <computeroutput>ERROR_up</computeroutput> if the |
1180 | d8052456 | Iustin Pop | instance should be stopped but is actually running, |
1181 | d8052456 | Iustin Pop | <computeroutput>ADMIN_down</computeroutput> if the |
1182 | d8052456 | Iustin Pop | instance has been stopped (and is stopped) and |
1183 | d8052456 | Iustin Pop | <computeroutput>running</computeroutput> if the |
1184 | d8052456 | Iustin Pop | instance is set to be running (and is |
1185 | d8052456 | Iustin Pop | running)</simpara> |
1186 | a8083063 | Iustin Pop | </listitem> |
1187 | a8083063 | Iustin Pop | </varlistentry> |
1188 | a8083063 | Iustin Pop | <varlistentry> |
1189 | a8083063 | Iustin Pop | <term>oper_ram</term> |
1190 | a8083063 | Iustin Pop | <listitem> |
1191 | a8083063 | Iustin Pop | <simpara>the actual memory usage of the instance as seen |
1192 | a8083063 | Iustin Pop | by the hypervisor</simpara> |
1193 | a8083063 | Iustin Pop | </listitem> |
1194 | a8083063 | Iustin Pop | </varlistentry> |
1195 | a8083063 | Iustin Pop | <varlistentry> |
1196 | 4ea3de4e | Balazs Lecz | <term>oper_vcpus</term> |
1197 | 4ea3de4e | Balazs Lecz | <listitem> |
1198 | 4ea3de4e | Balazs Lecz | <simpara>the actual number of VCPUs the instance is using |
1199 | 4ea3de4e | Balazs Lecz | as seen by the hypervisor</simpara> |
1200 | 4ea3de4e | Balazs Lecz | </listitem> |
1201 | 4ea3de4e | Balazs Lecz | </varlistentry> |
1202 | 4ea3de4e | Balazs Lecz | <varlistentry> |
1203 | a8083063 | Iustin Pop | <term>ip</term> |
1204 | a8083063 | Iustin Pop | <listitem> |
1205 | e0897adf | Michael Hanselmann | <simpara>the ip address Ganeti recognizes as associated with |
1206 | d3b4cf9f | Iustin Pop | the first instance interface</simpara> |
1207 | a8083063 | Iustin Pop | </listitem> |
1208 | a8083063 | Iustin Pop | </varlistentry> |
1209 | a8083063 | Iustin Pop | <varlistentry> |
1210 | a8083063 | Iustin Pop | <term>mac</term> |
1211 | a8083063 | Iustin Pop | <listitem> |
1212 | d3b4cf9f | Iustin Pop | <simpara>the first instance interface MAC address</simpara> |
1213 | a8083063 | Iustin Pop | </listitem> |
1214 | a8083063 | Iustin Pop | </varlistentry> |
1215 | 7d713344 | Guido Trotter | |
1216 | 7d713344 | Guido Trotter | <varlistentry> |
1217 | 8619a3bd | Guido Trotter | <term>nic_mode</term> |
1218 | 7d713344 | Guido Trotter | <listitem> |
1219 | 7d713344 | Guido Trotter | <simpara>the mode of the first instance NIC |
1220 | 7d713344 | Guido Trotter | (routed or bridged)</simpara> |
1221 | 7d713344 | Guido Trotter | </listitem> |
1222 | 7d713344 | Guido Trotter | </varlistentry> |
1223 | a8083063 | Iustin Pop | <varlistentry> |
1224 | 8619a3bd | Guido Trotter | <term>nic_link</term> |
1225 | a8083063 | Iustin Pop | <listitem> |
1226 | 7d713344 | Guido Trotter | <simpara>the link of the first instance NIC |
1227 | a8083063 | Iustin Pop | </simpara> |
1228 | a8083063 | Iustin Pop | </listitem> |
1229 | a8083063 | Iustin Pop | </varlistentry> |
1230 | d8a4b51d | Iustin Pop | <varlistentry> |
1231 | d8a4b51d | Iustin Pop | <term>sda_size</term> |
1232 | d8a4b51d | Iustin Pop | <listitem> |
1233 | d8a4b51d | Iustin Pop | <simpara>the size of the instance's first disk</simpara> |
1234 | d8a4b51d | Iustin Pop | </listitem> |
1235 | d8a4b51d | Iustin Pop | </varlistentry> |
1236 | d8a4b51d | Iustin Pop | <varlistentry> |
1237 | d8a4b51d | Iustin Pop | <term>sdb_size</term> |
1238 | d8a4b51d | Iustin Pop | <listitem> |
1239 | d3b4cf9f | Iustin Pop | <simpara>the size of the instance's second disk, if |
1240 | d3b4cf9f | Iustin Pop | any</simpara> |
1241 | d8a4b51d | Iustin Pop | </listitem> |
1242 | d8a4b51d | Iustin Pop | </varlistentry> |
1243 | d8a4b51d | Iustin Pop | <varlistentry> |
1244 | d8a4b51d | Iustin Pop | <term>vcpus</term> |
1245 | d8a4b51d | Iustin Pop | <listitem> |
1246 | d8a4b51d | Iustin Pop | <simpara>the number of VCPUs allocated to the |
1247 | d8a4b51d | Iustin Pop | instance</simpara> |
1248 | d8a4b51d | Iustin Pop | </listitem> |
1249 | d8a4b51d | Iustin Pop | </varlistentry> |
1250 | 130a6a6f | Iustin Pop | <varlistentry> |
1251 | 130a6a6f | Iustin Pop | <term>tags</term> |
1252 | 130a6a6f | Iustin Pop | <listitem> |
1253 | 130a6a6f | Iustin Pop | <simpara>comma-separated list of the instances's |
1254 | 130a6a6f | Iustin Pop | tags</simpara> |
1255 | 130a6a6f | Iustin Pop | </listitem> |
1256 | 130a6a6f | Iustin Pop | </varlistentry> |
1257 | 38d7239a | Iustin Pop | <varlistentry> |
1258 | 38d7239a | Iustin Pop | <term>serial_no</term> |
1259 | 38d7239a | Iustin Pop | <listitem> |
1260 | 38d7239a | Iustin Pop | <simpara>the so called 'serial number' of the |
1261 | 38d7239a | Iustin Pop | instance; this is a numeric field that is incremented |
1262 | 38d7239a | Iustin Pop | each time the instance is modified, and it can be used |
1263 | d3b4cf9f | Iustin Pop | to track modifications</simpara> |
1264 | d3b4cf9f | Iustin Pop | </listitem> |
1265 | d3b4cf9f | Iustin Pop | </varlistentry> |
1266 | edc8fc5f | Iustin Pop | <varlistentry> |
1267 | edc8fc5f | Iustin Pop | <term>ctime</term> |
1268 | edc8fc5f | Iustin Pop | <listitem> |
1269 | edc8fc5f | Iustin Pop | <para> |
1270 | edc8fc5f | Iustin Pop | the creation time of the instance; note that this |
1271 | edc8fc5f | Iustin Pop | field contains spaces and as such it's harder to |
1272 | edc8fc5f | Iustin Pop | parse |
1273 | edc8fc5f | Iustin Pop | </para> |
1274 | edc8fc5f | Iustin Pop | <para> |
1275 | edc8fc5f | Iustin Pop | if this attribute is not present (e.g. when |
1276 | edc8fc5f | Iustin Pop | upgrading from older versions), then "N/A" will be |
1277 | edc8fc5f | Iustin Pop | shown instead |
1278 | edc8fc5f | Iustin Pop | </para> |
1279 | edc8fc5f | Iustin Pop | </listitem> |
1280 | edc8fc5f | Iustin Pop | </varlistentry> |
1281 | edc8fc5f | Iustin Pop | <varlistentry> |
1282 | edc8fc5f | Iustin Pop | <term>mtime</term> |
1283 | edc8fc5f | Iustin Pop | <listitem> |
1284 | edc8fc5f | Iustin Pop | <para> |
1285 | edc8fc5f | Iustin Pop | the last modification time of the instance; note |
1286 | edc8fc5f | Iustin Pop | that this field contains spaces and as such it's |
1287 | edc8fc5f | Iustin Pop | harder to parse |
1288 | edc8fc5f | Iustin Pop | </para> |
1289 | edc8fc5f | Iustin Pop | <para> |
1290 | edc8fc5f | Iustin Pop | if this attribute is not present (e.g. when |
1291 | edc8fc5f | Iustin Pop | upgrading from older versions), then "N/A" will be |
1292 | edc8fc5f | Iustin Pop | shown instead |
1293 | edc8fc5f | Iustin Pop | </para> |
1294 | edc8fc5f | Iustin Pop | </listitem> |
1295 | edc8fc5f | Iustin Pop | </varlistentry> |
1296 | edc8fc5f | Iustin Pop | |
1297 | edc8fc5f | Iustin Pop | <varlistentry> |
1298 | edc8fc5f | Iustin Pop | <term>uuid</term> |
1299 | edc8fc5f | Iustin Pop | <listitem> |
1300 | edc8fc5f | Iustin Pop | <simpara>Show the UUID of the instance (generated |
1301 | edc8fc5f | Iustin Pop | automatically by Ganeti)</simpara> |
1302 | edc8fc5f | Iustin Pop | </listitem> |
1303 | edc8fc5f | Iustin Pop | </varlistentry> |
1304 | 90f72445 | Iustin Pop | |
1305 | d3b4cf9f | Iustin Pop | <varlistentry> |
1306 | d3b4cf9f | Iustin Pop | <term>network_port</term> |
1307 | d3b4cf9f | Iustin Pop | <listitem> |
1308 | d3b4cf9f | Iustin Pop | <simpara>If the instance has a network port assigned |
1309 | d3b4cf9f | Iustin Pop | to it (e.g. for VNC connections), this will be shown, |
1310 | d3b4cf9f | Iustin Pop | otherwise <literal>-</literal> will be |
1311 | d3b4cf9f | Iustin Pop | displayed.</simpara> |
1312 | d3b4cf9f | Iustin Pop | </listitem> |
1313 | d3b4cf9f | Iustin Pop | </varlistentry> |
1314 | d3b4cf9f | Iustin Pop | <varlistentry> |
1315 | d3b4cf9f | Iustin Pop | <term>beparams</term> |
1316 | d3b4cf9f | Iustin Pop | <listitem> |
1317 | d3b4cf9f | Iustin Pop | <simpara>A text format of the entire beparams for the |
1318 | d3b4cf9f | Iustin Pop | instance. It's more useful to select individual fields |
1319 | d3b4cf9f | Iustin Pop | from this dictionary, see below.</simpara> |
1320 | d3b4cf9f | Iustin Pop | </listitem> |
1321 | d3b4cf9f | Iustin Pop | </varlistentry> |
1322 | d3b4cf9f | Iustin Pop | <varlistentry> |
1323 | d3b4cf9f | Iustin Pop | <term>disk.count</term> |
1324 | d3b4cf9f | Iustin Pop | <listitem> |
1325 | d3b4cf9f | Iustin Pop | <simpara>The number of instance disks.</simpara> |
1326 | d3b4cf9f | Iustin Pop | </listitem> |
1327 | d3b4cf9f | Iustin Pop | </varlistentry> |
1328 | d3b4cf9f | Iustin Pop | <varlistentry> |
1329 | d3b4cf9f | Iustin Pop | <term>disk.size/N</term> |
1330 | d3b4cf9f | Iustin Pop | <listitem> |
1331 | d3b4cf9f | Iustin Pop | <simpara>The size of the instance's Nth disk. This is |
1332 | d3b4cf9f | Iustin Pop | a more generic form of the <literal>sda_size</literal> |
1333 | d3b4cf9f | Iustin Pop | and <literal>sdb_size</literal> fields.</simpara> |
1334 | d3b4cf9f | Iustin Pop | </listitem> |
1335 | d3b4cf9f | Iustin Pop | </varlistentry> |
1336 | d3b4cf9f | Iustin Pop | <varlistentry> |
1337 | d3b4cf9f | Iustin Pop | <term>disk.sizes</term> |
1338 | d3b4cf9f | Iustin Pop | <listitem> |
1339 | d3b4cf9f | Iustin Pop | <simpara>A comma-separated list of the disk sizes for |
1340 | d3b4cf9f | Iustin Pop | this instance.</simpara> |
1341 | d3b4cf9f | Iustin Pop | </listitem> |
1342 | d3b4cf9f | Iustin Pop | </varlistentry> |
1343 | d3b4cf9f | Iustin Pop | <varlistentry> |
1344 | d3b4cf9f | Iustin Pop | <term>disk_usage</term> |
1345 | d3b4cf9f | Iustin Pop | <listitem> |
1346 | d3b4cf9f | Iustin Pop | <simpara>The total disk space used by this instance on |
1347 | d3b4cf9f | Iustin Pop | each of its nodes. This is not the instance-visible |
1348 | d3b4cf9f | Iustin Pop | disk size, but the actual disk "cost" of the |
1349 | d3b4cf9f | Iustin Pop | instance.</simpara> |
1350 | d3b4cf9f | Iustin Pop | </listitem> |
1351 | d3b4cf9f | Iustin Pop | </varlistentry> |
1352 | d3b4cf9f | Iustin Pop | <varlistentry> |
1353 | d3b4cf9f | Iustin Pop | <term>nic.mac/N</term> |
1354 | d3b4cf9f | Iustin Pop | <listitem> |
1355 | d3b4cf9f | Iustin Pop | <simpara>The MAC of the Nth instance NIC.</simpara> |
1356 | d3b4cf9f | Iustin Pop | </listitem> |
1357 | d3b4cf9f | Iustin Pop | </varlistentry> |
1358 | d3b4cf9f | Iustin Pop | <varlistentry> |
1359 | d3b4cf9f | Iustin Pop | <term>nic.ip/N</term> |
1360 | d3b4cf9f | Iustin Pop | <listitem> |
1361 | d3b4cf9f | Iustin Pop | <simpara>The IP address of the Nth instance NIC.</simpara> |
1362 | d3b4cf9f | Iustin Pop | </listitem> |
1363 | d3b4cf9f | Iustin Pop | </varlistentry> |
1364 | d3b4cf9f | Iustin Pop | <varlistentry> |
1365 | 7d713344 | Guido Trotter | <term>nic.mode/N</term> |
1366 | d3b4cf9f | Iustin Pop | <listitem> |
1367 | 7d713344 | Guido Trotter | <simpara>The mode of the Nth instance NIC</simpara> |
1368 | 7d713344 | Guido Trotter | </listitem> |
1369 | 7d713344 | Guido Trotter | </varlistentry> |
1370 | 7d713344 | Guido Trotter | <varlistentry> |
1371 | 7d713344 | Guido Trotter | <term>nic.link/N</term> |
1372 | 7d713344 | Guido Trotter | <listitem> |
1373 | 7d713344 | Guido Trotter | <simpara>The link of the Nth instance NIC</simpara> |
1374 | d3b4cf9f | Iustin Pop | </listitem> |
1375 | d3b4cf9f | Iustin Pop | </varlistentry> |
1376 | d3b4cf9f | Iustin Pop | <varlistentry> |
1377 | d3b4cf9f | Iustin Pop | <term>nic.macs</term> |
1378 | d3b4cf9f | Iustin Pop | <listitem> |
1379 | d3b4cf9f | Iustin Pop | <simpara>A comma-separated list of all the MACs of the |
1380 | d3b4cf9f | Iustin Pop | instance's NICs.</simpara> |
1381 | d3b4cf9f | Iustin Pop | </listitem> |
1382 | d3b4cf9f | Iustin Pop | </varlistentry> |
1383 | d3b4cf9f | Iustin Pop | <varlistentry> |
1384 | d3b4cf9f | Iustin Pop | <term>nic.ips</term> |
1385 | d3b4cf9f | Iustin Pop | <listitem> |
1386 | d3b4cf9f | Iustin Pop | <simpara>A comma-separated list of all the IP |
1387 | d3b4cf9f | Iustin Pop | addresses of the instance's NICs.</simpara> |
1388 | d3b4cf9f | Iustin Pop | </listitem> |
1389 | d3b4cf9f | Iustin Pop | </varlistentry> |
1390 | d3b4cf9f | Iustin Pop | <varlistentry> |
1391 | 7d713344 | Guido Trotter | <term>nic.modes</term> |
1392 | d3b4cf9f | Iustin Pop | <listitem> |
1393 | 7d713344 | Guido Trotter | <simpara>A comma-separated list of all the modes of the |
1394 | d3b4cf9f | Iustin Pop | instance's NICs.</simpara> |
1395 | d3b4cf9f | Iustin Pop | </listitem> |
1396 | d3b4cf9f | Iustin Pop | </varlistentry> |
1397 | d3b4cf9f | Iustin Pop | <varlistentry> |
1398 | 7d713344 | Guido Trotter | <term>nic.links</term> |
1399 | 7d713344 | Guido Trotter | <listitem> |
1400 | 7d713344 | Guido Trotter | <simpara>A comma-separated list of all the link parameters |
1401 | 7d713344 | Guido Trotter | of the instance's NICs.</simpara> |
1402 | 7d713344 | Guido Trotter | </listitem> |
1403 | 7d713344 | Guido Trotter | </varlistentry> |
1404 | 7d713344 | Guido Trotter | <varlistentry> |
1405 | d3b4cf9f | Iustin Pop | <term>nic.count</term> |
1406 | d3b4cf9f | Iustin Pop | <listitem> |
1407 | d3b4cf9f | Iustin Pop | <simpara>The number of instance nics.</simpara> |
1408 | d3b4cf9f | Iustin Pop | </listitem> |
1409 | d3b4cf9f | Iustin Pop | </varlistentry> |
1410 | d3b4cf9f | Iustin Pop | <varlistentry> |
1411 | d3b4cf9f | Iustin Pop | <term>hv/<replaceable>NAME</replaceable></term> |
1412 | d3b4cf9f | Iustin Pop | <listitem> |
1413 | d3b4cf9f | Iustin Pop | <simpara>The value of the hypervisor parameter called |
1414 | d3b4cf9f | Iustin Pop | <replaceable>NAME</replaceable>. For details of what |
1415 | d3b4cf9f | Iustin Pop | hypervisor parameters exist and their meaning, see the |
1416 | d3b4cf9f | Iustin Pop | <command>add</command> command.</simpara> |
1417 | d3b4cf9f | Iustin Pop | </listitem> |
1418 | d3b4cf9f | Iustin Pop | </varlistentry> |
1419 | d3b4cf9f | Iustin Pop | <varlistentry> |
1420 | d3b4cf9f | Iustin Pop | <term>be/memory</term> |
1421 | d3b4cf9f | Iustin Pop | <listitem> |
1422 | d3b4cf9f | Iustin Pop | <simpara>The configured memory for the instance.</simpara> |
1423 | d3b4cf9f | Iustin Pop | </listitem> |
1424 | d3b4cf9f | Iustin Pop | </varlistentry> |
1425 | d3b4cf9f | Iustin Pop | <varlistentry> |
1426 | d3b4cf9f | Iustin Pop | <term>be/vcpus</term> |
1427 | d3b4cf9f | Iustin Pop | <listitem> |
1428 | d3b4cf9f | Iustin Pop | <simpara>The configured number of VCPUs for the |
1429 | d3b4cf9f | Iustin Pop | instance.</simpara> |
1430 | d3b4cf9f | Iustin Pop | </listitem> |
1431 | d3b4cf9f | Iustin Pop | </varlistentry> |
1432 | d3b4cf9f | Iustin Pop | <varlistentry> |
1433 | d3b4cf9f | Iustin Pop | <term>be/auto_balance</term> |
1434 | d3b4cf9f | Iustin Pop | <listitem> |
1435 | d3b4cf9f | Iustin Pop | <simpara>Whether the instance is considered in N+1 |
1436 | d3b4cf9f | Iustin Pop | checks.</simpara> |
1437 | 38d7239a | Iustin Pop | </listitem> |
1438 | 38d7239a | Iustin Pop | </varlistentry> |
1439 | a8083063 | Iustin Pop | </variablelist> |
1440 | a8083063 | Iustin Pop | </para> |
1441 | a8083063 | Iustin Pop | |
1442 | a8083063 | Iustin Pop | <para> |
1443 | 48c4dfa8 | Iustin Pop | If the value of the option starts with the character |
1444 | d3b4cf9f | Iustin Pop | <constant>+</constant>, the new field(s) will be added to the |
1445 | 48c4dfa8 | Iustin Pop | default list. This allows to quickly see the default list |
1446 | 48c4dfa8 | Iustin Pop | plus a few other fields, instead of retyping the entire list |
1447 | 48c4dfa8 | Iustin Pop | of fields. |
1448 | 48c4dfa8 | Iustin Pop | </para> |
1449 | 48c4dfa8 | Iustin Pop | |
1450 | 48c4dfa8 | Iustin Pop | <para> |
1451 | a8083063 | Iustin Pop | There is a subtle grouping about the available output |
1452 | 872c949f | Iustin Pop | fields: all fields except for <option>oper_state</option>, |
1453 | 4ea3de4e | Balazs Lecz | <option>oper_ram</option>, <option>oper_vcpus</option> and |
1454 | 4ea3de4e | Balazs Lecz | <option>status</option> are |
1455 | 872c949f | Iustin Pop | configuration value and not run-time values. So if you don't |
1456 | 872c949f | Iustin Pop | select any of the these fields, the query will be satisfied |
1457 | a8083063 | Iustin Pop | instantly from the cluster configuration, without having to |
1458 | a8083063 | Iustin Pop | ask the remote nodes for the data. This can be helpful for |
1459 | a8083063 | Iustin Pop | big clusters when you only want some data and it makes sense |
1460 | a8083063 | Iustin Pop | to specify a reduced set of output fields. |
1461 | a8083063 | Iustin Pop | </para> |
1462 | a8083063 | Iustin Pop | |
1463 | a8083063 | Iustin Pop | <para>The default output field list is: |
1464 | a8083063 | Iustin Pop | <simplelist type="inline"> |
1465 | a8083063 | Iustin Pop | <member>name</member> |
1466 | a8083063 | Iustin Pop | <member>os</member> |
1467 | a8083063 | Iustin Pop | <member>pnode</member> |
1468 | a8083063 | Iustin Pop | <member>admin_state</member> |
1469 | a8083063 | Iustin Pop | <member>oper_state</member> |
1470 | a8083063 | Iustin Pop | <member>oper_ram</member> |
1471 | a8083063 | Iustin Pop | </simplelist>. |
1472 | a8083063 | Iustin Pop | </para> |
1473 | a8083063 | Iustin Pop | </refsect3> |
1474 | a8083063 | Iustin Pop | |
1475 | a8083063 | Iustin Pop | <refsect3> |
1476 | a8083063 | Iustin Pop | <title>INFO</title> |
1477 | a8083063 | Iustin Pop | |
1478 | a8083063 | Iustin Pop | <cmdsynopsis> |
1479 | a8083063 | Iustin Pop | <command>info</command> |
1480 | 57821cac | Iustin Pop | <group> |
1481 | 57821cac | Iustin Pop | <arg>-s</arg> |
1482 | 57821cac | Iustin Pop | <arg>--static</arg> |
1483 | 57821cac | Iustin Pop | </group> |
1484 | e2736e40 | Guido Trotter | <arg>--roman</arg> |
1485 | d09ebf6f | Guido Trotter | <group choice="req"> |
1486 | d09ebf6f | Guido Trotter | <arg>--all</arg> |
1487 | d09ebf6f | Guido Trotter | <arg rep="repeat"><replaceable>instance</replaceable></arg> |
1488 | d09ebf6f | Guido Trotter | </group> |
1489 | a8083063 | Iustin Pop | </cmdsynopsis> |
1490 | a8083063 | Iustin Pop | |
1491 | a8083063 | Iustin Pop | <para> |
1492 | d09ebf6f | Guido Trotter | Show detailed information about the given instance(s). This is |
1493 | d09ebf6f | Guido Trotter | different from <command>list</command> as it shows detailed data |
1494 | d04aaa2f | Iustin Pop | about the instance's disks (especially useful for the drbd disk |
1495 | d09ebf6f | Guido Trotter | template). |
1496 | a8083063 | Iustin Pop | </para> |
1497 | 57821cac | Iustin Pop | |
1498 | 57821cac | Iustin Pop | <para> |
1499 | 57821cac | Iustin Pop | If the option <option>-s</option> is used, only information |
1500 | 57821cac | Iustin Pop | available in the configuration file is returned, without |
1501 | 57821cac | Iustin Pop | querying nodes, making the operation faster. |
1502 | 57821cac | Iustin Pop | </para> |
1503 | d09ebf6f | Guido Trotter | |
1504 | d09ebf6f | Guido Trotter | <para> |
1505 | d09ebf6f | Guido Trotter | Use the <option>--all</option> to get info about all instances, |
1506 | ba0b05fe | Iustin Pop | rather than explicitly passing the ones you're interested in. |
1507 | d09ebf6f | Guido Trotter | </para> |
1508 | e2736e40 | Guido Trotter | |
1509 | e2736e40 | Guido Trotter | <para> |
1510 | e2736e40 | Guido Trotter | The <option>--roman</option> option can be used to cause envy among |
1511 | e2736e40 | Guido Trotter | people who like ancient cultures, but are stuck with non-latin-friendly |
1512 | e2736e40 | Guido Trotter | cluster virtualization technologies. |
1513 | e2736e40 | Guido Trotter | </para> |
1514 | e2736e40 | Guido Trotter | |
1515 | a8083063 | Iustin Pop | </refsect3> |
1516 | a8083063 | Iustin Pop | |
1517 | a8083063 | Iustin Pop | <refsect3> |
1518 | a8083063 | Iustin Pop | <title>MODIFY</title> |
1519 | a8083063 | Iustin Pop | |
1520 | a8083063 | Iustin Pop | <cmdsynopsis> |
1521 | a8083063 | Iustin Pop | <command>modify</command> |
1522 | 00f98619 | Iustin Pop | <sbr> |
1523 | d3b4cf9f | Iustin Pop | <arg choice="opt">-H <replaceable>HYPERVISOR_PARAMETERS</replaceable></arg> |
1524 | d3b4cf9f | Iustin Pop | <sbr> |
1525 | d3b4cf9f | Iustin Pop | <arg choice="opt">-B <replaceable>BACKEND_PARAMETERS</replaceable></arg> |
1526 | d3b4cf9f | Iustin Pop | <sbr> |
1527 | d3b4cf9f | Iustin Pop | <group> |
1528 | d3b4cf9f | Iustin Pop | <arg>--net add<replaceable><optional>:options</optional></replaceable></arg> |
1529 | d3b4cf9f | Iustin Pop | <arg>--net remove</arg> |
1530 | d3b4cf9f | Iustin Pop | <arg>--net <replaceable>N:options</replaceable></arg> |
1531 | d3b4cf9f | Iustin Pop | </group> |
1532 | d3b4cf9f | Iustin Pop | <sbr> |
1533 | d3b4cf9f | Iustin Pop | <group> |
1534 | d3b4cf9f | Iustin Pop | <arg>--disk add:size=<replaceable>SIZE</replaceable></arg> |
1535 | d3b4cf9f | Iustin Pop | <arg>--disk remove</arg> |
1536 | d3b4cf9f | Iustin Pop | <arg>--disk <replaceable>N</replaceable>:mode=<replaceable>MODE</replaceable></arg> |
1537 | d3b4cf9f | Iustin Pop | </group> |
1538 | d3b4cf9f | Iustin Pop | |
1539 | 00f98619 | Iustin Pop | <sbr> |
1540 | bbf74a76 | Iustin Pop | <arg>-t<group choice="req"> |
1541 | bbf74a76 | Iustin Pop | <arg>plain</arg> |
1542 | bbf74a76 | Iustin Pop | <arg>drbd</arg> |
1543 | bbf74a76 | Iustin Pop | </group></arg> |
1544 | bbf74a76 | Iustin Pop | |
1545 | 96b39bcc | Iustin Pop | <sbr> |
1546 | 96b39bcc | Iustin Pop | <arg>--os-name=<replaceable>OS</replaceable> <arg>--force-variant</arg></arg> |
1547 | bbf74a76 | Iustin Pop | |
1548 | bbf74a76 | Iustin Pop | <sbr> |
1549 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
1550 | 00f98619 | Iustin Pop | <sbr> |
1551 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
1552 | a8083063 | Iustin Pop | </cmdsynopsis> |
1553 | a8083063 | Iustin Pop | |
1554 | a8083063 | Iustin Pop | <para> |
1555 | d3b4cf9f | Iustin Pop | Modifies the memory size, number of vcpus, ip address, MAC |
1556 | 7d713344 | Guido Trotter | address and/or nic parameters for an instance. It can also |
1557 | 7d713344 | Guido Trotter | add and remove disks and NICs to/from the instance. Note |
1558 | 7d713344 | Guido Trotter | that you need to give at least one of the arguments, otherwise |
1559 | 7d713344 | Guido Trotter | the command complains. |
1560 | a8083063 | Iustin Pop | </para> |
1561 | a8083063 | Iustin Pop | |
1562 | a8083063 | Iustin Pop | <para> |
1563 | d3b4cf9f | Iustin Pop | The <option>-H</option> option specifies hypervisor options |
1564 | d3b4cf9f | Iustin Pop | in the form of <userinput>name=value[,...]</userinput>. For details which options can be specified, see the <command>add</command> command. |
1565 | a8083063 | Iustin Pop | </para> |
1566 | a8083063 | Iustin Pop | |
1567 | a8083063 | Iustin Pop | <para> |
1568 | bbf74a76 | Iustin Pop | The <option>-t</option> option will change the disk template |
1569 | bbf74a76 | Iustin Pop | of the instance. Currently only conversions between the |
1570 | bbf74a76 | Iustin Pop | plain and drbd disk templates are supported, and the |
1571 | bbf74a76 | Iustin Pop | instance must be stopped before attempting the conversion. |
1572 | bbf74a76 | Iustin Pop | </para> |
1573 | bbf74a76 | Iustin Pop | |
1574 | bbf74a76 | Iustin Pop | <para> |
1575 | d3b4cf9f | Iustin Pop | The <option>--disk |
1576 | d3b4cf9f | Iustin Pop | add:size=<replaceable>SIZE</replaceable></option> option |
1577 | d3b4cf9f | Iustin Pop | adds a disk to the instance. The <option>--disk |
1578 | d3b4cf9f | Iustin Pop | remove</option> will remove the last disk of the |
1579 | d3b4cf9f | Iustin Pop | instance. The <option>--disk |
1580 | d3b4cf9f | Iustin Pop | <replaceable>N</replaceable>:mode=<replaceable>MODE</replaceable></option> |
1581 | d3b4cf9f | Iustin Pop | option will change the mode of the Nth disk of the instance |
1582 | d3b4cf9f | Iustin Pop | between read-only (<literal>ro</literal>) and read-write |
1583 | d3b4cf9f | Iustin Pop | (<literal>rw</literal>). |
1584 | 00f98619 | Iustin Pop | </para> |
1585 | 00f98619 | Iustin Pop | |
1586 | 00f98619 | Iustin Pop | <para> |
1587 | 091c2c64 | Guido Trotter | The <option>--net |
1588 | d3b4cf9f | Iustin Pop | add:<replaceable>options</replaceable></option> option will |
1589 | d3b4cf9f | Iustin Pop | add a new NIC to the instance. The available options are the |
1590 | 7d713344 | Guido Trotter | same as in the <command>add</command> command (mac, ip, link, |
1591 | 7d713344 | Guido Trotter | mode). The <option>--net remove</option> will remove the |
1592 | 091c2c64 | Guido Trotter | last NIC of the instance, while the <option>--net |
1593 | d3b4cf9f | Iustin Pop | <replaceable>N</replaceable>:<replaceable>options</replaceable></option> |
1594 | d3b4cf9f | Iustin Pop | option will change the parameters of the Nth instance NIC. |
1595 | 25c5878d | Alexander Schreiber | </para> |
1596 | 25c5878d | Alexander Schreiber | |
1597 | 25c5878d | Alexander Schreiber | <para> |
1598 | 96b39bcc | Iustin Pop | The option <option>--os-name</option> will change the OS |
1599 | 96b39bcc | Iustin Pop | name for the instance (without reinstallation). In case an |
1600 | 96b39bcc | Iustin Pop | OS variant is specified that is not found, then by default |
1601 | 96b39bcc | Iustin Pop | the modification is refused, |
1602 | 96b39bcc | Iustin Pop | unless <option>--force-variant</option> is passed. An |
1603 | 96b39bcc | Iustin Pop | invalid OS will also be refused, unless |
1604 | 96b39bcc | Iustin Pop | the <option>--force</option> option is given. |
1605 | 96b39bcc | Iustin Pop | </para> |
1606 | 96b39bcc | Iustin Pop | |
1607 | 96b39bcc | Iustin Pop | <para> |
1608 | d3b4cf9f | Iustin Pop | The <option>--submit</option> option is used to send the job to |
1609 | d3b4cf9f | Iustin Pop | the master daemon but not wait for its completion. The job |
1610 | d3b4cf9f | Iustin Pop | ID will be shown so that it can be examined via |
1611 | d3b4cf9f | Iustin Pop | <command>gnt-job info</command>. |
1612 | ca9c49d5 | Iustin Pop | </para> |
1613 | ca9c49d5 | Iustin Pop | |
1614 | ca9c49d5 | Iustin Pop | <para> |
1615 | a8083063 | Iustin Pop | All the changes take effect at the next restart. If the |
1616 | a8083063 | Iustin Pop | instance is running, there is no effect on the instance. |
1617 | a8083063 | Iustin Pop | </para> |
1618 | a8083063 | Iustin Pop | </refsect3> |
1619 | a8083063 | Iustin Pop | |
1620 | d0834de3 | Michael Hanselmann | <refsect3> |
1621 | d0834de3 | Michael Hanselmann | <title>REINSTALL</title> |
1622 | d0834de3 | Michael Hanselmann | |
1623 | d0834de3 | Michael Hanselmann | <cmdsynopsis> |
1624 | d0834de3 | Michael Hanselmann | <command>reinstall</command> |
1625 | d0834de3 | Michael Hanselmann | <arg choice="opt">-o <replaceable>os-type</replaceable></arg> |
1626 | 20e23543 | Alexander Schreiber | <arg>--select-os</arg> |
1627 | 55efe6da | Iustin Pop | <arg choice="opt">-f <replaceable>force</replaceable></arg> |
1628 | 55efe6da | Iustin Pop | <arg>--force-multiple</arg> |
1629 | 55efe6da | Iustin Pop | <sbr> |
1630 | 55efe6da | Iustin Pop | <group choice="opt"> |
1631 | 55efe6da | Iustin Pop | <arg>--instance</arg> |
1632 | 55efe6da | Iustin Pop | <arg>--node</arg> |
1633 | 55efe6da | Iustin Pop | <arg>--primary</arg> |
1634 | 55efe6da | Iustin Pop | <arg>--secondary</arg> |
1635 | 55efe6da | Iustin Pop | <arg>--all</arg> |
1636 | 55efe6da | Iustin Pop | </group> |
1637 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
1638 | 55efe6da | Iustin Pop | <arg choice="opt" rep="repeat"><replaceable>instance</replaceable></arg> |
1639 | d0834de3 | Michael Hanselmann | </cmdsynopsis> |
1640 | d0834de3 | Michael Hanselmann | |
1641 | d0834de3 | Michael Hanselmann | <para> |
1642 | 55efe6da | Iustin Pop | Reinstalls the operating system on the given instance(s). The |
1643 | 55efe6da | Iustin Pop | instance(s) must be stopped when running this command. If the |
1644 | 949bdabe | Iustin Pop | <option>--os-type</option> is specified, the operating |
1645 | 949bdabe | Iustin Pop | system is changed. |
1646 | 949bdabe | Iustin Pop | </para> |
1647 | 949bdabe | Iustin Pop | |
1648 | 949bdabe | Iustin Pop | <para> |
1649 | 20e23543 | Alexander Schreiber | The <option>--select-os</option> option switches to an |
1650 | 20e23543 | Alexander Schreiber | interactive OS reinstall. The user is prompted to select the OS |
1651 | 20e23543 | Alexander Schreiber | template from the list of available OS templates. |
1652 | 20e23543 | Alexander Schreiber | </para> |
1653 | d3b4cf9f | Iustin Pop | |
1654 | d3b4cf9f | Iustin Pop | <para> |
1655 | 55efe6da | Iustin Pop | Since this is a potentially dangerous command, the user will |
1656 | 55efe6da | Iustin Pop | be required to confirm this action, unless the |
1657 | 55efe6da | Iustin Pop | <option>-f</option> flag is passed. When multiple instances |
1658 | 55efe6da | Iustin Pop | are selected (either by passing multiple arguments or by |
1659 | 55efe6da | Iustin Pop | using the <option>--node</option>, |
1660 | 55efe6da | Iustin Pop | <option>--primary</option>, <option>--secondary</option> or |
1661 | 297ddce9 | Iustin Pop | <option>--all</option> options), the user must pass the |
1662 | 55efe6da | Iustin Pop | <option>--force-multiple</option> options to skip the |
1663 | 55efe6da | Iustin Pop | interactive confirmation. |
1664 | 55efe6da | Iustin Pop | </para> |
1665 | 55efe6da | Iustin Pop | |
1666 | 55efe6da | Iustin Pop | <para> |
1667 | d3b4cf9f | Iustin Pop | The <option>--submit</option> option is used to send the job to |
1668 | d3b4cf9f | Iustin Pop | the master daemon but not wait for its completion. The job |
1669 | d3b4cf9f | Iustin Pop | ID will be shown so that it can be examined via |
1670 | d3b4cf9f | Iustin Pop | <command>gnt-job info</command>. |
1671 | d3b4cf9f | Iustin Pop | </para> |
1672 | d3b4cf9f | Iustin Pop | |
1673 | d3b4cf9f | Iustin Pop | |
1674 | d0834de3 | Michael Hanselmann | </refsect3> |
1675 | d0834de3 | Michael Hanselmann | |
1676 | decd5f45 | Iustin Pop | <refsect3> |
1677 | decd5f45 | Iustin Pop | <title>RENAME</title> |
1678 | decd5f45 | Iustin Pop | |
1679 | decd5f45 | Iustin Pop | <cmdsynopsis> |
1680 | decd5f45 | Iustin Pop | <command>rename</command> |
1681 | decd5f45 | Iustin Pop | <arg>--no-ip-check</arg> |
1682 | 94e9e1e9 | Manuel Franceschini | <arg>--no-name-check</arg> |
1683 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
1684 | decd5f45 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
1685 | decd5f45 | Iustin Pop | <arg choice="req"><replaceable>new_name</replaceable></arg> |
1686 | decd5f45 | Iustin Pop | </cmdsynopsis> |
1687 | decd5f45 | Iustin Pop | |
1688 | decd5f45 | Iustin Pop | <para> |
1689 | decd5f45 | Iustin Pop | Renames the given instance. The instance must be stopped |
1690 | decd5f45 | Iustin Pop | when running this command. The requirements for the new name |
1691 | decd5f45 | Iustin Pop | are the same as for adding an instance: the new name must be |
1692 | decd5f45 | Iustin Pop | resolvable and the IP it resolves to must not be reachable |
1693 | decd5f45 | Iustin Pop | (in order to prevent duplicate IPs the next time the |
1694 | decd5f45 | Iustin Pop | instance is started). The IP test can be skipped if the |
1695 | decd5f45 | Iustin Pop | <option>--no-ip-check</option> option is passed. |
1696 | decd5f45 | Iustin Pop | </para> |
1697 | d3b4cf9f | Iustin Pop | |
1698 | d3b4cf9f | Iustin Pop | <para> |
1699 | 94e9e1e9 | Manuel Franceschini | The <option>--no-name-check</option> skips the check for the |
1700 | 94e9e1e9 | Manuel Franceschini | new instance name via the resolver (e.g. in DNS or /etc/hosts, |
1701 | 94e9e1e9 | Manuel Franceschini | depending on your setup). Since the name check is used to |
1702 | 94e9e1e9 | Manuel Franceschini | compute the IP address, if you pass this option you must |
1703 | 94e9e1e9 | Manuel Franceschini | also pass the <option>--no-ip-check</option> option. |
1704 | 94e9e1e9 | Manuel Franceschini | </para> |
1705 | 94e9e1e9 | Manuel Franceschini | |
1706 | 94e9e1e9 | Manuel Franceschini | <para> |
1707 | d3b4cf9f | Iustin Pop | The <option>--submit</option> option is used to send the job to |
1708 | d3b4cf9f | Iustin Pop | the master daemon but not wait for its completion. The job |
1709 | d3b4cf9f | Iustin Pop | ID will be shown so that it can be examined via |
1710 | d3b4cf9f | Iustin Pop | <command>gnt-job info</command>. |
1711 | d3b4cf9f | Iustin Pop | </para> |
1712 | d3b4cf9f | Iustin Pop | |
1713 | decd5f45 | Iustin Pop | </refsect3> |
1714 | decd5f45 | Iustin Pop | |
1715 | a8083063 | Iustin Pop | </refsect2> |
1716 | a8083063 | Iustin Pop | |
1717 | a8083063 | Iustin Pop | <refsect2> |
1718 | a8083063 | Iustin Pop | <title>Starting/stopping/connecting to console</title> |
1719 | a8083063 | Iustin Pop | |
1720 | a8083063 | Iustin Pop | <refsect3> |
1721 | a8083063 | Iustin Pop | <title>STARTUP</title> |
1722 | a8083063 | Iustin Pop | |
1723 | a8083063 | Iustin Pop | <cmdsynopsis> |
1724 | a8083063 | Iustin Pop | <command>startup</command> |
1725 | d3b4cf9f | Iustin Pop | <sbr> |
1726 | 3bd5f059 | Michael Hanselmann | <arg>--force</arg> |
1727 | 312ac745 | Iustin Pop | <sbr> |
1728 | d3b4cf9f | Iustin Pop | <arg>--force-multiple</arg> |
1729 | d3b4cf9f | Iustin Pop | <sbr> |
1730 | 312ac745 | Iustin Pop | <group choice="opt"> |
1731 | 312ac745 | Iustin Pop | <arg>--instance</arg> |
1732 | 312ac745 | Iustin Pop | <arg>--node</arg> |
1733 | 312ac745 | Iustin Pop | <arg>--primary</arg> |
1734 | 312ac745 | Iustin Pop | <arg>--secondary</arg> |
1735 | 312ac745 | Iustin Pop | <arg>--all</arg> |
1736 | c7c568b4 | René Nussbaumer | <arg>--tags</arg> |
1737 | c7c568b4 | René Nussbaumer | <arg>--node-tags</arg> |
1738 | c7c568b4 | René Nussbaumer | <arg>--pri-node-tags</arg> |
1739 | c7c568b4 | René Nussbaumer | <arg>--sec-node-tags</arg> |
1740 | 312ac745 | Iustin Pop | </group> |
1741 | 312ac745 | Iustin Pop | <sbr> |
1742 | d04aaa2f | Iustin Pop | <arg>-H <option>key=value...</option></arg> |
1743 | d04aaa2f | Iustin Pop | <arg>-B <option>key=value...</option></arg> |
1744 | d04aaa2f | Iustin Pop | <sbr> |
1745 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
1746 | d3b4cf9f | Iustin Pop | <sbr> |
1747 | 312ac745 | Iustin Pop | <arg choice="opt" |
1748 | 312ac745 | Iustin Pop | rep="repeat"><replaceable>name</replaceable></arg> |
1749 | a8083063 | Iustin Pop | </cmdsynopsis> |
1750 | a8083063 | Iustin Pop | |
1751 | a8083063 | Iustin Pop | <para> |
1752 | bcee9cb4 | Iustin Pop | Starts one or more instances, depending on the following |
1753 | bcee9cb4 | Iustin Pop | options. The four available modes are: |
1754 | 312ac745 | Iustin Pop | <variablelist> |
1755 | 312ac745 | Iustin Pop | <varlistentry> |
1756 | 312ac745 | Iustin Pop | <term><option>--instance</option></term> |
1757 | 312ac745 | Iustin Pop | <listitem> |
1758 | 312ac745 | Iustin Pop | <simpara>will start the instances given as arguments |
1759 | 312ac745 | Iustin Pop | (at least one argument required); this is the default |
1760 | 312ac745 | Iustin Pop | selection</simpara> |
1761 | 312ac745 | Iustin Pop | </listitem> |
1762 | 312ac745 | Iustin Pop | </varlistentry> |
1763 | 312ac745 | Iustin Pop | <varlistentry> |
1764 | 312ac745 | Iustin Pop | <term>--node</term> |
1765 | 312ac745 | Iustin Pop | <listitem> |
1766 | 312ac745 | Iustin Pop | <simpara>will start the instances who have the given |
1767 | 312ac745 | Iustin Pop | node as either primary or secondary</simpara> |
1768 | 312ac745 | Iustin Pop | </listitem> |
1769 | 312ac745 | Iustin Pop | </varlistentry> |
1770 | 312ac745 | Iustin Pop | <varlistentry> |
1771 | 312ac745 | Iustin Pop | <term><option>--primary</option></term> |
1772 | 312ac745 | Iustin Pop | <listitem> |
1773 | 312ac745 | Iustin Pop | <simpara>will start all instances whose primary node |
1774 | 312ac745 | Iustin Pop | is in the list of nodes passed as arguments (at least |
1775 | 312ac745 | Iustin Pop | one node required)</simpara> |
1776 | 312ac745 | Iustin Pop | </listitem> |
1777 | 312ac745 | Iustin Pop | </varlistentry> |
1778 | 312ac745 | Iustin Pop | <varlistentry> |
1779 | 312ac745 | Iustin Pop | <term><option>--secondary</option></term> |
1780 | 312ac745 | Iustin Pop | <listitem> |
1781 | 312ac745 | Iustin Pop | <simpara>will start all instances whose secondary node |
1782 | 312ac745 | Iustin Pop | is in the list of nodes passed as arguments (at least |
1783 | 312ac745 | Iustin Pop | one node required)</simpara> |
1784 | 312ac745 | Iustin Pop | </listitem> |
1785 | 312ac745 | Iustin Pop | </varlistentry> |
1786 | 312ac745 | Iustin Pop | <varlistentry> |
1787 | 312ac745 | Iustin Pop | <term>--all</term> |
1788 | 312ac745 | Iustin Pop | <listitem> |
1789 | 312ac745 | Iustin Pop | <simpara>will start all instances in the cluster (no |
1790 | 312ac745 | Iustin Pop | arguments accepted)</simpara> |
1791 | 312ac745 | Iustin Pop | </listitem> |
1792 | 312ac745 | Iustin Pop | </varlistentry> |
1793 | c7c568b4 | René Nussbaumer | <varlistentry> |
1794 | c7c568b4 | René Nussbaumer | <term>--tags</term> |
1795 | c7c568b4 | René Nussbaumer | <listitem> |
1796 | c7c568b4 | René Nussbaumer | <simpara>will start all instances in the cluster with |
1797 | c7c568b4 | René Nussbaumer | the tags given as arguments</simpara> |
1798 | c7c568b4 | René Nussbaumer | </listitem> |
1799 | c7c568b4 | René Nussbaumer | </varlistentry> |
1800 | c7c568b4 | René Nussbaumer | <varlistentry> |
1801 | c7c568b4 | René Nussbaumer | <term>--node-tags</term> |
1802 | c7c568b4 | René Nussbaumer | <listitem> |
1803 | c7c568b4 | René Nussbaumer | <simpara>will start all instances in the cluster on |
1804 | c7c568b4 | René Nussbaumer | nodes with the tags given as arguments</simpara> |
1805 | c7c568b4 | René Nussbaumer | </listitem> |
1806 | c7c568b4 | René Nussbaumer | </varlistentry> |
1807 | c7c568b4 | René Nussbaumer | <varlistentry> |
1808 | c7c568b4 | René Nussbaumer | <term>--pri-node-tags</term> |
1809 | c7c568b4 | René Nussbaumer | <listitem> |
1810 | c7c568b4 | René Nussbaumer | <simpara>will start all instances in the cluster on |
1811 | c7c568b4 | René Nussbaumer | primary nodes with the tags given as |
1812 | c7c568b4 | René Nussbaumer | arguments</simpara> |
1813 | c7c568b4 | René Nussbaumer | </listitem> |
1814 | c7c568b4 | René Nussbaumer | </varlistentry> |
1815 | c7c568b4 | René Nussbaumer | <varlistentry> |
1816 | c7c568b4 | René Nussbaumer | <term>--sec-node-tags</term> |
1817 | c7c568b4 | René Nussbaumer | <listitem> |
1818 | c7c568b4 | René Nussbaumer | <simpara>will start all instances in the cluster on |
1819 | c7c568b4 | René Nussbaumer | secondary nodes with the tags given as |
1820 | c7c568b4 | René Nussbaumer | arguments</simpara> |
1821 | c7c568b4 | René Nussbaumer | </listitem> |
1822 | c7c568b4 | René Nussbaumer | </varlistentry> |
1823 | 312ac745 | Iustin Pop | </variablelist> |
1824 | 312ac745 | Iustin Pop | </para> |
1825 | 312ac745 | Iustin Pop | |
1826 | 312ac745 | Iustin Pop | <para> |
1827 | bcee9cb4 | Iustin Pop | Note that although you can pass more than one selection |
1828 | bcee9cb4 | Iustin Pop | option, the last one wins, so in order to guarantee the |
1829 | bcee9cb4 | Iustin Pop | desired result, don't pass more than one such option. |
1830 | a8083063 | Iustin Pop | </para> |
1831 | a8083063 | Iustin Pop | |
1832 | a8083063 | Iustin Pop | <para> |
1833 | 3bd5f059 | Michael Hanselmann | Use <option>--force</option> to start even if secondary disks are |
1834 | 3bd5f059 | Michael Hanselmann | failing. |
1835 | 3bd5f059 | Michael Hanselmann | </para> |
1836 | a8083063 | Iustin Pop | |
1837 | a8083063 | Iustin Pop | <para> |
1838 | d3b4cf9f | Iustin Pop | The <option>--force-multiple</option> will skip the |
1839 | d3b4cf9f | Iustin Pop | interactive confirmation in the case the more than one |
1840 | d3b4cf9f | Iustin Pop | instance will be affected. |
1841 | d3b4cf9f | Iustin Pop | </para> |
1842 | d3b4cf9f | Iustin Pop | |
1843 | d3b4cf9f | Iustin Pop | <para> |
1844 | d04aaa2f | Iustin Pop | The <option>-H</option> and <option>-B</option> options |
1845 | 20b1bd80 | Iustin Pop | specify temporary hypervisor and backend parameters that can |
1846 | 20b1bd80 | Iustin Pop | be used to start an instance with modified parameters. They |
1847 | 20b1bd80 | Iustin Pop | can be useful for quick testing without having to modify an |
1848 | 20b1bd80 | Iustin Pop | instance back and forth, e.g.: |
1849 | d04aaa2f | Iustin Pop | <screen> |
1850 | d04aaa2f | Iustin Pop | # gnt-instance start -H root_args="single" instance1 |
1851 | d04aaa2f | Iustin Pop | # gnt-instance start -B memory=2048 instance2 |
1852 | d04aaa2f | Iustin Pop | </screen> |
1853 | d04aaa2f | Iustin Pop | The first form will start the instance |
1854 | d04aaa2f | Iustin Pop | <userinput>instance1</userinput> in single-user mode, and |
1855 | d04aaa2f | Iustin Pop | the instance <userinput>instance2</userinput> with 2GB of |
1856 | d04aaa2f | Iustin Pop | RAM (this time only, unless that is the actual instance |
1857 | 20b1bd80 | Iustin Pop | memory size already). Note that the values override the |
1858 | 20b1bd80 | Iustin Pop | instance parameters (and not extend them): an instance with |
1859 | 20b1bd80 | Iustin Pop | "root_args=ro" when started with <userinput>-H |
1860 | 20b1bd80 | Iustin Pop | root_args=single</userinput> will result in "single", not |
1861 | 20b1bd80 | Iustin Pop | "ro single". |
1862 | d04aaa2f | Iustin Pop | </para> |
1863 | d04aaa2f | Iustin Pop | |
1864 | d04aaa2f | Iustin Pop | <para> |
1865 | d3b4cf9f | Iustin Pop | The <option>--submit</option> option is used to send the job to |
1866 | d3b4cf9f | Iustin Pop | the master daemon but not wait for its completion. The job |
1867 | d3b4cf9f | Iustin Pop | ID will be shown so that it can be examined via |
1868 | d3b4cf9f | Iustin Pop | <command>gnt-job info</command>. |
1869 | d3b4cf9f | Iustin Pop | </para> |
1870 | d3b4cf9f | Iustin Pop | |
1871 | d3b4cf9f | Iustin Pop | <para> |
1872 | a8083063 | Iustin Pop | Example: |
1873 | a8083063 | Iustin Pop | <screen> |
1874 | a8083063 | Iustin Pop | # gnt-instance start instance1.example.com |
1875 | bcee9cb4 | Iustin Pop | # gnt-instance start --node node1.example.com node2.example.com |
1876 | bcee9cb4 | Iustin Pop | # gnt-instance start --all |
1877 | a8083063 | Iustin Pop | </screen> |
1878 | a8083063 | Iustin Pop | </para> |
1879 | a8083063 | Iustin Pop | </refsect3> |
1880 | a8083063 | Iustin Pop | |
1881 | a8083063 | Iustin Pop | <refsect3> |
1882 | a8083063 | Iustin Pop | <title>SHUTDOWN</title> |
1883 | a8083063 | Iustin Pop | |
1884 | a8083063 | Iustin Pop | <cmdsynopsis> |
1885 | a8083063 | Iustin Pop | <command>shutdown</command> |
1886 | 312ac745 | Iustin Pop | <sbr> |
1887 | 95a5d0fb | Guido Trotter | <arg>--timeout=<replaceable>N</replaceable></arg> |
1888 | 95a5d0fb | Guido Trotter | <sbr> |
1889 | d3b4cf9f | Iustin Pop | <arg>--force-multiple</arg> |
1890 | d3b4cf9f | Iustin Pop | <sbr> |
1891 | 312ac745 | Iustin Pop | <group choice="opt"> |
1892 | 312ac745 | Iustin Pop | <arg>--instance</arg> |
1893 | 312ac745 | Iustin Pop | <arg>--node</arg> |
1894 | 312ac745 | Iustin Pop | <arg>--primary</arg> |
1895 | 312ac745 | Iustin Pop | <arg>--secondary</arg> |
1896 | 312ac745 | Iustin Pop | <arg>--all</arg> |
1897 | c7c568b4 | René Nussbaumer | <arg>--tags</arg> |
1898 | c7c568b4 | René Nussbaumer | <arg>--node-tags</arg> |
1899 | c7c568b4 | René Nussbaumer | <arg>--pri-node-tags</arg> |
1900 | c7c568b4 | René Nussbaumer | <arg>--sec-node-tags</arg> |
1901 | 312ac745 | Iustin Pop | </group> |
1902 | 312ac745 | Iustin Pop | <sbr> |
1903 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
1904 | d3b4cf9f | Iustin Pop | <sbr> |
1905 | 312ac745 | Iustin Pop | <arg choice="opt" |
1906 | 312ac745 | Iustin Pop | rep="repeat"><replaceable>name</replaceable></arg> |
1907 | a8083063 | Iustin Pop | </cmdsynopsis> |
1908 | a8083063 | Iustin Pop | |
1909 | a8083063 | Iustin Pop | <para> |
1910 | 312ac745 | Iustin Pop | Stops one or more instances. If the instance cannot be |
1911 | 312ac745 | Iustin Pop | cleanly stopped during a hardcoded interval (currently 2 |
1912 | 312ac745 | Iustin Pop | minutes), it will forcibly stop the instance (equivalent to |
1913 | 312ac745 | Iustin Pop | switching off the power on a physical machine). |
1914 | 312ac745 | Iustin Pop | </para> |
1915 | 312ac745 | Iustin Pop | |
1916 | 312ac745 | Iustin Pop | <para> |
1917 | 95a5d0fb | Guido Trotter | The <option>--timeout</option> is used to specify how much time to |
1918 | 95a5d0fb | Guido Trotter | wait before forcing the shutdown (xm destroy in xen, killing the kvm |
1919 | 95a5d0fb | Guido Trotter | process, for kvm). By default two minutes are given to each instance |
1920 | 95a5d0fb | Guido Trotter | to stop. |
1921 | 95a5d0fb | Guido Trotter | </para> |
1922 | 95a5d0fb | Guido Trotter | |
1923 | 95a5d0fb | Guido Trotter | <para> |
1924 | 312ac745 | Iustin Pop | The <option>--instance</option>, <option>--node</option>, |
1925 | c7c568b4 | René Nussbaumer | <option>--primary</option>, <option>--secondary</option>, |
1926 | c7c568b4 | René Nussbaumer | <option>--all</option>, <option>--tags</option>, |
1927 | c7c568b4 | René Nussbaumer | <option>--node-tags</option>, <option>--pri-node-tags</option> and |
1928 | c7c568b4 | René Nussbaumer | <option>--sec-node-tags</option> options are similar as for the |
1929 | 312ac745 | Iustin Pop | <command>startup</command> command and they influence the |
1930 | 86b8c6ae | Alexander Schreiber | actual instances being shutdown. |
1931 | a8083063 | Iustin Pop | </para> |
1932 | a8083063 | Iustin Pop | |
1933 | a8083063 | Iustin Pop | <para> |
1934 | d3b4cf9f | Iustin Pop | The <option>--submit</option> option is used to send the job to |
1935 | d3b4cf9f | Iustin Pop | the master daemon but not wait for its completion. The job |
1936 | d3b4cf9f | Iustin Pop | ID will be shown so that it can be examined via |
1937 | d3b4cf9f | Iustin Pop | <command>gnt-job info</command>. |
1938 | d3b4cf9f | Iustin Pop | </para> |
1939 | d3b4cf9f | Iustin Pop | |
1940 | d3b4cf9f | Iustin Pop | |
1941 | d3b4cf9f | Iustin Pop | <para> |
1942 | a8083063 | Iustin Pop | Example: |
1943 | a8083063 | Iustin Pop | <screen> |
1944 | a8083063 | Iustin Pop | # gnt-instance shutdown instance1.example.com |
1945 | bcee9cb4 | Iustin Pop | # gnt-instance shutdown --all |
1946 | a8083063 | Iustin Pop | </screen> |
1947 | a8083063 | Iustin Pop | </para> |
1948 | a8083063 | Iustin Pop | </refsect3> |
1949 | a8083063 | Iustin Pop | |
1950 | a8083063 | Iustin Pop | <refsect3> |
1951 | 579d4337 | Alexander Schreiber | <title>REBOOT</title> |
1952 | 579d4337 | Alexander Schreiber | |
1953 | 579d4337 | Alexander Schreiber | <cmdsynopsis> |
1954 | 579d4337 | Alexander Schreiber | <command>reboot</command> |
1955 | 579d4337 | Alexander Schreiber | <sbr> |
1956 | 579d4337 | Alexander Schreiber | <arg>--type=<replaceable>REBOOT-TYPE</replaceable></arg> |
1957 | 579d4337 | Alexander Schreiber | <sbr> |
1958 | 579d4337 | Alexander Schreiber | <arg>--ignore-secondaries</arg> |
1959 | 579d4337 | Alexander Schreiber | <sbr> |
1960 | 1e2c9fd3 | Guido Trotter | <arg>--shutdown-timeout=<replaceable>N</replaceable></arg> |
1961 | 1e2c9fd3 | Guido Trotter | <sbr> |
1962 | 579d4337 | Alexander Schreiber | <arg>--force-multiple</arg> |
1963 | 579d4337 | Alexander Schreiber | <sbr> |
1964 | 579d4337 | Alexander Schreiber | <group choice="opt"> |
1965 | 579d4337 | Alexander Schreiber | <arg>--instance</arg> |
1966 | 579d4337 | Alexander Schreiber | <arg>--node</arg> |
1967 | 579d4337 | Alexander Schreiber | <arg>--primary</arg> |
1968 | 579d4337 | Alexander Schreiber | <arg>--secondary</arg> |
1969 | 579d4337 | Alexander Schreiber | <arg>--all</arg> |
1970 | c7c568b4 | René Nussbaumer | <arg>--tags</arg> |
1971 | c7c568b4 | René Nussbaumer | <arg>--node-tags</arg> |
1972 | c7c568b4 | René Nussbaumer | <arg>--pri-node-tags</arg> |
1973 | c7c568b4 | René Nussbaumer | <arg>--sec-node-tags</arg> |
1974 | 579d4337 | Alexander Schreiber | </group> |
1975 | 579d4337 | Alexander Schreiber | <sbr> |
1976 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
1977 | d3b4cf9f | Iustin Pop | <sbr> |
1978 | 579d4337 | Alexander Schreiber | <arg choice="opt" |
1979 | 579d4337 | Alexander Schreiber | rep="repeat"><replaceable>name</replaceable></arg> |
1980 | 579d4337 | Alexander Schreiber | </cmdsynopsis> |
1981 | 579d4337 | Alexander Schreiber | |
1982 | 579d4337 | Alexander Schreiber | <para> |
1983 | 579d4337 | Alexander Schreiber | Reboots one or more instances. The type of reboot depends on |
1984 | 579d4337 | Alexander Schreiber | the value of <option>--type</option>. A soft reboot does a |
1985 | 579d4337 | Alexander Schreiber | hypervisor reboot, a hard reboot does a instance stop, |
1986 | 579d4337 | Alexander Schreiber | recreates the hypervisor config for the instance and |
1987 | 579d4337 | Alexander Schreiber | starts the instance. A full reboot does the equivalent |
1988 | 579d4337 | Alexander Schreiber | of <command>gnt-instance shutdown && gnt-instance |
1989 | bf2fd71e | Alexander Schreiber | startup</command>. The default is hard reboot. |
1990 | 579d4337 | Alexander Schreiber | </para> |
1991 | 579d4337 | Alexander Schreiber | |
1992 | 579d4337 | Alexander Schreiber | <para> |
1993 | 579d4337 | Alexander Schreiber | For the hard reboot the option |
1994 | 579d4337 | Alexander Schreiber | <option>--ignore-secondaries</option> ignores errors for the |
1995 | 579d4337 | Alexander Schreiber | secondary node while re-assembling the instance disks. |
1996 | 579d4337 | Alexander Schreiber | </para> |
1997 | 579d4337 | Alexander Schreiber | |
1998 | 579d4337 | Alexander Schreiber | <para> |
1999 | 579d4337 | Alexander Schreiber | The <option>--instance</option>, <option>--node</option>, |
2000 | c7c568b4 | René Nussbaumer | <option>--primary</option>, <option>--secondary</option>, |
2001 | c7c568b4 | René Nussbaumer | <option>--all</option>, <option>--tags</option>, |
2002 | c7c568b4 | René Nussbaumer | <option>--node-tags</option>, <option>--pri-node-tags</option> and |
2003 | c7c568b4 | René Nussbaumer | <option>--sec-node-tags</option> options are similar as for the |
2004 | 579d4337 | Alexander Schreiber | <command>startup</command> command and they influence the |
2005 | 579d4337 | Alexander Schreiber | actual instances being rebooted. |
2006 | 579d4337 | Alexander Schreiber | </para> |
2007 | 36c87212 | Iustin Pop | |
2008 | 579d4337 | Alexander Schreiber | <para> |
2009 | 1e2c9fd3 | Guido Trotter | The <option>--shutdown-timeout</option> is used to specify how |
2010 | 1e2c9fd3 | Guido Trotter | much time to wait before forcing the shutdown (xm destroy in xen, |
2011 | 1e2c9fd3 | Guido Trotter | killing the kvm process, for kvm). By default two minutes are |
2012 | 1e2c9fd3 | Guido Trotter | given to each instance to stop. |
2013 | 1e2c9fd3 | Guido Trotter | </para> |
2014 | 1e2c9fd3 | Guido Trotter | |
2015 | 1e2c9fd3 | Guido Trotter | <para> |
2016 | d3b4cf9f | Iustin Pop | The <option>--force-multiple</option> will skip the |
2017 | d3b4cf9f | Iustin Pop | interactive confirmation in the case the more than one |
2018 | d3b4cf9f | Iustin Pop | instance will be affected. |
2019 | 579d4337 | Alexander Schreiber | </para> |
2020 | 579d4337 | Alexander Schreiber | |
2021 | 579d4337 | Alexander Schreiber | <para> |
2022 | 579d4337 | Alexander Schreiber | Example: |
2023 | 579d4337 | Alexander Schreiber | <screen> |
2024 | 579d4337 | Alexander Schreiber | # gnt-instance reboot instance1.example.com |
2025 | 579d4337 | Alexander Schreiber | # gnt-instance reboot --type=full instance1.example.com |
2026 | 579d4337 | Alexander Schreiber | </screen> |
2027 | 579d4337 | Alexander Schreiber | </para> |
2028 | 579d4337 | Alexander Schreiber | </refsect3> |
2029 | 579d4337 | Alexander Schreiber | |
2030 | 579d4337 | Alexander Schreiber | <refsect3> |
2031 | a8083063 | Iustin Pop | <title>CONSOLE</title> |
2032 | a8083063 | Iustin Pop | <cmdsynopsis> |
2033 | a8083063 | Iustin Pop | <command>console</command> |
2034 | 51c6e7b5 | Michael Hanselmann | <arg choice="opt">--show-cmd</arg> |
2035 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
2036 | a8083063 | Iustin Pop | </cmdsynopsis> |
2037 | a8083063 | Iustin Pop | |
2038 | a8083063 | Iustin Pop | <para> |
2039 | d3b4cf9f | Iustin Pop | Connects to the console of the given instance. If the |
2040 | d3b4cf9f | Iustin Pop | instance is not up, an error is returned. Use the |
2041 | d3b4cf9f | Iustin Pop | <option>--show-cmd</option> option to display the command |
2042 | d3b4cf9f | Iustin Pop | instead of executing it. |
2043 | a8083063 | Iustin Pop | </para> |
2044 | a8083063 | Iustin Pop | |
2045 | a8083063 | Iustin Pop | <para> |
2046 | d3b4cf9f | Iustin Pop | For HVM instances, this will attempt to connect to the |
2047 | d3b4cf9f | Iustin Pop | serial console of the instance. To connect to the |
2048 | d3b4cf9f | Iustin Pop | virtualized "physical" console of a HVM instance, use a VNC |
2049 | d3b4cf9f | Iustin Pop | client with the connection info from the |
2050 | d3b4cf9f | Iustin Pop | <command>info</command> command. |
2051 | 16034f1f | Alexander Schreiber | </para> |
2052 | 16034f1f | Alexander Schreiber | |
2053 | 16034f1f | Alexander Schreiber | <para> |
2054 | a8083063 | Iustin Pop | Example: |
2055 | a8083063 | Iustin Pop | <screen> |
2056 | a8083063 | Iustin Pop | # gnt-instance console instance1.example.com |
2057 | a8083063 | Iustin Pop | </screen> |
2058 | a8083063 | Iustin Pop | </para> |
2059 | a8083063 | Iustin Pop | </refsect3> |
2060 | a8083063 | Iustin Pop | |
2061 | a8083063 | Iustin Pop | </refsect2> |
2062 | a8083063 | Iustin Pop | |
2063 | a8083063 | Iustin Pop | <refsect2> |
2064 | a8083063 | Iustin Pop | <title>Disk management</title> |
2065 | a8083063 | Iustin Pop | |
2066 | a8083063 | Iustin Pop | <refsect3> |
2067 | a8083063 | Iustin Pop | <title>REPLACE-DISKS</title> |
2068 | a8083063 | Iustin Pop | |
2069 | a8083063 | Iustin Pop | <cmdsynopsis> |
2070 | a8083063 | Iustin Pop | <command>replace-disks</command> |
2071 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
2072 | 7ea7bcf6 | Iustin Pop | <arg>--early-release</arg> |
2073 | 7e9366f7 | Iustin Pop | <arg choice="req">-p</arg> |
2074 | 949bdabe | Iustin Pop | <arg>--disks <replaceable>idx</replaceable></arg> |
2075 | 7e9366f7 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
2076 | 7e9366f7 | Iustin Pop | </cmdsynopsis> |
2077 | a53a1b18 | Michael Hanselmann | |
2078 | 7e9366f7 | Iustin Pop | <cmdsynopsis> |
2079 | 7e9366f7 | Iustin Pop | <command>replace-disks</command> |
2080 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
2081 | 7ea7bcf6 | Iustin Pop | <arg>--early-release</arg> |
2082 | 7e9366f7 | Iustin Pop | <arg choice="req">-s</arg> |
2083 | 949bdabe | Iustin Pop | <arg>--disks <replaceable>idx</replaceable></arg> |
2084 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
2085 | a8083063 | Iustin Pop | </cmdsynopsis> |
2086 | a8083063 | Iustin Pop | |
2087 | 0b0dea6a | Iustin Pop | <cmdsynopsis> |
2088 | 0b0dea6a | Iustin Pop | <command>replace-disks</command> |
2089 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
2090 | 7ea7bcf6 | Iustin Pop | <arg>--early-release</arg> |
2091 | 7e9366f7 | Iustin Pop | <group choice="req"> |
2092 | 7e9366f7 | Iustin Pop | <arg>--iallocator <replaceable>name</replaceable></arg> |
2093 | 7e9366f7 | Iustin Pop | <arg>--new-secondary <replaceable>NODE</replaceable></arg> |
2094 | 0b0dea6a | Iustin Pop | </group> |
2095 | 7e9366f7 | Iustin Pop | |
2096 | 0b0dea6a | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
2097 | 0b0dea6a | Iustin Pop | </cmdsynopsis> |
2098 | 0b0dea6a | Iustin Pop | |
2099 | 05d47e33 | Michael Hanselmann | <cmdsynopsis> |
2100 | 05d47e33 | Michael Hanselmann | <command>replace-disks</command> |
2101 | 05d47e33 | Michael Hanselmann | <arg>--submit</arg> |
2102 | 7ea7bcf6 | Iustin Pop | <arg>--early-release</arg> |
2103 | 05d47e33 | Michael Hanselmann | <arg choice="req">--auto</arg> |
2104 | 05d47e33 | Michael Hanselmann | <arg choice="req"><replaceable>instance</replaceable></arg> |
2105 | 05d47e33 | Michael Hanselmann | </cmdsynopsis> |
2106 | 05d47e33 | Michael Hanselmann | |
2107 | a8083063 | Iustin Pop | <para> |
2108 | 949bdabe | Iustin Pop | This command is a generalized form for replacing disks. It |
2109 | 949bdabe | Iustin Pop | is currently only valid for the mirrored (DRBD) disk |
2110 | 949bdabe | Iustin Pop | template. |
2111 | a8083063 | Iustin Pop | </para> |
2112 | 0b0dea6a | Iustin Pop | |
2113 | 0b0dea6a | Iustin Pop | <para> |
2114 | 7e9366f7 | Iustin Pop | The first form (when passing the <option>-p</option> option) |
2115 | 7e9366f7 | Iustin Pop | will replace the disks on the primary, while the second form |
2116 | 7e9366f7 | Iustin Pop | (when passing the <option>-s</option> option will replace |
2117 | 949bdabe | Iustin Pop | the disks on the secondary node. For these two cases (as the |
2118 | 949bdabe | Iustin Pop | node doesn't change), it is possible to only run the replace |
2119 | 949bdabe | Iustin Pop | for a subset of the disks, using the option |
2120 | 949bdabe | Iustin Pop | <option>--disks</option> which takes a list of |
2121 | 949bdabe | Iustin Pop | comma-delimited disk indices (zero-based), |
2122 | 949bdabe | Iustin Pop | e.g. <userinput>0,2</userinput> to replace only the first |
2123 | 949bdabe | Iustin Pop | and third disks. |
2124 | 0b0dea6a | Iustin Pop | </para> |
2125 | 0b0dea6a | Iustin Pop | |
2126 | a53a1b18 | Michael Hanselmann | <para> |
2127 | 7e9366f7 | Iustin Pop | The third form (when passing either the |
2128 | 7e9366f7 | Iustin Pop | <option>--iallocator</option> or the |
2129 | 7e9366f7 | Iustin Pop | <option>--new-secondary</option> option) is designed to |
2130 | 7e9366f7 | Iustin Pop | change secondary node of the instance. Specifying |
2131 | 7e9366f7 | Iustin Pop | <option>--iallocator</option> makes the new secondary be |
2132 | 7e9366f7 | Iustin Pop | selected automatically by the specified allocator plugin, |
2133 | 7e9366f7 | Iustin Pop | otherwise the new secondary node will be the one chosen |
2134 | 7e9366f7 | Iustin Pop | manually via the <option>--new-secondary</option> option. |
2135 | a53a1b18 | Michael Hanselmann | </para> |
2136 | d3b4cf9f | Iustin Pop | |
2137 | d3b4cf9f | Iustin Pop | <para> |
2138 | 05d47e33 | Michael Hanselmann | The fourth form (when using <option>--auto</option>) will |
2139 | 05d47e33 | Michael Hanselmann | automatically determine which disks of an instance are faulty and |
2140 | 05d47e33 | Michael Hanselmann | replace them within the same node. The <option>--auto</option> |
2141 | 05d47e33 | Michael Hanselmann | option works only when an instance has only faulty disks on |
2142 | 05d47e33 | Michael Hanselmann | either the primary or secondary node; it doesn't work when |
2143 | 05d47e33 | Michael Hanselmann | both sides have faulty disks. |
2144 | 05d47e33 | Michael Hanselmann | </para> |
2145 | 05d47e33 | Michael Hanselmann | |
2146 | 05d47e33 | Michael Hanselmann | <para> |
2147 | d3b4cf9f | Iustin Pop | The <option>--submit</option> option is used to send the job to |
2148 | d3b4cf9f | Iustin Pop | the master daemon but not wait for its completion. The job |
2149 | d3b4cf9f | Iustin Pop | ID will be shown so that it can be examined via |
2150 | d3b4cf9f | Iustin Pop | <command>gnt-job info</command>. |
2151 | d3b4cf9f | Iustin Pop | </para> |
2152 | d3b4cf9f | Iustin Pop | |
2153 | d3b4cf9f | Iustin Pop | <para> |
2154 | 7ea7bcf6 | Iustin Pop | The <option>--early-release</option> changes the code so |
2155 | 7ea7bcf6 | Iustin Pop | that the old storage on secondary node(s) is removed early |
2156 | 7ea7bcf6 | Iustin Pop | (before the resync is completed) and the internal Ganeti |
2157 | 7ea7bcf6 | Iustin Pop | locks for the current (and new, if any) secondary node are |
2158 | 7ea7bcf6 | Iustin Pop | also released, thus allowing more parallelism in the cluster |
2159 | 7ea7bcf6 | Iustin Pop | operation. This should be used only when recovering from a |
2160 | 7ea7bcf6 | Iustin Pop | disk failure on the current secondary (thus the old storage |
2161 | 7ea7bcf6 | Iustin Pop | is already broken) or when the storage on the primary node |
2162 | 7ea7bcf6 | Iustin Pop | is known to be fine (thus we won't need the old storage for |
2163 | 7ea7bcf6 | Iustin Pop | potential recovery). |
2164 | 7ea7bcf6 | Iustin Pop | </para> |
2165 | 7ea7bcf6 | Iustin Pop | |
2166 | 7ea7bcf6 | Iustin Pop | <para> |
2167 | d3b4cf9f | Iustin Pop | Note that it is not possible to select an offline or drained |
2168 | d3b4cf9f | Iustin Pop | node as a new secondary. |
2169 | d3b4cf9f | Iustin Pop | </para> |
2170 | d3b4cf9f | Iustin Pop | |
2171 | a8083063 | Iustin Pop | </refsect3> |
2172 | a8083063 | Iustin Pop | |
2173 | a8083063 | Iustin Pop | <refsect3> |
2174 | a8083063 | Iustin Pop | <title>ACTIVATE-DISKS</title> |
2175 | a8083063 | Iustin Pop | |
2176 | a8083063 | Iustin Pop | <cmdsynopsis> |
2177 | a8083063 | Iustin Pop | <command>activate-disks</command> |
2178 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
2179 | b4ec07f8 | Iustin Pop | <arg>--ignore-size</arg> |
2180 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
2181 | a8083063 | Iustin Pop | </cmdsynopsis> |
2182 | a8083063 | Iustin Pop | <para> |
2183 | a8083063 | Iustin Pop | Activates the block devices of the given instance. If |
2184 | a8083063 | Iustin Pop | successful, the command will show the location and name of |
2185 | a8083063 | Iustin Pop | the block devices: |
2186 | a8083063 | Iustin Pop | <screen> |
2187 | d3b4cf9f | Iustin Pop | node1.example.com:disk/0:/dev/drbd0 |
2188 | d3b4cf9f | Iustin Pop | node1.example.com:disk/1:/dev/drbd1 |
2189 | a8083063 | Iustin Pop | </screen> |
2190 | a8083063 | Iustin Pop | |
2191 | a8083063 | Iustin Pop | In this example, <emphasis>node1.example.com</emphasis> is |
2192 | a8083063 | Iustin Pop | the name of the node on which the devices have been |
2193 | d3b4cf9f | Iustin Pop | activated. The <emphasis>disk/0</emphasis> and |
2194 | d3b4cf9f | Iustin Pop | <emphasis>disk/1</emphasis> are the Ganeti-names of the |
2195 | d3b4cf9f | Iustin Pop | instance disks; how they are visible inside the instance is |
2196 | d3b4cf9f | Iustin Pop | hypervisor-specific. <emphasis>/dev/drbd0</emphasis> and |
2197 | d3b4cf9f | Iustin Pop | <emphasis>/dev/drbd1</emphasis> are the actual block devices |
2198 | d3b4cf9f | Iustin Pop | as visible on the node. |
2199 | d3b4cf9f | Iustin Pop | </para> |
2200 | d3b4cf9f | Iustin Pop | |
2201 | d3b4cf9f | Iustin Pop | <para> |
2202 | d3b4cf9f | Iustin Pop | The <option>--submit</option> option is used to send the job to |
2203 | d3b4cf9f | Iustin Pop | the master daemon but not wait for its completion. The job |
2204 | d3b4cf9f | Iustin Pop | ID will be shown so that it can be examined via |
2205 | d3b4cf9f | Iustin Pop | <command>gnt-job info</command>. |
2206 | a8083063 | Iustin Pop | </para> |
2207 | a8083063 | Iustin Pop | |
2208 | a8083063 | Iustin Pop | <para> |
2209 | b4ec07f8 | Iustin Pop | The <option>--ignore-size</option> option can be used to |
2210 | b4ec07f8 | Iustin Pop | activate disks ignoring the currently configured size in |
2211 | b4ec07f8 | Iustin Pop | Ganeti. This can be used in cases where the configuration |
2212 | b4ec07f8 | Iustin Pop | has gotten out of sync with the real-world (e.g. after a |
2213 | b4ec07f8 | Iustin Pop | partially-failed grow-disk operation or due to rounding in |
2214 | b4ec07f8 | Iustin Pop | LVM devices). This should not be used in normal cases, but |
2215 | b4ec07f8 | Iustin Pop | only when activate-disks fails without it. |
2216 | b4ec07f8 | Iustin Pop | </para> |
2217 | b4ec07f8 | Iustin Pop | |
2218 | b4ec07f8 | Iustin Pop | <para> |
2219 | a8083063 | Iustin Pop | Note that it is safe to run this command while the instance |
2220 | a8083063 | Iustin Pop | is already running. |
2221 | a8083063 | Iustin Pop | </para> |
2222 | a8083063 | Iustin Pop | </refsect3> |
2223 | a8083063 | Iustin Pop | |
2224 | a8083063 | Iustin Pop | <refsect3> |
2225 | a8083063 | Iustin Pop | <title>DEACTIVATE-DISKS</title> |
2226 | a8083063 | Iustin Pop | |
2227 | a8083063 | Iustin Pop | <cmdsynopsis> |
2228 | a8083063 | Iustin Pop | <command>deactivate-disks</command> |
2229 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
2230 | a8083063 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
2231 | a8083063 | Iustin Pop | </cmdsynopsis> |
2232 | a8083063 | Iustin Pop | <para> |
2233 | a8083063 | Iustin Pop | De-activates the block devices of the given instance. Note |
2234 | bd028152 | Iustin Pop | that if you run this command for an instance with a drbd |
2235 | bd028152 | Iustin Pop | disk template, while it is running, it will not be able to |
2236 | bd028152 | Iustin Pop | shutdown the block devices on the primary node, but it will |
2237 | bd028152 | Iustin Pop | shutdown the block devices on the secondary nodes, thus |
2238 | bd028152 | Iustin Pop | breaking the replication. |
2239 | a8083063 | Iustin Pop | </para> |
2240 | a8083063 | Iustin Pop | |
2241 | d3b4cf9f | Iustin Pop | <para> |
2242 | d3b4cf9f | Iustin Pop | The <option>--submit</option> option is used to send the job to |
2243 | d3b4cf9f | Iustin Pop | the master daemon but not wait for its completion. The job |
2244 | d3b4cf9f | Iustin Pop | ID will be shown so that it can be examined via |
2245 | d3b4cf9f | Iustin Pop | <command>gnt-job info</command>. |
2246 | d3b4cf9f | Iustin Pop | </para> |
2247 | d3b4cf9f | Iustin Pop | |
2248 | a8083063 | Iustin Pop | </refsect3> |
2249 | a8083063 | Iustin Pop | |
2250 | eb65d354 | Iustin Pop | <refsect3> |
2251 | eb65d354 | Iustin Pop | <title>GROW-DISK</title> |
2252 | eb65d354 | Iustin Pop | <cmdsynopsis> |
2253 | eb65d354 | Iustin Pop | <command>grow-disk</command> |
2254 | 6605411d | Iustin Pop | <arg>--no-wait-for-sync</arg> |
2255 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
2256 | eb65d354 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
2257 | eb65d354 | Iustin Pop | <arg choice="req"><replaceable>disk</replaceable></arg> |
2258 | eb65d354 | Iustin Pop | <arg choice="req"><replaceable>amount</replaceable></arg> |
2259 | eb65d354 | Iustin Pop | </cmdsynopsis> |
2260 | eb65d354 | Iustin Pop | |
2261 | eb65d354 | Iustin Pop | <para> |
2262 | eb65d354 | Iustin Pop | Grows an instance's disk. This is only possible for |
2263 | eb65d354 | Iustin Pop | instances having a <literal>plain</literal> or |
2264 | eb65d354 | Iustin Pop | <literal>drbd</literal> disk template. |
2265 | eb65d354 | Iustin Pop | </para> |
2266 | eb65d354 | Iustin Pop | |
2267 | eb65d354 | Iustin Pop | <para> |
2268 | eb65d354 | Iustin Pop | Note that this command only change the block device size; it |
2269 | eb65d354 | Iustin Pop | will not grow the actual filesystems, partitions, etc. that |
2270 | eb65d354 | Iustin Pop | live on that disk. Usually, you will need to: |
2271 | eb65d354 | Iustin Pop | <orderedlist> |
2272 | eb65d354 | Iustin Pop | <listitem> |
2273 | eb65d354 | Iustin Pop | <simpara>use <command>gnt-instance grow-disk</command></simpara> |
2274 | eb65d354 | Iustin Pop | </listitem> |
2275 | eb65d354 | Iustin Pop | <listitem> |
2276 | eb65d354 | Iustin Pop | <simpara>reboot the instance (later, at a convenient |
2277 | eb65d354 | Iustin Pop | time)</simpara> |
2278 | eb65d354 | Iustin Pop | </listitem> |
2279 | eb65d354 | Iustin Pop | <listitem> |
2280 | eb65d354 | Iustin Pop | <simpara>use a filesystem resizer, such as |
2281 | eb65d354 | Iustin Pop | <citerefentry> <refentrytitle>ext2online</refentrytitle> |
2282 | eb65d354 | Iustin Pop | <manvolnum>8</manvolnum> </citerefentry> or |
2283 | eb65d354 | Iustin Pop | <citerefentry> <refentrytitle>xfs_growfs</refentrytitle> |
2284 | eb65d354 | Iustin Pop | <manvolnum>8</manvolnum> </citerefentry> to resize the |
2285 | eb65d354 | Iustin Pop | filesystem, or use <citerefentry> |
2286 | eb65d354 | Iustin Pop | <refentrytitle>fdisk</refentrytitle> |
2287 | eb65d354 | Iustin Pop | <manvolnum>8</manvolnum> </citerefentry> to change the |
2288 | eb65d354 | Iustin Pop | partition table on the disk |
2289 | eb65d354 | Iustin Pop | </simpara> |
2290 | eb65d354 | Iustin Pop | </listitem> |
2291 | eb65d354 | Iustin Pop | </orderedlist> |
2292 | eb65d354 | Iustin Pop | </para> |
2293 | eb65d354 | Iustin Pop | |
2294 | eb65d354 | Iustin Pop | |
2295 | eb65d354 | Iustin Pop | <para> |
2296 | d3b4cf9f | Iustin Pop | The <replaceable>disk</replaceable> argument is the index of |
2297 | d3b4cf9f | Iustin Pop | the instance disk to grow. The |
2298 | eb65d354 | Iustin Pop | <replaceable>amount</replaceable> argument is given either |
2299 | eb65d354 | Iustin Pop | as a number (and it represents the amount to increase the |
2300 | eb65d354 | Iustin Pop | disk with in mebibytes) or can be given similar to the |
2301 | eb65d354 | Iustin Pop | arguments in the create instance operation, with a suffix |
2302 | eb65d354 | Iustin Pop | denoting the unit. |
2303 | eb65d354 | Iustin Pop | </para> |
2304 | eb65d354 | Iustin Pop | |
2305 | eb65d354 | Iustin Pop | <para> |
2306 | eb65d354 | Iustin Pop | Note that the disk grow operation might complete on one node |
2307 | eb65d354 | Iustin Pop | but fail on the other; this will leave the instance with |
2308 | eb65d354 | Iustin Pop | different-sized LVs on the two nodes, but this will not |
2309 | eb65d354 | Iustin Pop | create problems (except for unused space). |
2310 | eb65d354 | Iustin Pop | </para> |
2311 | eb65d354 | Iustin Pop | |
2312 | 6605411d | Iustin Pop | <para> |
2313 | 6605411d | Iustin Pop | If you do not want gnt-instance to wait for the new disk |
2314 | 6605411d | Iustin Pop | region to be synced, use the |
2315 | 6605411d | Iustin Pop | <option>--no-wait-for-sync</option> option. |
2316 | 6605411d | Iustin Pop | </para> |
2317 | 6605411d | Iustin Pop | |
2318 | d3b4cf9f | Iustin Pop | <para> |
2319 | d3b4cf9f | Iustin Pop | The <option>--submit</option> option is used to send the job to |
2320 | d3b4cf9f | Iustin Pop | the master daemon but not wait for its completion. The job |
2321 | d3b4cf9f | Iustin Pop | ID will be shown so that it can be examined via |
2322 | d3b4cf9f | Iustin Pop | <command>gnt-job info</command>. |
2323 | d3b4cf9f | Iustin Pop | </para> |
2324 | d3b4cf9f | Iustin Pop | |
2325 | 6605411d | Iustin Pop | |
2326 | d3b4cf9f | Iustin Pop | <para>Example (increase the first disk for instance1 by 16GiB): |
2327 | eb65d354 | Iustin Pop | <screen> |
2328 | d3b4cf9f | Iustin Pop | # gnt-instance grow-disk instance1.example.com 0 16g |
2329 | eb65d354 | Iustin Pop | </screen> |
2330 | eb65d354 | Iustin Pop | </para> |
2331 | eb65d354 | Iustin Pop | |
2332 | eb65d354 | Iustin Pop | <para> |
2333 | d3b4cf9f | Iustin Pop | Also note that disk shrinking is not supported; use |
2334 | eb65d354 | Iustin Pop | <command>gnt-backup export</command> and then |
2335 | eb65d354 | Iustin Pop | <command>gnt-backup import</command> to reduce the disk size |
2336 | eb65d354 | Iustin Pop | of an instance. |
2337 | eb65d354 | Iustin Pop | </para> |
2338 | eb65d354 | Iustin Pop | </refsect3> |
2339 | eb65d354 | Iustin Pop | |
2340 | bd315bfa | Iustin Pop | <refsect3> |
2341 | bd315bfa | Iustin Pop | <title>RECREATE-DISKS</title> |
2342 | bd315bfa | Iustin Pop | |
2343 | bd315bfa | Iustin Pop | <cmdsynopsis> |
2344 | bd315bfa | Iustin Pop | <command>recreate-disks</command> |
2345 | bd315bfa | Iustin Pop | <arg>--submit</arg> |
2346 | bd315bfa | Iustin Pop | <arg>--disks=<option>indices</option></arg> |
2347 | bd315bfa | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
2348 | bd315bfa | Iustin Pop | </cmdsynopsis> |
2349 | bd315bfa | Iustin Pop | <para> |
2350 | bd315bfa | Iustin Pop | Recreates the disks of the given instance, or only a subset |
2351 | bd315bfa | Iustin Pop | of the disks (if the option <option>disks</option> is |
2352 | bd315bfa | Iustin Pop | passed, which must be a comma-separated list of disk |
2353 | bd315bfa | Iustin Pop | indices, starting from zero). |
2354 | bd315bfa | Iustin Pop | </para> |
2355 | bd315bfa | Iustin Pop | |
2356 | bd315bfa | Iustin Pop | <para> |
2357 | cc291012 | Iustin Pop | Note that this functionality should only be used for missing |
2358 | cc291012 | Iustin Pop | disks; if any of the given disks already exists, the |
2359 | cc291012 | Iustin Pop | operation will fail. While this is suboptimal, |
2360 | cc291012 | Iustin Pop | recreate-disks should hopefully not be needed in normal |
2361 | cc291012 | Iustin Pop | operation and as such the impact of this is low. |
2362 | cc291012 | Iustin Pop | </para> |
2363 | cc291012 | Iustin Pop | |
2364 | cc291012 | Iustin Pop | <para> |
2365 | bd315bfa | Iustin Pop | The <option>--submit</option> option is used to send the job to |
2366 | bd315bfa | Iustin Pop | the master daemon but not wait for its completion. The job |
2367 | bd315bfa | Iustin Pop | ID will be shown so that it can be examined via |
2368 | bd315bfa | Iustin Pop | <command>gnt-job info</command>. |
2369 | bd315bfa | Iustin Pop | </para> |
2370 | bd315bfa | Iustin Pop | |
2371 | bd315bfa | Iustin Pop | </refsect3> |
2372 | bd315bfa | Iustin Pop | |
2373 | a8083063 | Iustin Pop | </refsect2> |
2374 | a8083063 | Iustin Pop | |
2375 | a8083063 | Iustin Pop | <refsect2> |
2376 | a8083063 | Iustin Pop | <title>Recovery</title> |
2377 | a8083063 | Iustin Pop | |
2378 | a8083063 | Iustin Pop | <refsect3> |
2379 | a8083063 | Iustin Pop | <title>FAILOVER</title> |
2380 | a8083063 | Iustin Pop | |
2381 | a8083063 | Iustin Pop | <cmdsynopsis> |
2382 | a8083063 | Iustin Pop | <command>failover</command> |
2383 | a8083063 | Iustin Pop | <arg>-f</arg> |
2384 | a8083063 | Iustin Pop | <arg>--ignore-consistency</arg> |
2385 | 1e2c9fd3 | Guido Trotter | <arg>--shutdown-timeout=<replaceable>N</replaceable></arg> |
2386 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
2387 | 80de0e3f | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
2388 | a8083063 | Iustin Pop | </cmdsynopsis> |
2389 | a8083063 | Iustin Pop | |
2390 | a8083063 | Iustin Pop | <para> |
2391 | 80de0e3f | Iustin Pop | Failover will fail the instance over its secondary |
2392 | bd028152 | Iustin Pop | node. This works only for instances having a drbd disk |
2393 | bd028152 | Iustin Pop | template. |
2394 | a8083063 | Iustin Pop | </para> |
2395 | a8083063 | Iustin Pop | |
2396 | a8083063 | Iustin Pop | <para> |
2397 | a8083063 | Iustin Pop | Normally the failover will check the consistency of the |
2398 | 80de0e3f | Iustin Pop | disks before failing over the instance. If you are trying to |
2399 | a8083063 | Iustin Pop | migrate instances off a dead node, this will fail. Use the |
2400 | a8083063 | Iustin Pop | <option>--ignore-consistency</option> option for this |
2401 | 24a40d57 | Iustin Pop | purpose. Note that this option can be dangerous as errors in |
2402 | 24a40d57 | Iustin Pop | shutting down the instance will be ignored, resulting in |
2403 | 24a40d57 | Iustin Pop | possibly having the instance running on two machines in |
2404 | 24a40d57 | Iustin Pop | parallel (on disconnected DRBD drives). |
2405 | a8083063 | Iustin Pop | </para> |
2406 | a8083063 | Iustin Pop | |
2407 | a8083063 | Iustin Pop | <para> |
2408 | 1e2c9fd3 | Guido Trotter | The <option>--shutdown-timeout</option> is used to specify how |
2409 | 1e2c9fd3 | Guido Trotter | much time to wait before forcing the shutdown (xm destroy in xen, |
2410 | 1e2c9fd3 | Guido Trotter | killing the kvm process, for kvm). By default two minutes are |
2411 | 1e2c9fd3 | Guido Trotter | given to each instance to stop. |
2412 | 1e2c9fd3 | Guido Trotter | </para> |
2413 | 1e2c9fd3 | Guido Trotter | |
2414 | 1e2c9fd3 | Guido Trotter | <para> |
2415 | d3b4cf9f | Iustin Pop | The <option>--submit</option> option is used to send the job to |
2416 | d3b4cf9f | Iustin Pop | the master daemon but not wait for its completion. The job |
2417 | d3b4cf9f | Iustin Pop | ID will be shown so that it can be examined via |
2418 | d3b4cf9f | Iustin Pop | <command>gnt-job info</command>. |
2419 | d3b4cf9f | Iustin Pop | </para> |
2420 | d3b4cf9f | Iustin Pop | |
2421 | d3b4cf9f | Iustin Pop | <para> |
2422 | a8083063 | Iustin Pop | Example: |
2423 | a8083063 | Iustin Pop | <screen> |
2424 | a8083063 | Iustin Pop | # gnt-instance failover instance1.example.com |
2425 | a8083063 | Iustin Pop | </screen> |
2426 | a8083063 | Iustin Pop | </para> |
2427 | a8083063 | Iustin Pop | </refsect3> |
2428 | a8083063 | Iustin Pop | |
2429 | d3b4cf9f | Iustin Pop | <refsect3> |
2430 | d3b4cf9f | Iustin Pop | <title>MIGRATE</title> |
2431 | d3b4cf9f | Iustin Pop | |
2432 | d3b4cf9f | Iustin Pop | <cmdsynopsis> |
2433 | d3b4cf9f | Iustin Pop | <command>migrate</command> |
2434 | d3b4cf9f | Iustin Pop | <arg>-f</arg> |
2435 | d3b4cf9f | Iustin Pop | <arg choice="req">--cleanup</arg> |
2436 | d3b4cf9f | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
2437 | d3b4cf9f | Iustin Pop | </cmdsynopsis> |
2438 | d3b4cf9f | Iustin Pop | |
2439 | d3b4cf9f | Iustin Pop | <cmdsynopsis> |
2440 | d3b4cf9f | Iustin Pop | <command>migrate</command> |
2441 | d3b4cf9f | Iustin Pop | <arg>-f</arg> |
2442 | d3b4cf9f | Iustin Pop | <arg>--non-live</arg> |
2443 | 783a6c0b | Iustin Pop | <arg>--migration-mode=live|non-live</arg> |
2444 | d3b4cf9f | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
2445 | d3b4cf9f | Iustin Pop | </cmdsynopsis> |
2446 | d3b4cf9f | Iustin Pop | |
2447 | d3b4cf9f | Iustin Pop | <para> |
2448 | d3b4cf9f | Iustin Pop | Migrate will move the instance to its secondary node without |
2449 | d3b4cf9f | Iustin Pop | shutdown. It only works for instances having the drbd8 disk |
2450 | d3b4cf9f | Iustin Pop | template type. |
2451 | d3b4cf9f | Iustin Pop | </para> |
2452 | d3b4cf9f | Iustin Pop | |
2453 | d3b4cf9f | Iustin Pop | <para> |
2454 | d3b4cf9f | Iustin Pop | The migration command needs a perfectly healthy instance, as |
2455 | d3b4cf9f | Iustin Pop | we rely on the dual-master capability of drbd8 and the disks |
2456 | d3b4cf9f | Iustin Pop | of the instance are not allowed to be degraded. |
2457 | d3b4cf9f | Iustin Pop | </para> |
2458 | d3b4cf9f | Iustin Pop | |
2459 | d3b4cf9f | Iustin Pop | <para> |
2460 | e71b9ef4 | Iustin Pop | The <option>--non-live</option> |
2461 | 783a6c0b | Iustin Pop | and <option>--migration-mode=non-live</option> options will |
2462 | e71b9ef4 | Iustin Pop | switch (for the hypervisors that support it) between a |
2463 | e71b9ef4 | Iustin Pop | "fully live" (i.e. the interruption is as minimal as |
2464 | e71b9ef4 | Iustin Pop | possible) migration and one in which the instance is frozen, |
2465 | e71b9ef4 | Iustin Pop | its state saved and transported to the remote node, and then |
2466 | e71b9ef4 | Iustin Pop | resumed there. This all depends on the hypervisor support |
2467 | e71b9ef4 | Iustin Pop | for two different methods. In any case, it is not an error |
2468 | e71b9ef4 | Iustin Pop | to pass this parameter (it will just be ignored if the |
2469 | e71b9ef4 | Iustin Pop | hypervisor doesn't support it). The |
2470 | 783a6c0b | Iustin Pop | option <option>--migration-mode=live</option> option will |
2471 | e71b9ef4 | Iustin Pop | request a fully-live migration. The default, when neither |
2472 | e71b9ef4 | Iustin Pop | option is passed, depends on the hypervisor parameters (and |
2473 | e71b9ef4 | Iustin Pop | can be viewed with the <command>gnt-cluster info</command> |
2474 | e71b9ef4 | Iustin Pop | command). |
2475 | d3b4cf9f | Iustin Pop | </para> |
2476 | d3b4cf9f | Iustin Pop | |
2477 | d3b4cf9f | Iustin Pop | <para> |
2478 | d3b4cf9f | Iustin Pop | If the <option>--cleanup</option> option is passed, the |
2479 | d3b4cf9f | Iustin Pop | operation changes from migration to attempting recovery from |
2480 | e0897adf | Michael Hanselmann | a failed previous migration. In this mode, Ganeti checks if |
2481 | d3b4cf9f | Iustin Pop | the instance runs on the correct node (and updates its |
2482 | d3b4cf9f | Iustin Pop | configuration if not) and ensures the instances's disks are |
2483 | d3b4cf9f | Iustin Pop | configured correctly. In this mode, the |
2484 | d3b4cf9f | Iustin Pop | <option>--non-live</option> option is ignored. |
2485 | d3b4cf9f | Iustin Pop | </para> |
2486 | d3b4cf9f | Iustin Pop | |
2487 | d3b4cf9f | Iustin Pop | <para> |
2488 | d3b4cf9f | Iustin Pop | The option <option>-f</option> will skip the prompting for |
2489 | d3b4cf9f | Iustin Pop | confirmation. |
2490 | d3b4cf9f | Iustin Pop | </para> |
2491 | d3b4cf9f | Iustin Pop | <para> |
2492 | d3b4cf9f | Iustin Pop | Example (and expected output): |
2493 | d3b4cf9f | Iustin Pop | <screen> |
2494 | d3b4cf9f | Iustin Pop | # gnt-instance migrate instance1 |
2495 | d3b4cf9f | Iustin Pop | Migrate will happen to the instance instance1. Note that migration is |
2496 | d3b4cf9f | Iustin Pop | **experimental** in this version. This might impact the instance if |
2497 | d3b4cf9f | Iustin Pop | anything goes wrong. Continue? |
2498 | d3b4cf9f | Iustin Pop | y/[n]/?: y |
2499 | d3b4cf9f | Iustin Pop | * checking disk consistency between source and target |
2500 | d3b4cf9f | Iustin Pop | * ensuring the target is in secondary mode |
2501 | d3b4cf9f | Iustin Pop | * changing disks into dual-master mode |
2502 | d3b4cf9f | Iustin Pop | - INFO: Waiting for instance instance1 to sync disks. |
2503 | d3b4cf9f | Iustin Pop | - INFO: Instance instance1's disks are in sync. |
2504 | d3b4cf9f | Iustin Pop | * migrating instance to node2.example.com |
2505 | d3b4cf9f | Iustin Pop | * changing the instance's disks on source node to secondary |
2506 | d3b4cf9f | Iustin Pop | - INFO: Waiting for instance instance1 to sync disks. |
2507 | d3b4cf9f | Iustin Pop | - INFO: Instance instance1's disks are in sync. |
2508 | d3b4cf9f | Iustin Pop | * changing the instance's disks to single-master |
2509 | d3b4cf9f | Iustin Pop | # |
2510 | d3b4cf9f | Iustin Pop | </screen> |
2511 | d3b4cf9f | Iustin Pop | </para> |
2512 | d3b4cf9f | Iustin Pop | </refsect3> |
2513 | d3b4cf9f | Iustin Pop | |
2514 | fbf5a861 | Iustin Pop | <refsect3> |
2515 | fbf5a861 | Iustin Pop | <title>MOVE</title> |
2516 | fbf5a861 | Iustin Pop | |
2517 | fbf5a861 | Iustin Pop | <cmdsynopsis> |
2518 | fbf5a861 | Iustin Pop | <command>move</command> |
2519 | fbf5a861 | Iustin Pop | <arg>-f</arg> |
2520 | fbf5a861 | Iustin Pop | <arg>-n <replaceable>node</replaceable></arg> |
2521 | 1e2c9fd3 | Guido Trotter | <arg>--shutdown-timeout=<replaceable>N</replaceable></arg> |
2522 | fbf5a861 | Iustin Pop | <arg>--submit</arg> |
2523 | fbf5a861 | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
2524 | fbf5a861 | Iustin Pop | </cmdsynopsis> |
2525 | fbf5a861 | Iustin Pop | |
2526 | fbf5a861 | Iustin Pop | <para> |
2527 | fbf5a861 | Iustin Pop | Move will move the instance to an arbitrary node in the |
2528 | fbf5a861 | Iustin Pop | cluster. This works only for instances having a plain or |
2529 | fbf5a861 | Iustin Pop | file disk template. |
2530 | fbf5a861 | Iustin Pop | </para> |
2531 | fbf5a861 | Iustin Pop | |
2532 | fbf5a861 | Iustin Pop | <para> |
2533 | fbf5a861 | Iustin Pop | Note that since this operation is done via data copy, it |
2534 | fbf5a861 | Iustin Pop | will take a long time for big disks (similar to |
2535 | fbf5a861 | Iustin Pop | replace-disks for a drbd instance). |
2536 | fbf5a861 | Iustin Pop | </para> |
2537 | fbf5a861 | Iustin Pop | |
2538 | fbf5a861 | Iustin Pop | <para> |
2539 | 1e2c9fd3 | Guido Trotter | The <option>--shutdown-timeout</option> is used to specify how |
2540 | 1e2c9fd3 | Guido Trotter | much time to wait before forcing the shutdown (xm destroy in xen, |
2541 | 1e2c9fd3 | Guido Trotter | killing the kvm process, for kvm). By default two minutes are |
2542 | 1e2c9fd3 | Guido Trotter | given to each instance to stop. |
2543 | 1e2c9fd3 | Guido Trotter | </para> |
2544 | 1e2c9fd3 | Guido Trotter | |
2545 | 1e2c9fd3 | Guido Trotter | <para> |
2546 | fbf5a861 | Iustin Pop | The <option>--submit</option> option is used to send the job to |
2547 | fbf5a861 | Iustin Pop | the master daemon but not wait for its completion. The job |
2548 | fbf5a861 | Iustin Pop | ID will be shown so that it can be examined via |
2549 | fbf5a861 | Iustin Pop | <command>gnt-job info</command>. |
2550 | fbf5a861 | Iustin Pop | </para> |
2551 | fbf5a861 | Iustin Pop | |
2552 | fbf5a861 | Iustin Pop | <para> |
2553 | fbf5a861 | Iustin Pop | Example: |
2554 | fbf5a861 | Iustin Pop | <screen> |
2555 | fbf5a861 | Iustin Pop | # gnt-instance move -n node3.example.com instance1.example.com |
2556 | fbf5a861 | Iustin Pop | </screen> |
2557 | fbf5a861 | Iustin Pop | </para> |
2558 | fbf5a861 | Iustin Pop | </refsect3> |
2559 | fbf5a861 | Iustin Pop | |
2560 | a8083063 | Iustin Pop | </refsect2> |
2561 | a8083063 | Iustin Pop | |
2562 | cc425644 | Iustin Pop | <refsect2> |
2563 | cc425644 | Iustin Pop | <title>TAGS</title> |
2564 | cc425644 | Iustin Pop | |
2565 | cc425644 | Iustin Pop | <refsect3> |
2566 | cc425644 | Iustin Pop | <title>ADD-TAGS</title> |
2567 | cc425644 | Iustin Pop | |
2568 | cc425644 | Iustin Pop | <cmdsynopsis> |
2569 | cc425644 | Iustin Pop | <command>add-tags</command> |
2570 | 810c50b7 | Iustin Pop | <arg choice="opt">--from <replaceable>file</replaceable></arg> |
2571 | cc425644 | Iustin Pop | <arg choice="req"><replaceable>instancename</replaceable></arg> |
2572 | cc425644 | Iustin Pop | <arg choice="req" |
2573 | cc425644 | Iustin Pop | rep="repeat"><replaceable>tag</replaceable></arg> |
2574 | cc425644 | Iustin Pop | </cmdsynopsis> |
2575 | cc425644 | Iustin Pop | |
2576 | cc425644 | Iustin Pop | <para> |
2577 | cc425644 | Iustin Pop | Add tags to the given instance. If any of the tags contains |
2578 | cc425644 | Iustin Pop | invalid characters, the entire operation will abort. |
2579 | cc425644 | Iustin Pop | </para> |
2580 | 810c50b7 | Iustin Pop | <para> |
2581 | 810c50b7 | Iustin Pop | If the <option>--from</option> option is given, the list of |
2582 | 810c50b7 | Iustin Pop | tags will be extended with the contents of that file (each |
2583 | 810c50b7 | Iustin Pop | line becomes a tag). In this case, there is not need to pass |
2584 | 810c50b7 | Iustin Pop | tags on the command line (if you do, both sources will be |
2585 | 810c50b7 | Iustin Pop | used). A file name of - will be interpreted as stdin. |
2586 | 810c50b7 | Iustin Pop | </para> |
2587 | cc425644 | Iustin Pop | </refsect3> |
2588 | cc425644 | Iustin Pop | |
2589 | cc425644 | Iustin Pop | <refsect3> |
2590 | cc425644 | Iustin Pop | <title>LIST-TAGS</title> |
2591 | cc425644 | Iustin Pop | |
2592 | cc425644 | Iustin Pop | <cmdsynopsis> |
2593 | cc425644 | Iustin Pop | <command>list-tags</command> |
2594 | cc425644 | Iustin Pop | <arg choice="req"><replaceable>instancename</replaceable></arg> |
2595 | cc425644 | Iustin Pop | </cmdsynopsis> |
2596 | cc425644 | Iustin Pop | |
2597 | cc425644 | Iustin Pop | <para>List the tags of the given instance.</para> |
2598 | cc425644 | Iustin Pop | </refsect3> |
2599 | cc425644 | Iustin Pop | |
2600 | cc425644 | Iustin Pop | <refsect3> |
2601 | cc425644 | Iustin Pop | <title>REMOVE-TAGS</title> |
2602 | cc425644 | Iustin Pop | <cmdsynopsis> |
2603 | cc425644 | Iustin Pop | <command>remove-tags</command> |
2604 | 810c50b7 | Iustin Pop | <arg choice="opt">--from <replaceable>file</replaceable></arg> |
2605 | cc425644 | Iustin Pop | <arg choice="req"><replaceable>instancename</replaceable></arg> |
2606 | cc425644 | Iustin Pop | <arg choice="req" |
2607 | cc425644 | Iustin Pop | rep="repeat"><replaceable>tag</replaceable></arg> |
2608 | cc425644 | Iustin Pop | </cmdsynopsis> |
2609 | cc425644 | Iustin Pop | |
2610 | cc425644 | Iustin Pop | <para> |
2611 | cc425644 | Iustin Pop | Remove tags from the given instance. If any of the tags are |
2612 | cc425644 | Iustin Pop | not existing on the node, the entire operation will abort. |
2613 | cc425644 | Iustin Pop | </para> |
2614 | 810c50b7 | Iustin Pop | |
2615 | 810c50b7 | Iustin Pop | <para> |
2616 | 810c50b7 | Iustin Pop | If the <option>--from</option> option is given, the list of |
2617 | 810c50b7 | Iustin Pop | tags will be extended with the contents of that file (each |
2618 | 810c50b7 | Iustin Pop | line becomes a tag). In this case, there is not need to pass |
2619 | 810c50b7 | Iustin Pop | tags on the command line (if you do, both sources will be |
2620 | 810c50b7 | Iustin Pop | used). A file name of - will be interpreted as stdin. |
2621 | 810c50b7 | Iustin Pop | </para> |
2622 | cc425644 | Iustin Pop | </refsect3> |
2623 | cc425644 | Iustin Pop | |
2624 | cc425644 | Iustin Pop | </refsect2> |
2625 | cc425644 | Iustin Pop | |
2626 | a8083063 | Iustin Pop | </refsect1> |
2627 | a8083063 | Iustin Pop | |
2628 | a8083063 | Iustin Pop | &footer; |
2629 | a8083063 | Iustin Pop | |
2630 | a8083063 | Iustin Pop | </refentry> |
2631 | a8083063 | Iustin Pop | |
2632 | a8083063 | Iustin Pop | <!-- Keep this comment at the end of the file |
2633 | a8083063 | Iustin Pop | Local variables: |
2634 | a8083063 | Iustin Pop | mode: sgml |
2635 | a8083063 | Iustin Pop | sgml-omittag:t |
2636 | a8083063 | Iustin Pop | sgml-shorttag:t |
2637 | a8083063 | Iustin Pop | sgml-minimize-attributes:nil |
2638 | a8083063 | Iustin Pop | sgml-always-quote-attributes:t |
2639 | a8083063 | Iustin Pop | sgml-indent-step:2 |
2640 | a8083063 | Iustin Pop | sgml-indent-data:t |
2641 | a8083063 | Iustin Pop | sgml-parent-document:nil |
2642 | a8083063 | Iustin Pop | sgml-default-dtd-file:nil |
2643 | a8083063 | Iustin Pop | sgml-exposed-tags:nil |
2644 | a8083063 | Iustin Pop | sgml-local-catalogs:nil |
2645 | a8083063 | Iustin Pop | sgml-local-ecat-files:nil |
2646 | a8083063 | Iustin Pop | End: |
2647 | a8083063 | Iustin Pop | --> |