Monitor 节点初始化
目的
利用三个节点部署 ceph mon 节点
步骤
1. 操作系统初始化
当前环境中, ceph 存储集群统一部署 centos 7.1 操作系统, 并在 /etc/hosts 中登记集群中的服务器主机名, 并完成时间同步
主机名验证
[root@xx-xxx-xxxx-xxxxxxx15-128055 ~]# hostname
xx-xxx-xxxx-xxxxxxx15-128055.vclound.com
[root@xx-xxx-xxxx-xxxxxxx17-128057 ~]# hostname
xx-xxx-xxxx-xxxxxxx17-128057.vclound.com
[root@xx-xxx-xxxx-xxxxxxx24-128074 ~]# hostname
xx-xxx-xxxx-xxxxxxx24-128074.vclound.com
cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
XXX.XX.128.55 xx-xxx-xxxx-xxxxxxx15-128055.vclound.com xx-xxx-xxxx-xxxxxxx15-128055
XXX.XX.128.56 xx-xxx-xxxx-xxxxxxx16-128056.vclound.com xx-xxx-xxxx-xxxxxxx16-128056
XXX.XX.128.57 xx-xxx-xxxx-xxxxxxx17-128057.vclound.com xx-xxx-xxxx-xxxxxxx17-128057
XXX.XX.128.73 xx-xxx-xxxx-xxxxxxx23-128073.vclound.com xx-xxx-xxxx-xxxxxxx23-128073
XXX.XX.128.74 xx-xxx-xxxx-xxxxxxx24-128074.vclound.com xx-xxx-xxxx-xxxxxxx24-128074
XXX.XX.128.75 xx-xxx-xxxx-xxxxxxx25-128075.vclound.com xx-xxx-xxxx-xxxxxxx25-128075
XXX.XX.128.76 xx-xxx-xxxx-xxxxxxx26-128076.vclound.com xx-xxx-xxxx-xxxxxxx26-128076
时间同步验证
[root@xx-xxx-xxxx-xxxxxxx24-128074 ~]# chronyc tracking
Reference ID : 10.199.129.21 (hh-yun-129021.vclound.com)
Stratum : 12
Ref time (UTC) : Tue Jul 21 07:45:32 2015
System time : 0.000002526 seconds fast of NTP time
Last offset : 0.000005405 seconds
RMS offset : 0.007192081 seconds
Frequency : 18.428 ppm slow
Residual freq : 0.001 ppm
Skew : 0.060 ppm
Root delay : 0.000141 seconds
Root dispersion : 0.011696 seconds
Update interval : 386.4 seconds
Leap status : Normal
2. ceph 软件安装
**注: **
假如之前安装过 ceph, 并计划清除之前的集群配置, 那么执行下面命令可以把 ceph 配置进行安装
清除方法: ceph-deploy purgedata {node-name}, ceph-deploy purge {node-name}
yum 源