Product SiteDocumentation Site

第 2 章 安装

目录

2.1. 安装操作系统
2.2. 集群软件安装
2.2.1. 安全提示
2.2.2. 安装集群软件
2.3. 写在开始之前
2.4. 安装
2.4.1. 设定网络
2.4.2. 配置SSH
2.4.3. 简化节点名称
2.4.4. 配置 Corosync
2.4.5. 传送配置文件

2.1. 安装操作系统

Detailed instructions for installing Fedora are available at http://docs.fedoraproject.org/install-guide/f13/ in a number of languages. The abbreviated version is as follows…
Point your browser to http://fedoraproject.org/en/get-fedora-all, locate the Install Media section and download the install DVD that matches your hardware.
Burn the disk image to a DVD [4] and boot from it. Or use the image to boot a virtual machine as I have done here. After clicking through the welcome screen, select your language and keyboard layout [5]
Welcome

图 2.1. Installation: Good choice


Storage Devices

图 2.2. 安装Fedora - 存储设备


Assign your machine a host name. [6] I happen to control the clusterlabs.org domain name, so I will use that here.
Hostname

图 2.3. 安装Fedora -机器名


You will then be prompted to indicate the machine’s physical location and to supply a root password. [7]
Now select where you want Fedora installed. [8]
As I don’t care about any existing data, I will accept the default and allow Fedora to use the complete drive. However I want to reserve some space for DRBD, so I’ll check the Review and modify partitioning layout box.
Choose Install Type

图 2.4. 安装Fedora - 安装类型


By default, Fedora will give all the space to the / (aka. root) partition. Wel’ll take some back so we can use DRBD.
Default Partitioning

图 2.5. 安装Fedora - 默认分区


完整的分区应该像下面一样。

重要

If you plan on following the DRBD or GFS2 portions of this guide, you should reserve at least 1Gb of space on each machine from which to create a shared volume. Fedora Installation - Customize PartitioningFedora Installation: Create a partition to use (later) for website data
Customize Partitioning

图 2.6. 安装Fedora - 自定义分区


Unless you have a strong reason not to, accept the default bootloader location

图 2.7. 安装Fedora - Bootloader


Next choose which software should be installed. Change the selection to Web Server since we plan on using Apache. Don’t enable updates yet, we’ll do that (and install any extra software we need) later. After you click next, Fedora will begin installing.
Software selection

图 2.8. 安装Fedora - 软件


Go grab something to drink, this may take a while
Installing

图 2.9. 安装Fedora - 安装中


Stage 1, completed

图 2.10. 安装Fedora - 安装完成


Once the node reboots, follow the on screen instructions [9] to create a system user and configure the time.
First boot

图 2.11. 安装Fedora - 第一次启动


Creating a new user, take note of the password, you'll need it soon

图 2.12. 安装Fedora - 创建非特权用户


注意

It is highly recommended to enable NTP on your cluster nodes. Doing so ensures all nodes agree on the current time and makes reading log files significantly easier. Fedora Installation - Date and TimeFedora Installation: Enable NTP to keep the times on all your nodes consistent
Date and time

图 2.13. 安装Fedora - 日期和时间


点击next会进入登入界面,点击你创建的用户并输入之前设定的密码。
Click here to configure networking

图 2.14. 安装Fedora -自定义网络


重要

Do not accept the default network settings. Cluster machines should never obtain an ip address via DHCP. Here I will use the internal addresses for the clusterlab.org network.
Specify network settings for your machine, never choose DHCP

图 2.15. 安装Fedora - 指定网络参数


Click the big green button to activate your changes

图 2.16. 安装Fedora - 激活网络


Down to business, fire up the command line

图 2.17. 安装Fedora - 打开终端


注意

这是最后一个截屏了,剩下的我们都用命令行来操作。