root / man / gnt-cluster.sgml @ 066f465d
History | View | Annotate | Download (24.2 kB)
1 | a8083063 | Iustin Pop | <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ |
---|---|---|---|
2 | a8083063 | Iustin Pop | |
3 | a8083063 | Iustin Pop | <!-- Fill in your name for FIRSTNAME and SURNAME. --> |
4 | a8083063 | Iustin Pop | <!-- Please adjust the date whenever revising the manpage. --> |
5 | 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 | 75f49d9b | Iustin Pop | <arg>-n <replaceable>node</replaceable></arg> |
142 | 75f49d9b | Iustin Pop | <arg choice="req"><replaceable>file</replaceable></arg> |
143 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
144 | 75f49d9b | Iustin Pop | |
145 | 75f49d9b | Iustin Pop | <para> |
146 | 75f49d9b | Iustin Pop | Copies a file to all or to some nodes. The argument specifies |
147 | 75f49d9b | Iustin Pop | the source file (on the current system), the |
148 | 75f49d9b | Iustin Pop | <option>-n</option> argument specifies the target node, or |
149 | 75f49d9b | Iustin Pop | nodes if the option is given multiple times. If |
150 | 75f49d9b | Iustin Pop | <option>-n</option> is not given at all, the file will be |
151 | 75f49d9b | Iustin Pop | copied to all nodes. |
152 | 75f49d9b | Iustin Pop | |
153 | 75f49d9b | Iustin Pop | Example: |
154 | 75f49d9b | Iustin Pop | <screen> |
155 | 75f49d9b | Iustin Pop | # gnt-cluster -n node1.example.com -n node2.example.com copyfile /tmp/test |
156 | 75f49d9b | Iustin Pop | </screen> |
157 | 75f49d9b | Iustin Pop | |
158 | 75f49d9b | Iustin Pop | This will copy the file <filename>/tmp/test</filename> from |
159 | 75f49d9b | Iustin Pop | the current node to the two named nodes. |
160 | 75f49d9b | Iustin Pop | </para> |
161 | 75f49d9b | Iustin Pop | </refsect2> |
162 | 75f49d9b | Iustin Pop | |
163 | 75f49d9b | Iustin Pop | <refsect2> |
164 | 75f49d9b | Iustin Pop | <title>DESTROY</title> |
165 | 75f49d9b | Iustin Pop | |
166 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
167 | 75f49d9b | Iustin Pop | <command>destroy</command> |
168 | f69dab6d | Iustin Pop | <arg choice="req">--yes-do-it</arg> |
169 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
170 | 75f49d9b | Iustin Pop | |
171 | 75f49d9b | Iustin Pop | <para> |
172 | 75f49d9b | Iustin Pop | Remove all configuration files related to the cluster, so that |
173 | 75f49d9b | Iustin Pop | a <command>gnt-cluster init</command> can be done again |
174 | 75f49d9b | Iustin Pop | afterwards. |
175 | 75f49d9b | Iustin Pop | </para> |
176 | f69dab6d | Iustin Pop | |
177 | f69dab6d | Iustin Pop | <para> |
178 | f69dab6d | Iustin Pop | Since this is a dangerous command, you are required to pass |
179 | f69dab6d | Iustin Pop | the argument <replaceable>--yes-do-it.</replaceable> |
180 | f69dab6d | Iustin Pop | </para> |
181 | 75f49d9b | Iustin Pop | </refsect2> |
182 | 75f49d9b | Iustin Pop | |
183 | 75f49d9b | Iustin Pop | <refsect2> |
184 | 75f49d9b | Iustin Pop | <title>GETMASTER</title> |
185 | 75f49d9b | Iustin Pop | |
186 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
187 | 75f49d9b | Iustin Pop | <command>getmaster</command> |
188 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
189 | 75f49d9b | Iustin Pop | |
190 | 75f49d9b | Iustin Pop | <para> |
191 | 75f49d9b | Iustin Pop | Displays the current master node. |
192 | 75f49d9b | Iustin Pop | </para> |
193 | 75f49d9b | Iustin Pop | </refsect2> |
194 | 75f49d9b | Iustin Pop | |
195 | 75f49d9b | Iustin Pop | <refsect2> |
196 | 75f49d9b | Iustin Pop | <title>INFO</title> |
197 | 75f49d9b | Iustin Pop | |
198 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
199 | 75f49d9b | Iustin Pop | <command>info</command> |
200 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
201 | 75f49d9b | Iustin Pop | |
202 | 75f49d9b | Iustin Pop | <para> |
203 | 75f49d9b | Iustin Pop | Shows runtime cluster information: cluster name, architecture |
204 | 75f49d9b | Iustin Pop | (32 or 64 bit), master node, node list and instance list. |
205 | 75f49d9b | Iustin Pop | </para> |
206 | 75f49d9b | Iustin Pop | </refsect2> |
207 | 75f49d9b | Iustin Pop | |
208 | 75f49d9b | Iustin Pop | <refsect2> |
209 | 75f49d9b | Iustin Pop | <title>INIT</title> |
210 | 75f49d9b | Iustin Pop | |
211 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
212 | 75f49d9b | Iustin Pop | <command>init</command> |
213 | d3b4cf9f | Iustin Pop | <sbr> |
214 | 75f49d9b | Iustin Pop | <arg>-s <replaceable>secondary_ip</replaceable></arg> |
215 | d3b4cf9f | Iustin Pop | <sbr> |
216 | f3b100e1 | Guido Trotter | <arg>-g <replaceable>vg-name</replaceable></arg> |
217 | d3b4cf9f | Iustin Pop | <sbr> |
218 | f3b100e1 | Guido Trotter | <arg>--master-netdev <replaceable>vg-name</replaceable></arg> |
219 | d3b4cf9f | Iustin Pop | <sbr> |
220 | f3b100e1 | Guido Trotter | <arg>-m <replaceable>mac-prefix</replaceable></arg> |
221 | d3b4cf9f | Iustin Pop | <sbr> |
222 | 11c05c42 | Manuel Franceschini | <arg>--no-lvm-storage</arg> |
223 | d3b4cf9f | Iustin Pop | <sbr> |
224 | 19ae0895 | Alexander Schreiber | <arg>--file-storage-dir <replaceable>dir</replaceable></arg> |
225 | d3b4cf9f | Iustin Pop | <sbr> |
226 | 19ae0895 | Alexander Schreiber | <arg>--enabled-hypervisors <replaceable>hypervisors</replaceable></arg> |
227 | d3b4cf9f | Iustin Pop | <sbr> |
228 | 19ae0895 | Alexander Schreiber | <arg>-t <replaceable>hypervisor name</replaceable></arg> |
229 | d3b4cf9f | Iustin Pop | <sbr> |
230 | 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> |
231 | d3b4cf9f | Iustin Pop | <sbr> |
232 | 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> |
233 | d3b4cf9f | Iustin Pop | <sbr> |
234 | 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> |
235 | 7d713344 | Guido Trotter | <sbr> |
236 | 75f49d9b | Iustin Pop | <arg choice="req"><replaceable>clustername</replaceable></arg> |
237 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
238 | 75f49d9b | Iustin Pop | |
239 | 75f49d9b | Iustin Pop | <para> |
240 | 75f49d9b | Iustin Pop | This commands is only run once initially on the first node of |
241 | 75f49d9b | Iustin Pop | the cluster. It will initialize the cluster configuration and |
242 | 75f49d9b | Iustin Pop | setup ssh-keys and more. |
243 | 75f49d9b | Iustin Pop | </para> |
244 | 75f49d9b | Iustin Pop | |
245 | 75f49d9b | Iustin Pop | <para> |
246 | 75f49d9b | Iustin Pop | Note that the <replaceable>clustername</replaceable> is not |
247 | 75f49d9b | Iustin Pop | any random name. It has to be resolvable to an IP address |
248 | 75f49d9b | Iustin Pop | using DNS, and it is best if you give the fully-qualified |
249 | 56db8a84 | Alexander Schreiber | domain name. This hostname must resolve to an IP address |
250 | 56db8a84 | Alexander Schreiber | reserved exclusively for this purpose. |
251 | 75f49d9b | Iustin Pop | </para> |
252 | 75f49d9b | Iustin Pop | |
253 | 75f49d9b | Iustin Pop | <para> |
254 | 75f49d9b | Iustin Pop | The cluster can run in two modes: single-home or |
255 | 75f49d9b | Iustin Pop | dual-homed. In the first case, all traffic (both public |
256 | 75f49d9b | Iustin Pop | traffic, inter-node traffic and data replication traffic) goes |
257 | 75f49d9b | Iustin Pop | over the same interface. In the dual-homed case, the data |
258 | 75f49d9b | Iustin Pop | replication traffic goes over the second network. The |
259 | 75f49d9b | Iustin Pop | <option>-s</option> option here marks the cluster as |
260 | 75f49d9b | Iustin Pop | dual-homed and its parameter represents this node's address on |
261 | 75f49d9b | Iustin Pop | the second network. If you initialise the cluster with |
262 | 75f49d9b | Iustin Pop | <option>-s</option>, all nodes added must have a secondary IP |
263 | 75f49d9b | Iustin Pop | as well. |
264 | 75f49d9b | Iustin Pop | </para> |
265 | 75f49d9b | Iustin Pop | |
266 | 75f49d9b | Iustin Pop | <para> |
267 | 75f49d9b | Iustin Pop | Note that for Ganeti it doesn't matter if the secondary |
268 | 75f49d9b | Iustin Pop | network is actually a separate physical network, or is done |
269 | 75f49d9b | Iustin Pop | using tunneling, etc. For performance reasons, it's |
270 | 75f49d9b | Iustin Pop | recommended to use a separate network, of course. |
271 | 75f49d9b | Iustin Pop | </para> |
272 | 75f49d9b | Iustin Pop | |
273 | 75f49d9b | Iustin Pop | <para> |
274 | f3b100e1 | Guido Trotter | The <option>-g</option> option will let you specify a volume group |
275 | 11c05c42 | Manuel Franceschini | different than 'xenvg' for ganeti to use when creating instance disks. |
276 | 11c05c42 | Manuel Franceschini | This volume group must have the same name on all nodes. Once the |
277 | 11c05c42 | Manuel Franceschini | cluster is initialized this can be altered by using the |
278 | 11c05c42 | Manuel Franceschini | <command>modify</command> command. If you don't want to use lvm |
279 | 11c05c42 | Manuel Franceschini | storage at all use the <option>--no-lvm-storage</option> option. |
280 | 11c05c42 | Manuel Franceschini | Once the cluster is initialized you can change this setup with the |
281 | 11c05c42 | Manuel Franceschini | <command>modify</command> command. |
282 | f3b100e1 | Guido Trotter | </para> |
283 | f3b100e1 | Guido Trotter | |
284 | f3b100e1 | Guido Trotter | <para> |
285 | f3b100e1 | Guido Trotter | The <option>--master-netdev</option> option is useful for specifying a |
286 | f3b100e1 | Guido Trotter | different interface on which the master will activate its IP address. |
287 | f3b100e1 | Guido Trotter | It's important that all nodes have this interface because you'll need |
288 | f3b100e1 | Guido Trotter | it for a master failover. |
289 | f3b100e1 | Guido Trotter | </para> |
290 | f3b100e1 | Guido Trotter | |
291 | f3b100e1 | Guido Trotter | <para> |
292 | f3b100e1 | Guido Trotter | The <option>-m</option> option will let you specify a three byte prefix |
293 | f3b100e1 | Guido Trotter | under which the virtual MAC addresses of your instances will be |
294 | f3b100e1 | Guido Trotter | generated. The prefix must be specified in the format XX:XX:XX and the |
295 | f3b100e1 | Guido Trotter | default is aa:00:00. |
296 | f3b100e1 | Guido Trotter | </para> |
297 | f3b100e1 | Guido Trotter | |
298 | 11c05c42 | Manuel Franceschini | <para> |
299 | 11c05c42 | Manuel Franceschini | The <option>--no-lvm-storage</option> allows you to initialize the |
300 | 11c05c42 | Manuel Franceschini | cluster without lvm support. This means that only instances using |
301 | 11c05c42 | Manuel Franceschini | files as storage backend will be possible to create. Once the cluster |
302 | 11c05c42 | Manuel Franceschini | is initialized you can change this setup with the |
303 | 11c05c42 | Manuel Franceschini | <command>modify</command> command. |
304 | 11c05c42 | Manuel Franceschini | </para> |
305 | 19ae0895 | Alexander Schreiber | |
306 | 19ae0895 | Alexander Schreiber | <para> |
307 | 19ae0895 | Alexander Schreiber | The <option>--file-storage-dir</option> option allows you |
308 | 19ae0895 | Alexander Schreiber | set the directory to use for storing the instance disk |
309 | 19ae0895 | Alexander Schreiber | files when using file storage as backend for instance disks. |
310 | 19ae0895 | Alexander Schreiber | </para> |
311 | 19ae0895 | Alexander Schreiber | |
312 | 19ae0895 | Alexander Schreiber | <para> |
313 | 19ae0895 | Alexander Schreiber | The <option>--enabled-hypervisors</option> option allows you |
314 | 19ae0895 | Alexander Schreiber | to set the list of hypervisors that will be enabled for |
315 | 19ae0895 | Alexander Schreiber | this cluster. Instance hypervisors can only be choosen from |
316 | 066f465d | Guido Trotter | the list of enabled hypervisors, and the first entry of this list |
317 | 066f465d | Guido Trotter | will be used by default. Currently, the following hypervisors are |
318 | 066f465d | Guido Trotter | available: |
319 | 19ae0895 | Alexander Schreiber | </para> |
320 | 19ae0895 | Alexander Schreiber | |
321 | 19ae0895 | Alexander Schreiber | <para> |
322 | 19ae0895 | Alexander Schreiber | <variablelist> |
323 | 19ae0895 | Alexander Schreiber | <varlistentry> |
324 | 19ae0895 | Alexander Schreiber | <term>xen-pvm</term> |
325 | 19ae0895 | Alexander Schreiber | <listitem> |
326 | 19ae0895 | Alexander Schreiber | <para> |
327 | 19ae0895 | Alexander Schreiber | Xen PVM hypervisor |
328 | 19ae0895 | Alexander Schreiber | </para> |
329 | 19ae0895 | Alexander Schreiber | </listitem> |
330 | 19ae0895 | Alexander Schreiber | </varlistentry> |
331 | 19ae0895 | Alexander Schreiber | <varlistentry> |
332 | 19ae0895 | Alexander Schreiber | <term>xen-hvm</term> |
333 | 19ae0895 | Alexander Schreiber | <listitem> |
334 | 19ae0895 | Alexander Schreiber | <para> |
335 | 19ae0895 | Alexander Schreiber | Xen HVM hypervisor |
336 | 19ae0895 | Alexander Schreiber | </para> |
337 | 19ae0895 | Alexander Schreiber | </listitem> |
338 | 19ae0895 | Alexander Schreiber | </varlistentry> |
339 | 19ae0895 | Alexander Schreiber | <varlistentry> |
340 | 19ae0895 | Alexander Schreiber | <term>kvm</term> |
341 | 19ae0895 | Alexander Schreiber | <listitem> |
342 | 19ae0895 | Alexander Schreiber | <para> |
343 | 19ae0895 | Alexander Schreiber | Linux KVM hypervisor |
344 | 19ae0895 | Alexander Schreiber | </para> |
345 | 19ae0895 | Alexander Schreiber | </listitem> |
346 | 19ae0895 | Alexander Schreiber | </varlistentry> |
347 | 19ae0895 | Alexander Schreiber | <varlistentry> |
348 | 19ae0895 | Alexander Schreiber | <term>fake</term> |
349 | 19ae0895 | Alexander Schreiber | <listitem> |
350 | 19ae0895 | Alexander Schreiber | <para> |
351 | 19ae0895 | Alexander Schreiber | fake hypervisor for development/testing |
352 | 19ae0895 | Alexander Schreiber | </para> |
353 | 19ae0895 | Alexander Schreiber | </listitem> |
354 | 19ae0895 | Alexander Schreiber | </varlistentry> |
355 | 19ae0895 | Alexander Schreiber | </variablelist> |
356 | 19ae0895 | Alexander Schreiber | </para> |
357 | 19ae0895 | Alexander Schreiber | |
358 | 19ae0895 | Alexander Schreiber | <para> |
359 | 19ae0895 | Alexander Schreiber | Either a single hypervisor name or a comma-separated list of |
360 | 19ae0895 | Alexander Schreiber | hypervisor names can be specified. If this option is not |
361 | 19ae0895 | Alexander Schreiber | specified, only the xen-pvm hypervisor is enabled by default. |
362 | 19ae0895 | Alexander Schreiber | </para> |
363 | 19ae0895 | Alexander Schreiber | |
364 | 19ae0895 | Alexander Schreiber | <para> |
365 | 280b79b3 | Guido Trotter | The <option>--backend-parameters</option> option allows you to set |
366 | 19ae0895 | Alexander Schreiber | the default backend parameters for the cluster. The parameter |
367 | 19ae0895 | Alexander Schreiber | format is a comma-separated list of key=value pairs with the |
368 | 19ae0895 | Alexander Schreiber | following supported keys: |
369 | 19ae0895 | Alexander Schreiber | </para> |
370 | 19ae0895 | Alexander Schreiber | |
371 | 19ae0895 | Alexander Schreiber | <para> |
372 | 19ae0895 | Alexander Schreiber | <variablelist> |
373 | 19ae0895 | Alexander Schreiber | <varlistentry> |
374 | 19ae0895 | Alexander Schreiber | <term>vcpus</term> |
375 | 19ae0895 | Alexander Schreiber | <listitem> |
376 | 19ae0895 | Alexander Schreiber | <para> |
377 | 19ae0895 | Alexander Schreiber | Number of VCPUs to set for an instance by default, must |
378 | 19ae0895 | Alexander Schreiber | be an integer, will be set to 1 if no specified. |
379 | 19ae0895 | Alexander Schreiber | </para> |
380 | 19ae0895 | Alexander Schreiber | </listitem> |
381 | 19ae0895 | Alexander Schreiber | </varlistentry> |
382 | 19ae0895 | Alexander Schreiber | <varlistentry> |
383 | 19ae0895 | Alexander Schreiber | <term>memory</term> |
384 | 19ae0895 | Alexander Schreiber | <listitem> |
385 | 19ae0895 | Alexander Schreiber | <para> |
386 | 19ae0895 | Alexander Schreiber | Amount of memory to allocate for an instance by default, |
387 | 19ae0895 | Alexander Schreiber | can be either an integer or an integer followed by a |
388 | 19ae0895 | Alexander Schreiber | unit (M for mebibytes and G for gibibytes are |
389 | 19ae0895 | Alexander Schreiber | supported), will be set to 128M if not specified. |
390 | 19ae0895 | Alexander Schreiber | </para> |
391 | 19ae0895 | Alexander Schreiber | </listitem> |
392 | 19ae0895 | Alexander Schreiber | </varlistentry> |
393 | 19ae0895 | Alexander Schreiber | <varlistentry> |
394 | 19ae0895 | Alexander Schreiber | <term>auto_balance</term> |
395 | 19ae0895 | Alexander Schreiber | <listitem> |
396 | 19ae0895 | Alexander Schreiber | <para> |
397 | 19ae0895 | Alexander Schreiber | Value of the auto_balance flag for instances to use by |
398 | 19ae0895 | Alexander Schreiber | default, will be set to true if not specified. |
399 | 19ae0895 | Alexander Schreiber | </para> |
400 | 19ae0895 | Alexander Schreiber | </listitem> |
401 | 19ae0895 | Alexander Schreiber | </varlistentry> |
402 | 19ae0895 | Alexander Schreiber | </variablelist> |
403 | 19ae0895 | Alexander Schreiber | </para> |
404 | 19ae0895 | Alexander Schreiber | |
405 | 19ae0895 | Alexander Schreiber | <para> |
406 | 19ae0895 | Alexander Schreiber | The <option>--hypervisor-parameters</option> option allows you |
407 | 19ae0895 | Alexander Schreiber | to set default hypervisor specific parameters for the |
408 | 19ae0895 | Alexander Schreiber | cluster. The format of this option is the name of the |
409 | 19ae0895 | Alexander Schreiber | hypervisor, followed by a colon and a comma-separated list of |
410 | d3b4cf9f | Iustin Pop | key=value pairs. The keys available for each hypervisors are |
411 | d3b4cf9f | Iustin Pop | detailed int the <citerefentry> |
412 | d3b4cf9f | Iustin Pop | <refentrytitle>gnt-instance</refentrytitle> |
413 | d3b4cf9f | Iustin Pop | <manvolnum>8</manvolnum> </citerefentry> man page, in the |
414 | d3b4cf9f | Iustin Pop | <command>add</command> command. |
415 | 19ae0895 | Alexander Schreiber | </para> |
416 | 19ae0895 | Alexander Schreiber | |
417 | 7d713344 | Guido Trotter | <para> |
418 | 7d713344 | Guido Trotter | The <option>--nic-parameters</option> option allows you to set |
419 | 7d713344 | Guido Trotter | the default nic parameters for the cluster. The parameter |
420 | 7d713344 | Guido Trotter | format is a comma-separated list of key=value pairs with the |
421 | 7d713344 | Guido Trotter | following supported keys: |
422 | 7d713344 | Guido Trotter | <variablelist> |
423 | 7d713344 | Guido Trotter | <varlistentry> |
424 | 7d713344 | Guido Trotter | <term>mode</term> |
425 | 7d713344 | Guido Trotter | <listitem> |
426 | 7d713344 | Guido Trotter | <para> |
427 | 7d713344 | Guido Trotter | The default nic mode, 'routed' or 'bridged'. |
428 | 7d713344 | Guido Trotter | </para> |
429 | 7d713344 | Guido Trotter | </listitem> |
430 | 7d713344 | Guido Trotter | </varlistentry> |
431 | 7d713344 | Guido Trotter | <varlistentry> |
432 | 7d713344 | Guido Trotter | <term>link</term> |
433 | 7d713344 | Guido Trotter | <listitem> |
434 | 7d713344 | Guido Trotter | <para> |
435 | 7d713344 | Guido Trotter | In bridged mode the default NIC bridge. In routed mode |
436 | 7d713344 | Guido Trotter | it represents an hypervisor-vif-script dependent value |
437 | 7d713344 | Guido Trotter | to allow different instance groups (perhaps via multiple |
438 | 7d713344 | Guido Trotter | routing tables) |
439 | 7d713344 | Guido Trotter | </para> |
440 | 7d713344 | Guido Trotter | </listitem> |
441 | 7d713344 | Guido Trotter | </varlistentry> |
442 | 7d713344 | Guido Trotter | </variablelist> |
443 | 7d713344 | Guido Trotter | </para> |
444 | 7d713344 | Guido Trotter | |
445 | 75f49d9b | Iustin Pop | </refsect2> |
446 | 75f49d9b | Iustin Pop | |
447 | 75f49d9b | Iustin Pop | <refsect2> |
448 | cc425644 | Iustin Pop | <title>LIST-TAGS</title> |
449 | cc425644 | Iustin Pop | |
450 | cc425644 | Iustin Pop | <cmdsynopsis> |
451 | cc425644 | Iustin Pop | <command>list-tags</command> |
452 | cc425644 | Iustin Pop | </cmdsynopsis> |
453 | cc425644 | Iustin Pop | |
454 | cc425644 | Iustin Pop | <para>List the tags of the cluster.</para> |
455 | cc425644 | Iustin Pop | </refsect2> |
456 | cc425644 | Iustin Pop | |
457 | cc425644 | Iustin Pop | <refsect2> |
458 | 75f49d9b | Iustin Pop | <title>MASTERFAILOVER</title> |
459 | 75f49d9b | Iustin Pop | |
460 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
461 | 75f49d9b | Iustin Pop | <command>masterfailover</command> |
462 | 8e2524c3 | Guido Trotter | <arg>--no-voting</arg> |
463 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
464 | 75f49d9b | Iustin Pop | |
465 | 75f49d9b | Iustin Pop | <para> |
466 | 75f49d9b | Iustin Pop | Failover the master role to the current node. |
467 | 75f49d9b | Iustin Pop | </para> |
468 | 8e2524c3 | Guido Trotter | |
469 | 8e2524c3 | Guido Trotter | <para> |
470 | 8e2524c3 | Guido Trotter | The <option>--no-voting</option> option skips the remote node agreement |
471 | 8e2524c3 | Guido Trotter | checks. This is dangerous, but necessary in some cases (for example |
472 | 8e2524c3 | Guido Trotter | failing over the master role in a 2 node cluster with the original master |
473 | 8e2524c3 | Guido Trotter | down). If the original master then comes up, it won't be able to start |
474 | 8e2524c3 | Guido Trotter | its master daemon because it won't have enough votes, but so won't the |
475 | 8e2524c3 | Guido Trotter | new master, if the master daemon ever needs a restart. You can pass |
476 | 8e2524c3 | Guido Trotter | --no-voting to ganeti-masterd on the new master to solve this problem, |
477 | 8e2524c3 | Guido Trotter | and gnt-cluster redist-conf to make sure the cluster is consistent again. |
478 | 8e2524c3 | Guido Trotter | </para> |
479 | 8e2524c3 | Guido Trotter | |
480 | 75f49d9b | Iustin Pop | </refsect2> |
481 | 75f49d9b | Iustin Pop | |
482 | 75f49d9b | Iustin Pop | <refsect2> |
483 | 11c05c42 | Manuel Franceschini | <title>MODIFY</title> |
484 | 11c05c42 | Manuel Franceschini | |
485 | 11c05c42 | Manuel Franceschini | <cmdsynopsis> |
486 | 11c05c42 | Manuel Franceschini | <command>modify</command> |
487 | d3b4cf9f | Iustin Pop | <sbr> |
488 | 11c05c42 | Manuel Franceschini | <arg choice="opt">-g <replaceable>vg-name</replaceable></arg> |
489 | d3b4cf9f | Iustin Pop | <sbr> |
490 | 11c05c42 | Manuel Franceschini | <arg choice="opt">--no-lvm-storage</arg> |
491 | d3b4cf9f | Iustin Pop | <sbr> |
492 | 18fb5e1d | Alexander Schreiber | <arg choice="opt">--enabled-hypervisors |
493 | 18fb5e1d | Alexander Schreiber | <replaceable>hypervisors</replaceable></arg> |
494 | d3b4cf9f | Iustin Pop | <sbr> |
495 | 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> |
496 | d3b4cf9f | Iustin Pop | <sbr> |
497 | 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> |
498 | d3b4cf9f | Iustin Pop | <sbr> |
499 | 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> |
500 | 7d713344 | Guido Trotter | <sbr> |
501 | d3b4cf9f | Iustin Pop | <arg>-C <replaceable>candidate_pool_size</replaceable></arg> |
502 | 18fb5e1d | Alexander Schreiber | |
503 | 11c05c42 | Manuel Franceschini | </cmdsynopsis> |
504 | 11c05c42 | Manuel Franceschini | |
505 | 11c05c42 | Manuel Franceschini | <para> |
506 | 11c05c42 | Manuel Franceschini | Modify the options for the cluster. |
507 | 11c05c42 | Manuel Franceschini | </para> |
508 | 11c05c42 | Manuel Franceschini | |
509 | 11c05c42 | Manuel Franceschini | <para> |
510 | 18fb5e1d | Alexander Schreiber | The <option>-g</option>, <option>--no-lvm-storarge</option>, |
511 | 18fb5e1d | Alexander Schreiber | <option>--enabled-hypervisors</option>, |
512 | 7d713344 | Guido Trotter | <option>--hypervisor-parameters</option>, |
513 | 7d713344 | Guido Trotter | <option>--backend-parameters</option> and |
514 | 7d713344 | Guido Trotter | <option>--nic-parameters</option> and options are |
515 | 11c05c42 | Manuel Franceschini | described in the <command>init</command> command. |
516 | 11c05c42 | Manuel Franceschini | </para> |
517 | d3b4cf9f | Iustin Pop | |
518 | d3b4cf9f | Iustin Pop | <para> |
519 | d3b4cf9f | Iustin Pop | The <option>-C</option> options specifies the |
520 | d3b4cf9f | Iustin Pop | <varname>candidate_pool_size</varname> cluster parameter. This |
521 | d3b4cf9f | Iustin Pop | is the number of nodes that the master will try to keep as |
522 | d3b4cf9f | Iustin Pop | <literal>master_candidates</literal>. For more details about |
523 | d3b4cf9f | Iustin Pop | this role and other node roles, see the <citerefentry> |
524 | d3b4cf9f | Iustin Pop | <refentrytitle>ganeti</refentrytitle><manvolnum>7</manvolnum> |
525 | d3b4cf9f | Iustin Pop | </citerefentry>. If you increase the size, the master will |
526 | d3b4cf9f | Iustin Pop | automatically promote as many nodes as required and possible |
527 | d3b4cf9f | Iustin Pop | to reach the intended number. |
528 | d3b4cf9f | Iustin Pop | </para> |
529 | 11c05c42 | Manuel Franceschini | </refsect2> |
530 | 11c05c42 | Manuel Franceschini | |
531 | 11c05c42 | Manuel Franceschini | <refsect2> |
532 | 18fb5e1d | Alexander Schreiber | <title>QUEUE</title> |
533 | 18fb5e1d | Alexander Schreiber | |
534 | 18fb5e1d | Alexander Schreiber | <cmdsynopsis> |
535 | 18fb5e1d | Alexander Schreiber | <command>queue</command> |
536 | 18fb5e1d | Alexander Schreiber | <arg choice="opt">drain</arg> |
537 | 18fb5e1d | Alexander Schreiber | <arg choice="opt">undrain</arg> |
538 | 18fb5e1d | Alexander Schreiber | <arg choice="opt">info</arg> |
539 | 18fb5e1d | Alexander Schreiber | |
540 | 18fb5e1d | Alexander Schreiber | </cmdsynopsis> |
541 | 18fb5e1d | Alexander Schreiber | |
542 | 18fb5e1d | Alexander Schreiber | <para> |
543 | 18fb5e1d | Alexander Schreiber | Change job queue properties. |
544 | 18fb5e1d | Alexander Schreiber | </para> |
545 | 18fb5e1d | Alexander Schreiber | |
546 | 18fb5e1d | Alexander Schreiber | <para> |
547 | 18fb5e1d | Alexander Schreiber | The <option>drain</option> option sets the drain flag on the |
548 | 18fb5e1d | Alexander Schreiber | job queue. No new jobs will be accepted, but jobs already in |
549 | 18fb5e1d | Alexander Schreiber | the queue will be processed. |
550 | 18fb5e1d | Alexander Schreiber | </para> |
551 | 18fb5e1d | Alexander Schreiber | |
552 | 18fb5e1d | Alexander Schreiber | <para> |
553 | 18fb5e1d | Alexander Schreiber | The <option>undrain</option> will unset the drain flag on the |
554 | 18fb5e1d | Alexander Schreiber | job queue. New jobs will be accepted. |
555 | 18fb5e1d | Alexander Schreiber | </para> |
556 | 18fb5e1d | Alexander Schreiber | |
557 | 18fb5e1d | Alexander Schreiber | <para> |
558 | 18fb5e1d | Alexander Schreiber | The <option>info</option> option shows the properties of the |
559 | 18fb5e1d | Alexander Schreiber | job queue. |
560 | 18fb5e1d | Alexander Schreiber | </para> |
561 | 18fb5e1d | Alexander Schreiber | </refsect2> |
562 | 18fb5e1d | Alexander Schreiber | |
563 | 18fb5e1d | Alexander Schreiber | <refsect2> |
564 | d3b4cf9f | Iustin Pop | <title>redist-conf</title> |
565 | d3b4cf9f | Iustin Pop | <cmdsynopsis> |
566 | d3b4cf9f | Iustin Pop | <command>redist-conf</command> |
567 | d3b4cf9f | Iustin Pop | <arg>--submit</arg> |
568 | d3b4cf9f | Iustin Pop | </cmdsynopsis> |
569 | d3b4cf9f | Iustin Pop | |
570 | d3b4cf9f | Iustin Pop | <para> |
571 | d3b4cf9f | Iustin Pop | This command forces a full push of configuration files from |
572 | d3b4cf9f | Iustin Pop | the master node to the other nodes in the cluster. This is |
573 | d3b4cf9f | Iustin Pop | normally not needed, but can be run if the |
574 | d3b4cf9f | Iustin Pop | <command>verify</command> complains about configuration |
575 | d3b4cf9f | Iustin Pop | mismatches. |
576 | d3b4cf9f | Iustin Pop | </para> |
577 | d3b4cf9f | Iustin Pop | |
578 | d3b4cf9f | Iustin Pop | <para> |
579 | d3b4cf9f | Iustin Pop | The <option>--submit</option> option is used to send the job |
580 | d3b4cf9f | Iustin Pop | to the master daemon but not wait for its completion. The job |
581 | d3b4cf9f | Iustin Pop | ID will be shown so that it can be examined via |
582 | d3b4cf9f | Iustin Pop | <command>gnt-job info</command>. |
583 | d3b4cf9f | Iustin Pop | </para> |
584 | d3b4cf9f | Iustin Pop | |
585 | d3b4cf9f | Iustin Pop | </refsect2> |
586 | d3b4cf9f | Iustin Pop | <refsect2> |
587 | cc425644 | Iustin Pop | <title>REMOVE-TAGS</title> |
588 | cc425644 | Iustin Pop | |
589 | cc425644 | Iustin Pop | <cmdsynopsis> |
590 | cc425644 | Iustin Pop | <command>remove-tags</command> |
591 | 810c50b7 | Iustin Pop | <arg choice="opt">--from <replaceable>file</replaceable></arg> |
592 | cc425644 | Iustin Pop | <arg choice="req" |
593 | cc425644 | Iustin Pop | rep="repeat"><replaceable>tag</replaceable></arg> |
594 | cc425644 | Iustin Pop | </cmdsynopsis> |
595 | cc425644 | Iustin Pop | |
596 | cc425644 | Iustin Pop | <para> |
597 | cc425644 | Iustin Pop | Remove tags from the cluster. If any of the tags are not |
598 | cc425644 | Iustin Pop | existing on the cluster, the entire operation will abort. |
599 | cc425644 | Iustin Pop | </para> |
600 | 810c50b7 | Iustin Pop | |
601 | 810c50b7 | Iustin Pop | <para> |
602 | 810c50b7 | Iustin Pop | If the <option>--from</option> option is given, the list of |
603 | 810c50b7 | Iustin Pop | tags will be extended with the contents of that file (each |
604 | 810c50b7 | Iustin Pop | line becomes a tag). In this case, there is not need to pass |
605 | 810c50b7 | Iustin Pop | tags on the command line (if you do, both sources will be |
606 | 810c50b7 | Iustin Pop | used). A file name of - will be interpreted as stdin. |
607 | 810c50b7 | Iustin Pop | </para> |
608 | cc425644 | Iustin Pop | </refsect2> |
609 | cc425644 | Iustin Pop | |
610 | cc425644 | Iustin Pop | <refsect2> |
611 | 75f49d9b | Iustin Pop | <title>RENAME</title> |
612 | 75f49d9b | Iustin Pop | |
613 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
614 | 75f49d9b | Iustin Pop | <command>rename</command> |
615 | 75f49d9b | Iustin Pop | <arg>-f</arg> |
616 | 75f49d9b | Iustin Pop | <arg choice="req"><replaceable>name</replaceable></arg> |
617 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
618 | 75f49d9b | Iustin Pop | |
619 | 75f49d9b | Iustin Pop | <para> |
620 | 75f49d9b | Iustin Pop | Renames the cluster and in the process updates the master IP |
621 | 75f49d9b | Iustin Pop | address to the one the new name resolves to. At least one of |
622 | 75f49d9b | Iustin Pop | either the name or the IP address must be different, otherwise |
623 | 75f49d9b | Iustin Pop | the operation will be aborted. |
624 | 75f49d9b | Iustin Pop | </para> |
625 | 75f49d9b | Iustin Pop | |
626 | 75f49d9b | Iustin Pop | <para> |
627 | 75f49d9b | Iustin Pop | Note that since this command can be dangerous (especially when |
628 | 75f49d9b | Iustin Pop | run over SSH), the command will require confirmation unless |
629 | 75f49d9b | Iustin Pop | run with the <option>-f</option> option. |
630 | 75f49d9b | Iustin Pop | </para> |
631 | 75f49d9b | Iustin Pop | </refsect2> |
632 | 75f49d9b | Iustin Pop | |
633 | 75f49d9b | Iustin Pop | <refsect2> |
634 | 73415719 | Iustin Pop | <title>SEARCH-TAGS</title> |
635 | 73415719 | Iustin Pop | |
636 | 73415719 | Iustin Pop | <cmdsynopsis> |
637 | 73415719 | Iustin Pop | <command>search-tags</command> |
638 | 73415719 | Iustin Pop | <arg choice="req"><replaceable>pattern</replaceable></arg> |
639 | 73415719 | Iustin Pop | </cmdsynopsis> |
640 | 73415719 | Iustin Pop | |
641 | 73415719 | Iustin Pop | <para> |
642 | 73415719 | Iustin Pop | Searches the tags on all objects in the cluster (the cluster |
643 | 73415719 | Iustin Pop | itself, the nodes and the instances) for a given pattern. The |
644 | 73415719 | Iustin Pop | pattern is interpreted as a regular expression and a search |
645 | 73415719 | Iustin Pop | will be done on it (i.e. the given pattern is not anchored to |
646 | 73415719 | Iustin Pop | the beggining of the string; if you want that, prefix the |
647 | 73415719 | Iustin Pop | pattern with <literal>^</literal>). |
648 | 73415719 | Iustin Pop | </para> |
649 | 73415719 | Iustin Pop | |
650 | 73415719 | Iustin Pop | <para> |
651 | 73415719 | Iustin Pop | If no tags are matching the pattern, the exit code of the |
652 | 73415719 | Iustin Pop | command will be one. If there is at least one match, the exit |
653 | 73415719 | Iustin Pop | code will be zero. Each match is listed on one line, the |
654 | 73415719 | Iustin Pop | object and the tag separated by a space. The cluster will be |
655 | 73415719 | Iustin Pop | listed as <filename>/cluster</filename>, a node will be listed |
656 | 73415719 | Iustin Pop | as |
657 | 73415719 | Iustin Pop | <filename>/nodes/<replaceable>name</replaceable></filename>, |
658 | 73415719 | Iustin Pop | and an instance as |
659 | 73415719 | Iustin Pop | <filename>/instances/<replaceable>name</replaceable></filename>. |
660 | 73415719 | Iustin Pop | Example: |
661 | 73415719 | Iustin Pop | </para> |
662 | 73415719 | Iustin Pop | <screen> |
663 | 2f49d1d2 | Guido Trotter | # gnt-cluster search-tags time |
664 | 73415719 | Iustin Pop | /cluster ctime:2007-09-01 |
665 | 73415719 | Iustin Pop | /nodes/node1.example.com mtime:2007-10-04 |
666 | 73415719 | Iustin Pop | </screen> |
667 | 73415719 | Iustin Pop | </refsect2> |
668 | 73415719 | Iustin Pop | |
669 | 73415719 | Iustin Pop | <refsect2> |
670 | 75f49d9b | Iustin Pop | <title>VERIFY</title> |
671 | 75f49d9b | Iustin Pop | |
672 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
673 | 75f49d9b | Iustin Pop | <command>verify</command> |
674 | 3cf7c9fa | Guido Trotter | <arg choice="opt">--no-nplus1-mem</arg> |
675 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
676 | 75f49d9b | Iustin Pop | |
677 | 75f49d9b | Iustin Pop | <para> |
678 | 75f49d9b | Iustin Pop | Verify correctness of cluster configuration. This is safe with |
679 | 75f49d9b | Iustin Pop | respect to running instances, and incurs no downtime of the |
680 | 75f49d9b | Iustin Pop | instances. |
681 | 75f49d9b | Iustin Pop | </para> |
682 | 3cf7c9fa | Guido Trotter | |
683 | 3cf7c9fa | Guido Trotter | <para> |
684 | 3cf7c9fa | Guido Trotter | If the <option>--no-nplus1-mem</option> option is given, ganeti won't |
685 | 3cf7c9fa | Guido Trotter | check whether if it loses a node it can restart all the instances on |
686 | 3cf7c9fa | Guido Trotter | their secondaries (and report an error otherwise). |
687 | 3cf7c9fa | Guido Trotter | </para> |
688 | 75f49d9b | Iustin Pop | </refsect2> |
689 | 75f49d9b | Iustin Pop | |
690 | 75f49d9b | Iustin Pop | <refsect2> |
691 | ed2d1409 | Iustin Pop | <title>VERIFY-DISKS</title> |
692 | ed2d1409 | Iustin Pop | |
693 | ed2d1409 | Iustin Pop | <cmdsynopsis> |
694 | ed2d1409 | Iustin Pop | <command>verify-disks</command> |
695 | ed2d1409 | Iustin Pop | </cmdsynopsis> |
696 | ed2d1409 | Iustin Pop | |
697 | ed2d1409 | Iustin Pop | <para> |
698 | ed2d1409 | Iustin Pop | The command checks which instances have degraded DRBD disks |
699 | ed2d1409 | Iustin Pop | and activates the disks of those instances. |
700 | ed2d1409 | Iustin Pop | </para> |
701 | ed2d1409 | Iustin Pop | |
702 | ed2d1409 | Iustin Pop | <para> |
703 | ed2d1409 | Iustin Pop | This command is run from the <command>ganeti-watcher</command> |
704 | ed2d1409 | Iustin Pop | tool, which also has a different, complementary algorithm for |
705 | ed2d1409 | Iustin Pop | doing this check. Together, these two should ensure that DRBD |
706 | ed2d1409 | Iustin Pop | disks are kept consistent. |
707 | ed2d1409 | Iustin Pop | </para> |
708 | ed2d1409 | Iustin Pop | </refsect2> |
709 | ed2d1409 | Iustin Pop | |
710 | ed2d1409 | Iustin Pop | <refsect2> |
711 | 75f49d9b | Iustin Pop | <title>VERSION</title> |
712 | 75f49d9b | Iustin Pop | |
713 | 75f49d9b | Iustin Pop | <cmdsynopsis> |
714 | 75f49d9b | Iustin Pop | <command>version</command> |
715 | 75f49d9b | Iustin Pop | </cmdsynopsis> |
716 | 75f49d9b | Iustin Pop | |
717 | 75f49d9b | Iustin Pop | <para> |
718 | 75f49d9b | Iustin Pop | Show the cluster version. |
719 | 75f49d9b | Iustin Pop | </para> |
720 | 75f49d9b | Iustin Pop | </refsect2> |
721 | a8083063 | Iustin Pop | |
722 | a8083063 | Iustin Pop | </refsect1> |
723 | a8083063 | Iustin Pop | |
724 | a8083063 | Iustin Pop | &footer; |
725 | a8083063 | Iustin Pop | |
726 | a8083063 | Iustin Pop | </refentry> |
727 | a8083063 | Iustin Pop | |
728 | a8083063 | Iustin Pop | <!-- Keep this comment at the end of the file |
729 | a8083063 | Iustin Pop | Local variables: |
730 | a8083063 | Iustin Pop | mode: sgml |
731 | a8083063 | Iustin Pop | sgml-omittag:t |
732 | a8083063 | Iustin Pop | sgml-shorttag:t |
733 | a8083063 | Iustin Pop | sgml-minimize-attributes:nil |
734 | a8083063 | Iustin Pop | sgml-always-quote-attributes:t |
735 | a8083063 | Iustin Pop | sgml-indent-step:2 |
736 | a8083063 | Iustin Pop | sgml-indent-data:t |
737 | a8083063 | Iustin Pop | sgml-parent-document:nil |
738 | a8083063 | Iustin Pop | sgml-default-dtd-file:nil |
739 | a8083063 | Iustin Pop | sgml-exposed-tags:nil |
740 | a8083063 | Iustin Pop | sgml-local-catalogs:nil |
741 | a8083063 | Iustin Pop | sgml-local-ecat-files:nil |
742 | a8083063 | Iustin Pop | End: |
743 | a8083063 | Iustin Pop | --> |