DataTurbo

本章节介绍创建DataTurbo协议类型的存储后端

配置项说明

表 1 backend配置项说明

参数

描述

必选参数

默认值

备注

storage

存储服务类型。

-

固定填写:oceanstor-a-series-nas

name

存储后端名称。支持小写字母、数字和特殊字符"-",且需要以字母或数字开头,最多63个字符。

-

请保证存储后端名称唯一。

namespace

命名空间。

huawei-csi

存储后端必须与华为CSI在相同的命名空间中。

urls

存储设备的管理URL。参数格式为列表。

-

支持按照域名或者IP+端口的方式进行配置。

pools

存储设备的存储池。参数格式为列表。

-

填写存储池名称。

parameters.protocol

存储协议。参数格式为字符串。

-

  • 固定填写:dtfs
  • 请确保对接的计算节点已安装DataTurbo客户端,并已配置好存储逻辑端口的连通性。

supportedTopologies

存储拓扑感知配置。参数格式为列表类型的JSON。

-

如果启用存储拓扑感知,需要配置该参数。具体请参考配置存储拓扑感知

maxClientThreads

同时连接到存储后端的最大连接数。

30

范围1~30,如果不配置该参数,或参数值不在规定范围内,则取用默认值30。

authenticationMode

登录存储后端的认证模式。

支持两种模式:

  • local:本地认证
  • ldap:LDAP认证

local

-

创建存储后端

  1. 准备后端配置文件,如backend.yaml。

    storage: "oceanstor-a-series-nas"
    name: "backend-demo"
    namespace: "huawei-csi"
    urls:
      - "https://192.168.129.157:8088"
    pools:
      - "StoragePool001"
    parameters:
      protocol: "dtfs"
    maxClientThreads: "30"
    
  2. 执行以下命令创建存储后端。

    oceanctl create backend -f /path/to/backend.yaml -i yaml
    

    命令结果示例如下:

    NUMBER  CONFIGURED    NAME           STORAGE              URLS                
    1       false         backend-demo   oceanstor-a-series-nas    https://192.168.129.157:8088 
    Please enter the backend number to configure (Enter 'exit' to exit):
    
  3. 输入待创建后端序号,并输入账号密码。

    Please enter the backend number to configure (Enter 'exit' to exit):1
    Please enter this backend user name: admin
    Please enter this backend password:
    
    Backend backend-demo is configured
    NUMBER  CONFIGURED    NAME            STORAGE              URLS               
    1       true          backend-demo    oceanstor-a-series-nas    https://192.168.129.157:8088 
    Please enter the backend number to configure (Enter 'exit' to exit):
    
  4. 检查存储后端创建结果。

    oceanctl get backend
    

    命令结果示例如下,后端状态为Bound,则创建成功。

    NAMESPACE     NAME            PROTOCOL   STORAGETYPE             SN                    STATUS  ONLINE  URL                 
    huawei-csi    backend-demo    dtfs       oceanstor-a-series-nas  xxxxxxxxxxxxxxxxxxxx  Bound   true    https://192.168.129.157:8088