Skip to main content
BeeGFS on NetApp with E-Series Storage
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

定义BeeGFS存储服务

贡献者

BeeGFS服务使用组变量(group_vars)进行配置。

概述

本节将介绍如何定义BeeGFS存储服务。对于特定文件系统、HA集群中应至少存在一个此类型的服务。配置此服务包括定义:

  • 服务类型(存储)。

  • 定义应仅适用于此BeeGFS服务的任何配置。

  • 配置可访问此服务的一个或多个浮动IP (逻辑接口)。

  • 指定卷存储此服务数据的位置/方式(BeeGFS存储目标)。

步骤

参考 "规划文件系统" 部分中、在创建文件 group_vars/stor_<ID>.yml 对于集群中的每个存储服务、请按如下所示进行填充:

  1. 指示此文件表示BeeGFS存储服务的配置:

    beegfs_service: storage
  2. 定义应仅应用于此BeeGFS服务的任何配置。您必须至少指定所需的TCP和UDP端口、无论这些端口来自哪个受支持的配置参数 beegfs-storage.conf 也可以包括在内。请注意、以下参数是自动/在其他位置配置的、不应在此处指定: sysMgmtdHoststoreStorageDirectoryconnAuthFileconnDisableAuthenticationconnInterfacesFile,和 connNetFilterFile

    beegfs_ha_beegfs_storage_conf_resource_group_options:
      connStoragePortTCP: <TCP PORT>
      connStoragePortUDP: <UDP PORT>
      tuneBindToNumaZone: <NUMA ZONE> # Recommended if using file nodes with multiple CPU sockets.
  3. 配置一个或多个浮动IP、供其他服务和客户端连接到此服务时使用(此操作将自动设置BeeGFS connInterfacesFile 选项):

    floating_ips:
      - <INTERFACE>:<IP/SUBNET> # Primary interface. Ex. i1b:100.127.101.1/16
      - <INTERFACE>:<IP/SUBNET> # Secondary interface(s) as needed.
  4. 或者、指定一个或多个允许用于传出通信的IP子网(此操作将自动设置BeeGFS connNetFilterFile 选项):

    filter_ip_ranges:
      - <SUBNET>/<MASK> # Ex. 192.168.10.0/24
  5. 根据以下准则指定此服务要存储数据的BeeGFS存储目标(此操作也会自动配置) storeStorageDirectory 选项):

    1. 同一存储池或卷组名称可用于多个BeeGFS服务/目标、只需确保使用相同的即可 nameraid_levelcriteria_*,和 common_* 每个服务的配置(为每个服务列出的卷应不同)。

    2. 卷大小应指定为存储池/卷组的百分比、并且使用特定存储池/卷组的所有服务/卷的总数不应超过100。注意:在使用SSD时、建议在卷组中保留一些可用空间、以最大限度地提高SSD性能和使用寿命(单击 "此处" 了解更多详细信息)。

    3. 单击 "此处" 以获取可用于的配置选项的完整列表 eseries_storage_pool_configuration。请注意一些选项、例如 statehosthost_typeworkload_name,和 workload_metadata 和卷名称将自动生成、不应在此指定。

      beegfs_targets:
        <BLOCK_NODE>: # The name of the block node as found in the Ansible inventory. Ex: ictad22a01
          eseries_storage_pool_configuration:
            - name: <NAME> # Ex: beegfs_s1_s2
              raid_level: <LEVEL> # One of: raid1, raid5, raid6, raidDiskPool
              criteria_drive_count: <DRIVE COUNT> # Ex. 4
              common_volume_configuration:
                segment_size_kb: <SEGMENT SIZE> # Ex. 128
              volumes:
                - size: <PERCENT> # Percent of the pool or volume group to allocate to this volume. Ex. 1
                  owning_controller: <CONTROLLER> # One of: A, B
              # Multiple storage targets are supported / typical:
                - size: <PERCENT> # Percent of the pool or volume group to allocate to this volume. Ex. 1
                  owning_controller: <CONTROLLER> # One of: A, B

单击 "此处" 有关表示BeeGFS存储服务的完整清单文件的示例。