automation-suite
2024.10
true
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Linux 版 Automation Suite 安装指南

上次更新日期 2025年10月17日

步骤 8:配置磁盘

在执行 Automation Suite 安装之前,必须使用 LVM 对磁盘进行分区和配置,以便您可以轻松更改其大小,而不会迁移任何数据或丢失数据。

分区磁盘

RHEL 计算机上的默认分区结构不适合安装 Kubernetes。这是因为 Kubernetes 基础架构通常安装在 /var 分区下,而默认情况下,系统仅会分配给该分区 8 GB 的空间。
备注:
  • 支持的磁盘格式为 ext4xfs
  • 您必须使用 LVM 创建所有分区,以确保集群数据可以驻留在不同的磁盘上,但仍然能够以一致的方式查看。这也有助于将来扩展分区大小,而无需担心数据迁移或丢失。
  • 所有 Pod 和应用程序日志都存储在/var/log/pods目录下。 确保此目录的容量至少为 8 GB。 我们还建议配置logrotate ,使其按每天到每周的间隔轮换日志。
  • 如果将单节点 RKE2 设置与集群内存储一起使用,则必须提供至少 512 GB 的额外磁盘空间用于存储 Ceph 数据备份。安装过程中需要使用此磁盘,但必须在集群完全安装后配置使用该磁盘的备份 Cron 作业。有关详细信息,请参阅“执行安装后操作”

在线和离线安装的磁盘要求相同,不同之处在于解压缩离线 UiPath™ 捆绑包需要额外的空间。

对于 RHEL 操作系统,您需要确保计算机上的装载点不小于以下数据。

磁盘标签

服务器

代理

分区

大小

用途

集群磁盘

注意:如果启用 Document Understanding 新式项目,则最小为400 GB

available

available

/var/lib/rancher

190GB

存储容器映像和层。

/var/lib/kubelet

56GB

存储运行时 Kubernetes 配置,例如密码、配置映射和空目录。

/opt/UiPathAutomationSuite

10 GB

存储安装程序二进制文件。

etcd 磁盘

available

不可用

/var/lib/rancher/rke2/server/db

16GB

存储 Kubernetes 的分布式数据库

数据磁盘

available

不可用

/datadisk/insights

15GB

对于 Insights 为必要项。

/datadisk/monitoring

50 GB

对于监控工具为必要项。

/datadisk/registry 1

200GB

对于 Docker 注册表为必要项。

/datadisk/objectstore2

10 GB

对于 ceph-mon 为必要项。

对象存储2

available

不可用

不适用

512 GB

对于集群内对象存储为必需。

AI Center3

available

available

不适用

1 个训练管道至少需要51 GB ,建议使用105 GB

仅在安装 AI Center 时才为必要项。

UiPath™ 捆绑包磁盘

available

不可用

/uipath512 GB

仅用于离线安装,用于存储离线捆绑包

Ceph 备份

available

不可用

/backup512 GB仅对于具有集群内存储的单节点 RKE2 设置是必需的,用于存储 Ceph 数据备份。
1集群内 Docker 注册表,如果您使用外部注册表,则不适用。

2这指的是集群内对象存储,如果您使用外部对象存储,则不适用。

3指 AI Center 训练管道所需的存储空间。仅在计划运行 AI Center 训练管道的计算机和专用 Task Mining 节点上才需要磁盘。我们建议在代理计算机上附加此磁盘。

备注:

我们建议您不要将操作系统磁盘用于上述任何目的,以确保流程获得其公平份额的资源。

使用 uipathctl 配置磁盘

要对磁盘进行配置和分区,您必须使用uipathctl

正在下载 uipathctl

uipathctlas-installer.zip安装包的一部分。 要使用uipathctl ,请执行以下步骤:
  1. 下载as-installer.zip并将其保存到临时位置。 有关下载说明,请参阅as-installer.zip
  2. 通过运行以下命令提取内容:

    unzip as-installer.zip -d installerunzip as-installer.zip -d installer
有关如何使用uipathctl配置磁盘的详细信息,请运行以下命令:
./bin/uipathctl rke2 disk --help./bin/uipathctl rke2 disk --help

在所有计算机上配置集群磁盘

要配置集群磁盘,请在所有计算机上运行以下命令:

./bin/uipathctl rke2 disk --cluster-disk-name name_of_cluster_disk./bin/uipathctl rke2 disk --cluster-disk-name name_of_cluster_disk 

在所有服务器计算机上配置 etcd 磁盘

要配置 etcd 磁盘,请在所有服务器计算机上运行以下命令:

./bin/uipathctl rke2 disk --etcd-disk-name name_of_etcd_disk./bin/uipathctl rke2 disk --etcd-disk-name name_of_etcd_disk 
重要提示:

The etcd disk configuration must be performed only after completing the cluster disk configuration.

The order of configuration must be preserved, because the etcd disk is mounted inside the cluster disk.

If this step is executed before configuring the cluster disk, it can lead to data loss after a machine reboot, since the kernel automatically mounts disks in sequence, first the cluster disk and then the etcd disk.

在所有服务器计算机上配置数据磁盘

要配置数据磁盘,您必须确定要使用的特定磁盘。运行lsblk命令以列出所有块储存设备、其大小和装载点。使用磁盘大小来标识相关磁盘(对于--volume标志,应使用 512 GB 的数据磁盘)。

在所有服务器计算机上运行以下命令,并根据您的要求提供必要的标志:

./bin/uipathctl rke2 disk --volume name_of_data_disk./bin/uipathctl rke2 disk --volume name_of_data_disk

标记

-v|--volume

磁盘名称示例:/dev/sde

对托管用于监控、Insights、对象存储和注册表的各种装载的磁盘进行分区时,您需要磁盘名称。

首次配置磁盘时,必须提供磁盘名称。如果在后续运行期间未提供名称,则与 uipathdatavg 关联的任何现有磁盘都用于为所选组件创建分区。

--docker-registry

可选。仅在外部注册表不可用时才需要。

--monitoring

可选标志。 监控分区(Prometheus 存储)是必需的,因此,即使在首次运行执行期间未明确传递该标志,系统也会自动创建监控分区。 但是,在后续运行中,在调整监控分区大小期间,需要该标志以及 --size 标志。

--objectstore

可选标志。 仅在外部对象存储不可用时才需要。 在使用时,它还会创建 ceph-mon 所需的 datadisk 分区。 有关详细信息,请参阅对磁盘进行分区。

--insights

可选标志。 即使在首次运行执行期间未明确传递该标志,系统也会自动创建 Insights 分区。 在安装基础架构时需要配置 Insights 存储,以便您在安装后启用 Insights。

但是,在后续运行中,在调整 Insights 分区大小期间,需要该标志以及 --size 标志。

--size <int>

可选。如果提供了整数值,则在有足够的可用空间的情况下,系统会调整所选组件的大小。否则,将使用整个磁盘来扩展所选分区。必须精确指明一个必须调整大小的分区。

备注:
在磁盘配置期间,不需要--size选项。 可在配置后使用此操作以扩展磁盘大小。

--robot-package-cache

Automation Suite Robot 节点上用于下载包进行缓存的位置的路径。 此操作必须仅在 Automation Suite Robot 节点上执行。

您还可以在--size标志的帮助下使用命令调整所选分区的大小,如以下示例所示:
./bin/uipathctl rke2 disk --docker-registry --size 300./bin/uipathctl rke2 disk --docker-registry --size 300

在所有服务器计算机上配置对象存储磁盘

仅当外部对象存储不可用时,才需要执行此步骤。

您可以通过在所有服务器节点上运行以下脚本来添加集群内对象存储或扩展集群内对象存储的存储大小:

./bin/uipathctl rke2 disk --ceph-raw-disk-name name_ceph_raw_disk./bin/uipathctl rke2 disk --ceph-raw-disk-name name_ceph_raw_disk
备注:
  • Azure 中存在一个已知问题,即错误地将 Azure 磁盘标记为非 SSD。如果 Azure 是您的云提供商,并且您要配置对象存储磁盘,请按照故障排除中的说明进行操作。

  • 不支持对现有磁盘进行垂直扩展。要在安装后增大集群内存储的大小,请添加新的原始磁盘。

在选定的计算机上配置 AI Center 磁盘

要配置 AI Center 磁盘,请在计划执行训练管道的计算机上运行以下命令:

./bin/uipathctl rke2 disk --aicenter-disk-name name_of_aicenter_disk_to_partition./bin/uipathctl rke2 disk --aicenter-disk-name name_of_aicenter_disk_to_partition

要扩展 AI Center 的存储,请执行以下操作:

  • 如果要添加新的 AI Center 磁盘,请在计划添加磁盘的计算机上运行以下命令:

    ./bin/uipathctl rke2 disk --aicenter-storage-extend name_of_new_aicenter_disk_to_attach./bin/uipathctl rke2 disk --aicenter-storage-extend name_of_new_aicenter_disk_to_attach
  • 如果您已扩展现有的 AI Center 磁盘,请在已扩展的基础 AI Center 磁盘的计算机上运行以下命令:

    ./bin/uipathctl rke2 disk --aicenter-storage-extend./bin/uipathctl rke2 disk --aicenter-storage-extend

为 Automation Suite Robot 包缓存配置托管磁盘

对于没有专用 Automation Suite Robot 代理的单节点设置,需要执行此步骤。

要在服务器节点上托管 Automation Suite Robot 包缓存,您需要创建至少 10 GB 的磁盘:

./bin/uipathctl rke2 disk --volume name_of_data_disk --robot-package-cache./bin/uipathctl rke2 disk --volume name_of_data_disk --robot-package-cache
注意:建议通过 LVM 备份磁盘。

在第一个服务器节点上为集群内注册表配置捆绑磁盘

需在以下情况下执行此步骤:

  • 执行离线安装时;

  • 外部注册表不可用时。

要配置捆绑包磁盘,请仅在第一个服务器节点上运行以下命令:

./bin/uipathctl rke2 disk --bundle-disk-name name_of_bundle_disk./bin/uipathctl rke2 disk --bundle-disk-name name_of_bundle_disk 

验证磁盘安装

备注:
确保将所有装载点添加到 fstab 文件中,并在这些 fstab 条目中加入 nofail 选项,以便在发生故障时不会影响虚拟机启动。
要验证 /etc/fstab 是否已正确配置并且可以处理系统重新启动,请执行以下步骤,运行以下命令:
mount -afvmount -afv

您应该获得以下输出:

# Servers
/datadisk/monitoring              : already mounted
/datadisk/insights                : already mounted
/var/lib/rancher/rke2/server/db   : already mounted

# Servers or agents
/opt/UiPathAutomationSuite        : already mounted
/var/lib/rancher                  : already mounted
/var/lib/kubelet                  : already mounted

# In case of an offline environment, only on the primary server node
/uipath                           : already mounted

# Additional mount point is require if customer is installing offline with internal registry
/datadisk/registry                : already mounted

# Additional mount point is require if customer is using in-cluster objectstore
/datadisk/objectstore             : already mounted# Servers
/datadisk/monitoring              : already mounted
/datadisk/insights                : already mounted
/var/lib/rancher/rke2/server/db   : already mounted

# Servers or agents
/opt/UiPathAutomationSuite        : already mounted
/var/lib/rancher                  : already mounted
/var/lib/kubelet                  : already mounted

# In case of an offline environment, only on the primary server node
/uipath                           : already mounted

# Additional mount point is require if customer is installing offline with internal registry
/datadisk/registry                : already mounted

# Additional mount point is require if customer is using in-cluster objectstore
/datadisk/objectstore             : already mounted

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2025 UiPath。保留所有权利。