root / man / gnt-cluster.sgml @ d729e03a
History | View | Annotate | Download (31.9 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 | d3b4cf9f | Iustin Pop | <!ENTITY dhdate "<date>February 12, 2009</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-cluster</refentrytitle>"> |
10 | a8083063 | Iustin Pop | <!ENTITY dhpackage "gnt-cluster"> |
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 | d3b4cf9f | Iustin Pop | <year>2008</year> |
24 | d3b4cf9f | Iustin Pop | <year>2009</year> |
25 | a8083063 | Iustin Pop | <holder>Google Inc.</holder> |
26 | a8083063 | Iustin Pop | </copyright> |
27 | a8083063 | Iustin Pop | &dhdate; |
28 | a8083063 | Iustin Pop | </refentryinfo> |
29 | a8083063 | Iustin Pop | <refmeta> |
30 | a8083063 | Iustin Pop | &dhucpackage; |
31 | a8083063 | Iustin Pop | |
32 | a8083063 | Iustin Pop | &dhsection; |
33 | d3b4cf9f | Iustin Pop | <refmiscinfo>ganeti 2.0</refmiscinfo> |
34 | a8083063 | Iustin Pop | </refmeta> |
35 | a8083063 | Iustin Pop | <refnamediv> |
36 | a8083063 | Iustin Pop | <refname>&dhpackage;</refname> |
37 | a8083063 | Iustin Pop | |
38 | a8083063 | Iustin Pop | <refpurpose>ganeti administration, cluster-wide</refpurpose> |
39 | a8083063 | Iustin Pop | </refnamediv> |
40 | a8083063 | Iustin Pop | <refsynopsisdiv> |
41 | a8083063 | Iustin Pop | <cmdsynopsis> |
42 | a8083063 | Iustin Pop | <command>&dhpackage; </command> |
43 | a8083063 | Iustin Pop | |
44 | a8083063 | Iustin Pop | <arg choice="req">command</arg> |
45 | a8083063 | Iustin Pop | <arg>arguments...</arg> |
46 | a8083063 | Iustin Pop | </cmdsynopsis> |
47 | a8083063 | Iustin Pop | </refsynopsisdiv> |
48 | a8083063 | Iustin Pop | <refsect1> |
49 | a8083063 | Iustin Pop | <title>DESCRIPTION</title> |
50 | a8083063 | Iustin Pop | |
51 | a8083063 | Iustin Pop | <para> |
52 | a8083063 | Iustin Pop | The <command>&dhpackage;</command> is used for cluster-wide |
53 | a8083063 | Iustin Pop | administration in the ganeti system. |
54 | a8083063 | Iustin Pop | </para> |
55 | a8083063 | Iustin Pop | |
56 | a8083063 | Iustin Pop | </refsect1> |
57 | a8083063 | Iustin Pop | <refsect1> |
58 | a8083063 | Iustin Pop | <title>COMMANDS</title> |
59 | a8083063 | Iustin Pop | |
60 | 75f49d9b | Iustin Pop | <refsect2> |
61 | cc425644 | Iustin Pop | <title>ADD-TAGS</title> |
62 | cc425644 | Iustin Pop | |
63 | cc425644 | Iustin Pop | <cmdsynopsis> |
64 | cc425644 | Iustin Pop | <command>add-tags</command> |
65 | 810c50b7 | Iustin Pop | <arg choice="opt">--from <replaceable>file</replaceable></arg> |
66 | cc425644 | Iustin Pop | <arg choice="req" |
67 | cc425644 | Iustin Pop | rep="repeat"><replaceable>tag</replaceable></arg> |
68 | cc425644 | Iustin Pop | </cmdsynopsis> |
69 | cc425644 | Iustin Pop | |
70 | cc425644 | Iustin Pop | <para> |
71 | cc425644 | Iustin Pop | Add tags to the cluster. If any of the tags contains invalid |
72 | cc425644 | Iustin Pop | characters, the entire operation will abort. |
73 | cc425644 | Iustin Pop | </para> |
74 | 810c50b7 | Iustin Pop | |
75 | 810c50b7 | Iustin Pop | <para> |
76 | 810c50b7 | Iustin Pop | If the <option>--from</option> option is given, the list of |
77 | 810c50b7 | Iustin Pop | tags will be extended with the contents of that file (each |
78 | 810c50b7 | Iustin Pop | line becomes a tag). In this case, there is not need to pass |
79 | 810c50b7 | Iustin Pop | tags on the command line (if you do, both sources will be |
80 | 810c50b7 | Iustin Pop | used). A file name of - will be interpreted as stdin. |
81 | 810c50b7 | Iustin Pop | </para> |
82 | cc425644 | Iustin Pop | </refsect2> |
83 | cc425644 | Iustin Pop | |
84 | cc425644 | Iustin Pop | <refsect2> |
85 | 75f49d9b | Iustin Pop | <title>COMMAND</title> |
86 | 75f49d9b | Iustin Pop | |
87 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
88 | 75f49d9b | Iustin Pop | <command>command</command> |
89 | 75f49d9b | Iustin Pop | <arg>-n <replaceable>node</replaceable></arg> |
90 | 75f49d9b | Iustin Pop | <arg choice="req"><replaceable>command</replaceable></arg> |
91 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
92 | 75f49d9b | Iustin Pop | |
93 | 75f49d9b | Iustin Pop | <para> |
94 | 75f49d9b | Iustin Pop | Executes a command on all nodes. If the option |
95 | 75f49d9b | Iustin Pop | <option>-n</option> is not given, the command will be executed |
96 | 75f49d9b | Iustin Pop | on all nodes, otherwise it will be executed only on the |
97 | 75f49d9b | Iustin Pop | node(s) specified. Use the option multiple times for running |
98 | 75f49d9b | Iustin Pop | it on multiple nodes, like: |
99 | 75f49d9b | Iustin Pop | |
100 | 75f49d9b | Iustin Pop | <screen> |
101 | 75f49d9b | Iustin Pop | # gnt-cluster command -n node1.example.com -n node2.example.com date |
102 | 75f49d9b | Iustin Pop | </screen> |
103 | 75f49d9b | Iustin Pop | |
104 | 75f49d9b | Iustin Pop | </para> |
105 | 75f49d9b | Iustin Pop | |
106 | 75f49d9b | Iustin Pop | <para> |
107 | 5f83e263 | Iustin Pop | The command is executed serially on the selected nodes. If the |
108 | 5f83e263 | Iustin Pop | master node is present in the list, the command will be |
109 | 5f83e263 | Iustin Pop | executed last on the master. Regarding the other nodes, the |
110 | d3b4cf9f | Iustin Pop | execution order is somewhat alphabetic, so that |
111 | 5f83e263 | Iustin Pop | node2.example.com will be earlier than node10.example.com but |
112 | d3b4cf9f | Iustin Pop | after node1.example.com. |
113 | 5f83e263 | Iustin Pop | </para> |
114 | 5f83e263 | Iustin Pop | |
115 | 5f83e263 | Iustin Pop | <para> |
116 | 5f83e263 | Iustin Pop | So given the node names node1, node2, node3, node10, node11, |
117 | 5f83e263 | Iustin Pop | with node3 being the master, the order will be: node1, node2, |
118 | 5f83e263 | Iustin Pop | node10, node11, node3. |
119 | 5f83e263 | Iustin Pop | </para> |
120 | 5f83e263 | Iustin Pop | |
121 | 5f83e263 | Iustin Pop | <para> |
122 | 75f49d9b | Iustin Pop | The command is constructed by concatenating all other command |
123 | 75f49d9b | Iustin Pop | line arguments. For example, to list the contents of the |
124 | 75f49d9b | Iustin Pop | <filename class="directory">/etc</filename> directory on all |
125 | 75f49d9b | Iustin Pop | nodes, run: |
126 | 75f49d9b | Iustin Pop | |
127 | 75f49d9b | Iustin Pop | <screen> |
128 | 75f49d9b | Iustin Pop | # gnt-cluster command ls -l /etc |
129 | 75f49d9b | Iustin Pop | </screen> |
130 | 75f49d9b | Iustin Pop | |
131 | 75f49d9b | Iustin Pop | and the command which will be executed will be |
132 | 75f49d9b | Iustin Pop | <computeroutput>"ls -l /etc"</computeroutput> |
133 | 75f49d9b | Iustin Pop | </para> |
134 | 75f49d9b | Iustin Pop | </refsect2> |
135 | 75f49d9b | Iustin Pop | |
136 | 75f49d9b | Iustin Pop | <refsect2> |
137 | 75f49d9b | Iustin Pop | <title>COPYFILE</title> |
138 | 75f49d9b | Iustin Pop | |
139 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
140 | 75f49d9b | Iustin Pop | <command>copyfile</command> |
141 | 74adc100 | Iustin Pop | <arg>--use-replication-network</arg> |
142 | 75f49d9b | Iustin Pop | <arg>-n <replaceable>node</replaceable></arg> |
143 | 75f49d9b | Iustin Pop | <arg choice="req"><replaceable>file</replaceable></arg> |
144 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
145 | 75f49d9b | Iustin Pop | |
146 | 75f49d9b | Iustin Pop | <para> |
147 | 75f49d9b | Iustin Pop | Copies a file to all or to some nodes. The argument specifies |
148 | 75f49d9b | Iustin Pop | the source file (on the current system), the |
149 | 75f49d9b | Iustin Pop | <option>-n</option> argument specifies the target node, or |
150 | 75f49d9b | Iustin Pop | nodes if the option is given multiple times. If |
151 | 75f49d9b | Iustin Pop | <option>-n</option> is not given at all, the file will be |
152 | 75f49d9b | Iustin Pop | copied to all nodes. |
153 | 75f49d9b | Iustin Pop | |
154 | 74adc100 | Iustin Pop | Passing the <option>--use-replication-network</option> option |
155 | 74adc100 | Iustin Pop | will cause the copy to be done over the replication network |
156 | 74adc100 | Iustin Pop | (only matters if the primary/secondary IPs are different). |
157 | 74adc100 | Iustin Pop | |
158 | 75f49d9b | Iustin Pop | Example: |
159 | 75f49d9b | Iustin Pop | <screen> |
160 | 75f49d9b | Iustin Pop | # gnt-cluster -n node1.example.com -n node2.example.com copyfile /tmp/test |
161 | 75f49d9b | Iustin Pop | </screen> |
162 | 75f49d9b | Iustin Pop | |
163 | 75f49d9b | Iustin Pop | This will copy the file <filename>/tmp/test</filename> from |
164 | 75f49d9b | Iustin Pop | the current node to the two named nodes. |
165 | 75f49d9b | Iustin Pop | </para> |
166 | 75f49d9b | Iustin Pop | </refsect2> |
167 | 75f49d9b | Iustin Pop | |
168 | 75f49d9b | Iustin Pop | <refsect2> |
169 | 75f49d9b | Iustin Pop | <title>DESTROY</title> |
170 | 75f49d9b | Iustin Pop | |
171 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
172 | 75f49d9b | Iustin Pop | <command>destroy</command> |
173 | f69dab6d | Iustin Pop | <arg choice="req">--yes-do-it</arg> |
174 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
175 | 75f49d9b | Iustin Pop | |
176 | 75f49d9b | Iustin Pop | <para> |
177 | 75f49d9b | Iustin Pop | Remove all configuration files related to the cluster, so that |
178 | 75f49d9b | Iustin Pop | a <command>gnt-cluster init</command> can be done again |
179 | 75f49d9b | Iustin Pop | afterwards. |
180 | 75f49d9b | Iustin Pop | </para> |
181 | f69dab6d | Iustin Pop | |
182 | f69dab6d | Iustin Pop | <para> |
183 | f69dab6d | Iustin Pop | Since this is a dangerous command, you are required to pass |
184 | f69dab6d | Iustin Pop | the argument <replaceable>--yes-do-it.</replaceable> |
185 | f69dab6d | Iustin Pop | </para> |
186 | 75f49d9b | Iustin Pop | </refsect2> |
187 | 75f49d9b | Iustin Pop | |
188 | 75f49d9b | Iustin Pop | <refsect2> |
189 | 75f49d9b | Iustin Pop | <title>GETMASTER</title> |
190 | 75f49d9b | Iustin Pop | |
191 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
192 | 75f49d9b | Iustin Pop | <command>getmaster</command> |
193 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
194 | 75f49d9b | Iustin Pop | |
195 | 75f49d9b | Iustin Pop | <para> |
196 | 75f49d9b | Iustin Pop | Displays the current master node. |
197 | 75f49d9b | Iustin Pop | </para> |
198 | 75f49d9b | Iustin Pop | </refsect2> |
199 | 75f49d9b | Iustin Pop | |
200 | 75f49d9b | Iustin Pop | <refsect2> |
201 | 75f49d9b | Iustin Pop | <title>INFO</title> |
202 | 75f49d9b | Iustin Pop | |
203 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
204 | 75f49d9b | Iustin Pop | <command>info</command> |
205 | d729e03a | Guido Trotter | <arg>--roman</arg> |
206 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
207 | 75f49d9b | Iustin Pop | |
208 | 75f49d9b | Iustin Pop | <para> |
209 | 75f49d9b | Iustin Pop | Shows runtime cluster information: cluster name, architecture |
210 | 75f49d9b | Iustin Pop | (32 or 64 bit), master node, node list and instance list. |
211 | 75f49d9b | Iustin Pop | </para> |
212 | d729e03a | Guido Trotter | |
213 | d729e03a | Guido Trotter | <para> |
214 | d729e03a | Guido Trotter | Passing the <option>--roman</option> option gnt-cluster info will try |
215 | d729e03a | Guido Trotter | to print its integer fields in a latin friendly way. This allows |
216 | d729e03a | Guido Trotter | further diffusion of Ganeti among ancient cultures. |
217 | d729e03a | Guido Trotter | </para> |
218 | d729e03a | Guido Trotter | |
219 | 75f49d9b | Iustin Pop | </refsect2> |
220 | 75f49d9b | Iustin Pop | |
221 | 75f49d9b | Iustin Pop | <refsect2> |
222 | 75f49d9b | Iustin Pop | <title>INIT</title> |
223 | 75f49d9b | Iustin Pop | |
224 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
225 | 75f49d9b | Iustin Pop | <command>init</command> |
226 | d3b4cf9f | Iustin Pop | <sbr> |
227 | 75f49d9b | Iustin Pop | <arg>-s <replaceable>secondary_ip</replaceable></arg> |
228 | d3b4cf9f | Iustin Pop | <sbr> |
229 | f3b100e1 | Guido Trotter | <arg>-g <replaceable>vg-name</replaceable></arg> |
230 | d3b4cf9f | Iustin Pop | <sbr> |
231 | f3b100e1 | Guido Trotter | <arg>--master-netdev <replaceable>vg-name</replaceable></arg> |
232 | d3b4cf9f | Iustin Pop | <sbr> |
233 | f3b100e1 | Guido Trotter | <arg>-m <replaceable>mac-prefix</replaceable></arg> |
234 | d3b4cf9f | Iustin Pop | <sbr> |
235 | 11c05c42 | Manuel Franceschini | <arg>--no-lvm-storage</arg> |
236 | d3b4cf9f | Iustin Pop | <sbr> |
237 | b989b9d9 | Ken Wehr | <arg>--no-etc-hosts</arg> |
238 | b989b9d9 | Ken Wehr | <sbr> |
239 | b989b9d9 | Ken Wehr | <arg>--no-ssh-init</arg> |
240 | b989b9d9 | Ken Wehr | <sbr> |
241 | 19ae0895 | Alexander Schreiber | <arg>--file-storage-dir <replaceable>dir</replaceable></arg> |
242 | d3b4cf9f | Iustin Pop | <sbr> |
243 | 19ae0895 | Alexander Schreiber | <arg>--enabled-hypervisors <replaceable>hypervisors</replaceable></arg> |
244 | d3b4cf9f | Iustin Pop | <sbr> |
245 | 19ae0895 | Alexander Schreiber | <arg>-t <replaceable>hypervisor name</replaceable></arg> |
246 | d3b4cf9f | Iustin Pop | <sbr> |
247 | 555918b3 | Guido Trotter | <arg>--hypervisor-parameters <replaceable>hypervisor</replaceable>:<replaceable>hv-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>hv-param</replaceable>=<replaceable>value</replaceable></arg></arg> |
248 | d3b4cf9f | Iustin Pop | <sbr> |
249 | 555918b3 | Guido Trotter | <arg>--backend-parameters <replaceable>be-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>be-param</replaceable>=<replaceable>value</replaceable></arg></arg> |
250 | d3b4cf9f | Iustin Pop | <sbr> |
251 | 7d713344 | Guido Trotter | <arg>--nic-parameters <replaceable>nic-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>nic-param</replaceable>=<replaceable>value</replaceable></arg></arg> |
252 | 7d713344 | Guido Trotter | <sbr> |
253 | 3953242f | Iustin Pop | <arg>--maintain-node-health <group choice="req"><arg>yes</arg><arg>no</arg></group></arg> |
254 | 3953242f | Iustin Pop | <sbr> |
255 | 89100352 | Balazs Lecz | <arg>--uid-pool <replaceable>user-id pool definition</replaceable></arg> |
256 | 89100352 | Balazs Lecz | <sbr> |
257 | 75f49d9b | Iustin Pop | <arg choice="req"><replaceable>clustername</replaceable></arg> |
258 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
259 | 75f49d9b | Iustin Pop | |
260 | 75f49d9b | Iustin Pop | <para> |
261 | 75f49d9b | Iustin Pop | This commands is only run once initially on the first node of |
262 | 75f49d9b | Iustin Pop | the cluster. It will initialize the cluster configuration and |
263 | 75f49d9b | Iustin Pop | setup ssh-keys and more. |
264 | 75f49d9b | Iustin Pop | </para> |
265 | 75f49d9b | Iustin Pop | |
266 | 75f49d9b | Iustin Pop | <para> |
267 | 75f49d9b | Iustin Pop | Note that the <replaceable>clustername</replaceable> is not |
268 | 75f49d9b | Iustin Pop | any random name. It has to be resolvable to an IP address |
269 | 75f49d9b | Iustin Pop | using DNS, and it is best if you give the fully-qualified |
270 | 56db8a84 | Alexander Schreiber | domain name. This hostname must resolve to an IP address |
271 | 56db8a84 | Alexander Schreiber | reserved exclusively for this purpose. |
272 | 75f49d9b | Iustin Pop | </para> |
273 | 75f49d9b | Iustin Pop | |
274 | 75f49d9b | Iustin Pop | <para> |
275 | 75f49d9b | Iustin Pop | The cluster can run in two modes: single-home or |
276 | 75f49d9b | Iustin Pop | dual-homed. In the first case, all traffic (both public |
277 | 75f49d9b | Iustin Pop | traffic, inter-node traffic and data replication traffic) goes |
278 | 75f49d9b | Iustin Pop | over the same interface. In the dual-homed case, the data |
279 | 75f49d9b | Iustin Pop | replication traffic goes over the second network. The |
280 | 75f49d9b | Iustin Pop | <option>-s</option> option here marks the cluster as |
281 | 75f49d9b | Iustin Pop | dual-homed and its parameter represents this node's address on |
282 | 75f49d9b | Iustin Pop | the second network. If you initialise the cluster with |
283 | 75f49d9b | Iustin Pop | <option>-s</option>, all nodes added must have a secondary IP |
284 | 75f49d9b | Iustin Pop | as well. |
285 | 75f49d9b | Iustin Pop | </para> |
286 | 75f49d9b | Iustin Pop | |
287 | 75f49d9b | Iustin Pop | <para> |
288 | 75f49d9b | Iustin Pop | Note that for Ganeti it doesn't matter if the secondary |
289 | 75f49d9b | Iustin Pop | network is actually a separate physical network, or is done |
290 | 75f49d9b | Iustin Pop | using tunneling, etc. For performance reasons, it's |
291 | 75f49d9b | Iustin Pop | recommended to use a separate network, of course. |
292 | 75f49d9b | Iustin Pop | </para> |
293 | 75f49d9b | Iustin Pop | |
294 | 75f49d9b | Iustin Pop | <para> |
295 | f3b100e1 | Guido Trotter | The <option>-g</option> option will let you specify a volume group |
296 | 11c05c42 | Manuel Franceschini | different than 'xenvg' for ganeti to use when creating instance disks. |
297 | 11c05c42 | Manuel Franceschini | This volume group must have the same name on all nodes. Once the |
298 | 11c05c42 | Manuel Franceschini | cluster is initialized this can be altered by using the |
299 | 11c05c42 | Manuel Franceschini | <command>modify</command> command. If you don't want to use lvm |
300 | 11c05c42 | Manuel Franceschini | storage at all use the <option>--no-lvm-storage</option> option. |
301 | 11c05c42 | Manuel Franceschini | Once the cluster is initialized you can change this setup with the |
302 | 11c05c42 | Manuel Franceschini | <command>modify</command> command. |
303 | f3b100e1 | Guido Trotter | </para> |
304 | f3b100e1 | Guido Trotter | |
305 | f3b100e1 | Guido Trotter | <para> |
306 | f3b100e1 | Guido Trotter | The <option>--master-netdev</option> option is useful for specifying a |
307 | f3b100e1 | Guido Trotter | different interface on which the master will activate its IP address. |
308 | f3b100e1 | Guido Trotter | It's important that all nodes have this interface because you'll need |
309 | f3b100e1 | Guido Trotter | it for a master failover. |
310 | f3b100e1 | Guido Trotter | </para> |
311 | f3b100e1 | Guido Trotter | |
312 | f3b100e1 | Guido Trotter | <para> |
313 | f3b100e1 | Guido Trotter | The <option>-m</option> option will let you specify a three byte prefix |
314 | f3b100e1 | Guido Trotter | under which the virtual MAC addresses of your instances will be |
315 | f3b100e1 | Guido Trotter | generated. The prefix must be specified in the format XX:XX:XX and the |
316 | f3b100e1 | Guido Trotter | default is aa:00:00. |
317 | f3b100e1 | Guido Trotter | </para> |
318 | f3b100e1 | Guido Trotter | |
319 | 11c05c42 | Manuel Franceschini | <para> |
320 | b989b9d9 | Ken Wehr | The <option>--no-lvm-storage</option> option allows you to initialize |
321 | b989b9d9 | Ken Wehr | the cluster without lvm support. This means that only instances using |
322 | 11c05c42 | Manuel Franceschini | files as storage backend will be possible to create. Once the cluster |
323 | 11c05c42 | Manuel Franceschini | is initialized you can change this setup with the |
324 | 11c05c42 | Manuel Franceschini | <command>modify</command> command. |
325 | 11c05c42 | Manuel Franceschini | </para> |
326 | 19ae0895 | Alexander Schreiber | |
327 | 19ae0895 | Alexander Schreiber | <para> |
328 | b989b9d9 | Ken Wehr | The <option>--no-etc-hosts</option> option allows you to initialize the |
329 | b989b9d9 | Ken Wehr | cluster without modifying the <filename>/etc/hosts</filename> file. |
330 | b989b9d9 | Ken Wehr | </para> |
331 | b989b9d9 | Ken Wehr | |
332 | b989b9d9 | Ken Wehr | <para> |
333 | b989b9d9 | Ken Wehr | The <option>--no-ssh-init</option> option allows you to initialize the |
334 | b989b9d9 | Ken Wehr | cluster without creating or distributing SSH key pairs. |
335 | b989b9d9 | Ken Wehr | </para> |
336 | b989b9d9 | Ken Wehr | |
337 | b989b9d9 | Ken Wehr | <para> |
338 | 19ae0895 | Alexander Schreiber | The <option>--file-storage-dir</option> option allows you |
339 | 19ae0895 | Alexander Schreiber | set the directory to use for storing the instance disk |
340 | 19ae0895 | Alexander Schreiber | files when using file storage as backend for instance disks. |
341 | 19ae0895 | Alexander Schreiber | </para> |
342 | 19ae0895 | Alexander Schreiber | |
343 | 19ae0895 | Alexander Schreiber | <para> |
344 | 19ae0895 | Alexander Schreiber | The <option>--enabled-hypervisors</option> option allows you |
345 | 19ae0895 | Alexander Schreiber | to set the list of hypervisors that will be enabled for |
346 | ba0b05fe | Iustin Pop | this cluster. Instance hypervisors can only be chosen from |
347 | 066f465d | Guido Trotter | the list of enabled hypervisors, and the first entry of this list |
348 | 066f465d | Guido Trotter | will be used by default. Currently, the following hypervisors are |
349 | 066f465d | Guido Trotter | available: |
350 | 19ae0895 | Alexander Schreiber | </para> |
351 | 19ae0895 | Alexander Schreiber | |
352 | 19ae0895 | Alexander Schreiber | <para> |
353 | 19ae0895 | Alexander Schreiber | <variablelist> |
354 | 19ae0895 | Alexander Schreiber | <varlistentry> |
355 | 19ae0895 | Alexander Schreiber | <term>xen-pvm</term> |
356 | 19ae0895 | Alexander Schreiber | <listitem> |
357 | 19ae0895 | Alexander Schreiber | <para> |
358 | 19ae0895 | Alexander Schreiber | Xen PVM hypervisor |
359 | 19ae0895 | Alexander Schreiber | </para> |
360 | 19ae0895 | Alexander Schreiber | </listitem> |
361 | 19ae0895 | Alexander Schreiber | </varlistentry> |
362 | 19ae0895 | Alexander Schreiber | <varlistentry> |
363 | 19ae0895 | Alexander Schreiber | <term>xen-hvm</term> |
364 | 19ae0895 | Alexander Schreiber | <listitem> |
365 | 19ae0895 | Alexander Schreiber | <para> |
366 | 19ae0895 | Alexander Schreiber | Xen HVM hypervisor |
367 | 19ae0895 | Alexander Schreiber | </para> |
368 | 19ae0895 | Alexander Schreiber | </listitem> |
369 | 19ae0895 | Alexander Schreiber | </varlistentry> |
370 | 19ae0895 | Alexander Schreiber | <varlistentry> |
371 | 19ae0895 | Alexander Schreiber | <term>kvm</term> |
372 | 19ae0895 | Alexander Schreiber | <listitem> |
373 | 19ae0895 | Alexander Schreiber | <para> |
374 | 19ae0895 | Alexander Schreiber | Linux KVM hypervisor |
375 | 19ae0895 | Alexander Schreiber | </para> |
376 | 19ae0895 | Alexander Schreiber | </listitem> |
377 | 19ae0895 | Alexander Schreiber | </varlistentry> |
378 | 19ae0895 | Alexander Schreiber | <varlistentry> |
379 | e8a3bf18 | Iustin Pop | <term>chroot</term> |
380 | e8a3bf18 | Iustin Pop | <listitem> |
381 | e8a3bf18 | Iustin Pop | <para> |
382 | e8a3bf18 | Iustin Pop | a simple chroot manager that starts chroot based on a |
383 | e8a3bf18 | Iustin Pop | script at the root of the filesystem holding the |
384 | e8a3bf18 | Iustin Pop | chroot |
385 | e8a3bf18 | Iustin Pop | <varlistentry> |
386 | 19ae0895 | Alexander Schreiber | <term>fake</term> |
387 | 19ae0895 | Alexander Schreiber | <listitem> |
388 | 19ae0895 | Alexander Schreiber | <para> |
389 | 19ae0895 | Alexander Schreiber | fake hypervisor for development/testing |
390 | 19ae0895 | Alexander Schreiber | </para> |
391 | 19ae0895 | Alexander Schreiber | </listitem> |
392 | 19ae0895 | Alexander Schreiber | </varlistentry> |
393 | 19ae0895 | Alexander Schreiber | </variablelist> |
394 | 19ae0895 | Alexander Schreiber | </para> |
395 | 19ae0895 | Alexander Schreiber | |
396 | 19ae0895 | Alexander Schreiber | <para> |
397 | 19ae0895 | Alexander Schreiber | Either a single hypervisor name or a comma-separated list of |
398 | 19ae0895 | Alexander Schreiber | hypervisor names can be specified. If this option is not |
399 | 19ae0895 | Alexander Schreiber | specified, only the xen-pvm hypervisor is enabled by default. |
400 | 19ae0895 | Alexander Schreiber | </para> |
401 | 19ae0895 | Alexander Schreiber | |
402 | 19ae0895 | Alexander Schreiber | <para> |
403 | e8a3bf18 | Iustin Pop | The <option>--hypervisor-parameters</option> option allows you |
404 | e8a3bf18 | Iustin Pop | to set default hypervisor specific parameters for the |
405 | e8a3bf18 | Iustin Pop | cluster. The format of this option is the name of the |
406 | e8a3bf18 | Iustin Pop | hypervisor, followed by a colon and a comma-separated list of |
407 | e8a3bf18 | Iustin Pop | key=value pairs. The keys available for each hypervisors are |
408 | e8a3bf18 | Iustin Pop | detailed in the <citerefentry> |
409 | e8a3bf18 | Iustin Pop | <refentrytitle>gnt-instance</refentrytitle> |
410 | e8a3bf18 | Iustin Pop | <manvolnum>8</manvolnum> </citerefentry> man page, in the |
411 | e8a3bf18 | Iustin Pop | <command>add</command> command plus the following parameters |
412 | e8a3bf18 | Iustin Pop | which are only configurable globally (at cluster level): |
413 | e8a3bf18 | Iustin Pop | |
414 | e8a3bf18 | Iustin Pop | <variablelist> |
415 | e8a3bf18 | Iustin Pop | <varlistentry> |
416 | e8a3bf18 | Iustin Pop | <term>migration_port</term> |
417 | e8a3bf18 | Iustin Pop | <listitem> |
418 | e8a3bf18 | Iustin Pop | <simpara>Valid for the Xen PVM and KVM hypervisors.</simpara> |
419 | e8a3bf18 | Iustin Pop | |
420 | e8a3bf18 | Iustin Pop | <para> |
421 | e8a3bf18 | Iustin Pop | This options specifies the TCP port to use for |
422 | e8a3bf18 | Iustin Pop | live-migration. For Xen, the same port should be |
423 | e8a3bf18 | Iustin Pop | configured on all nodes in |
424 | e8a3bf18 | Iustin Pop | the <filename>/etc/xen/xend-config.sxp</filename> |
425 | e8a3bf18 | Iustin Pop | file, under the |
426 | e8a3bf18 | Iustin Pop | key <quote>xend-relocation-port</quote>. |
427 | e8a3bf18 | Iustin Pop | </para> |
428 | e8a3bf18 | Iustin Pop | </listitem> |
429 | e8a3bf18 | Iustin Pop | </varlistentry> |
430 | e43d4f9f | Apollon Oikonomopoulos | <varlistentry> |
431 | e43d4f9f | Apollon Oikonomopoulos | <term>migration_bandwidth</term> |
432 | e43d4f9f | Apollon Oikonomopoulos | <listitem> |
433 | e43d4f9f | Apollon Oikonomopoulos | <simpara>Valid for the KVM hypervisor.</simpara> |
434 | e43d4f9f | Apollon Oikonomopoulos | |
435 | e43d4f9f | Apollon Oikonomopoulos | <para> |
436 | e43d4f9f | Apollon Oikonomopoulos | This option specifies the maximum bandwidth that KVM will |
437 | e43d4f9f | Apollon Oikonomopoulos | use for instance live migrations. The value is in MiB/s. |
438 | e43d4f9f | Apollon Oikonomopoulos | </para> |
439 | e43d4f9f | Apollon Oikonomopoulos | |
440 | e43d4f9f | Apollon Oikonomopoulos | <simpara>This option is only effective with kvm versions >= 78 |
441 | e43d4f9f | Apollon Oikonomopoulos | and qemu-kvm versions >= 0.10.0. |
442 | e43d4f9f | Apollon Oikonomopoulos | </simpara> |
443 | e43d4f9f | Apollon Oikonomopoulos | </listitem> |
444 | e43d4f9f | Apollon Oikonomopoulos | </varlistentry> |
445 | e8a3bf18 | Iustin Pop | </variablelist> |
446 | e8a3bf18 | Iustin Pop | |
447 | e8a3bf18 | Iustin Pop | </para> |
448 | e8a3bf18 | Iustin Pop | |
449 | e8a3bf18 | Iustin Pop | <para> |
450 | 280b79b3 | Guido Trotter | The <option>--backend-parameters</option> option allows you to set |
451 | 19ae0895 | Alexander Schreiber | the default backend parameters for the cluster. The parameter |
452 | 19ae0895 | Alexander Schreiber | format is a comma-separated list of key=value pairs with the |
453 | 19ae0895 | Alexander Schreiber | following supported keys: |
454 | 19ae0895 | Alexander Schreiber | </para> |
455 | 19ae0895 | Alexander Schreiber | |
456 | 19ae0895 | Alexander Schreiber | <para> |
457 | 19ae0895 | Alexander Schreiber | <variablelist> |
458 | 19ae0895 | Alexander Schreiber | <varlistentry> |
459 | 19ae0895 | Alexander Schreiber | <term>vcpus</term> |
460 | 19ae0895 | Alexander Schreiber | <listitem> |
461 | 19ae0895 | Alexander Schreiber | <para> |
462 | 19ae0895 | Alexander Schreiber | Number of VCPUs to set for an instance by default, must |
463 | 19ae0895 | Alexander Schreiber | be an integer, will be set to 1 if no specified. |
464 | 19ae0895 | Alexander Schreiber | </para> |
465 | 19ae0895 | Alexander Schreiber | </listitem> |
466 | 19ae0895 | Alexander Schreiber | </varlistentry> |
467 | 19ae0895 | Alexander Schreiber | <varlistentry> |
468 | 19ae0895 | Alexander Schreiber | <term>memory</term> |
469 | 19ae0895 | Alexander Schreiber | <listitem> |
470 | 19ae0895 | Alexander Schreiber | <para> |
471 | 19ae0895 | Alexander Schreiber | Amount of memory to allocate for an instance by default, |
472 | 19ae0895 | Alexander Schreiber | can be either an integer or an integer followed by a |
473 | 19ae0895 | Alexander Schreiber | unit (M for mebibytes and G for gibibytes are |
474 | 19ae0895 | Alexander Schreiber | supported), will be set to 128M if not specified. |
475 | 19ae0895 | Alexander Schreiber | </para> |
476 | 19ae0895 | Alexander Schreiber | </listitem> |
477 | 19ae0895 | Alexander Schreiber | </varlistentry> |
478 | 19ae0895 | Alexander Schreiber | <varlistentry> |
479 | 19ae0895 | Alexander Schreiber | <term>auto_balance</term> |
480 | 19ae0895 | Alexander Schreiber | <listitem> |
481 | 19ae0895 | Alexander Schreiber | <para> |
482 | 19ae0895 | Alexander Schreiber | Value of the auto_balance flag for instances to use by |
483 | 19ae0895 | Alexander Schreiber | default, will be set to true if not specified. |
484 | 19ae0895 | Alexander Schreiber | </para> |
485 | 19ae0895 | Alexander Schreiber | </listitem> |
486 | 19ae0895 | Alexander Schreiber | </varlistentry> |
487 | 19ae0895 | Alexander Schreiber | </variablelist> |
488 | 19ae0895 | Alexander Schreiber | </para> |
489 | 19ae0895 | Alexander Schreiber | |
490 | 19ae0895 | Alexander Schreiber | <para> |
491 | 7d713344 | Guido Trotter | The <option>--nic-parameters</option> option allows you to set |
492 | 7d713344 | Guido Trotter | the default nic parameters for the cluster. The parameter |
493 | 7d713344 | Guido Trotter | format is a comma-separated list of key=value pairs with the |
494 | 7d713344 | Guido Trotter | following supported keys: |
495 | 7d713344 | Guido Trotter | <variablelist> |
496 | 7d713344 | Guido Trotter | <varlistentry> |
497 | 7d713344 | Guido Trotter | <term>mode</term> |
498 | 7d713344 | Guido Trotter | <listitem> |
499 | 7d713344 | Guido Trotter | <para> |
500 | 7d713344 | Guido Trotter | The default nic mode, 'routed' or 'bridged'. |
501 | 7d713344 | Guido Trotter | </para> |
502 | 7d713344 | Guido Trotter | </listitem> |
503 | 7d713344 | Guido Trotter | </varlistentry> |
504 | 7d713344 | Guido Trotter | <varlistentry> |
505 | 7d713344 | Guido Trotter | <term>link</term> |
506 | 7d713344 | Guido Trotter | <listitem> |
507 | 7d713344 | Guido Trotter | <para> |
508 | 8063787e | Guido Trotter | In bridged mode the default NIC bridge. In routed mode it |
509 | 8063787e | Guido Trotter | represents an hypervisor-vif-script dependent value to allow |
510 | 8063787e | Guido Trotter | different instance groups. For example under the KVM default |
511 | 8063787e | Guido Trotter | network script it is interpreted as a routing table number or |
512 | 8063787e | Guido Trotter | name. |
513 | 7d713344 | Guido Trotter | </para> |
514 | 7d713344 | Guido Trotter | </listitem> |
515 | 7d713344 | Guido Trotter | </varlistentry> |
516 | 7d713344 | Guido Trotter | </variablelist> |
517 | 7d713344 | Guido Trotter | </para> |
518 | 7d713344 | Guido Trotter | |
519 | 3953242f | Iustin Pop | <para> |
520 | 3953242f | Iustin Pop | The option <option>--maintain-node-health</option> allows to |
521 | 3953242f | Iustin Pop | enable/disable automatic maintenance actions on |
522 | 3953242f | Iustin Pop | nodes. Currently these include automatic shutdown of instances |
523 | 3953242f | Iustin Pop | and deactivation of DRBD devices on offline nodes; in the |
524 | 3953242f | Iustin Pop | future it might be extended to automatic removal of unknown |
525 | 3953242f | Iustin Pop | LVM volumes, etc. |
526 | 3953242f | Iustin Pop | </para> |
527 | 3953242f | Iustin Pop | |
528 | 89100352 | Balazs Lecz | <para> |
529 | 89100352 | Balazs Lecz | The <option>--uid-pool</option> option initializes the user-id pool. |
530 | 89100352 | Balazs Lecz | The <replaceable>user-id pool definition</replaceable> can contain a |
531 | 89100352 | Balazs Lecz | list of user-ids and/or a list of user-id ranges. The parameter format |
532 | 89100352 | Balazs Lecz | is a comma-separated list of numeric user-ids or user-id ranges. |
533 | 89100352 | Balazs Lecz | The ranges are defined by a lower and higher boundary, separated |
534 | 89100352 | Balazs Lecz | by a dash. The boundaries are inclusive. |
535 | 89100352 | Balazs Lecz | If the <option>--uid-pool</option> option is not supplied, the |
536 | 89100352 | Balazs Lecz | user-id pool is initialized to an empty list. An empty list means that |
537 | 89100352 | Balazs Lecz | the user-id pool feature is disabled. |
538 | 89100352 | Balazs Lecz | </para> |
539 | 89100352 | Balazs Lecz | |
540 | 75f49d9b | Iustin Pop | </refsect2> |
541 | 75f49d9b | Iustin Pop | |
542 | 75f49d9b | Iustin Pop | <refsect2> |
543 | cc425644 | Iustin Pop | <title>LIST-TAGS</title> |
544 | cc425644 | Iustin Pop | |
545 | cc425644 | Iustin Pop | <cmdsynopsis> |
546 | cc425644 | Iustin Pop | <command>list-tags</command> |
547 | cc425644 | Iustin Pop | </cmdsynopsis> |
548 | cc425644 | Iustin Pop | |
549 | cc425644 | Iustin Pop | <para>List the tags of the cluster.</para> |
550 | cc425644 | Iustin Pop | </refsect2> |
551 | cc425644 | Iustin Pop | |
552 | cc425644 | Iustin Pop | <refsect2> |
553 | 75f49d9b | Iustin Pop | <title>MASTERFAILOVER</title> |
554 | 75f49d9b | Iustin Pop | |
555 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
556 | 75f49d9b | Iustin Pop | <command>masterfailover</command> |
557 | 8e2524c3 | Guido Trotter | <arg>--no-voting</arg> |
558 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
559 | 75f49d9b | Iustin Pop | |
560 | 75f49d9b | Iustin Pop | <para> |
561 | 75f49d9b | Iustin Pop | Failover the master role to the current node. |
562 | 75f49d9b | Iustin Pop | </para> |
563 | 8e2524c3 | Guido Trotter | |
564 | 8e2524c3 | Guido Trotter | <para> |
565 | 8e2524c3 | Guido Trotter | The <option>--no-voting</option> option skips the remote node agreement |
566 | 8e2524c3 | Guido Trotter | checks. This is dangerous, but necessary in some cases (for example |
567 | 8e2524c3 | Guido Trotter | failing over the master role in a 2 node cluster with the original master |
568 | 8e2524c3 | Guido Trotter | down). If the original master then comes up, it won't be able to start |
569 | 8e2524c3 | Guido Trotter | its master daemon because it won't have enough votes, but so won't the |
570 | 8e2524c3 | Guido Trotter | new master, if the master daemon ever needs a restart. You can pass |
571 | 8e2524c3 | Guido Trotter | --no-voting to ganeti-masterd on the new master to solve this problem, |
572 | 8e2524c3 | Guido Trotter | and gnt-cluster redist-conf to make sure the cluster is consistent again. |
573 | 8e2524c3 | Guido Trotter | </para> |
574 | 8e2524c3 | Guido Trotter | |
575 | 75f49d9b | Iustin Pop | </refsect2> |
576 | 75f49d9b | Iustin Pop | |
577 | 75f49d9b | Iustin Pop | <refsect2> |
578 | 11c05c42 | Manuel Franceschini | <title>MODIFY</title> |
579 | 11c05c42 | Manuel Franceschini | |
580 | 11c05c42 | Manuel Franceschini | <cmdsynopsis> |
581 | 11c05c42 | Manuel Franceschini | <command>modify</command> |
582 | d3b4cf9f | Iustin Pop | <sbr> |
583 | 11c05c42 | Manuel Franceschini | <arg choice="opt">-g <replaceable>vg-name</replaceable></arg> |
584 | d3b4cf9f | Iustin Pop | <sbr> |
585 | 11c05c42 | Manuel Franceschini | <arg choice="opt">--no-lvm-storage</arg> |
586 | d3b4cf9f | Iustin Pop | <sbr> |
587 | 18fb5e1d | Alexander Schreiber | <arg choice="opt">--enabled-hypervisors |
588 | 18fb5e1d | Alexander Schreiber | <replaceable>hypervisors</replaceable></arg> |
589 | d3b4cf9f | Iustin Pop | <sbr> |
590 | 555918b3 | Guido Trotter | <arg choice="opt">--hypervisor-parameters <replaceable>hypervisor</replaceable>:<replaceable>hv-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>hv-param</replaceable>=<replaceable>value</replaceable></arg></arg> |
591 | d3b4cf9f | Iustin Pop | <sbr> |
592 | 555918b3 | Guido Trotter | <arg choice="opt">--backend-parameters <replaceable>be-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>be-param</replaceable>=<replaceable>value</replaceable></arg></arg> |
593 | d3b4cf9f | Iustin Pop | <sbr> |
594 | 7d713344 | Guido Trotter | <arg choice="opt">--nic-parameters <replaceable>nic-param</replaceable>=<replaceable>value</replaceable><arg rep="repeat" choice="opt">,<replaceable>nic-param</replaceable>=<replaceable>value</replaceable></arg></arg> |
595 | 7d713344 | Guido Trotter | <sbr> |
596 | 89100352 | Balazs Lecz | <arg choice="opt">--uid-pool <replaceable>user-id pool definition</replaceable></arg> |
597 | 89100352 | Balazs Lecz | <sbr> |
598 | 89100352 | Balazs Lecz | <arg choice="opt">--add-uids <replaceable>user-id pool definition</replaceable></arg> |
599 | 89100352 | Balazs Lecz | <sbr> |
600 | 89100352 | Balazs Lecz | <arg choice="opt">--remove-uids <replaceable>user-id pool definition</replaceable></arg> |
601 | 89100352 | Balazs Lecz | <sbr> |
602 | 6d4a1656 | Michael Hanselmann | <arg choice="opt">-C <replaceable>candidate_pool_size</replaceable></arg> |
603 | 3953242f | Iustin Pop | <sbr> |
604 | 3953242f | Iustin Pop | <arg>--maintain-node-health <group choice="req"><arg>yes</arg><arg>no</arg></group></arg> |
605 | 18fb5e1d | Alexander Schreiber | |
606 | 11c05c42 | Manuel Franceschini | </cmdsynopsis> |
607 | 11c05c42 | Manuel Franceschini | |
608 | 11c05c42 | Manuel Franceschini | <para> |
609 | 11c05c42 | Manuel Franceschini | Modify the options for the cluster. |
610 | 11c05c42 | Manuel Franceschini | </para> |
611 | 11c05c42 | Manuel Franceschini | |
612 | 11c05c42 | Manuel Franceschini | <para> |
613 | 18fb5e1d | Alexander Schreiber | The <option>-g</option>, <option>--no-lvm-storarge</option>, |
614 | 18fb5e1d | Alexander Schreiber | <option>--enabled-hypervisors</option>, |
615 | 7d713344 | Guido Trotter | <option>--hypervisor-parameters</option>, |
616 | 89100352 | Balazs Lecz | <option>--backend-parameters</option>, |
617 | 89100352 | Balazs Lecz | <option>--nic-parameters</option>, |
618 | 89100352 | Balazs Lecz | <option>--maintain-node-health</option> and |
619 | 89100352 | Balazs Lecz | <option>--uid-pool</option> options are |
620 | 11c05c42 | Manuel Franceschini | described in the <command>init</command> command. |
621 | 11c05c42 | Manuel Franceschini | </para> |
622 | d3b4cf9f | Iustin Pop | |
623 | d3b4cf9f | Iustin Pop | <para> |
624 | 6d4a1656 | Michael Hanselmann | The <option>-C</option> option specifies the |
625 | d3b4cf9f | Iustin Pop | <varname>candidate_pool_size</varname> cluster parameter. This |
626 | d3b4cf9f | Iustin Pop | is the number of nodes that the master will try to keep as |
627 | d3b4cf9f | Iustin Pop | <literal>master_candidates</literal>. For more details about |
628 | d3b4cf9f | Iustin Pop | this role and other node roles, see the <citerefentry> |
629 | d3b4cf9f | Iustin Pop | <refentrytitle>ganeti</refentrytitle><manvolnum>7</manvolnum> |
630 | d3b4cf9f | Iustin Pop | </citerefentry>. If you increase the size, the master will |
631 | d3b4cf9f | Iustin Pop | automatically promote as many nodes as required and possible |
632 | d3b4cf9f | Iustin Pop | to reach the intended number. |
633 | d3b4cf9f | Iustin Pop | </para> |
634 | 89100352 | Balazs Lecz | |
635 | 89100352 | Balazs Lecz | <para> |
636 | 89100352 | Balazs Lecz | The <option>--add-uids</option> and <option>--remove-uids</option> |
637 | 89100352 | Balazs Lecz | options can be used to modify the user-id pool by adding/removing |
638 | 89100352 | Balazs Lecz | a list of user-ids or user-id ranges. |
639 | 11c05c42 | Manuel Franceschini | </refsect2> |
640 | 11c05c42 | Manuel Franceschini | |
641 | 11c05c42 | Manuel Franceschini | <refsect2> |
642 | 18fb5e1d | Alexander Schreiber | <title>QUEUE</title> |
643 | 18fb5e1d | Alexander Schreiber | |
644 | 18fb5e1d | Alexander Schreiber | <cmdsynopsis> |
645 | 18fb5e1d | Alexander Schreiber | <command>queue</command> |
646 | 18fb5e1d | Alexander Schreiber | <arg choice="opt">drain</arg> |
647 | 18fb5e1d | Alexander Schreiber | <arg choice="opt">undrain</arg> |
648 | 18fb5e1d | Alexander Schreiber | <arg choice="opt">info</arg> |
649 | 18fb5e1d | Alexander Schreiber | |
650 | 18fb5e1d | Alexander Schreiber | </cmdsynopsis> |
651 | 18fb5e1d | Alexander Schreiber | |
652 | 18fb5e1d | Alexander Schreiber | <para> |
653 | 18fb5e1d | Alexander Schreiber | Change job queue properties. |
654 | 18fb5e1d | Alexander Schreiber | </para> |
655 | 18fb5e1d | Alexander Schreiber | |
656 | 18fb5e1d | Alexander Schreiber | <para> |
657 | 18fb5e1d | Alexander Schreiber | The <option>drain</option> option sets the drain flag on the |
658 | 18fb5e1d | Alexander Schreiber | job queue. No new jobs will be accepted, but jobs already in |
659 | 18fb5e1d | Alexander Schreiber | the queue will be processed. |
660 | 18fb5e1d | Alexander Schreiber | </para> |
661 | 18fb5e1d | Alexander Schreiber | |
662 | 18fb5e1d | Alexander Schreiber | <para> |
663 | 18fb5e1d | Alexander Schreiber | The <option>undrain</option> will unset the drain flag on the |
664 | 18fb5e1d | Alexander Schreiber | job queue. New jobs will be accepted. |
665 | 18fb5e1d | Alexander Schreiber | </para> |
666 | 18fb5e1d | Alexander Schreiber | |
667 | 18fb5e1d | Alexander Schreiber | <para> |
668 | 18fb5e1d | Alexander Schreiber | The <option>info</option> option shows the properties of the |
669 | 18fb5e1d | Alexander Schreiber | job queue. |
670 | 18fb5e1d | Alexander Schreiber | </para> |
671 | 18fb5e1d | Alexander Schreiber | </refsect2> |
672 | 18fb5e1d | Alexander Schreiber | |
673 | 18fb5e1d | Alexander Schreiber | <refsect2> |
674 | 95b2e626 | Michael Hanselmann | <title>WATCHER</title> |
675 | 95b2e626 | Michael Hanselmann | |
676 | 95b2e626 | Michael Hanselmann | <cmdsynopsis> |
677 | 95b2e626 | Michael Hanselmann | <command>watcher</command> |
678 | 95b2e626 | Michael Hanselmann | <group choice="req"> |
679 | 95b2e626 | Michael Hanselmann | <arg>pause <replaceable>duration</replaceable></arg> |
680 | 95b2e626 | Michael Hanselmann | <arg>continue</arg> |
681 | 95b2e626 | Michael Hanselmann | <arg>info</arg> |
682 | 95b2e626 | Michael Hanselmann | </group> |
683 | 95b2e626 | Michael Hanselmann | </cmdsynopsis> |
684 | 95b2e626 | Michael Hanselmann | |
685 | 95b2e626 | Michael Hanselmann | <para> |
686 | 95b2e626 | Michael Hanselmann | Make the watcher pause or let it continue. |
687 | 95b2e626 | Michael Hanselmann | </para> |
688 | 95b2e626 | Michael Hanselmann | |
689 | 95b2e626 | Michael Hanselmann | <para> |
690 | 95b2e626 | Michael Hanselmann | The <option>pause</option> option causes the watcher to pause for |
691 | 95b2e626 | Michael Hanselmann | <replaceable>duration</replaceable> seconds. |
692 | 95b2e626 | Michael Hanselmann | </para> |
693 | 95b2e626 | Michael Hanselmann | |
694 | 95b2e626 | Michael Hanselmann | <para> |
695 | 95b2e626 | Michael Hanselmann | The <option>continue</option> option will let the watcher continue. |
696 | 95b2e626 | Michael Hanselmann | </para> |
697 | 95b2e626 | Michael Hanselmann | |
698 | 95b2e626 | Michael Hanselmann | <para> |
699 | 95b2e626 | Michael Hanselmann | The <option>info</option> option shows whether the watcher is currently |
700 | 95b2e626 | Michael Hanselmann | paused. |
701 | 95b2e626 | Michael Hanselmann | </para> |
702 | 95b2e626 | Michael Hanselmann | </refsect2> |
703 | 95b2e626 | Michael Hanselmann | |
704 | 95b2e626 | Michael Hanselmann | <refsect2> |
705 | d3b4cf9f | Iustin Pop | <title>redist-conf</title> |
706 | d3b4cf9f | Iustin Pop | <cmdsynopsis> |
707 | d3b4cf9f | Iustin Pop | <command>redist-conf</command> |
708 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
709 | d3b4cf9f | Iustin Pop | </cmdsynopsis> |
710 | d3b4cf9f | Iustin Pop | |
711 | d3b4cf9f | Iustin Pop | <para> |
712 | d3b4cf9f | Iustin Pop | This command forces a full push of configuration files from |
713 | d3b4cf9f | Iustin Pop | the master node to the other nodes in the cluster. This is |
714 | d3b4cf9f | Iustin Pop | normally not needed, but can be run if the |
715 | d3b4cf9f | Iustin Pop | <command>verify</command> complains about configuration |
716 | d3b4cf9f | Iustin Pop | mismatches. |
717 | d3b4cf9f | Iustin Pop | </para> |
718 | d3b4cf9f | Iustin Pop | |
719 | d3b4cf9f | Iustin Pop | <para> |
720 | d3b4cf9f | Iustin Pop | The <option>--submit</option> option is used to send the job |
721 | d3b4cf9f | Iustin Pop | to the master daemon but not wait for its completion. The job |
722 | d3b4cf9f | Iustin Pop | ID will be shown so that it can be examined via |
723 | d3b4cf9f | Iustin Pop | <command>gnt-job info</command>. |
724 | d3b4cf9f | Iustin Pop | </para> |
725 | d3b4cf9f | Iustin Pop | |
726 | d3b4cf9f | Iustin Pop | </refsect2> |
727 | d3b4cf9f | Iustin Pop | <refsect2> |
728 | cc425644 | Iustin Pop | <title>REMOVE-TAGS</title> |
729 | cc425644 | Iustin Pop | |
730 | cc425644 | Iustin Pop | <cmdsynopsis> |
731 | cc425644 | Iustin Pop | <command>remove-tags</command> |
732 | 810c50b7 | Iustin Pop | <arg choice="opt">--from <replaceable>file</replaceable></arg> |
733 | cc425644 | Iustin Pop | <arg choice="req" |
734 | cc425644 | Iustin Pop | rep="repeat"><replaceable>tag</replaceable></arg> |
735 | cc425644 | Iustin Pop | </cmdsynopsis> |
736 | cc425644 | Iustin Pop | |
737 | cc425644 | Iustin Pop | <para> |
738 | cc425644 | Iustin Pop | Remove tags from the cluster. If any of the tags are not |
739 | cc425644 | Iustin Pop | existing on the cluster, the entire operation will abort. |
740 | cc425644 | Iustin Pop | </para> |
741 | 810c50b7 | Iustin Pop | |
742 | 810c50b7 | Iustin Pop | <para> |
743 | 810c50b7 | Iustin Pop | If the <option>--from</option> option is given, the list of |
744 | 810c50b7 | Iustin Pop | tags will be extended with the contents of that file (each |
745 | 810c50b7 | Iustin Pop | line becomes a tag). In this case, there is not need to pass |
746 | 810c50b7 | Iustin Pop | tags on the command line (if you do, both sources will be |
747 | 810c50b7 | Iustin Pop | used). A file name of - will be interpreted as stdin. |
748 | 810c50b7 | Iustin Pop | </para> |
749 | cc425644 | Iustin Pop | </refsect2> |
750 | cc425644 | Iustin Pop | |
751 | cc425644 | Iustin Pop | <refsect2> |
752 | 75f49d9b | Iustin Pop | <title>RENAME</title> |
753 | 75f49d9b | Iustin Pop | |
754 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
755 | 75f49d9b | Iustin Pop | <command>rename</command> |
756 | 75f49d9b | Iustin Pop | <arg>-f</arg> |
757 | 75f49d9b | Iustin Pop | <arg choice="req"><replaceable>name</replaceable></arg> |
758 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
759 | 75f49d9b | Iustin Pop | |
760 | 75f49d9b | Iustin Pop | <para> |
761 | 75f49d9b | Iustin Pop | Renames the cluster and in the process updates the master IP |
762 | 75f49d9b | Iustin Pop | address to the one the new name resolves to. At least one of |
763 | 75f49d9b | Iustin Pop | either the name or the IP address must be different, otherwise |
764 | 75f49d9b | Iustin Pop | the operation will be aborted. |
765 | 75f49d9b | Iustin Pop | </para> |
766 | 75f49d9b | Iustin Pop | |
767 | 75f49d9b | Iustin Pop | <para> |
768 | 75f49d9b | Iustin Pop | Note that since this command can be dangerous (especially when |
769 | 75f49d9b | Iustin Pop | run over SSH), the command will require confirmation unless |
770 | 75f49d9b | Iustin Pop | run with the <option>-f</option> option. |
771 | 75f49d9b | Iustin Pop | </para> |
772 | 75f49d9b | Iustin Pop | </refsect2> |
773 | 60975797 | Iustin Pop | |
774 | 60975797 | Iustin Pop | <refsect2> |
775 | 6d4a1656 | Michael Hanselmann | <title>RENEW-CRYPTO</title> |
776 | 6d4a1656 | Michael Hanselmann | |
777 | 6d4a1656 | Michael Hanselmann | <cmdsynopsis> |
778 | 6d4a1656 | Michael Hanselmann | <command>renew-crypto</command> |
779 | 6d4a1656 | Michael Hanselmann | <arg>-f</arg> |
780 | 6d4a1656 | Michael Hanselmann | <sbr> |
781 | 6d4a1656 | Michael Hanselmann | <arg choice="opt">--new-cluster-certificate</arg> |
782 | 6b7d5878 | Michael Hanselmann | <arg choice="opt">--new-confd-hmac-key</arg> |
783 | 6d4a1656 | Michael Hanselmann | <sbr> |
784 | 6d4a1656 | Michael Hanselmann | <arg choice="opt">--new-rapi-certificate</arg> |
785 | 6d4a1656 | Michael Hanselmann | <arg choice="opt">--rapi-certificate <replaceable>rapi-cert</replaceable></arg> |
786 | 6d4a1656 | Michael Hanselmann | </cmdsynopsis> |
787 | 6d4a1656 | Michael Hanselmann | |
788 | 6d4a1656 | Michael Hanselmann | <para> |
789 | 6d4a1656 | Michael Hanselmann | This command will stop all |
790 | 6d4a1656 | Michael Hanselmann | Ganeti daemons in the cluster and start them again once the new |
791 | 6d4a1656 | Michael Hanselmann | certificates and keys are replicated. The options |
792 | 6d4a1656 | Michael Hanselmann | <option>--new-cluster-certificate</option> and |
793 | 6b7d5878 | Michael Hanselmann | <option>--new-confd-hmac-key</option> can be used to regenerate the |
794 | 6d4a1656 | Michael Hanselmann | cluster-internal SSL certificate respective the HMAC key used by |
795 | 6d4a1656 | Michael Hanselmann | <citerefentry> |
796 | 6d4a1656 | Michael Hanselmann | <refentrytitle>ganeti-confd</refentrytitle><manvolnum>8</manvolnum> |
797 | 6d4a1656 | Michael Hanselmann | </citerefentry>. To generate a new self-signed RAPI certificate (used |
798 | 6d4a1656 | Michael Hanselmann | by <citerefentry> |
799 | 6d4a1656 | Michael Hanselmann | <refentrytitle>ganeti-rapi</refentrytitle><manvolnum>8</manvolnum> |
800 | 6d4a1656 | Michael Hanselmann | </citerefentry>) specify <option>--new-rapi-certificate</option>. If |
801 | 6d4a1656 | Michael Hanselmann | you want to use your own certificate, e.g. one signed by a certificate |
802 | 6d4a1656 | Michael Hanselmann | authority (CA), pass its filename to |
803 | 6d4a1656 | Michael Hanselmann | <option>--rapi-certificate</option>. |
804 | 6d4a1656 | Michael Hanselmann | </para> |
805 | 6d4a1656 | Michael Hanselmann | </refsect2> |
806 | 6d4a1656 | Michael Hanselmann | |
807 | 6d4a1656 | Michael Hanselmann | <refsect2> |
808 | 60975797 | Iustin Pop | <title>REPAIR-DISK-SIZES</title> |
809 | 60975797 | Iustin Pop | |
810 | 60975797 | Iustin Pop | <cmdsynopsis> |
811 | 60975797 | Iustin Pop | <command>repair-disk-sizes</command> |
812 | 60975797 | Iustin Pop | <arg rep="repeat">instance</arg> |
813 | 60975797 | Iustin Pop | </cmdsynopsis> |
814 | 60975797 | Iustin Pop | |
815 | 60975797 | Iustin Pop | <para> |
816 | 60975797 | Iustin Pop | This command checks that the recorded size of the given |
817 | 60975797 | Iustin Pop | instance's disks matches the actual size and updates any |
818 | 60975797 | Iustin Pop | mismatches found. This is needed if the Ganeti configuration |
819 | 60975797 | Iustin Pop | is no longer consistent with reality, as it will impact some |
820 | 60975797 | Iustin Pop | disk operations. If no arguments are given, all instances will |
821 | 60975797 | Iustin Pop | be checked. |
822 | 60975797 | Iustin Pop | </para> |
823 | 60975797 | Iustin Pop | |
824 | 60975797 | Iustin Pop | <para> |
825 | 60975797 | Iustin Pop | Note that only active disks can be checked by this command; in |
826 | 60975797 | Iustin Pop | case a disk cannot be activated it's advised to use |
827 | a4f12da4 | Michael Hanselmann | <command>gnt-instance activate-disks --ignore-size ...</command> to |
828 | a4f12da4 | Michael Hanselmann | force activation without regard to the |
829 | 60975797 | Iustin Pop | current size. |
830 | 60975797 | Iustin Pop | </para> |
831 | 60975797 | Iustin Pop | |
832 | 60975797 | Iustin Pop | <para> |
833 | 60975797 | Iustin Pop | When the all disk sizes are consistent, the command will |
834 | 60975797 | Iustin Pop | return no output. Otherwise it will log details about the |
835 | 60975797 | Iustin Pop | inconsistencies in the configuration. |
836 | 60975797 | Iustin Pop | </para> |
837 | 60975797 | Iustin Pop | </refsect2> |
838 | 75f49d9b | Iustin Pop | |
839 | 75f49d9b | Iustin Pop | <refsect2> |
840 | 73415719 | Iustin Pop | <title>SEARCH-TAGS</title> |
841 | 73415719 | Iustin Pop | |
842 | 73415719 | Iustin Pop | <cmdsynopsis> |
843 | 73415719 | Iustin Pop | <command>search-tags</command> |
844 | 73415719 | Iustin Pop | <arg choice="req"><replaceable>pattern</replaceable></arg> |
845 | 73415719 | Iustin Pop | </cmdsynopsis> |
846 | 73415719 | Iustin Pop | |
847 | 73415719 | Iustin Pop | <para> |
848 | 73415719 | Iustin Pop | Searches the tags on all objects in the cluster (the cluster |
849 | 73415719 | Iustin Pop | itself, the nodes and the instances) for a given pattern. The |
850 | 73415719 | Iustin Pop | pattern is interpreted as a regular expression and a search |
851 | 73415719 | Iustin Pop | will be done on it (i.e. the given pattern is not anchored to |
852 | 73415719 | Iustin Pop | the beggining of the string; if you want that, prefix the |
853 | 73415719 | Iustin Pop | pattern with <literal>^</literal>). |
854 | 73415719 | Iustin Pop | </para> |
855 | 73415719 | Iustin Pop | |
856 | 73415719 | Iustin Pop | <para> |
857 | 73415719 | Iustin Pop | If no tags are matching the pattern, the exit code of the |
858 | 73415719 | Iustin Pop | command will be one. If there is at least one match, the exit |
859 | 73415719 | Iustin Pop | code will be zero. Each match is listed on one line, the |
860 | 73415719 | Iustin Pop | object and the tag separated by a space. The cluster will be |
861 | 73415719 | Iustin Pop | listed as <filename>/cluster</filename>, a node will be listed |
862 | 73415719 | Iustin Pop | as |
863 | 73415719 | Iustin Pop | <filename>/nodes/<replaceable>name</replaceable></filename>, |
864 | 73415719 | Iustin Pop | and an instance as |
865 | 73415719 | Iustin Pop | <filename>/instances/<replaceable>name</replaceable></filename>. |
866 | 73415719 | Iustin Pop | Example: |
867 | 73415719 | Iustin Pop | </para> |
868 | 73415719 | Iustin Pop | <screen> |
869 | 2f49d1d2 | Guido Trotter | # gnt-cluster search-tags time |
870 | 73415719 | Iustin Pop | /cluster ctime:2007-09-01 |
871 | 73415719 | Iustin Pop | /nodes/node1.example.com mtime:2007-10-04 |
872 | 73415719 | Iustin Pop | </screen> |
873 | 73415719 | Iustin Pop | </refsect2> |
874 | 73415719 | Iustin Pop | |
875 | 73415719 | Iustin Pop | <refsect2> |
876 | 75f49d9b | Iustin Pop | <title>VERIFY</title> |
877 | 75f49d9b | Iustin Pop | |
878 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
879 | 75f49d9b | Iustin Pop | <command>verify</command> |
880 | 3cf7c9fa | Guido Trotter | <arg choice="opt">--no-nplus1-mem</arg> |
881 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
882 | 75f49d9b | Iustin Pop | |
883 | 75f49d9b | Iustin Pop | <para> |
884 | 75f49d9b | Iustin Pop | Verify correctness of cluster configuration. This is safe with |
885 | 75f49d9b | Iustin Pop | respect to running instances, and incurs no downtime of the |
886 | 75f49d9b | Iustin Pop | instances. |
887 | 75f49d9b | Iustin Pop | </para> |
888 | 3cf7c9fa | Guido Trotter | |
889 | 3cf7c9fa | Guido Trotter | <para> |
890 | 3cf7c9fa | Guido Trotter | If the <option>--no-nplus1-mem</option> option is given, ganeti won't |
891 | 3cf7c9fa | Guido Trotter | check whether if it loses a node it can restart all the instances on |
892 | 3cf7c9fa | Guido Trotter | their secondaries (and report an error otherwise). |
893 | 3cf7c9fa | Guido Trotter | </para> |
894 | 75f49d9b | Iustin Pop | </refsect2> |
895 | 75f49d9b | Iustin Pop | |
896 | 75f49d9b | Iustin Pop | <refsect2> |
897 | ed2d1409 | Iustin Pop | <title>VERIFY-DISKS</title> |
898 | ed2d1409 | Iustin Pop | |
899 | ed2d1409 | Iustin Pop | <cmdsynopsis> |
900 | ed2d1409 | Iustin Pop | <command>verify-disks</command> |
901 | ed2d1409 | Iustin Pop | </cmdsynopsis> |
902 | ed2d1409 | Iustin Pop | |
903 | ed2d1409 | Iustin Pop | <para> |
904 | ed2d1409 | Iustin Pop | The command checks which instances have degraded DRBD disks |
905 | ed2d1409 | Iustin Pop | and activates the disks of those instances. |
906 | ed2d1409 | Iustin Pop | </para> |
907 | ed2d1409 | Iustin Pop | |
908 | ed2d1409 | Iustin Pop | <para> |
909 | ed2d1409 | Iustin Pop | This command is run from the <command>ganeti-watcher</command> |
910 | ed2d1409 | Iustin Pop | tool, which also has a different, complementary algorithm for |
911 | ed2d1409 | Iustin Pop | doing this check. Together, these two should ensure that DRBD |
912 | ed2d1409 | Iustin Pop | disks are kept consistent. |
913 | ed2d1409 | Iustin Pop | </para> |
914 | ed2d1409 | Iustin Pop | </refsect2> |
915 | ed2d1409 | Iustin Pop | |
916 | ed2d1409 | Iustin Pop | <refsect2> |
917 | 75f49d9b | Iustin Pop | <title>VERSION</title> |
918 | 75f49d9b | Iustin Pop | |
919 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
920 | 75f49d9b | Iustin Pop | <command>version</command> |
921 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
922 | 75f49d9b | Iustin Pop | |
923 | 75f49d9b | Iustin Pop | <para> |
924 | 75f49d9b | Iustin Pop | Show the cluster version. |
925 | 75f49d9b | Iustin Pop | </para> |
926 | 75f49d9b | Iustin Pop | </refsect2> |
927 | a8083063 | Iustin Pop | |
928 | a8083063 | Iustin Pop | </refsect1> |
929 | a8083063 | Iustin Pop | |
930 | a8083063 | Iustin Pop | &footer; |
931 | a8083063 | Iustin Pop | |
932 | a8083063 | Iustin Pop | </refentry> |
933 | a8083063 | Iustin Pop | |
934 | a8083063 | Iustin Pop | <!-- Keep this comment at the end of the file |
935 | a8083063 | Iustin Pop | Local variables: |
936 | a8083063 | Iustin Pop | mode: sgml |
937 | a8083063 | Iustin Pop | sgml-omittag:t |
938 | a8083063 | Iustin Pop | sgml-shorttag:t |
939 | a8083063 | Iustin Pop | sgml-minimize-attributes:nil |
940 | a8083063 | Iustin Pop | sgml-always-quote-attributes:t |
941 | a8083063 | Iustin Pop | sgml-indent-step:2 |
942 | a8083063 | Iustin Pop | sgml-indent-data:t |
943 | a8083063 | Iustin Pop | sgml-parent-document:nil |
944 | a8083063 | Iustin Pop | sgml-default-dtd-file:nil |
945 | a8083063 | Iustin Pop | sgml-exposed-tags:nil |
946 | a8083063 | Iustin Pop | sgml-local-catalogs:nil |
947 | a8083063 | Iustin Pop | sgml-local-ecat-files:nil |
948 | a8083063 | Iustin Pop | End: |
949 | a8083063 | Iustin Pop | --> |