普通PC用两块硬盘做raid1 并安装ubuntu server 16.04
公司为了集中管理项目数据,要求搭建一台文件服务器,通过多次尝试终于搭建完成,在此将安装过程分享给大家特别提示:尽量用英文安装,因为中文在安装时会报错
1、进入界面后选择语言: English 然后回车
http://s1.运维网.com/images/20180116/1516096333528958.png
2、进入安装界面后,按F6 ,接着在按esc,右下角 删除 quiet,用all_generic_ide 替换,回车
http://s1.运维网.com/images/20180116/1516096430725625.png
3、选择一种语言:English 回车
http://s1.运维网.com/images/20180116/1516096550133749.png
4、选择你的位置: other回车
http://s1.运维网.com/images/20180116/1516096608294295.png
5、选择你的地区: Asia 回车
http://s1.运维网.com/images/20180116/1516096642635424.png
6、选择你的国家: china 回车
http://s1.运维网.com/images/20180116/1516096705974152.png
7、选择 united states 回车
http://s1.运维网.com/images/20180116/1516096756695879.png
8、是否配置键盘,选no 就行
http://s1.运维网.com/images/20180116/1516096803521309.png
9、配置键盘 English (us) 回车
http://s1.运维网.com/images/20180116/1516096867114620.png
http://s1.运维网.com/images/20180116/1516096875105509.png
10、配置主机名
http://s1.运维网.com/images/20180116/1516096902447122.png
11、配置用户名,这里会重复一次
http://s1.运维网.com/images/20180116/1516096944393248.png
12、配置用户密码,这里也是会重复一次
http://s1.运维网.com/images/20180116/1516096961268541.png
13、主目录是否要加密,我选的否
http://s1.运维网.com/images/20180116/1516097014424116.png
14、配置时间 我选yes
http://s1.运维网.com/images/20180116/1516097046376465.png
15、因为是两块硬盘要做raid1,所以我选手动分区
http://s1.运维网.com/images/20180116/1516097094303563.png
16、选择 SCSI33 (sda)
http://s1.运维网.com/images/20180116/1516097144929161.png
17、初始化硬盘, 选yes
http://s1.运维网.com/images/20180116/1516097171790477.png
18、创建 /boot 分区
1、创建1个新的分区
http://s1.运维网.com/images/20180116/1516097216401227.png
2、分配存储量
http://s1.运维网.com/images/20180116/1516097240952806.png
3、选择分区,并开始分区。我选的主分区
http://s1.运维网.com/images/20180116/1516097278477316.png
http://s1.运维网.com/images/20180116/1516097287810955.png
4、用于 raid 物理卷,并设置启动标志为 on
http://s1.运维网.com/images/20180116/1516097355115758.png
18、创建 swap 卷、home 卷、根目录,操作与 17 一样,只是这三个卷的启动表示为 off
http://s1.运维网.com/images/20180116/1516097457565795.png
19、以下是两块硬盘配置好的状态,第二块硬盘要与第一块硬盘配置一样
http://s1.运维网.com/images/20180116/1516097503427631.png
20、现在开始做raid1,并保存 raid 卷分区
http://s1.运维网.com/images/20180116/1516097551110115.png
http://s1.运维网.com/images/20180116/1516097577983042.png
21、创建 第一 MD 设备,以后一次创建 MD设备 总共4个
http://s1.运维网.com/images/20180116/1516097621155611.png
http://s1.运维网.com/images/20180116/1516097627685226.png
http://s1.运维网.com/images/20180116/1516097638672548.png
http://s1.运维网.com/images/20180116/1516097648344086.png
选中两个相同的硬盘
http://s1.运维网.com/images/20180116/1516097748523603.png
完成
http://s1.运维网.com/images/20180116/1516097767284764.png
Raid做完后,如下图
http://s1.运维网.com/images/20180116/1516097798734366.png
现在开始分别挂在到 /boot 、 swap 、/home 、根目录 。然后安装系统
http://s1.运维网.com/images/20180116/1516097937803678.png
http://s1.运维网.com/images/20180116/1516097945767559.png
http://s1.运维网.com/images/20180116/1516097953529404.png
挂载完后,如下图
http://s1.运维网.com/images/20180116/1516097991352538.png
开始安装系统
http://s1.运维网.com/images/20180116/1516098017496450.png
是否写入硬盘 选yes
http://s1.运维网.com/images/20180116/1516098041467422.png
安装进行中
http://s1.运维网.com/images/20180116/1516098062550476.png
这里HTTP可以不用配置 直接下一步
http://s1.运维网.com/images/20180116/1516098191184565.png
http://s1.运维网.com/images/20180116/1516098231967017.png
http://s1.运维网.com/images/20180116/1516098254360332.png
这里需要选择安装那些服务,默认选中的只有 standard system utilities,我安装时只多选了一个 openssh server,
大家可以按需求选择
http://s1.运维网.com/images/20180116/1516098367438470.png
http://s1.运维网.com/images/20180116/1516098396712044.png
安装完成后需要重新引导
http://s1.运维网.com/images/20180116/1516098423612584.png
重启后进入登录界面,这里就安装完成了
http://s1.运维网.com/images/20180116/1516098449752366.png
页:
[1]