搭建本地Ceph yum源
Posted 涛子GE哥
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了搭建本地Ceph yum源相关的知识,希望对你有一定的参考价值。
centos7 Ceph yum源搭建:1、安装nginx,createrepo,reposync yum install nginx createrepo yum-utils -y
2、在nginx根目录建立文件夹 mkdir -p /usr/share/nginx/html/yum/x86_64/ceph/RPMS #使用默认nginx配置,访问目录是在:/usr/share/nginx/html/
启动nginx:nginx
3、下载ceph所需要的包在/usr/share/nginx/html/yum/x86_64/ceph/RPMS目录下(可以指定版本,按照自己需求做,我这里做的是10.2.9) wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/ceph-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/ceph-base-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/ceph-common-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/ceph-devel-compat-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/ceph-fuse-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/ceph-libs-compat-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/ceph-mds-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/ceph-mon-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/ceph-osd-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/ceph-radosgw-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/ceph-selinux-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/ceph-test-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/cephfs-java-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/libcephfs1-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/libcephfs1-devel-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/libcephfs_jni1-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/libcephfs_jni1-devel-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/librados2-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/librados2-devel-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/libradosstriper1-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/libradosstriper1-devel-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/librbd1-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/librbd1-devel-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/librgw2-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/librgw2-devel-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/python-ceph-compat-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/python-cephfs-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/python-rados-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/python-rbd-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/rbd-fuse-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/rbd-mirror-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/rbd-nbd-10.2.9-0.el7.x86_64.rpm wget http://mirrors.aliyun.com/ceph/rpm-hammer/el7/noarch/ceph-deploy-1.5.36-0.noarch.rpm4、自动生成repodata createrepo -p /usr/share/nginx/html/yum/x86_64/ceph/
5、在client端创建repo文件 [Ceph-10.2.9] name=Ceph-10.2.9 baseurl=http://yum server IP/yum/x86_64/ceph gpgcheck=0 enabled=1
6、验证
以上是关于搭建本地Ceph yum源的主要内容,如果未能解决你的问题,请参考以下文章