UiPath Documentation
automation-suite
2022.4
false
Automation Suite 安装指南
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

自动、离线:还原集群

在开始之前​

  • 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.sh command. 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 协调集群中所有节点的还原。

准备还原流程​

  1. 登录到您标识为 Ansible 主机节点的服务器节点。

  2. 创建/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
    
  3. Copy the restore.json file containing the restore configuration to the /opt/UiPathAutomationSuite/{version}/installer folder. 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}
    
  4. 解压缩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.

还原集群不是幂等操作。 如果还原失败,请在重试操作之前执行以下步骤之一:

将 CA 证书添加到信任存储区​

还原集群后,请确保将 CA 证书添加到已还原虚拟机的信任存储中。 有关详细信息,请参阅:

  • 在开始之前​
  • 准备还原流程​
  • 还原集群​
  • 基本参数​
  • 高级参数​
  • 正在还原 Cluster_config.json​
  • 将 CA 证书添加到信任存储区​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新