8.4. 手动升级 Ceph 对象网关节点及其操作系统

作为系统管理员,您可以手动将 Red Hat Ceph Storage 集群节点上的 Ceph Object Gateway (RGW) 软件和 Red Hat Enterprise Linux 操作系统同时升级到新的主版本。

重要

应当对 Ceph 集群中的每一 RGW 节点执行此步骤,但一次仅针对一个 RGW 节点执行此步骤。在继续下一节点之前,确保当前升级的 RGW 已恢复正常操作,以防止任何客户端访问问题。

先决条件

  • 一个正在运行的 Red Hat Ceph Storage 集群。
  • 节点正在运行 Red Hat Enterprise Linux 7 7.9。
  • 节点使用 Red Hat Ceph Storage 版本 3.3z6 或 4.1
  • 访问 Red Hat Enterprise Linux 8.3 的安装源。

流程

  1. 停止 Ceph 对象网关服务:

    # systemctl stop ceph-radosgw.target
  2. 如果使用 Red Hat Ceph Storage 3,请禁用 Red Hat Ceph Storage 3 工具存储库:

    # subscription-manager repos --disable=rhel-7-server-rhceph-3-tools-rpms
  3. 如果使用 Red Hat Ceph Storage 4,请禁用 Red Hat Ceph Storage 4 工具存储库:

    # subscription-manager repos --disable=rhel-7-server-rhceph-4-tools-rpms
  4. 安装 leapp 实用程序。请参阅从 Red Hat Enterprise Linux 7 升级到 Red Hat Enterprise Linux 8
  5. 通过 leapp preupgrade 检查运行。请参阅从命令行评估可升级性
  6. /etc/ssh/sshd_config 中设置 PermitRootLogin yes
  7. 重启 OpenSSH SSH 守护进程:

    # systemctl restart sshd.service
  8. 从 Linux 内核中删除 iSCSI 模块:

    # modprobe -r iscsi
  9. 执行 从 RHEL 7 升级到 RHEL 8 的内容,以执行升级。
  10. 重新引导节点。
  11. 为 Red Hat Enterprise Linux 8 启用 Red Hat Ceph Storage 4 的工具存储库。

    # subscription-manager repos --enable=rhceph-4-tools-for-rhel-8-x86_64-rpms
  12. 安装 ceph-radosgw 软件包:

    # dnf install ceph-radosgw
  13. 可选:安装在此节点上并置的任何 Ceph 服务的软件包。如果需要,启用额外的 Ceph 存储库。
  14. 可选:安装其他 Ceph 服务需要的 leveldb 软件包。

    # dnf install leveldb
  15. 从尚未升级的节点或已经恢复这些文件的节点恢复 ceph-client-admin.keyring 和 ceph.conf 文件。
  16. 启动 RGW 服务:

    # systemctl start ceph-radosgw.target
  17. 将任何现有的 CRUSH bucket 切换到最新的 bucket 类型 straw2

    # ceph osd getcrushmap -o backup-crushmap
    # ceph osd crush set-all-straw-buckets-to-straw2
  18. 验证守护进程是否活跃:

    # ceph -s

    services: 下有一个 rgw: 行。

    示例

    rgw: 1 daemon active (jb-ceph4-rgw.rgw0)

  19. 在所有 Ceph 对象网关节点上重复上述步骤,直到它们都已升级。