ceph-ansible部署ceph集群

本文档详细介绍了如何在CentOS 7.6环境中使用ceph-ansible v4.0.62进行Ceph集群的部署。首先确保节点间免密操作、时间同步和关闭防火墙等基础环境准备。接着安装必要的yum源并更新缓存,下载并解压ceph-ansible。然后,修改group_vars文件夹内的配置文件,调整docker版本以适配CentOS 7,并创建hosts文件指定服务器角色。在ceph01节点上执行部署命令后,可能会遇到警告,可通过特定命令清除。此外,文章还提供了监控Ceph集群的dashboard、grafana、prometheus和alertmanager的访问链接。
摘要由CSDN通过智能技术生成

参考文档:添加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 - 
  • 1
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值