Automation Suite
2022.4
False
横幅背景图像
Automation Suite 安装指南
上次更新日期 2024年4月24日

在线自动化:还原集群

在开始之前

  • 确保您已遵循 先决条件
  • 确保在备份集群上禁用了备份。如果在还原集群时创建了新备份,则会出现不一致。有关详细信息,请参阅自动:禁用集群备份
  • 确保包 wget、unzip、jq 在所有还原节点上可用。
  • 所有外部数据源必须相同 (SQL Server)。
  • 在还原集群之前,您必须重新启动 NFS 服务器。 为此,请在 NFS 服务器节点上运行以下命令: systemctl restart nfs-server
  • 还原集群必须具有与备份集群相同的 FQDN。
  • 确保已准备好使用 uipathctl.sh 脚本的环境。 有关详细信息,请参阅 使用 uipathctl.sh
  • 在集群还原时,您必须提供inventory.ini文件,其中包含 Ansible 主机节点的 IP 地址以及有关如何通过 SSH 连接到所有节点的信息。 uipathctl.sh脚本无法自动生成此文件,因为在还原过程中集群不存在。

    安装类型

    配置说明

    要求

    在线单节点评估模式

    下载以下文件:

    • sf-installer.zip必填。有关下载说明,请参见 sf-installer.zip

    在线多节点 HA 就绪生产模式

    下载以下文件:

    • sf-installer.zip必填。有关下载说明,请参见 sf-installer.zip
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. 将包含还原配置和其他安装程序文件的 restore.json 文件复制到 /opt/UiPathAutomationSuite/{version}/installer 文件夹。 有关详细信息,请参阅 准备还原配置
    # 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# 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
  4. 解压缩sf-installer.zip文件。
    # Navigate to installer folder. Replace {version} with actual installer version
    cd /opt/UiPathAutomationSuite/{version}/installer
    
    unzip sf-installer.zip -d . 
    cd sf-installer# Navigate to installer folder. Replace {version} with actual installer version
    cd /opt/UiPathAutomationSuite/{version}/installer
    
    unzip sf-installer.zip -d . 
    cd sf-installer

还原集群

要还原集群,您必须向uipathctl.sh脚本提供以下文件:
  • inventory.ini – 此文件包含有关集群中所有节点的信息和 SSH 详细信息。 uipathctl.sh脚本不会自动生成inventory.ini文件,因为在集群还原时集群不存在。
  • restore.json – 此文件包含还原配置。 有关详细信息,请参阅准备还原配置部分。

要还原集群,请使用基本参数运行以下命令。 确保使用适用于您的参数值。

./uipathctl.sh restore --install-type online --restore-config ./restore.json --inventory ./inventory.ini./uipathctl.sh restore --install-type online --restore-config ./restore.json --inventory ./inventory.ini

基本参数

参数

描述

--install-type

可能的值: onlineoffline
由于此页面提供了在线还原说明,因此请选择online值。

--restore-config

该文件包含还原配置。

有关详细信息,请参阅 准备还原配置

--inventory

该文件包含有关集群中所有节点的信息以及 SSH 详细信息。

有关详细信息,请参阅 生成 AnsibleInventory.init 文件

高级参数

参数

描述

--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
重要提示:

未在还原的集群上启用备份。 如果要启用它,请参阅 在集群上启用备份

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

  • 在开始之前
  • 准备还原流程
  • 还原集群
  • 基本参数
  • 高级参数
  • 正在还原 Cluster_config.json

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.