目录:
1、制作ceph离线安装包准备工作
2、编写3个repo文件
3、下载并打包ceph离线包
1、制作ceph离线安装包准备工作
# mount /dev/sr0 /mnt/ #挂载CentOS 7.8光盘 # yum install epel-repo # yum install yum-utils createrepo #安装打包工具
2、编写3个repo文件
【1】、cdrom.repo
# cat cdrom.repo #光盘包 [cdrom] name=cdrom baseurl=file:///mnt enable=1 gpgcheck=0
【2】、ceph.repo安装包,采用阿里云的yum仓库
# cat ceph.repo [Ceph-SRPMS] name=Ceph SRPMS packages baseurl=https://mirrors.aliyun.com/ceph/rpm-octopus/el7/SRPMS/ enabled=1 gpgcheck=0 type=rpm-md [Ceph-aarch64] name=Ceph aarch64 packages baseurl=https://mirrors.aliyun.com/ceph/rpm-octopus/el7/aarch64/ enabled=1 gpgcheck=0 type=rpm-md [Ceph-noarch] name=Ceph noarch packages baseurl=https://mirrors.aliyun.com/ceph/rpm-octopus/el7/noarch/ enabled=1 gpgcheck=0 type=rpm-md [Ceph-x86_64] name=Ceph x86_64 packages baseurl=https://mirrors.aliyun.com/ceph/rpm-octopus/el7/x86_64/ enabled=1 gpgcheck=0 type=rpm-md
【3】、ceph-iscsi 安装repo文件:
# cat ceph-iscsi.repo [ceph-iscsi] name=ceph-iscsi noarch packages baseurl=http://download.ceph.com/ceph-iscsi/3/rpm/el7/noarch enabled=1 gpgcheck=1 gpgkey=https://download.ceph.com/keys/release.asc type=rpm-md [ceph-iscsi-source] name=ceph-iscsi source packages baseurl=http://download.ceph.com/ceph-iscsi/3/rpm/el7/SRPMS enabled=0 gpgcheck=1 gpgkey=https://download.ceph.com/keys/release.asc type=rpm-md [tcmu-runner] name=tcmu-runner baseurl=https://3.chacra.ceph.com/r/tcmu-runner/master/9c84f7a4348ac326ac269fbdda507953dba6ec2c/centos/7/flavors/default/x86_64/ priority=1 gpgcheck=0 [ceph-iscsi-conf] name=ceph-iscsi-config baseurl=https://3.chacra.ceph.com/r/ceph-iscsi-config/master/7496f1bc418137230d8d45b19c47eab3165c756a/centos/7/flavors/default/noarch/ priority=1 gpgcheck=0
3、下载并打包ceph离线包
# mkdir /opt/ceph-octopus # repotrack ceph-deploy -p /opt/ceph-octopus/ #下载ceph-deploy部署工具包及依赖 # repotrack ceph ceph-mgr ceph-mon ceph-mds ceph-osd ceph-fuse ceph-radosgw -p /opt/ceph-octopus/ #下载各个组件包及依赖 # repotrack ceph-iscsi -p /opt/ceph-octopus/ #这个是下载ceph-iscsi 网关,会自动一起下载:tcmu-runner # createrepo -v /opt/ceph-octopus/ #生成repodata文件 # cd /opt # tar -zcf /opt/ceph-octopus.tar.gz ceph-octopus
可以传输解压到内网的yum服务器,进行内网部署了。