root / man / gnt-debug.sgml @ e7441f80
History | View | Annotate | Download (8.8 kB)
1 | d3b4cf9f | Iustin Pop | <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ |
---|---|---|---|
2 | d3b4cf9f | Iustin Pop | |
3 | d3b4cf9f | Iustin Pop | <!-- Fill in your name for FIRSTNAME and SURNAME. --> |
4 | d3b4cf9f | Iustin Pop | <!-- Please adjust the date whenever revising the manpage. --> |
5 | e0897adf | Michael Hanselmann | <!ENTITY dhdate "<date>June 08, 2010</date>"> |
6 | d3b4cf9f | Iustin Pop | <!-- SECTION should be 1-8, maybe w/ subsection other parameters are |
7 | d3b4cf9f | Iustin Pop | allowed: see man(7), man(1). --> |
8 | d3b4cf9f | Iustin Pop | <!ENTITY dhsection "<manvolnum>8</manvolnum>"> |
9 | d3b4cf9f | Iustin Pop | <!ENTITY dhucpackage "<refentrytitle>gnt-debug</refentrytitle>"> |
10 | d3b4cf9f | Iustin Pop | <!ENTITY dhpackage "gnt-debug"> |
11 | d3b4cf9f | Iustin Pop | |
12 | d3b4cf9f | Iustin Pop | <!ENTITY debian "<productname>Debian</productname>"> |
13 | d3b4cf9f | Iustin Pop | <!ENTITY gnu "<acronym>GNU</acronym>"> |
14 | d3b4cf9f | Iustin Pop | <!ENTITY gpl "&gnu; <acronym>GPL</acronym>"> |
15 | d3b4cf9f | Iustin Pop | <!ENTITY footer SYSTEM "footer.sgml"> |
16 | d3b4cf9f | Iustin Pop | ]> |
17 | d3b4cf9f | Iustin Pop | |
18 | d3b4cf9f | Iustin Pop | <refentry> |
19 | d3b4cf9f | Iustin Pop | <refentryinfo> |
20 | d3b4cf9f | Iustin Pop | <copyright> |
21 | d3b4cf9f | Iustin Pop | <year>2006</year> |
22 | d3b4cf9f | Iustin Pop | <year>2007</year> |
23 | d3b4cf9f | Iustin Pop | <year>2008</year> |
24 | d3b4cf9f | Iustin Pop | <year>2009</year> |
25 | e0897adf | Michael Hanselmann | <year>2010</year> |
26 | d3b4cf9f | Iustin Pop | <holder>Google Inc.</holder> |
27 | d3b4cf9f | Iustin Pop | </copyright> |
28 | d3b4cf9f | Iustin Pop | &dhdate; |
29 | d3b4cf9f | Iustin Pop | </refentryinfo> |
30 | d3b4cf9f | Iustin Pop | <refmeta> |
31 | d3b4cf9f | Iustin Pop | &dhucpackage; |
32 | d3b4cf9f | Iustin Pop | |
33 | d3b4cf9f | Iustin Pop | &dhsection; |
34 | e7441f80 | Miguel Di Ciurcio Filho | <refmiscinfo>Ganeti 2.3</refmiscinfo> |
35 | d3b4cf9f | Iustin Pop | </refmeta> |
36 | d3b4cf9f | Iustin Pop | <refnamediv> |
37 | d3b4cf9f | Iustin Pop | <refname>&dhpackage;</refname> |
38 | d3b4cf9f | Iustin Pop | |
39 | e0897adf | Michael Hanselmann | <refpurpose>Debug commands</refpurpose> |
40 | d3b4cf9f | Iustin Pop | </refnamediv> |
41 | d3b4cf9f | Iustin Pop | <refsynopsisdiv> |
42 | d3b4cf9f | Iustin Pop | <cmdsynopsis> |
43 | d3b4cf9f | Iustin Pop | <command>&dhpackage; </command> |
44 | d3b4cf9f | Iustin Pop | |
45 | d3b4cf9f | Iustin Pop | <arg choice="req">command</arg> |
46 | d3b4cf9f | Iustin Pop | <arg>arguments...</arg> |
47 | d3b4cf9f | Iustin Pop | </cmdsynopsis> |
48 | d3b4cf9f | Iustin Pop | </refsynopsisdiv> |
49 | d3b4cf9f | Iustin Pop | <refsect1> |
50 | d3b4cf9f | Iustin Pop | <title>DESCRIPTION</title> |
51 | d3b4cf9f | Iustin Pop | |
52 | d3b4cf9f | Iustin Pop | <para> |
53 | d3b4cf9f | Iustin Pop | The <command>&dhpackage;</command> is used for debugging the |
54 | e0897adf | Michael Hanselmann | Ganeti system. |
55 | d3b4cf9f | Iustin Pop | </para> |
56 | d3b4cf9f | Iustin Pop | |
57 | d3b4cf9f | Iustin Pop | </refsect1> |
58 | d3b4cf9f | Iustin Pop | <refsect1> |
59 | d3b4cf9f | Iustin Pop | <title>COMMANDS</title> |
60 | d3b4cf9f | Iustin Pop | |
61 | d3b4cf9f | Iustin Pop | <refsect2> |
62 | d3b4cf9f | Iustin Pop | <title>ALLOCATOR</title> |
63 | d3b4cf9f | Iustin Pop | |
64 | d3b4cf9f | Iustin Pop | <cmdsynopsis> |
65 | d3b4cf9f | Iustin Pop | <command>allocator</command> |
66 | d3b4cf9f | Iustin Pop | <arg>--debug</arg> |
67 | d3b4cf9f | Iustin Pop | <arg>--dir <replaceable>DIRECTION</replaceable></arg> |
68 | d3b4cf9f | Iustin Pop | <arg choice="req">--algorithm <replaceable>ALLOCATOR</replaceable> |
69 | d3b4cf9f | Iustin Pop | </arg> |
70 | d3b4cf9f | Iustin Pop | <arg>--mode <replaceable>MODE</replaceable></arg> |
71 | d3b4cf9f | Iustin Pop | <arg>--mem <replaceable>MEMORY</replaceable></arg> |
72 | d3b4cf9f | Iustin Pop | <arg>--disks <replaceable>DISKS</replaceable></arg> |
73 | d3b4cf9f | Iustin Pop | <arg>--disk-template <replaceable>TEMPLATE</replaceable></arg> |
74 | d3b4cf9f | Iustin Pop | <arg>--nics <replaceable>NICS</replaceable></arg> |
75 | d3b4cf9f | Iustin Pop | <arg>--os-type <replaceable>OS</replaceable></arg> |
76 | d3b4cf9f | Iustin Pop | <arg>--vcpus <replaceable>VCPUS</replaceable></arg> |
77 | d3b4cf9f | Iustin Pop | <arg>--tags <replaceable>TAGS</replaceable></arg> |
78 | d3b4cf9f | Iustin Pop | <arg choice="req"><replaceable>instance</replaceable></arg> |
79 | d3b4cf9f | Iustin Pop | </cmdsynopsis> |
80 | d3b4cf9f | Iustin Pop | |
81 | d3b4cf9f | Iustin Pop | <para> |
82 | d3b4cf9f | Iustin Pop | Executes a test run of the <emphasis>iallocator</emphasis> framework. |
83 | d3b4cf9f | Iustin Pop | </para> |
84 | d3b4cf9f | Iustin Pop | |
85 | d3b4cf9f | Iustin Pop | <para> |
86 | d3b4cf9f | Iustin Pop | The command will build input for a given iallocator script |
87 | d3b4cf9f | Iustin Pop | (named with the <option>--algorithm</option> option), and |
88 | d3b4cf9f | Iustin Pop | either show this input data (if |
89 | d3b4cf9f | Iustin Pop | <replaceable>DIRECTION</replaceable> is |
90 | d3b4cf9f | Iustin Pop | <emphasis>in</emphasis>) or run the iallocator script and show |
91 | d3b4cf9f | Iustin Pop | its output (if <replaceable>DIRECTION</replaceable> is |
92 | d3b4cf9f | Iustin Pop | <emphasis>out</emphasis>). |
93 | d3b4cf9f | Iustin Pop | </para> |
94 | d3b4cf9f | Iustin Pop | |
95 | d3b4cf9f | Iustin Pop | <para> |
96 | d3b4cf9f | Iustin Pop | If the <replaceable>MODE</replaceable> is |
97 | d3b4cf9f | Iustin Pop | <emphasis>allocate</emphasis>, then an instance definition is |
98 | d3b4cf9f | Iustin Pop | built from the other arguments and sent to the script, |
99 | d3b4cf9f | Iustin Pop | otherwise (<replaceable>MODE</replaceable> is |
100 | d3b4cf9f | Iustin Pop | <emphasis>relocate</emphasis>) an existing instance name must |
101 | d3b4cf9f | Iustin Pop | be passed as the first argument. |
102 | d3b4cf9f | Iustin Pop | </para> |
103 | d3b4cf9f | Iustin Pop | |
104 | d3b4cf9f | Iustin Pop | <para> |
105 | e0897adf | Michael Hanselmann | This build of Ganeti will look for iallocator scripts in the |
106 | d3b4cf9f | Iustin Pop | following directories: <filename |
107 | d3b4cf9f | Iustin Pop | class="directory">@CUSTOM_IALLOCATOR_SEARCH_PATH@</filename>; |
108 | d3b4cf9f | Iustin Pop | for more details about this framework, see the HTML or PDF |
109 | d3b4cf9f | Iustin Pop | documentation. |
110 | d3b4cf9f | Iustin Pop | </para> |
111 | 949bdabe | Iustin Pop | </refsect2> |
112 | d3b4cf9f | Iustin Pop | |
113 | d3b4cf9f | Iustin Pop | <refsect2> |
114 | d3b4cf9f | Iustin Pop | <title>DELAY</title> |
115 | d3b4cf9f | Iustin Pop | |
116 | d3b4cf9f | Iustin Pop | <cmdsynopsis> |
117 | d3b4cf9f | Iustin Pop | <command>delay</command> |
118 | d3b4cf9f | Iustin Pop | <arg>--debug</arg> |
119 | d3b4cf9f | Iustin Pop | <arg>--no-master</arg> |
120 | d3b4cf9f | Iustin Pop | <arg choice="opt" rep="repeat">-n <replaceable>NODE</replaceable></arg> |
121 | d3b4cf9f | Iustin Pop | <arg choice="req"><replaceable>duration</replaceable></arg> |
122 | d3b4cf9f | Iustin Pop | </cmdsynopsis> |
123 | d3b4cf9f | Iustin Pop | |
124 | d3b4cf9f | Iustin Pop | <para> |
125 | 60bb8b5d | Manuel Franceschini | Run a test opcode (a sleep) on the master and on selected nodes |
126 | 60bb8b5d | Manuel Franceschini | (via an RPC call). This serves no other purpose but to execute a |
127 | 60bb8b5d | Manuel Franceschini | test operation. |
128 | d3b4cf9f | Iustin Pop | </para> |
129 | d3b4cf9f | Iustin Pop | |
130 | d3b4cf9f | Iustin Pop | <para> |
131 | d3b4cf9f | Iustin Pop | The <option>-n</option> option can be given multiple times to |
132 | d3b4cf9f | Iustin Pop | select the nodes for the RPC call. By default, the delay will |
133 | d3b4cf9f | Iustin Pop | also be executed on the master, unless the |
134 | d3b4cf9f | Iustin Pop | <option>--no-master</option> option is passed. |
135 | d3b4cf9f | Iustin Pop | </para> |
136 | d3b4cf9f | Iustin Pop | |
137 | d3b4cf9f | Iustin Pop | <para> |
138 | d3b4cf9f | Iustin Pop | The <replaceable>delay</replaceable> argument will be |
139 | d3b4cf9f | Iustin Pop | interpreted as a floating point number. |
140 | d3b4cf9f | Iustin Pop | </para> |
141 | d3b4cf9f | Iustin Pop | |
142 | d3b4cf9f | Iustin Pop | </refsect2> |
143 | d3b4cf9f | Iustin Pop | |
144 | d3b4cf9f | Iustin Pop | <refsect2> |
145 | d3b4cf9f | Iustin Pop | <title>SUBMIT-JOB</title> |
146 | d3b4cf9f | Iustin Pop | |
147 | d3b4cf9f | Iustin Pop | <cmdsynopsis> |
148 | d3b4cf9f | Iustin Pop | <command>submit-job</command> |
149 | 9d95c3af | Iustin Pop | <arg choice="opt">--verbose</arg> |
150 | 9d95c3af | Iustin Pop | <arg choice="opt">--timing-stats</arg> |
151 | 9d95c3af | Iustin Pop | <arg choice="opt">--job-repeat <option>N</option></arg> |
152 | 9d95c3af | Iustin Pop | <arg choice="opt">--op-repeat <option>N</option></arg> |
153 | 99036060 | Iustin Pop | <arg choice="req" rep="repeat">opcodes_file</arg> |
154 | d3b4cf9f | Iustin Pop | </cmdsynopsis> |
155 | d3b4cf9f | Iustin Pop | |
156 | d3b4cf9f | Iustin Pop | <para> |
157 | 60bb8b5d | Manuel Franceschini | This command builds a list of opcodes from files in JSON format |
158 | 60bb8b5d | Manuel Franceschini | and submits a job per file to the master daemon. It can be used |
159 | 60bb8b5d | Manuel Franceschini | to test options that are not available via command line. |
160 | d3b4cf9f | Iustin Pop | </para> |
161 | d3b4cf9f | Iustin Pop | |
162 | 9d95c3af | Iustin Pop | <para> |
163 | 60bb8b5d | Manuel Franceschini | The <option>verbose</option> option will additionally display |
164 | 60bb8b5d | Manuel Franceschini | the corresponding job IDs and the progress in waiting for the |
165 | 60bb8b5d | Manuel Franceschini | jobs; the <option>timing-stats</option> option will show some |
166 | 60bb8b5d | Manuel Franceschini | overall statistics inluding the number of total opcodes, jobs |
167 | 60bb8b5d | Manuel Franceschini | submitted and time spent in each stage (submit, exec, total). |
168 | 9d95c3af | Iustin Pop | </para> |
169 | 9d95c3af | Iustin Pop | |
170 | 9d95c3af | Iustin Pop | <para> |
171 | 9d95c3af | Iustin Pop | The <option>job-repeat</option> and <option>op-repeat</option> |
172 | 60bb8b5d | Manuel Franceschini | options allow to submit multiple copies of the passed arguments; |
173 | 60bb8b5d | Manuel Franceschini | job-repeat will cause N copies of each job (input file) to be |
174 | 60bb8b5d | Manuel Franceschini | submitted (equivalent to passing the arguments N times) while |
175 | 60bb8b5d | Manuel Franceschini | op-repeat will cause N copies of each of the opcodes in the file |
176 | 60bb8b5d | Manuel Franceschini | to be executed (equivalent to each file containing N copies of |
177 | 60bb8b5d | Manuel Franceschini | the opcodes). |
178 | 9d95c3af | Iustin Pop | </para> |
179 | 9d95c3af | Iustin Pop | |
180 | d3b4cf9f | Iustin Pop | </refsect2> |
181 | d3b4cf9f | Iustin Pop | |
182 | e58f87a9 | Michael Hanselmann | <refsect2> |
183 | e58f87a9 | Michael Hanselmann | <title>TEST-JOBQUEUE</title> |
184 | e58f87a9 | Michael Hanselmann | |
185 | e58f87a9 | Michael Hanselmann | <cmdsynopsis> |
186 | e58f87a9 | Michael Hanselmann | <command>test-jobqueue</command> |
187 | e58f87a9 | Michael Hanselmann | </cmdsynopsis> |
188 | e58f87a9 | Michael Hanselmann | |
189 | e58f87a9 | Michael Hanselmann | <para> |
190 | e58f87a9 | Michael Hanselmann | Executes a few tests on the job queue. This command might generate |
191 | e58f87a9 | Michael Hanselmann | failed jobs deliberately. |
192 | e58f87a9 | Michael Hanselmann | </para> |
193 | e58f87a9 | Michael Hanselmann | </refsect2> |
194 | e58f87a9 | Michael Hanselmann | |
195 | 19b9ba9a | Michael Hanselmann | <refsect2> |
196 | 19b9ba9a | Michael Hanselmann | <title>LOCKS</title> |
197 | 19b9ba9a | Michael Hanselmann | <cmdsynopsis> |
198 | 19b9ba9a | Michael Hanselmann | <command>locks</command> |
199 | 19b9ba9a | Michael Hanselmann | <arg>--no-headers</arg> |
200 | 19b9ba9a | Michael Hanselmann | <arg>--separator=<replaceable>SEPARATOR</replaceable></arg> |
201 | 19b9ba9a | Michael Hanselmann | <sbr> |
202 | 19b9ba9a | Michael Hanselmann | <arg>-o <replaceable>[+]FIELD,...</replaceable></arg> |
203 | 19b9ba9a | Michael Hanselmann | <arg>--interval=<replaceable>SECONDS</replaceable></arg> |
204 | 19b9ba9a | Michael Hanselmann | <sbr> |
205 | 19b9ba9a | Michael Hanselmann | </cmdsynopsis> |
206 | 19b9ba9a | Michael Hanselmann | |
207 | 19b9ba9a | Michael Hanselmann | <para> |
208 | 19b9ba9a | Michael Hanselmann | Shows a list of locks in the master daemon. |
209 | 19b9ba9a | Michael Hanselmann | </para> |
210 | 19b9ba9a | Michael Hanselmann | |
211 | 19b9ba9a | Michael Hanselmann | <para> |
212 | 19b9ba9a | Michael Hanselmann | The <option>--no-headers</option> option will skip the initial |
213 | 19b9ba9a | Michael Hanselmann | header line. The <option>--separator</option> option takes an |
214 | 19b9ba9a | Michael Hanselmann | argument which denotes what will be used between the output |
215 | 19b9ba9a | Michael Hanselmann | fields. Both these options are to help scripting. |
216 | 19b9ba9a | Michael Hanselmann | </para> |
217 | 19b9ba9a | Michael Hanselmann | |
218 | 19b9ba9a | Michael Hanselmann | <para> |
219 | 19b9ba9a | Michael Hanselmann | The <option>-o</option> option takes a comma-separated list of |
220 | 19b9ba9a | Michael Hanselmann | output fields. The available fields and their meaning are: |
221 | 19b9ba9a | Michael Hanselmann | <variablelist> |
222 | 19b9ba9a | Michael Hanselmann | <varlistentry> |
223 | 19b9ba9a | Michael Hanselmann | <term>name</term> |
224 | 19b9ba9a | Michael Hanselmann | <listitem> |
225 | 19b9ba9a | Michael Hanselmann | <simpara>Lock name</simpara> |
226 | 19b9ba9a | Michael Hanselmann | </listitem> |
227 | 19b9ba9a | Michael Hanselmann | </varlistentry> |
228 | 19b9ba9a | Michael Hanselmann | <varlistentry> |
229 | 19b9ba9a | Michael Hanselmann | <term>mode</term> |
230 | 19b9ba9a | Michael Hanselmann | <listitem> |
231 | 19b9ba9a | Michael Hanselmann | <simpara> |
232 | 19b9ba9a | Michael Hanselmann | Mode in which the lock is currently acquired (exclusive or |
233 | 19b9ba9a | Michael Hanselmann | shared) |
234 | 19b9ba9a | Michael Hanselmann | </simpara> |
235 | 19b9ba9a | Michael Hanselmann | </listitem> |
236 | 19b9ba9a | Michael Hanselmann | </varlistentry> |
237 | 19b9ba9a | Michael Hanselmann | <varlistentry> |
238 | 19b9ba9a | Michael Hanselmann | <term>owner</term> |
239 | 19b9ba9a | Michael Hanselmann | <listitem> |
240 | 19b9ba9a | Michael Hanselmann | <simpara>Current lock owner(s)</simpara> |
241 | 19b9ba9a | Michael Hanselmann | </listitem> |
242 | 19b9ba9a | Michael Hanselmann | </varlistentry> |
243 | c31825f7 | Michael Hanselmann | <varlistentry> |
244 | c31825f7 | Michael Hanselmann | <term>pending</term> |
245 | c31825f7 | Michael Hanselmann | <listitem> |
246 | c31825f7 | Michael Hanselmann | <simpara>Threads waiting for the lock</simpara> |
247 | c31825f7 | Michael Hanselmann | </listitem> |
248 | c31825f7 | Michael Hanselmann | </varlistentry> |
249 | 19b9ba9a | Michael Hanselmann | </variablelist> |
250 | 19b9ba9a | Michael Hanselmann | </para> |
251 | 19b9ba9a | Michael Hanselmann | |
252 | 19b9ba9a | Michael Hanselmann | <para> |
253 | 19b9ba9a | Michael Hanselmann | If the value of the option starts with the character |
254 | 19b9ba9a | Michael Hanselmann | <constant>+</constant>, the new fields will be added to the default |
255 | 19b9ba9a | Michael Hanselmann | list. This allows to quickly see the default list plus a few other |
256 | 19b9ba9a | Michael Hanselmann | fields, instead of retyping the entire list of fields. |
257 | 19b9ba9a | Michael Hanselmann | </para> |
258 | 19b9ba9a | Michael Hanselmann | |
259 | 19b9ba9a | Michael Hanselmann | <para> |
260 | 19b9ba9a | Michael Hanselmann | Use <option>--interval</option> to repeat the listing. A delay |
261 | 19b9ba9a | Michael Hanselmann | specified by the option value in seconds is inserted. |
262 | 19b9ba9a | Michael Hanselmann | </para> |
263 | 19b9ba9a | Michael Hanselmann | |
264 | 19b9ba9a | Michael Hanselmann | </refsect2> |
265 | d3b4cf9f | Iustin Pop | </refsect1> |
266 | d3b4cf9f | Iustin Pop | |
267 | d3b4cf9f | Iustin Pop | &footer; |
268 | d3b4cf9f | Iustin Pop | |
269 | d3b4cf9f | Iustin Pop | </refentry> |
270 | d3b4cf9f | Iustin Pop | |
271 | d3b4cf9f | Iustin Pop | <!-- Keep this comment at the end of the file |
272 | d3b4cf9f | Iustin Pop | Local variables: |
273 | d3b4cf9f | Iustin Pop | mode: sgml |
274 | d3b4cf9f | Iustin Pop | sgml-omittag:t |
275 | d3b4cf9f | Iustin Pop | sgml-shorttag:t |
276 | d3b4cf9f | Iustin Pop | sgml-minimize-attributes:nil |
277 | d3b4cf9f | Iustin Pop | sgml-always-quote-attributes:t |
278 | d3b4cf9f | Iustin Pop | sgml-indent-step:2 |
279 | d3b4cf9f | Iustin Pop | sgml-indent-data:t |
280 | d3b4cf9f | Iustin Pop | sgml-parent-document:nil |
281 | d3b4cf9f | Iustin Pop | sgml-default-dtd-file:nil |
282 | d3b4cf9f | Iustin Pop | sgml-exposed-tags:nil |
283 | d3b4cf9f | Iustin Pop | sgml-local-catalogs:nil |
284 | d3b4cf9f | Iustin Pop | sgml-local-ecat-files:nil |
285 | d3b4cf9f | Iustin Pop | End: |
286 | d3b4cf9f | Iustin Pop | --> |