171 |
171 |
|
172 |
172 |
For optimum performance when running both CPU and I/O intensive
|
173 |
173 |
instances, it's also recommended that the dom0 is restricted to one CPU
|
174 |
|
only, for example by booting with the kernel parameter ``maxcpus=1``.
|
|
174 |
only. For example you can add ``dom0_max_vcpus=1,dom0_vcpus_pin`` to your
|
|
175 |
kernels boot command line and set ``dom0-cpus`` in
|
|
176 |
``/etc/xen/xend-config.sxp`` like this::
|
|
177 |
|
|
178 |
(dom0-cpus 1)
|
175 |
179 |
|
176 |
180 |
It is recommended that you disable xen's automatic save of virtual
|
177 |
181 |
machines at system shutdown and subsequent restore of them at reboot.
|
... | ... | |
312 |
316 |
$ depmod -a
|
313 |
317 |
$ modprobe drbd minor_count=128 usermode_helper=/bin/true
|
314 |
318 |
|
315 |
|
It is also recommended that you comment out the default resources in
|
316 |
|
the ``/etc/drbd.conf`` file, so that the init script doesn't try to
|
|
319 |
It is also recommended that you comment out the default resources (if any)
|
|
320 |
in the ``/etc/drbd.conf`` file, so that the init script doesn't try to
|
317 |
321 |
configure any drbd devices. You can do this by prefixing all
|
318 |
322 |
*resource* lines in the file with the keyword *skip*, like this:
|
319 |
323 |
|
... | ... | |
418 |
422 |
Other required software
|
419 |
423 |
+++++++++++++++++++++++
|
420 |
424 |
|
421 |
|
See :doc:`install-quick`.
|
|
425 |
Please install all software requirements mentioned in :doc:`install-quick`.
|
|
426 |
If you want to build Ganeti from source, don't forget to follow the steps
|
|
427 |
required for that as well.
|
422 |
428 |
|
423 |
429 |
Setting up the environment for Ganeti
|
424 |
430 |
-------------------------------------
|
... | ... | |
619 |
625 |
installation script. An example OS that works under Debian and can
|
620 |
626 |
install Debian and Ubuntu instace OSes is provided on the project web
|
621 |
627 |
site. Download it from the project page and follow the instructions in
|
622 |
|
the ``README`` file. Here is the installation procedure (replace 0.9
|
|
628 |
the ``README`` file. Here is the installation procedure (replace 0.12
|
623 |
629 |
with the latest version that is compatible with your ganeti version)::
|
624 |
630 |
|
625 |
631 |
$ cd /usr/local/src/
|
626 |
|
$ wget http://ganeti.googlecode.com/files/ganeti-instance-debootstrap-%0.9%.tar.gz
|
627 |
|
$ tar xzf ganeti-instance-debootstrap-%0.9%.tar.gz
|
628 |
|
$ cd ganeti-instance-debootstrap-%0.9%
|
629 |
|
$ ./configure
|
|
632 |
$ wget http://ganeti.googlecode.com/files/ganeti-instance-debootstrap-%0.12%.tar.gz
|
|
633 |
$ tar xzf ganeti-instance-debootstrap-%0.12%.tar.gz
|
|
634 |
$ cd ganeti-instance-debootstrap-%0.12%
|
|
635 |
$ ./configure --with-os-dir=/srv/ganeti/os
|
630 |
636 |
$ make
|
631 |
637 |
$ make install
|
632 |
638 |
|
... | ... | |
661 |
667 |
``kbd`` can be used instead of ``console-tools``, and more packages
|
662 |
668 |
can be added, of course, if needed.
|
663 |
669 |
|
|
670 |
Please refer to the ``README`` file of ``ganeti-instance-debootstrap`` for
|
|
671 |
further documentation.
|
|
672 |
|
664 |
673 |
Alternatively, you can create your own OS definitions. See the manpage
|
665 |
674 |
:manpage:`ganeti-os-interface(7)`.
|
666 |
675 |
|
... | ... | |
670 |
679 |
**Mandatory** once per cluster, on the first node.
|
671 |
680 |
|
672 |
681 |
The last step is to initialize the cluster. After you have repeated the
|
673 |
|
above process on all of your nodes, choose one as the master, and
|
674 |
|
execute::
|
|
682 |
above process on all of your nodes and choose one as the master. Make sure
|
|
683 |
there is a SSH key pair on the master node (optionally generating one using
|
|
684 |
``ssh-keygen``). Finally execute::
|
675 |
685 |
|
676 |
686 |
$ gnt-cluster init %CLUSTERNAME%
|
677 |
687 |
|