#部署Ceph-Quincy集群需要使用cephadm工具,该工具为一个Python脚本

#部署过程中需要连接到公网quay.io站点下载Ceph相关镜像

#为规避无法连接外网或同一时间大量下载造成网络卡顿,故需自己部署一个私有站点quay.io欺骗cephadm工具#上传Ceph集群相关文件(cephadm 脚本和Ceph镜像)

[root@server1 ~]# scp -r /linux-soft/s2/zzg/ceph_soft/ceph-server/root@192.168.88.240:/root

[root@pubserver ~]# ss -antpul | grep :80#检查 80端口是否被占用,如果被占用停止对应服务

[root@pubserver ~]# yum -ylocalinstall ./ceph-server/docker-distribution-2.6.2-2.git48294d9.el7.x86_64.rpm

[root@pubserver ~]# vim /etc/docker-distribution/registry/config.yml

http:addr: :80#端口由 5000调整为80,必须调整,否则后续下载镜像时会有报错

[root@pubserver ~]# systemctl enable docker-distribution.service --now

[root@pubserver ~]# ss -antpul | grep :80#确认 80端口被registry进程占用

tcpLISTEN 0 128*:80*:*users:(("registry",pid=11002,fd=3))

[root@pubserver ~]# vim /etc/hosts

[root@pubserver ~]# tail -1 /etc/hosts

192.168.88.240 quay.io