4.11. 安装 HA 软件包和代理
在每个节点上,您需要安装高可用性软件包和代理,以便在 Google Cloud Platform (GCP)上配置红帽高可用性集群。
流程
- 在 Google Cloud Console 中,选择 Compute Engine,然后选择 VM instances。
- 选择实例,单击 SSH 旁边的箭头,然后选择 View gcloud 命令选项。
- 在命令提示符下粘贴此命令,以进行免密码访问实例。
- 启用 sudo 帐户访问,并通过 Red Hat Subscription Manager 注册。
-
启用订阅池 ID(或使用
--auto-attach
命令)。 禁用所有软件仓库。
# subscription-manager repos --disable=*
启用以下软件仓库。
# subscription-manager repos --enable=rhel-9-server-rpms # subscription-manager repos --enable=rhel-9-for-x86_64-highavailability-rpms
安装
pcs pacemaker
、隔离代理和资源代理。# dnf install -y pcs pacemaker fence-agents-gce resource-agents-gcp
更新所有软件包。
# dnf update -y