Проект

Общее

Профиль

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

Dmitry Chernyak, 15.12.2016 23:23

1 1 Dmitry Chernyak
h1. INSTALL
2 1 Dmitry Chernyak
3 1 Dmitry Chernyak
{{toc}}
4 1 Dmitry Chernyak
5 29 Dmitry Chernyak
[[OVERVIEW]] | [[INSTALL]] | [[SETUP]] | [[OPERATIONS]] | [[LICENSE]]
6 29 Dmitry Chernyak
[[ОБЗОР]] | [[УСТАНОВКА]] | [[НАСТРОЙКА]] | [[ОПЕРАЦИИ]] | [[ЛИЦЕНЗИЯ]]
7 1 Dmitry Chernyak
8 20 Dmitry Chernyak
h2. Get the ISO image
9 4 Владимир Ипатов
10 30 Dmitry Chernyak
Download the distribution disk, ready to install: *"Download ISO-image":https://sci.skycover.ru/projects/sci-cd/documents*
11 30 Dmitry Chernyak
To access it you should "register":https://sci.skycover.ru/account/register
12 1 Dmitry Chernyak
13 32 Dmitry Chernyak
h2. Burn the ISO-image on the disk or prepare a bootable flash-drive
14 32 Dmitry Chernyak
15 32 Dmitry Chernyak
You can burn the ISO-image using writeable CD-ROM and any available program for burning disks.
16 32 Dmitry Chernyak
17 32 Dmitry Chernyak
You can prepare a bootable flash-drive. For this use any available tool, for example, unetbootin.
18 32 Dmitry Chernyak
When it will ask for "type of a system", you should set Debian of version ... and set the path to the ISO-image file.
19 32 Dmitry Chernyak
20 32 Dmitry Chernyak
You can also th write ISO-image directly to flash-drive:
21 32 Dmitry Chernyak
22 32 Dmitry Chernyak
<pre>
23 32 Dmitry Chernyak
dd if=/path/to/iso of=/dev/sdX bs=4k
24 32 Dmitry Chernyak
</pre>
25 32 Dmitry Chernyak
Where /dev/sdX - path to the block device file. which is pointing to a flash.
26 32 Dmitry Chernyak
(To find which block device you need, insert the flash-drive and run "dmesg" in terminal - at the tail of the output you will see the information about the flash-drive plugged in).
27 32 Dmitry Chernyak
.
28 32 Dmitry Chernyak
29 32 Dmitry Chernyak
h2. Minimal System Requirements
30 32 Dmitry Chernyak
31 32 Dmitry Chernyak
In real case you must choose hardware in according to real objectives.
32 32 Dmitry Chernyak
For testing purposes minimal system requierements is:
33 32 Dmitry Chernyak
* 2 GB RAM
34 32 Dmitry Chernyak
* 50GB HDD
35 32 Dmitry Chernyak
* 1Gbit ethernet for DRBD link (if you setup 2 or more nodes)
36 32 Dmitry Chernyak
* Hardware Virtualization support: Intel VT or AMD CPU (if you want to run the Windows instances)
37 32 Dmitry Chernyak
38 32 Dmitry Chernyak
For enterprise use both nodes mush have the same configuration (CPU power, RAM, volume and speed of disk system).
39 32 Dmitry Chernyak
40 32 Dmitry Chernyak
h2. Nodes setup
41 32 Dmitry Chernyak
42 32 Dmitry Chernyak
Before setting up, link nodes to LAN with a cable.
43 32 Dmitry Chernyak
Next boot the first node from installation image.
44 32 Dmitry Chernyak
During the installation process:
45 32 Dmitry Chernyak
46 32 Dmitry Chernyak
h3. Setup the LAN connection
47 32 Dmitry Chernyak
48 32 Dmitry Chernyak
Specify a static IP address for the LAN connection
49 32 Dmitry Chernyak
50 32 Dmitry Chernyak
!ip.JPG!
51 32 Dmitry Chernyak
52 32 Dmitry Chernyak
Next specify the network mask, gateway and DNS-server for this connection.
53 32 Dmitry Chernyak
54 32 Dmitry Chernyak
h3. Specify the node's name
55 32 Dmitry Chernyak
56 32 Dmitry Chernyak
In the Hostname field specify the node's name, for examlpe: gnt1 or gnt-1.
57 32 Dmitry Chernyak
"1" means this will be the first node of a cluster.
58 32 Dmitry Chernyak
59 32 Dmitry Chernyak
!hostname.JPG!
60 32 Dmitry Chernyak
61 32 Dmitry Chernyak
В поле Domain укажите домен
62 32 Dmitry Chernyak
63 32 Dmitry Chernyak
!domain.JPG!
64 32 Dmitry Chernyak
65 32 Dmitry Chernyak
h3. Задать пароль root
66 32 Dmitry Chernyak
67 32 Dmitry Chernyak
Не делайте пароль слишком простым
68 32 Dmitry Chernyak
69 32 Dmitry Chernyak
h3. Произвести разметку диска
70 32 Dmitry Chernyak
71 32 Dmitry Chernyak
Инсталлятор предоставляет несколько типов автоматической разметки.
72 32 Dmitry Chernyak
73 32 Dmitry Chernyak
Если вы планируете использовать программный RAID, выберите
74 32 Dmitry Chernyak
*2(4,6,8) disk with lvm* - в зависимости от количества жестких дисков.
75 32 Dmitry Chernyak
Для двух дисков используется raid1, для большего количества используется raid10.
76 32 Dmitry Chernyak
Raid10 - рекомендуемый уровень raid для использования с виртуализацией.
77 32 Dmitry Chernyak
78 32 Dmitry Chernyak
Если вы используете аппаратный RAID, выберите
79 32 Dmitry Chernyak
*1 disk with lvm*
80 32 Dmitry Chernyak
81 32 Dmitry Chernyak
Если у вас сервер с двумя типами дисков, например 2 диска SATA и 8 дисков SAS (сырых или под аппаратным RAID), мы рекомендуем произвести начальную установку полностью на SATA диски по шаблону *2 disk with lvm* и после настройки кластера, вручную добавить SAS-диски как дополнительную VG.
82 32 Dmitry Chernyak
83 32 Dmitry Chernyak
!disk.JPG!
84 32 Dmitry Chernyak
85 32 Dmitry Chernyak
На вопросы об удалении старых разделов и создании RAID, если будут надо согласиться.
86 32 Dmitry Chernyak
87 32 Dmitry Chernyak
Инструкции по этой операции и другие подробности - в разделе [[Разметка диска]].
88 32 Dmitry Chernyak
89 32 Dmitry Chernyak
h3. Указать диск для установки загрузчика grub.
90 32 Dmitry Chernyak
91 32 Dmitry Chernyak
Отметьте все физические диски (не раздел, и не том software RAID!), на которые установлена система.
92 32 Dmitry Chernyak
93 32 Dmitry Chernyak
!grub.JPG!
94 32 Dmitry Chernyak
95 32 Dmitry Chernyak
h3. Завершить установку - перезагрузиться.
96 32 Dmitry Chernyak
97 32 Dmitry Chernyak
h3. Аналогично установить второй узел
98 32 Dmitry Chernyak
99 32 Dmitry Chernyak
Задать имя узла, например gnt2 или gnt-2 (сообразно с первым узлом).
100 32 Dmitry Chernyak
Пароль установить такой же, как на первый сервер.
101 32 Dmitry Chernyak
102 32 Dmitry Chernyak
h2. Установить время
103 32 Dmitry Chernyak
104 32 Dmitry Chernyak
Удостоверьтесь, что на обоих узлах установлено одинаковое время.
105 32 Dmitry Chernyak
106 32 Dmitry Chernyak
<pre>
107 32 Dmitry Chernyak
# date
108 32 Dmitry Chernyak
Thu Mar 12 12:23:10 MSK 2015
109 32 Dmitry Chernyak
</pre>
110 32 Dmitry Chernyak
111 32 Dmitry Chernyak
Если нет - установите его командой
112 32 Dmitry Chernyak
113 32 Dmitry Chernyak
<pre>
114 32 Dmitry Chernyak
# date -s "12 MAR 2015 12:23:00"
115 32 Dmitry Chernyak
</pre>
116 32 Dmitry Chernyak
117 32 Dmitry Chernyak
h2. Сконфигурировать бэкбон (межсерверное соединение)
118 32 Dmitry Chernyak
119 32 Dmitry Chernyak
Не отключайте узлы от LAN.
120 32 Dmitry Chernyak
Соедините узлы вторым кабелем через свободные гигабитные сетевые карты, проверьте, что на них зажглись лампочки link (при наличии лампочек).
121 32 Dmitry Chernyak
Данное подключение будет использоваться для межсерверного соединения, по которому будут синхронизироваться данные на дисках.
122 32 Dmitry Chernyak
Если в сервера подключены еще какие-то ethernet кабели, то их следует отключить на время настройки бэкбона.
123 32 Dmitry Chernyak
После появления линка на каждом узле запустите (можно параллельно, можно последовательно):
124 32 Dmitry Chernyak
<pre>
125 32 Dmitry Chernyak
sci-setup backbone
126 32 Dmitry Chernyak
</pre>
127 32 Dmitry Chernyak
128 32 Dmitry Chernyak
Результат:
129 32 Dmitry Chernyak
<pre>
130 32 Dmitry Chernyak
root@gnt-1:~# sci-setup backbone
131 32 Dmitry Chernyak
Node number: 1
132 32 Dmitry Chernyak
LAN interface: eth0
133 32 Dmitry Chernyak
Waiting 30 seconds for links to be up
134 32 Dmitry Chernyak
Backbone interface: eth3
135 32 Dmitry Chernyak
Up and test backbone
136 32 Dmitry Chernyak
137 32 Dmitry Chernyak
Waiting for backbone to get ready (MAXWAIT is 2 seconds).
138 32 Dmitry Chernyak
          inet addr:10.101.200.11  Bcast:10.101.200.255  Mask:255.255.255.0
139 32 Dmitry Chernyak
ok.
140 32 Dmitry Chernyak
</pre>
141 32 Dmitry Chernyak
142 32 Dmitry Chernyak
143 32 Dmitry Chernyak
После настройки обоих узлов проверьте соединение. На первом узле запустите:
144 32 Dmitry Chernyak
<pre>
145 32 Dmitry Chernyak
ping 10.100.200.12
146 32 Dmitry Chernyak
</pre>
147 32 Dmitry Chernyak
148 32 Dmitry Chernyak
<pre>
149 32 Dmitry Chernyak
root@gnt-1:~# ping 10.101.200.12
150 32 Dmitry Chernyak
PING 10.101.200.12 (10.101.200.12) 56(84) bytes of data.
151 32 Dmitry Chernyak
64 bytes from 10.101.200.12: icmp_req=1 ttl=64 time=0.263 ms
152 32 Dmitry Chernyak
64 bytes from 10.101.200.12: icmp_req=2 ttl=64 time=0.112 ms
153 32 Dmitry Chernyak
^C
154 32 Dmitry Chernyak
--- 10.101.200.12 ping statistics ---
155 32 Dmitry Chernyak
2 packets transmitted, 2 received, 0% packet loss, time 999ms
156 32 Dmitry Chernyak
rtt min/avg/max/mdev = 0.112/0.187/0.263/0.076 ms
157 32 Dmitry Chernyak
</pre>
158 32 Dmitry Chernyak
159 32 Dmitry Chernyak
h2. Инициализировать кластер
160 32 Dmitry Chernyak
161 32 Dmitry Chernyak
На первом узле запустите
162 32 Dmitry Chernyak
<pre>
163 32 Dmitry Chernyak
sci-setup cluster
164 32 Dmitry Chernyak
</pre>
165 32 Dmitry Chernyak
166 32 Dmitry Chernyak
Конфигуратор попросит указать адрес кластера в LAN.
167 32 Dmitry Chernyak
<pre>
168 32 Dmitry Chernyak
root@gnt-1:~# sci-setup cluster
169 32 Dmitry Chernyak
Cluster domain name will be gnt.
170 32 Dmitry Chernyak
Cluster IP will be 10.101.200.10 on the interlink.
171 32 Dmitry Chernyak
We recommend to set it to some unbound LAN IP address,
172 32 Dmitry Chernyak
but it is safe to simply press ENTER.
173 32 Dmitry Chernyak
Set cluster IP [10.101.200.10]:
174 32 Dmitry Chernyak
</pre> 
175 32 Dmitry Chernyak
176 32 Dmitry Chernyak
Если в этот момент укажете свободный статический IP-адрес в LAN, то в дальнейшем сможете обращаться к управляющему модулю кластера по этому IP.
177 32 Dmitry Chernyak
Это удобно, но не не обязательно и не влияет на саму возможность управления. Можно просто нажать ENTER и управляюещму модулю будет назначен адрес во внутренней сети кластера.
178 32 Dmitry Chernyak
179 32 Dmitry Chernyak
Конфигуратор проверит пинг ко второму узлу и попросит принять его ssh-ключ и ввести пароль к нему для получения и проверки параметров конфигурации.
180 32 Dmitry Chernyak
<pre>
181 32 Dmitry Chernyak
Connecting to Node2 via 10.101.200.12
182 32 Dmitry Chernyak
You will be prompted for a root password...
183 32 Dmitry Chernyak
184 32 Dmitry Chernyak
The authenticity of host '10.101.200.12 (10.101.200.12)' can't be established.
185 32 Dmitry Chernyak
ECDSA key fingerprint is 6a:5a:78:fa:af:c1:23:97:87:9f:66:46:94:7e:f2:f5.
186 32 Dmitry Chernyak
Are you sure you want to continue connecting (yes/no)?
187 32 Dmitry Chernyak
</pre> 
188 32 Dmitry Chernyak
189 32 Dmitry Chernyak
Введите "yes"
190 32 Dmitry Chernyak
<pre>
191 32 Dmitry Chernyak
root@10.101.200.12's password:
192 32 Dmitry Chernyak
</pre>
193 32 Dmitry Chernyak
194 32 Dmitry Chernyak
Пароль ко второму узлу.
195 32 Dmitry Chernyak
196 32 Dmitry Chernyak
После успешного прохождения всех проверок, на экране будут показаны параметры конфигурации кластера.
197 32 Dmitry Chernyak
<pre>
198 32 Dmitry Chernyak
########################################
199 32 Dmitry Chernyak
Parameters detected:
200 32 Dmitry Chernyak
Domain name: example.sci
201 32 Dmitry Chernyak
202 32 Dmitry Chernyak
Master network interface: backbone
203 32 Dmitry Chernyak
204 32 Dmitry Chernyak
Cluster name: gnt
205 32 Dmitry Chernyak
Cluster IP: 10.101.200.10
206 32 Dmitry Chernyak
207 32 Dmitry Chernyak
Node 1 name: gnt-1
208 32 Dmitry Chernyak
Node 1 IP: 10.101.200.11
209 32 Dmitry Chernyak
Node 1 LAN IP: 192.168.11.28
210 32 Dmitry Chernyak
211 32 Dmitry Chernyak
Node 2 name: gnt-2
212 32 Dmitry Chernyak
Node 2 IP: 10.101.200.12
213 32 Dmitry Chernyak
Node 2 LAN IP: 192.168.11.29
214 32 Dmitry Chernyak
Proceed with cluster creation [y/n]?
215 32 Dmitry Chernyak
</pre>
216 32 Dmitry Chernyak
217 32 Dmitry Chernyak
Если все правильно, введите "y" и нажмите ENTER для создания кластера.
218 32 Dmitry Chernyak
219 32 Dmitry Chernyak
<pre>
220 32 Dmitry Chernyak
Refilling sci.conf
221 32 Dmitry Chernyak
Creating empty /root/.ssh
222 32 Dmitry Chernyak
Fullfilling /etc/hosts
223 32 Dmitry Chernyak
Fulfilling default /etc/ganeti/networks
224 32 Dmitry Chernyak
Set random vnc password for cluster: miotaigh
225 32 Dmitry Chernyak
add sci repo in apt sources
226 32 Dmitry Chernyak
Initializing cluster
227 32 Dmitry Chernyak
Tuning cluster
228 32 Dmitry Chernyak
Adding the second node
229 32 Dmitry Chernyak
-- WARNING -- 
230 32 Dmitry Chernyak
Performing this operation is going to replace the ssh daemon keypair
231 32 Dmitry Chernyak
on the target machine (gnt-2.example.sci) with the ones of the current one
232 32 Dmitry Chernyak
and grant full intra-cluster ssh root access to/from it
233 32 Dmitry Chernyak
234 32 Dmitry Chernyak
The authenticity of host 'gnt-2.example.sci (10.101.200.12)' can't be established.
235 32 Dmitry Chernyak
ECDSA key fingerprint is 6a:5a:78:fa:af:c1:23:97:87:9f:66:46:94:7e:f2:f5.
236 32 Dmitry Chernyak
Are you sure you want to continue connecting (yes/no)?
237 32 Dmitry Chernyak
</pre>
238 32 Dmitry Chernyak
239 32 Dmitry Chernyak
240 32 Dmitry Chernyak
В процессе добавления второго узла в кластер, потребуется еще раз принять ssh ключ и ввести пароль.
241 32 Dmitry Chernyak
Введите "yes" и затем пароль ко второму узлу.
242 32 Dmitry Chernyak
243 32 Dmitry Chernyak
244 32 Dmitry Chernyak
В конце Вы увидите вывод команды диагностики кластера:
245 32 Dmitry Chernyak
<pre>
246 32 Dmitry Chernyak
VTue Jun 28 18:37:06 2016 * Verifying cluster config
247 32 Dmitry Chernyak
Tue Jun 28 18:37:06 2016 * Verifying cluster certificate files
248 32 Dmitry Chernyak
Tue Jun 28 18:37:06 2016 * Verifying hypervisor parameters
249 32 Dmitry Chernyak
Tue Jun 28 18:37:07 2016 * Verifying all nodes belong to an existing group
250 32 Dmitry Chernyak
Waiting for job 10 ...
251 32 Dmitry Chernyak
Tue Jun 28 18:37:07 2016 * Verifying group 'default'
252 32 Dmitry Chernyak
Tue Jun 28 18:37:08 2016 * Gathering data (2 nodes)
253 32 Dmitry Chernyak
Tue Jun 28 18:37:09 2016 * Gathering disk information (2 nodes)
254 32 Dmitry Chernyak
Tue Jun 28 18:37:09 2016 * Verifying configuration file consistency
255 32 Dmitry Chernyak
Tue Jun 28 18:37:09 2016 * Verifying node status
256 32 Dmitry Chernyak
Tue Jun 28 18:37:09 2016 * Verifying instance status
257 32 Dmitry Chernyak
Tue Jun 28 18:37:10 2016 * Verifying orphan volumes
258 32 Dmitry Chernyak
Tue Jun 28 18:37:10 2016 * Verifying N+1 Memory redundancy
259 32 Dmitry Chernyak
Tue Jun 28 18:37:10 2016 * Other Notes
260 32 Dmitry Chernyak
Tue Jun 28 18:37:10 2016 * Hooks Results
261 32 Dmitry Chernyak
Node              DTotal DFree MTotal MNode MFree Pinst Sinst
262 32 Dmitry Chernyak
gnt-1.example.sci 101.2G 82.2G   3.9G  1.5G  2.4G     0     0
263 32 Dmitry Chernyak
gnt-2.example.sci 101.3G 81.3G   3.9G  1.5G  2.4G     0     0
264 32 Dmitry Chernyak
If all is ok, proceed with sci-setup sci
265 32 Dmitry Chernyak
</pre>
266 32 Dmitry Chernyak
267 32 Dmitry Chernyak
h2. Создать управляющую виртуальную машину.
268 32 Dmitry Chernyak
269 32 Dmitry Chernyak
На первом узле запустите
270 32 Dmitry Chernyak
<pre>
271 32 Dmitry Chernyak
sci-setup sci
272 32 Dmitry Chernyak
</pre>
273 32 Dmitry Chernyak
274 32 Dmitry Chernyak
Если хотите, чтобы внутренний DNS кластера использовал DNS вашей компании как форвардеры (обращался к ним при резолве внешних адресов), то запустите команду следующим образом:
275 32 Dmitry Chernyak
<pre>
276 32 Dmitry Chernyak
sci-setup sci -d
277 32 Dmitry Chernyak
</pre>
278 32 Dmitry Chernyak
279 32 Dmitry Chernyak
Без @-d@ внутренний DNS кластера будет резолвить интернет-адреса напрямую через корневые серверы Интернет.
280 32 Dmitry Chernyak
281 32 Dmitry Chernyak
Конфигуратор попросит указать адрес управляющей ВМ в LAN:
282 32 Dmitry Chernyak
<pre>
283 32 Dmitry Chernyak
root@gnt-1:~# sci-setup sci
284 32 Dmitry Chernyak
Set sci LAN IP or enter "none" and press ENTER: 
285 32 Dmitry Chernyak
</pre> 
286 32 Dmitry Chernyak
287 32 Dmitry Chernyak
Укажите свободный статический IP в LAN (в примере: 192.168.11.2).
288 32 Dmitry Chernyak
289 32 Dmitry Chernyak
После успешного прохождения всех проверок, на экране будут показаны параметры конфигурации управляющей ВМ.
290 32 Dmitry Chernyak
<pre>
291 32 Dmitry Chernyak
Creating service machine sci
292 32 Dmitry Chernyak
IP: 10.101.200.2 on backbone
293 32 Dmitry Chernyak
Second network device: lan
294 32 Dmitry Chernyak
Second network IP: 192.168.11.2
295 32 Dmitry Chernyak
Proceed with sci VM creation [y/n]?
296 32 Dmitry Chernyak
</pre>
297 32 Dmitry Chernyak
298 32 Dmitry Chernyak
Если все правильно, введите "y" и нажмите ENTER для создания ВМ.
299 32 Dmitry Chernyak
<pre>
300 32 Dmitry Chernyak
Adding sci to /etc/hosts
301 32 Dmitry Chernyak
Tue Jun 28 18:44:02 2016 * creating instance disks...
302 32 Dmitry Chernyak
Tue Jun 28 18:44:09 2016 adding instance sci to cluster config
303 32 Dmitry Chernyak
Tue Jun 28 18:44:13 2016  - INFO: Waiting for instance sci to sync disks
304 32 Dmitry Chernyak
Tue Jun 28 18:44:13 2016  - INFO: - device disk/0:  2.10% done, 2m 27s remaining (estimated)
305 32 Dmitry Chernyak
Tue Jun 28 18:45:13 2016  - INFO: - device disk/0: 39.90% done, 1m 31s remaining (estimated)
306 32 Dmitry Chernyak
Tue Jun 28 18:46:14 2016  - INFO: - device disk/0: 78.20% done, 34s remaining (estimated)
307 32 Dmitry Chernyak
Tue Jun 28 18:46:48 2016  - INFO: - device disk/0: 100.00% done, 0s remaining (estimated)
308 32 Dmitry Chernyak
Tue Jun 28 18:46:48 2016  - INFO: Instance sci's disks are in sync
309 32 Dmitry Chernyak
Tue Jun 28 18:46:48 2016 * running the instance OS create scripts...
310 32 Dmitry Chernyak
Tue Jun 28 18:49:42 2016 * starting instance...
311 32 Dmitry Chernyak
</pre>
312 32 Dmitry Chernyak
313 32 Dmitry Chernyak
h2. Поздравляем! В вашем кластере создана первая виртуальная машина!
314 32 Dmitry Chernyak
315 32 Dmitry Chernyak
После запуска, ВМ sci автоматически производит донастройку узлов кластера и становится для них сервером DNS. Операция занимает в среднем 5-10 минут.
316 32 Dmitry Chernyak
317 32 Dmitry Chernyak
Попробуйте команды:
318 32 Dmitry Chernyak
<pre>
319 32 Dmitry Chernyak
gnt-instance list
320 32 Dmitry Chernyak
gnt-instance info sci
321 32 Dmitry Chernyak
gnt-cluster verify
322 32 Dmitry Chernyak
ssh sci
323 32 Dmitry Chernyak
</pre>
324 32 Dmitry Chernyak
325 32 Dmitry Chernyak
h2. Операции
326 32 Dmitry Chernyak
327 32 Dmitry Chernyak
Как управлять кластером и создать новые виртуальные машины читайте в разделе [[ОПЕРАЦИИ]]
328 32 Dmitry Chernyak
329 32 Dmitry Chernyak
----
330 32 Dmitry Chernyak
331 32 Dmitry Chernyak
[[УСТАНОВКА - версия до 2.3 включительно]]
332 32 Dmitry Chernyak
333 32 Dmitry Chernyak
334 32 Dmitry Chernyak
335 32 Dmitry Chernyak
336 30 Dmitry Chernyak
h2. Custom build ISO-image
337 30 Dmitry Chernyak
338 30 Dmitry Chernyak
How to build your own ISO-image described here: [[BUILD-ISO]] (for experienced users, who want to include their own works to the distribution set)
339 1 Dmitry Chernyak
340 21 Dmitry Chernyak
h2. Burn the ISO image
341 5 Владимир Ипатов
342 16 Владимир Ипатов
You burn it with your favorite tool (for ex. - k3b).
343 5 Владимир Ипатов
344 5 Владимир Ипатов
h2. Create bootable USB flash
345 1 Dmitry Chernyak
346 21 Dmitry Chernyak
At present this option is only available when you build the ISO image yourself.
347 21 Dmitry Chernyak
Consult [[BUILD-ISO]].
348 5 Владимир Ипатов
349 1 Dmitry Chernyak
h2. Minimal System Requirements
350 18 Владимир Ипатов
351 18 Владимир Ипатов
In real case you must choose hardware in according to real objectives.
352 18 Владимир Ипатов
For testing purposes minimal system requierements is:
353 22 Dmitry Chernyak
* 1.2 GB RAM
354 18 Владимир Ипатов
* 50GB HDD
355 21 Dmitry Chernyak
* 1Gbit ethernet for DRBD link (if you setup 2 or more nodes)
356 21 Dmitry Chernyak
* Hardware Virtualization support: Intel VT or AMD CPU (if you want to run the Windows instances)
357 18 Владимир Ипатов
358 1 Dmitry Chernyak
h2. Install the system
359 1 Dmitry Chernyak
360 1 Dmitry Chernyak
Install the system on two nodes (you may use only one node, but high
361 1 Dmitry Chernyak
availability capabilities will be unavailable).
362 1 Dmitry Chernyak
363 24 Dmitry Chernyak
The installer will ask you:
364 1 Dmitry Chernyak
365 24 Dmitry Chernyak
* The node's IP-address on the interlink. For ex.: 192.168.2.1(2)
366 24 Dmitry Chernyak
* The network mask. For ex.: 255.255.255.0
367 24 Dmitry Chernyak
* The node's name. For ex.: gnt1(2)
368 24 Dmitry Chernyak
* The domain. For ex.: gnt.yourcompany.com
369 24 Dmitry Chernyak
* The default router's address (DO NOT specify if you use the separate network
370 24 Dmitry Chernyak
card for the interlink!)
371 24 Dmitry Chernyak
* The (new) DNS server's address on the interlink. For ex.: 192.168.1.254
372 24 Dmitry Chernyak
* The root password
373 24 Dmitry Chernyak
* Chose one of predefined disk layouts or layout it manually.
374 24 Dmitry Chernyak
* Specify the disks on which yo want to place grub loader. Chose "md0" if you use
375 24 Dmitry Chernyak
the software RAID for the system partition.
376 24 Dmitry Chernyak
* Specify the additional kernel parameters (but usually you don't).
377 24 Dmitry Chernyak
378 15 Владимир Ипатов
h3. Partitioning
379 15 Владимир Ипатов
380 22 Dmitry Chernyak
During the installation you will be prompted to chose the one of predefined disk layouts
381 22 Dmitry Chernyak
useful for 1-8 disk nodes with or without the hardware RAID.
382 22 Dmitry Chernyak
383 22 Dmitry Chernyak
If you chose the "manual layout" option then you should preserve following partitions on your nodes:
384 1 Dmitry Chernyak
|_.Name|_.Size|_.Purpose|
385 1 Dmitry Chernyak
|/|10G|Root partition for all node's data|
386 1 Dmitry Chernyak
|swap|1G|Swap space for Dom0 in calculation of 512Mb RAM|
387 23 Dmitry Chernyak
|xenvg|the rest or the another device|The LVM Volume, named 'xenvg', without any partitions|
388 1 Dmitry Chernyak
389 3 Владимир Ипатов
The VG "xenvg" will be used as the default place for the instance's volumes.
390 1 Dmitry Chernyak
Also the "system-stuff" volume will be automatically created on xenvg (and mounted as /stuff).
391 1 Dmitry Chernyak
It serves for various big stuff like cdrom images, instance backups etc.
392 1 Dmitry Chernyak
393 1 Dmitry Chernyak
At our own choice you may defer the creation of xenvg during the installation stage and to create it later.
394 1 Dmitry Chernyak
In this case any option with "no LVM" will be useful.
395 22 Dmitry Chernyak
396 23 Dmitry Chernyak
 NOTE: If you want to place your own partitions on xenvg, you should
397 23 Dmitry Chernyak
then exclude them from ganeti-managed volumes. (SEE [[SETUP]]).
398 23 Dmitry Chernyak
Simplest way is to name your partitions "sytem-*" because this
399 23 Dmitry Chernyak
pattern is excluded in SCI-CD by default.
400 10 Dmitry Chernyak
401 10 Dmitry Chernyak
You may create more partitions or volume groups at your choice.
402 1 Dmitry Chernyak
403 1 Dmitry Chernyak
h3. DNS server's address
404 1 Dmitry Chernyak
405 1 Dmitry Chernyak
The cluster has it's own DNS server, which is also the 'approx' and
406 1 Dmitry Chernyak
'puppet' server. At the [[SETUP]] stage, cluster DNS server can be linked
407 1 Dmitry Chernyak
to other DNS servers in the forwarding mode.
408 1 Dmitry Chernyak
409 23 Dmitry Chernyak
The DNS server's address +must not+ be the address of the existing service.
410 23 Dmitry Chernyak
411 23 Dmitry Chernyak
The cluster's domain name +must not+ be the name of the existing domain if
412 23 Dmitry Chernyak
local domain already exists (use subdomain, or completely different name).
413 23 Dmitry Chernyak
414 23 Dmitry Chernyak
h2. Automatic post-installation changes
415 23 Dmitry Chernyak
416 23 Dmitry Chernyak
During the installation phase, the postinst.sh script from the distro
417 25 Dmitry Chernyak
will apply over 40 system tweaks: [[POST-INSTALL]] 
418 23 Dmitry Chernyak
419 23 Dmitry Chernyak
The CD installation takes about 15 minutes per node.
420 23 Dmitry Chernyak
421 24 Dmitry Chernyak
h2. The cluster is ready to setup
422 23 Dmitry Chernyak
423 1 Dmitry Chernyak
Read [[SETUP]] next.
424 31 Dmitry Chernyak
425 31 Dmitry Chernyak
[[SETUP for versions 2.3 and earlier]]