参考文档:添加Ceph Monitor_鲲鹏BoostKit分布式存储使能套件_部署指南_Ceph-ansible 部署指南(CentOS 7.6)_集群扩容_华为云
1、基础环境
ip | 主机名 | 系统版本 | 组件 | 数据盘 |
172.31.40.204 | ceph01 | centos7.9 | mons,osds,mgrs,mdss,clients,rgws | /dev/sdb |
172.31.40.205 | ceph02 | centos7.9 | mons,osds,mgrs,mdss,clients,rgws,grafana-server | /dev/sdb |
172.31.40.206 | ceph03 | centos7.9 | mons,osds,mgrs,mdss,clients,rgws | /dev/sdb |
需要执行的操作有做ceph01到ceph01、ceph02、ceph03的免密操作,同时三个节点需要做时间同步、关闭防火墙、selinux
三台机器安装yum源
CentOS-Base.repo
[root@ceph01 yum.repos.d]# cat CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$releasever - Updates -