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

手动、离线:还原集群

在开始之前​

  • Make sure you meet the Prerequisites.

  • Make sure the backup is disabled on the backup cluster. Inconsistencies will occurs if a new backup is created while cluster restore is in progress. See Disabling the backup on the cluster.

  • 确保包 wget、unzip、jq 在所有还原节点上可用。

  • 所有外部数据源必须相同 (SQL Server)。

  • 通过在 NFS 服务器节点上运行以下命令,在还原集群之前重新启动 NFS 服务器: systemctl restart nfs-server 。

  • 还原集群应具有与备份集群相同的 FQDN。

    安装类型 配置说明 要求

    离线单节点评估模式

    下载以下文件:

    • 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.

准备还原操作​

重要提示:

如果集群中有多个节点,请在所有节点上执行以下步骤。

  1. 登录到任何计算机。

  2. 要创建/opt/UiPathAutomationSuite文件夹,请运行:

    # 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. To copy restore.json and other installer files to the /opt/UiPathAutomationSuite/{version} folder, run the following command. 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 Etcd on the First Server Node​

要在集群的第一个节点上还原 etcd,请运行:

./install-uipath.sh -i restore.json -o output.json -r --offline-bundle "../sf-infra.tar.gz" --offline-tmp-folder /opt/UiPathAutomationSuite/tmp --install-offline-prereqs --accept-license-agreement --install-type offline
./install-uipath.sh -i restore.json -o output.json -r --offline-bundle "../sf-infra.tar.gz" --offline-tmp-folder /opt/UiPathAutomationSuite/tmp --install-offline-prereqs --accept-license-agreement --install-type offline
备注:

此命令仅在第一个服务器节点上还原节点配置。

在剩余的服务器节点上还原 Etcd​

要在集群的其他服务器节点上还原 etcd,请运行:

./install-uipath.sh -i ../restore.json -o output.json -r -j server --offline-bundle "../sf-infra.tar.gz" --offline-tmp-folder /opt/UiPathAutomationSuite/tmp --install-offline-prereqs --accept-license-agreement --install-type offline
./install-uipath.sh -i ../restore.json -o output.json -r -j server --offline-bundle "../sf-infra.tar.gz" --offline-tmp-folder /opt/UiPathAutomationSuite/tmp --install-offline-prereqs --accept-license-agreement --install-type offline
备注:

此命令将还原其余服务器节点上的节点配置。

在代理节点上还原 Etcd​

要在集群的代理节点上还原 etcd,请运行:

./install-uipath.sh -i restore.json -o output.json -r -j agent --offline-bundle "../sf-infra.tar.gz" --offline-tmp-folder /opt/UiPathAutomationSuite/tmp --install-offline-prereqs --accept-license-agreement --install-type offline
./install-uipath.sh -i restore.json -o output.json -r -j agent --offline-bundle "../sf-infra.tar.gz" --offline-tmp-folder /opt/UiPathAutomationSuite/tmp --install-offline-prereqs --accept-license-agreement --install-type offline
备注:

此命令将还原其余代理节点上的节点配置。

在 Task Mining 节点上还原 Etcd​

要在集群的 Task Mining 代理节点上还原 etcd,请运行:

./install-uipath.sh -i restore.json -o output.json -r -j task-mining --offline-bundle "../sf-infra.tar.gz" --offline-tmp-folder /opt/UiPathAutomationSuite/tmp --install-offline-prereqs --accept-license-agreement --install-type offline
./install-uipath.sh -i restore.json -o output.json -r -j task-mining --offline-bundle "../sf-infra.tar.gz" --offline-tmp-folder /opt/UiPathAutomationSuite/tmp --install-offline-prereqs --accept-license-agreement --install-type offline
备注:

此命令将还原 Task Mining 节点上的节点配置。

在 GPU 节点上还原 etcd​

备注:

Before restoring the GPU machine, make sure you have followed Installing a GPU driver on the machine.

要在集群的 GPU 代理节点上还原 etcd,请运行:

./install-uipath.sh -i restore.json -o output.json -r -j gpu --offline-bundle "../sf-infra.tar.gz" --offline-tmp-folder /opt/UiPathAutomationSuite/tmp --install-offline-prereqs --accept-license-agreement --install-type offline
./install-uipath.sh -i restore.json -o output.json -r -j gpu --offline-bundle "../sf-infra.tar.gz" --offline-tmp-folder /opt/UiPathAutomationSuite/tmp --install-offline-prereqs --accept-license-agreement --install-type offline
备注:

此命令将还原其余 GPU 节点上的节点配置。

禁用维护模式​

备注:

This step is required only if the restore is part of the rollback operation during the upgrade.

在还原卷之前,您需要禁用维护模式:

./configureUiPathAS.sh disable-maintenance-mode
./configureUiPathAS.sh disable-maintenance-mode

在任何服务器节点上运行卷还原​

完成 etcd 还原后,通过运行以下命令在任何服务器节点上还原卷:

\./install-uipath.sh -i restore.json -o output.json -r --volume-restore --accept-license-agreement --install-type offline
\./install-uipath.sh -i restore.json -o output.json -r --volume-restore --accept-license-agreement --install-type offline
备注:

此命令将还原集群上的卷数据。

在还原的集群上启用 AI Center​

After restoring an Automation Suite cluster with AI Center™ enabled, follow the steps from the Enabling AI Center on the Restored Cluster procedure.

正在还原 Cluster_config.json​

完成 Automation Suite 集群恢复后,您可能需要恢复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 want to enable the backup, refer to Enabling the backup on the cluster.

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

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

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新