ceph本地源

适用无法直连或通过代理连接互联网镜像源

  • 联网主机:用于导出ceph依赖,操作系统为CentOS7
  • 离线主机:实际部署ceph应用的主机(多节点实例)

依赖导出(联网主机)

rm -f /etc/yum.repos.d/*.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo

yum update -y
yum install yum-plugin-downloadonly -y
yum install --downloadonly --downloaddir=./ceph ceph ceph-common ceph-deploy

生成repo依赖关系(联网主机)

yum install -y createrepo
createrepo ./ceph

压缩(联网主机)

tar zcvf ceph.tar.gz ceph

配置使用(离线主机)

tar zxvf ceph.tar.gz -C /

cat > /etc/yum.repos.d/ceph.repo <<EOF
[ceph]
name=python-repo
baseurl=file:///ceph
gpgcheck=0
enabled=1
EOF
yum install -y ceph ceph-deploy ceph-common
Copyright © weiliang 2021 all right reserved,powered by Gitbook本书发布时间: 2024-04-22 16:03:41

results matching ""

    No results matching ""