Проект

Общее

Профиль

INSTALL » История » Версия 5

Владимир Ипатов, 23.10.2012 13:51

1 1 Dmitry Chernyak
h1. INSTALL
2 1 Dmitry Chernyak
3 1 Dmitry Chernyak
{{toc}}
4 1 Dmitry Chernyak
5 4 Владимир Ипатов
h2. Get ISO image
6 1 Dmitry Chernyak
7 4 Владимир Ипатов
You can get built ISO from here:
8 4 Владимир Ипатов
Otherwise you can build your own iso (for experienced users): [[BUILD-ISO]]
9 1 Dmitry Chernyak
10 1 Dmitry Chernyak
h2. Burn ISO image
11 1 Dmitry Chernyak
12 5 Владимир Ипатов
You burn it with your favorite tool (for ex. - k3b).
13 5 Владимир Ипатов
Also you can create bootable usb flash.
14 5 Владимир Ипатов
15 5 Владимир Ипатов
h2. Create bootable USB flash
16 5 Владимир Ипатов
17 5 Владимир Ипатов
We wrote script for this: 
18 5 Владимир Ипатов
You must have usb flash with first vfat partition that able to fit installer iso image.
19 5 Владимир Ипатов
start the script from root:
20 5 Владимир Ипатов
<pre>
21 5 Владимир Ипатов
./makeusb.sh /dev/scX
22 5 Владимир Ипатов
</pre>
23 5 Владимир Ипатов
where /dev/scX - path to block device pointing to your usb flash(whole flash, not a partition with vfat - not /dev/sdX1).
24 5 Владимир Ипатов
After execution of script vfat from flash will be mounted on /mnt (it may be changed in script). You must put ISO image in root folder of this filesystem and correctly umount it.
25 5 Владимир Ипатов
Now you can start installer from your flash drive.
26 1 Dmitry Chernyak
27 1 Dmitry Chernyak
h2. Install the system
28 1 Dmitry Chernyak
29 1 Dmitry Chernyak
Install the system on two nodes (you may use only one node, but high
30 1 Dmitry Chernyak
availability capabilities will be unavailable).
31 1 Dmitry Chernyak
32 1 Dmitry Chernyak
You must to know following data at this time:
33 1 Dmitry Chernyak
* The number and mask of local network
34 1 Dmitry Chernyak
* The IP addresses of two installed nodes (in the same network)
35 1 Dmitry Chernyak
* The internet router's address (in the same network, if any)
36 1 Dmitry Chernyak
* The cluster's domain name
37 1 Dmitry Chernyak
* The hostnames for new nodes
38 1 Dmitry Chernyak
* The address of the future DNS server, which will be installed on the
39 1 Dmitry Chernyak
cluster service instance.
40 1 Dmitry Chernyak
* The root's password
41 1 Dmitry Chernyak
* The idea on how to create storage system - to use MD or hardware raid
42 1 Dmitry Chernyak
or no raid at all - on your own choice.
43 1 Dmitry Chernyak
44 1 Dmitry Chernyak
h3. Partitioning
45 1 Dmitry Chernyak
46 1 Dmitry Chernyak
You should preserve following partitions on your nodes:
47 1 Dmitry Chernyak
|_.Name|_.Size|_.Purpose|
48 1 Dmitry Chernyak
|/|10G|Root partition for all node's data|
49 3 Владимир Ипатов
|swap|1G|Swap space for Dom0 in calculation of 512Mb RAM|
50 1 Dmitry Chernyak
|xenvg|the rest|The LVM Volume, named 'xenvg', without any partitions|
51 1 Dmitry Chernyak
52 1 Dmitry Chernyak
xenvg will be used as the default place for instance's volumes.
53 1 Dmitry Chernyak
You may create more partition or volume groups at your choice.
54 3 Владимир Ипатов
If you want to add some system partitions on xenvg, you must then exclude it from ganeti volumes(SEE [[SETUP]]).
55 1 Dmitry Chernyak
56 1 Dmitry Chernyak
h3. DNS server's address
57 1 Dmitry Chernyak
58 1 Dmitry Chernyak
The cluster has it's own DNS server, which is also the 'approx' and
59 1 Dmitry Chernyak
'puppet' server. At the [[SETUP]] stage, cluster DNS server can be linked
60 1 Dmitry Chernyak
to other DNS servers in the forwarding mode.
61 1 Dmitry Chernyak
62 1 Dmitry Chernyak
The server's address +must not+ be the address of the existing service.
63 1 Dmitry Chernyak
64 1 Dmitry Chernyak
The cluster's domain name must not be the name of the existing domain if
65 1 Dmitry Chernyak
local domain already exists (use subdomain, or completely different name).
66 1 Dmitry Chernyak
67 1 Dmitry Chernyak
h2. Automatic post-installation changes
68 1 Dmitry Chernyak
69 1 Dmitry Chernyak
During the installation phase, the postinst.sh script from the distro
70 1 Dmitry Chernyak
made the following system tuning: [[POST-INSTALL]] 
71 1 Dmitry Chernyak
72 1 Dmitry Chernyak
h2. The cluster is ready to setup
73 1 Dmitry Chernyak
74 1 Dmitry Chernyak
The CD installation takes about 15 minutes per node.
75 1 Dmitry Chernyak
Read [[SETUP]] next.