- 概述
- 要求
- 安装
- 安装后
- 集群管理
- 监控和警示
- 迁移和升级
- 特定于产品的配置
- 最佳实践和维护
- 故障排除
- 无法获取沙盒映像
- Pod 未显示在 ArgoCD 用户界面中
- Redis 探测器失败
- RKE2 服务器无法启动
- 在 UiPath 命名空间中找不到密码
- 初始安装后,ArgoCD 应用程序进入“进行中”状态
- MongoDB Pod 处于 CrashLoopBackOff 状态或在删除后处于“等待 PVC 配置”状态
- 意外错误:不一致;手动运行 fsck
- 集群还原后 MongoDB 或业务应用程序降级
- 缺少 Self-heal-operator 和 Sf-k8-utils 存储库
- 集群还原或回滚后服务不正常
- RabbitMQ Pod 卡在 CrashLoopBackOff 中
- Prometheus 处于 CrashLoopBackoff 状态,并出现内存不足 (OOM) 错误
- 监控仪表板中缺少 Ceph-rook 指标
- Pod 无法在代理环境中与 FQDN 通信
- 使用 Automation Suite 诊断工具
- 使用 Automation Suite 支持捆绑包
- 探索日志
自动、离线:还原集群
在开始之前
-
Make sure you have followed the Prerequisites.
-
Make sure the backup is disabled on the backup cluster. Inconsistencies will occur if a new backup is created while restoring the cluster. For details, see Automated: Disabling the backup on the cluster.
-
确保包 wget、unzip、jq 在所有还原节点上可用。
-
所有外部数据源必须相同 (SQL Server)。
-
在还原集群之前,您必须重新启动 NFS 服务器。 为此,请在 NFS 服务器节点上运行以下命令:
systemctl restart nfs-server。 -
还原集群必须具有与备份集群相同的 FQDN。
-
Make sure you have prepared your environment for using
uipathctl.shcommand. For details, see Using uipathctl.sh. -
在集群还原时,您必须提供
inventory.ini文件,其中包含 Ansible 主机节点的 IP 地址以及有关如何通过 SSH 连接到所有节点的信息。uipathctl.sh脚本无法自动生成此文件,因为在还原过程中集群不存在。安装类型 配置说明 要求 离线单节点评估模式
下载以下文件:
sf-installer.zip– Mandatory. See sf-installer.zip for download instructions.sf-infra.tar.gz– Mandatory. See sf-infra.tar.gz for download instructions.
离线多节点 HA 就绪生产模式
下载以下文件
sf-installer.zip– Mandatory. See sf-installer.zip for download instructions.sf-infra.tar.gz– Mandatory. See sf-infra.tar.gz for download instructions.
Ansible 可自动执行 Automation Suite 集群的还原流程。 在下图中,节点Server 1 (即 Ansible 主机节点)使用 Ansible 协调集群中所有节点的还原。
准备还原流程
-
登录到您标识为 Ansible 主机节点的服务器节点。
-
创建
/opt/UiPathAutomationSuite/{version}/installer文件夹以托管安装程序。# Become root sudo su - # Replace {version} with actual installer version mkdir -p /opt/UiPathAutomationSuite/{version}/installer chmod -R 777 /opt/UiPathAutomationSuite# Become root sudo su - # Replace {version} with actual installer version mkdir -p /opt/UiPathAutomationSuite/{version}/installer chmod -R 777 /opt/UiPathAutomationSuite -
Copy the
restore.jsonfile containing the restore configuration to the/opt/UiPathAutomationSuite/{version}/installerfolder. For details, see Preparing the restore configuration.# Replace {version} with actual installer version cp /path/to/restore.json /opt/UiPathAutomationSuite/{version}/installer cp /path/to/sf-installer.zip /opt/UiPathAutomationSuite/{version}/installer cp /path/to/sf-infra.tar.gz /opt/UiPathAutomationSuite/{version}# Replace {version} with actual installer version cp /path/to/restore.json /opt/UiPathAutomationSuite/{version}/installer cp /path/to/sf-installer.zip /opt/UiPathAutomationSuite/{version}/installer cp /path/to/sf-infra.tar.gz /opt/UiPathAutomationSuite/{version} -
解压缩
sf-installer.zip文件。# Navigate to installer folder. Replace {version} with actual installer version cd /opt/UiPathAutomationSuite/{version}/installer unzip sf-installer.zip -d .# Navigate to installer folder. Replace {version} with actual installer version cd /opt/UiPathAutomationSuite/{version}/installer unzip sf-installer.zip -d .
Restoring the Cluster
要还原集群,您必须向uipathctl.sh脚本提供以下文件:
inventory.ini– 此文件包含有关集群中所有节点的信息和 SSH 详细信息。uipathctl.sh脚本不会自动生成inventory.ini文件,因为在集群还原时集群不存在。restore.json– 此文件包含还原配置。 有关详细信息,请参阅准备还原配置部分。
要还原集群,请使用基本参数运行以下命令。 确保使用适用于您的参数值。
./uipathctl.sh restore --install-type online --restore-config ./restore.json --inventory ./inventory.ini --offline-infra-bundle ../sf-infra.tar.gz
./uipathctl.sh restore --install-type online --restore-config ./restore.json --inventory ./inventory.ini --offline-infra-bundle ../sf-infra.tar.gz
基本参数
| 参数 | 描述 |
|---|---|
--install-type | 可能的值: online和offline 。由于此页面提供了在线还原说明,因此请选择 offline值。 |
--restore-config | 该文件包含还原配置。 For details, see Preparing the restore configuration. |
--inventory | 该文件包含有关集群中所有节点的信息以及 SSH 详细信息。 For details, see Generating the Ansible inventory.ini file. |
高级参数
| 参数 | 描述 |
|---|---|
--ansible-username | 指定将用于与所有节点的 SSH 连接的用户名。 默认为当前用户。 如果您对所有节点使用不同的用户名,则不要使用此参数,而是在 inventory.ini中设置所有节点的用户名,并将其传递给脚本。示例:运行脚本时,您将以 myadminuser用户名登录。 但是,如果要使用testadmin用户名通过 SSH 连接,则必须为此参数提供testadmin 。 |
正在还原 Cluster_config.json
集群恢复后,您可能需要恢复cluster_config.json以备将来参考。 在向集群添加新节点、升级等时,您可能需要该文件。
要还原cluster_config.json ,请从任何服务器节点运行以下命令:
./configureUiPathAS.sh config get -o ./cluster_config.json
./configureUiPathAS.sh config get -o ./cluster_config.json
The backup is not enabled on the restored cluster. If you wish to enable it, refer to Enabling the backup on the cluster.
还原集群不是幂等操作。 如果还原失败,请在重试操作之前执行以下步骤之一:
- Uninstall Automation Suite on all the nodes. For instructions, see Troubleshooting.
- Follow the manual restore steps. For instructions, see Manual, online: Restoring the cluster.
将 CA 证书添加到信任存储区
还原集群后,请确保将 CA 证书添加到已还原虚拟机的信任存储中。 有关详细信息,请参阅: