1.11. 在升级的存储集群中安装 cephadm-ansible
cephadm-ansible
是 Ansible playbook 的集合,可简化由 cephadm
所涵盖的工作流。安装后,playbook 位于 /usr/share/cephadm-ansible/
中。
注意
在将新节点或新客户端添加到升级的存储集群之前,请运行 cephadm-preflight.yml
playbook。
先决条件
- 对 Ansible 管理节点的根级别访问权限.
- 具有适当权利的有效的红帽订阅.
- 用于访问 Red Hat Registry 的有效红帽网络 (RHN) 或服务帐户。
流程
卸载
ansible
和旧的ceph-ansible
软件包:语法
dnf remove ansible ceph-ansible
dnf remove ansible ceph-ansible
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 在 Ansible 管理节点上禁用 Ansible 存储库并启用 Ceph 存储库:
Red Hat Enterprise Linux 8
subscription-manager repos --enable=rhel-8-for-x86_64-baseos-rpms --enable=rhel-8-for-x86_64-appstream-rpms --enable=rhceph-5-tools-for-rhel-8-x86_64-rpms --disable=ansible-2.9-for-rhel-8-x86_64-rpms
[root@admin ~]# subscription-manager repos --enable=rhel-8-for-x86_64-baseos-rpms --enable=rhel-8-for-x86_64-appstream-rpms --enable=rhceph-5-tools-for-rhel-8-x86_64-rpms --disable=ansible-2.9-for-rhel-8-x86_64-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Red Hat Enterprise Linux 9
subscription-manager repos --enable=rhel-9-for-x86_64-baseos-rpms --enable=rhel-9-for-x86_64-appstream-rpms --enable=rhceph-5-tools-for-rhel-9-x86_64-rpms --disable=ansible-2.9-for-rhel-9-x86_64-rpms
[root@admin ~]# subscription-manager repos --enable=rhel-9-for-x86_64-baseos-rpms --enable=rhel-9-for-x86_64-appstream-rpms --enable=rhceph-5-tools-for-rhel-9-x86_64-rpms --disable=ansible-2.9-for-rhel-9-x86_64-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 安装
cephadm-ansible
软件包,该软件包将ansible-core
作为依赖项安装:语法
dnf install cephadm-ansible
dnf install cephadm-ansible
Copy to Clipboard Copied! Toggle word wrap Toggle overflow