4.11. 安装 HA 软件包和代理

在所有节点上完成以下步骤。

流程

  1. 在 Google Cloud Console 中,选择 Compute Engine,然后选择 VM instances
  2. 选择实例,单击 SSH 旁边的箭头,然后选择 View gcloud 命令选项。
  3. 在命令提示符下粘贴此命令,以进行免密码访问实例。
  4. 启用 sudo 帐户访问,并通过 Red Hat Subscription Manager 注册。
  5. 启用订阅池 ID(或使用 --auto-attach 命令)。
  6. 禁用所有软件仓库。

    # subscription-manager repos --disable=*
  7. 启用以下软件仓库。

    # subscription-manager repos --enable=rhel-9-server-rpms
    # subscription-manager repos --enable=rhel-9-for-x86_64-highavailability-rpms
  8. 安装 pcs pacemaker、隔离代理和资源代理。

    # dnf install -y pcs pacemaker fence-agents-gce resource-agents-gcp
  9. 更新所有软件包。

    # dnf update -y