Revision 29fbe62e
b/man/ganeti-listrunner.rst | ||
---|---|---|
86 | 86 |
EXAMPLE |
87 | 87 |
------- |
88 | 88 |
|
89 |
Run a command on a list of hosts:: |
|
89 |
Run a command on a list of hosts: |
|
90 |
|
|
91 |
.. code-block:: Bash |
|
90 | 92 |
|
91 | 93 |
listrunner -l logdir -c "uname -a" -h host1,host2,host3 |
92 | 94 |
|
93 |
Upload a script, some auxiliary files and run the script:: |
|
95 |
Upload a script, some auxiliary files and run the script: |
|
96 |
|
|
97 |
.. code-block:: Bash |
|
94 | 98 |
|
95 | 99 |
listrunner -l logdir -x runme.sh \ |
96 | 100 |
-a seed.dat -a golden.dat \ |
... | ... | |
100 | 104 |
SEE ALSO |
101 | 105 |
-------- |
102 | 106 |
|
103 |
dsh(1), cssh(1)
|
|
107 |
**dsh**(1), **cssh**(1)
|
|
104 | 108 |
|
105 | 109 |
.. vim: set textwidth=72 : |
106 | 110 |
.. Local Variables: |
b/man/ganeti-os-interface.rst | ||
---|---|---|
223 | 223 |
environment, and output diagnostic messages in case the validation |
224 | 224 |
fails. |
225 | 225 |
|
226 |
.. highlight:: sh |
|
227 |
|
|
228 | 226 |
For the ``dhcp`` parameter given as example above, a verification |
229 |
script could be:: |
|
227 |
script could be: |
|
228 |
|
|
229 |
.. code-block:: Bash |
|
230 | 230 |
|
231 | 231 |
#!/bin/sh |
232 | 232 |
|
... | ... | |
340 | 340 |
|
341 | 341 |
The rename script has been added. If you don't want to do any |
342 | 342 |
changes on the instances after a rename, you can migrate the OS |
343 |
definition to version 5 by creating the rename script simply as:: |
|
343 |
definition to version 5 by creating the rename script simply as: |
|
344 |
|
|
345 |
.. code-block:: Bash |
|
344 | 346 |
|
345 | 347 |
#!/bin/sh |
346 | 348 |
|
b/man/ganeti-watcher.rst | ||
---|---|---|
79 | 79 |
|
80 | 80 |
In some cases, it's even desirable to reset the watcher state, for |
81 | 81 |
example after maintenance actions, or when you want to simulate the |
82 |
reboot of all nodes, so in this case, you can remove all state files:: |
|
82 |
reboot of all nodes, so in this case, you can remove all state files: |
|
83 |
|
|
84 |
.. code-block:: Bash |
|
83 | 85 |
|
84 | 86 |
rm -f @LOCALSTATEDIR@/lib/ganeti/watcher.*.data |
85 | 87 |
rm -f @LOCALSTATEDIR@/lib/ganeti/watcher.*.instance-status |
b/man/gnt-instance.rst | ||
---|---|---|
566 | 566 |
the colon-separated list _must_ equal the number of VCPUs of the |
567 | 567 |
instance. |
568 | 568 |
|
569 |
Example:: |
|
569 |
Example: |
|
570 |
|
|
571 |
.. code-block:: Bash |
|
570 | 572 |
|
571 | 573 |
# Map the entire instance to CPUs 0-2 |
572 | 574 |
gnt-instance modify -H cpu_mask=0-2 my-inst |
Also available in: Unified diff