1、Centos7中: yum install -y yum-utils rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 rm -f /etc/yum.repos.d/dl.fedoraproject.org* 配置yum仓库: vim /etc/yum.repos.d/ceph.repo [ceph-noarch] name=Ceph noarch packages baseurl=http://download.ceph.com/rpm-{ceph-release}/{distro}/noarch enabled=1 gpgcheck=1 type=rpm-md gpgkey=https://download.ceph.com/keys/release.asc 更新仓库及安装ceph-deploy yum -y update 会报错执行: yum-config-manager --disable ceph-noarch yum-config-manager --save --setopt=ceph-noarch.skip_if_unavailable=true yum install ceph-deploy -y - ceph-deploy new node1 这里也不报错,会产生三个文件, 修改 ceph.conf 添加 osd pool default size = 2
- ceph-deploy install admin-node node1 node2 node3就报错
- Running command: yum -y install epel-release
[admin-node][DEBUG ] 已加载插件:fastestmirror, priorities
[admin-node][WARNIN] http://ceph.com/rpm-hammer/rhel7/noarch/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
[admin-node][WARNIN] 正在尝试其它镜像。
[admin-node][WARNIN] To address this issue please refer to the below knowledge base article
[admin-node][WARNIN]
[admin-node][WARNIN] https://access.redhat.com/articles/1320623
[admin-node][WARNIN]
[admin-node][WARNIN] If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/
[admin-node][WARNIN]
[admin-node][WARNIN]
[admin-node][WARNIN]
[admin-node][WARNIN] One of the configured repositories failed (Ceph noarch packages),
[admin-node][WARNIN] and yum doesn't have enough cached data to continue. At this point the only
[admin-node][WARNIN] safe thing yum can do is fail. There are a few ways to work "fix" this:
[admin-node][WARNIN]
[admin-node][WARNIN] 1. Contact the upstream for the repository and get them to fix the problem.
[admin-node][WARNIN]
[admin-node][WARNIN] 2. Reconfigure the baseurl/etc. for the repository, to point to a working
[admin-node][WARNIN] upstream. This is most often useful if you are using a newer
[admin-node][WARNIN] distribution release than is supported by the repository (and the
[admin-node][WARNIN] packages for the previous distribution release still work).
[admin-node][WARNIN]
[admin-node][WARNIN] 3. Disable the repository, so yum won't use it by default. Yum will then
[admin-node][WARNIN] just ignore the repository until you permanently enable it again or use
[admin-node][WARNIN] --enablerepo for temporary usage:
[admin-node][WARNIN]
[admin-node][WARNIN] yum-config-manager --disable Ceph-noarch
[admin-node][WARNIN]
[admin-node][WARNIN] 4. Configure the failing repository to be skipped, if it is unavailable.
[admin-node][WARNIN] Note that yum will try to contact the repo. when it runs most commands,
[admin-node][WARNIN] so will have to try and fail each time (and thus. yum will be be much
[admin-node][WARNIN] slower). If it is a very temporary problem though, this is often a nice
[admin-node][WARNIN] compromise:
[admin-node][WARNIN]
[admin-node][WARNIN] yum-config-manager --save --setopt=Ceph-noarch.skip_if_unavailable=true
[admin-node][WARNIN]
[admin-node][WARNIN] failure: repodata/repomd.xml from Ceph-noarch: [Errno 256] No more mirrors to try.
[admin-node][WARNIN] http://ceph.com/rpm-hammer/rhel7/noarch/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
[admin-node][ERROR ] RuntimeError: command returned non-zero exit status: 1
[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: yum -y install epel-release - 执行者两条命令
yum-config-manager --disable Ceph-noarch
yum-config-manager --save --setopt=Ceph-noarch.skip_if_unavailable=true 还是一样 只好在各个节点手动安装 epel-release 和ceph 但收集密钥的时候会少一个 ceph.bootstrap-rgw.keyring这样的文件
|