INSTALL » История » Версия 2
Владимир Ипатов, 09.10.2012 22:48
1 | 1 | Dmitry Chernyak | h1. INSTALL |
---|---|---|---|
2 | 1 | Dmitry Chernyak | |
3 | 1 | Dmitry Chernyak | {{toc}} |
4 | 1 | Dmitry Chernyak | |
5 | 1 | Dmitry Chernyak | This is the installation instructions for SCI-CD project. |
6 | 1 | Dmitry Chernyak | |
7 | 1 | Dmitry Chernyak | h2. You'll need the Internet connection to build CD-ROM |
8 | 1 | Dmitry Chernyak | |
9 | 1 | Dmitry Chernyak | The build engine is based on the simple-cdd Debian package. |
10 | 1 | Dmitry Chernyak | |
11 | 1 | Dmitry Chernyak | h2. Install build components |
12 | 1 | Dmitry Chernyak | |
13 | 1 | Dmitry Chernyak | <pre> |
14 | 1 | Dmitry Chernyak | $ apt-get install simple-cdd sharutils git |
15 | 1 | Dmitry Chernyak | </pre> |
16 | 1 | Dmitry Chernyak | |
17 | 1 | Dmitry Chernyak | h2. Get project sources |
18 | 1 | Dmitry Chernyak | |
19 | 1 | Dmitry Chernyak | <pre> |
20 | 1 | Dmitry Chernyak | $ git clone http://github.com/dmi/sci-cd.git |
21 | 1 | Dmitry Chernyak | </pre> |
22 | 1 | Dmitry Chernyak | |
23 | 1 | Dmitry Chernyak | h2. Use Git magic |
24 | 1 | Dmitry Chernyak | |
25 | 1 | Dmitry Chernyak | You should create your own branch to place modifications and to save the |
26 | 1 | Dmitry Chernyak | ability to receive updates. |
27 | 1 | Dmitry Chernyak | |
28 | 1 | Dmitry Chernyak | <pre> |
29 | 1 | Dmitry Chernyak | $ cd sci-cd |
30 | 1 | Dmitry Chernyak | $ git checkout -b local |
31 | 1 | Dmitry Chernyak | </pre> |
32 | 1 | Dmitry Chernyak | |
33 | 1 | Dmitry Chernyak | For additional useful commands read [[GITMAGIC]] |
34 | 1 | Dmitry Chernyak | |
35 | 1 | Dmitry Chernyak | h2. Adjust the environment |
36 | 1 | Dmitry Chernyak | |
37 | 1 | Dmitry Chernyak | h3. _profiles/SCI-i686.conf_ |
38 | 1 | Dmitry Chernyak | |
39 | 1 | Dmitry Chernyak | You may need to change debian_mirror and security_mirror settings if |
40 | 1 | Dmitry Chernyak | you are using another mirrors or apt-proxies. |
41 | 1 | Dmitry Chernyak | |
42 | 1 | Dmitry Chernyak | h3. _profiles/SCI-i686.downloads_ |
43 | 1 | Dmitry Chernyak | |
44 | 1 | Dmitry Chernyak | You can add more packages here to make more functional distro on the |
45 | 1 | Dmitry Chernyak | CD. It is recomended that you should first try the default list and |
46 | 1 | Dmitry Chernyak | then rebuild with your extention. |
47 | 1 | Dmitry Chernyak | |
48 | 1 | Dmitry Chernyak | h3. _profiles/SCI-i686.files/postinst.conf_ |
49 | 1 | Dmitry Chernyak | |
50 | 1 | Dmitry Chernyak | Optional. The file should be created. |
51 | 1 | Dmitry Chernyak | Tunable parameters: |
52 | 1 | Dmitry Chernyak | |
53 | 1 | Dmitry Chernyak | *vlan_no* - if set, the control network will be placed in this vlan |
54 | 1 | Dmitry Chernyak | using 802.1q tagging. |
55 | 1 | Dmitry Chernyak | |
56 | 1 | Dmitry Chernyak | h2. Build ISO image |
57 | 1 | Dmitry Chernyak | |
58 | 1 | Dmitry Chernyak | <pre> |
59 | 2 | Владимир Ипатов | ./build.sh SCI-i686 |
60 | 1 | Dmitry Chernyak | </pre> |
61 | 1 | Dmitry Chernyak | |
62 | 1 | Dmitry Chernyak | h2. Burn ISO image |
63 | 1 | Dmitry Chernyak | |
64 | 1 | Dmitry Chernyak | Image will be built in @images/@ folder, burn it with your favorite tool |
65 | 1 | Dmitry Chernyak | (for ex. - k3b). |
66 | 1 | Dmitry Chernyak | |
67 | 1 | Dmitry Chernyak | h2. Install the system |
68 | 1 | Dmitry Chernyak | |
69 | 1 | Dmitry Chernyak | Install the system on two nodes (you may use only one node, but high |
70 | 1 | Dmitry Chernyak | availability capabilities will be unavailable). |
71 | 1 | Dmitry Chernyak | |
72 | 1 | Dmitry Chernyak | You must to know following data at this time: |
73 | 1 | Dmitry Chernyak | * The number and mask of local network |
74 | 1 | Dmitry Chernyak | * The IP addresses of two installed nodes (in the same network) |
75 | 1 | Dmitry Chernyak | * The internet router's address (in the same network, if any) |
76 | 1 | Dmitry Chernyak | * The cluster's domain name |
77 | 1 | Dmitry Chernyak | * The hostnames for new nodes |
78 | 1 | Dmitry Chernyak | * The address of the future DNS server, which will be installed on the |
79 | 1 | Dmitry Chernyak | cluster service instance. |
80 | 1 | Dmitry Chernyak | * The root's password |
81 | 1 | Dmitry Chernyak | * The idea on how to create storage system - to use MD or hardware raid |
82 | 1 | Dmitry Chernyak | or no raid at all - on your own choice. |
83 | 1 | Dmitry Chernyak | |
84 | 1 | Dmitry Chernyak | h3. Partitioning |
85 | 1 | Dmitry Chernyak | |
86 | 1 | Dmitry Chernyak | You should preserve following partitions on your nodes: |
87 | 1 | Dmitry Chernyak | |_.Name|_.Size|_.Purpose| |
88 | 1 | Dmitry Chernyak | |/|10G|Root partition for all node's data| |
89 | 1 | Dmitry Chernyak | |swap|1G|Swap space for Dom0 in calculation of 384Mb RAM| |
90 | 1 | Dmitry Chernyak | |xenvg|the rest|The LVM Volume, named 'xenvg', without any partitions| |
91 | 1 | Dmitry Chernyak | |
92 | 1 | Dmitry Chernyak | xenvg will be used as the default place for instance's volumes. |
93 | 1 | Dmitry Chernyak | You may create more partition or volume groups at your choice. |
94 | 1 | Dmitry Chernyak | |
95 | 1 | Dmitry Chernyak | h3. DNS server's address |
96 | 1 | Dmitry Chernyak | |
97 | 1 | Dmitry Chernyak | The cluster has it's own DNS server, which is also the 'approx' and |
98 | 1 | Dmitry Chernyak | 'puppet' server. At the [[SETUP]] stage, cluster DNS server can be linked |
99 | 1 | Dmitry Chernyak | to other DNS servers in the forwarding mode. |
100 | 1 | Dmitry Chernyak | |
101 | 1 | Dmitry Chernyak | The server's address +must not+ be the address of the existing service. |
102 | 1 | Dmitry Chernyak | |
103 | 1 | Dmitry Chernyak | The cluster's domain name must not be the name of the existing domain if |
104 | 1 | Dmitry Chernyak | local domain already exists (use subdomain, or completely different name). |
105 | 1 | Dmitry Chernyak | |
106 | 1 | Dmitry Chernyak | h2. Automatic post-installation changes |
107 | 1 | Dmitry Chernyak | |
108 | 1 | Dmitry Chernyak | During the installation phase, the postinst.sh script from the distro |
109 | 1 | Dmitry Chernyak | made the following system tuning: [[POST-INSTALL]] |
110 | 1 | Dmitry Chernyak | |
111 | 1 | Dmitry Chernyak | h2. The cluster is ready to setup |
112 | 1 | Dmitry Chernyak | |
113 | 1 | Dmitry Chernyak | The CD installation takes about 15 minutes per node. |
114 | 1 | Dmitry Chernyak | Read [[SETUP]] next. |