环境拓扑
主机 | 配置 | 地址 | 运行服务 |
---|---|---|---|
node | CPU:1 内存:2GB 磁盘:vda(20GB) | br-mgmt:92.0.0.250 br-ex:192.168.203.250/19 | ntp |
anode | CPU:1 内存:2GB 磁盘:vda(20GB) | br-mgmt:92.0.0.11 br-ex:192.168.203.11/19 | ceph-mon & ceph-mgr & ceph-mds |
bnode | CPU:1 内存:2GB 磁盘:vda(20GB) | br-mgmt:92.0.0.12 br-ex:192.168.203.12/19 | ceph-mon & ceph-mgr |
cnode | CPU:1 内存:2GB 磁盘:vda(20GB) | br-mgmt:92.0.0.13 br-ex:192.168.203.13/19 | ceph-mon & ceph-mgr |
dnode | CPU:1 内存:2GB 磁盘:vda(20GB) vdb(20GB) | br-mgmt:92.0.0.14 br-ex:192.168.203.14/19 | ceph-osd |
enode | CPU:1 内存:2GB 磁盘:vda(20GB) vdb(20GB) | br-mgmt:92.0.0.15 br-ex:192.168.203.15/19 | ceph-osd |
获取软件
安装yum源管理工具
# yum install yum-plugin-priorities -y
# vim /etc/yum/pluginconf.d/priorities.conf
[main]
enabled = 1
添加KEYS
# rpm --import \'https://download.ceph.com/keys/release.asc\'
配置软件源
# tee /etc/yum.repos.d/ceph.repo << EOF
[ceph]
name=Ceph packages for $basearch
baseurl=https://download.ceph.com/rpm-luminous/el7/\\$basearch
enabled=1
priority=2
gpgcheck=1
gpgkey=https://download.ceph.com/keys/release.asc
[ceph-noarch]
name=Ceph noarch packages
baseurl=https://download.ceph.com/rpm-luminous/el7/noarch
enabled=1
priority=2
gpgcheck=1
gpgkey=https://download.ceph.com/keys/release.asc
[ceph-source]
name=Ceph source packages
baseurl=https://download.ceph.com/rpm-luminous/el7/SRPMS
enabled=0
priority=2
gpgcheck=1
gpgkey=https://download.ceph.com/keys/release.asc
EOF
安装依赖软件
# yum install -y snappy leveldb gdisk python-argparse gperftools-libs
安装ceph
# yum install -y ceph
安装NTP
# yum install -y ntp