This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Mass Storage (OceanStor Pacific Series)

1 - Namespace

1.1 - NFS

This section describes how to create a storage backend of the NFS protocol type.

Configuration Item Description

Table 1 backend parameters

Parameter

Description

Mandatory

Default Value

Remarks

storage

Storage service type.

Yes

-

The value is fixed to fusionstorage-nas.

name

Storage backend name. The value can contain a maximum of 63 characters, including lowercase letters, digits, and hyphens (-). It must start with a letter or digit.

Yes

-

Ensure that the storage backend name is unique.

namespace

Namespace.

No

huawei-csi

The storage backend must be in the same namespace as Huawei CSI.

accountName

Account name on the storage side.

No

-

This parameter is mandatory when NAS resources need to be provisioned under a specified account.

urls

Management URLs of storage device. The value format is a list.

Yes

-

The value can be a domain name or an IP address + port number.

pools

Storage pools of storage devices. The value format is a list.

Yes

-

Enter the storage pool names.

parameters.protocol

Storage protocol. The value is a character string.

Yes

-

  • The value is fixed to nfs.
  • Ensure that an NFS client tool has been installed on the connected compute node.

parameters.portals

Service access port. Nodes will use this port to read and write storage resources. The value format is a list.

Yes

-

  • If an account is used to connect to a backend, portals must be set to the logical port information of the account.
  • You can enter a domain name address.

supportedTopologies

Storage topology awareness configuration. The parameter format is JSON of the list type.

No

-

This parameter is mandatory if storage topology awareness is enabled. For details, see Configuring Storage Topology Awareness.

maxClientThreads

Maximum number of concurrent connections to a storage backend.

No

30

The value ranges from 1 to 30. If this parameter is not set or the value is not in the specified range, the default value 30 is used.

Creating a Storage Backend

  1. Prepare a backend configuration file, for example, backend.yaml.

    storage: "fusionstorage-nas"
    name: "backend-demo"
    namespace: "huawei-csi"
    urls:
      - "https://192.168.129.157:8088"
    pools:
      - "StoragePool001"
    parameters:
      protocol: "nfs"
      portals:
        - "10.10.30.20"
    maxClientThreads: "30"
    
  2. Run the following command to create a storage backend.

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

    The following is an example of the command output.

    NUMBER  CONFIGURED    NAME           STORAGE              URLS                
    1       false         backend-demo   fusionstorage-nas    https://192.168.129.157:8088 
    Please enter the backend number to configure (Enter 'exit' to exit):
    
  3. Enter the serial number of the backend to be created and enter the account and password.

    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    fusionstorage-nas    https://192.168.129.157:8088 
    Please enter the backend number to configure (Enter 'exit' to exit):
    
  4. Check the storage backend creation result.

    oceanctl get backend
    

    The following is an example of the command output. If the backend status is Bound, the creation is successful.

    NAMESPACE     NAME            PROTOCOL    STORAGETYPE        SN             STATUS  ONLINE  URL                 
    huawei-csi    backend-demo    nfs         fusionstorage-nas                 Bound   true    https://192.168.129.157:8088   
    

1.2 - DPC

This section describes how to create a storage backend of the DPC protocol type.

Configuration Item Description

Table 1 backend parameters

Parameter

Description

Mandatory

Default Value

Remarks

storage

Storage service type.

Yes

-

The value is fixed to fusionstorage-nas.

name

Storage backend name. The value can contain a maximum of 63 characters, including lowercase letters, digits, and hyphens (-). It must start with a letter or digit.

Yes

-

Ensure that the storage backend name is unique.

namespace

Namespace.

No

huawei-csi

The storage backend must be in the same namespace as Huawei CSI.

accountName

Account name on the storage side.

No

-

This parameter is mandatory when NAS resources need to be provisioned under a specified account.

urls

Management URLs of storage device. The value format is a list.

Yes

-

The value can be a domain name or an IP address + port number.

pools

Storage pools of storage devices. The value format is a list.

Yes

-

Enter the storage pool names.

parameters.protocol

Storage protocol. The value is a character string.

Yes

-

  • The value is fixed to dpc.
  • Ensure that DPC has been installed on the connected compute node and the node has been added as a DPC compute node on the storage device to be connected.

supportedTopologies

Storage topology awareness configuration. The parameter format is JSON of the list type.

No

-

This parameter is mandatory if storage topology awareness is enabled. For details, see Configuring Storage Topology Awareness.

maxClientThreads

Maximum number of concurrent connections to a storage backend.

No

30

The value ranges from 1 to 30. If this parameter is not set or the value is not in the specified range, the default value 30 is used.

Creating a Storage Backend

  1. Prepare a backend configuration file, for example, backend.yaml.

    storage: "fusionstorage-nas"
    name: "backend-demo"
    namespace: "huawei-csi"
    urls:
      - "https://192.168.129.157:8088"
    pools:
      - "StoragePool001"
    parameters:
      protocol: "dpc"
    maxClientThreads: "30"
    
  2. Run the following command to create a storage backend.

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

    The following is an example of the command output.

    NUMBER  CONFIGURED    NAME           STORAGE              URLS                
    1       false         backend-demo   fusionstorage-nas    https://192.168.129.157:8088 
    Please enter the backend number to configure (Enter 'exit' to exit):
    
  3. Enter the serial number of the backend to be created and enter the account and password.

    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    fusionstorage-nas    https://192.168.129.157:8088 
    Please enter the backend number to configure (Enter 'exit' to exit):
    
  4. Check the storage backend creation result.

    oceanctl get backend
    

    The following is an example of the command output. If the backend status is Bound, the creation is successful.

    NAMESPACE     NAME            PROTOCOL    STORAGETYPE        SN               STATUS  ONLINE  URL                 
    huawei-csi    backend-demo    dpc         fusionstorage-nas                   Bound   true    https://192.168.129.157:8088   
    

2 - Dtree

2.1 - NFS

This section describes how to create a storage backend of the NFS protocol type.

Configuration Item Description

Table 1 backend parameters

Parameter

Description

Mandatory

Default Value

Remarks

storage

Storage service type.

Yes

-

The value is fixed to fusionstorage-dtree.

name

Storage backend name. The value can contain a maximum of 63 characters, including lowercase letters, digits, and hyphens (-). It must start with a letter or digit.

Yes

-

Ensure that the storage backend name is unique.

namespace

Namespace.

No

huawei-csi

The storage backend must be in the same namespace as Huawei CSI.

accountName

Account name on the storage side.

No

-

This parameter is mandatory when NAS resources need to be provisioned under a specified account.

urls

Management URLs of storage device. The value format is a list.

Yes

-

The value can be a domain name or an IP address + port number.

parameters.protocol

Storage protocol. The value is a character string.

Yes

-

  • The value is fixed to nfs.
  • Ensure that an NFS client tool has been installed on the connected compute node.

parameters.portals

Service access port. Nodes will use this port to read and write storage resources. The value format is a list.

Yes

-

  • If an account is used to connect to a backend, portals must be set to the logical port information of the account.
  • You can enter a domain name address.

parameters.parentname

Name of a file system on the current storage device. A dtree is created in the file system.

No

-

  • Query the name on the File Systems page of DeviceManager.
  • You can configure the parameter in StorageClass.

supportedTopologies

Storage topology awareness configuration. The parameter format is JSON of the list type.

No

-

This parameter is mandatory if storage topology awareness is enabled. For details, see Configuring Storage Topology Awareness.

maxClientThreads

Maximum number of concurrent connections to a storage backend.

No

30

The value ranges from 1 to 30. If this parameter is not set or the value is not in the specified range, the default value 30 is used.

Creating a Storage Backend

  1. Prepare a backend configuration file, for example, backend.yaml.

    storage: "fusionstorage-dtree"
    name: "backend-demo"
    namespace: "huawei-csi"
    urls:
      - "https://192.168.129.157:8088"
    parameters:
      protocol: "nfs"
      parentname: "parent-filesystem"
      portals:
        - "10.10.30.20"
    maxClientThreads: "30"
    
  2. Run the following command to create a storage backend.

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

    The following is an example of the command output.

    NUMBER  CONFIGURED    NAME           STORAGE              URLS                
    1       false         backend-demo   fusionstorage-dtree  https://192.168.129.157:8088 
    Please enter the backend number to configure (Enter 'exit' to exit):
    
  3. Enter the serial number of the backend to be created and enter the account and password.

    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    fusionstorage-dtree  https://192.168.129.157:8088 
    Please enter the backend number to configure (Enter 'exit' to exit):
    
  4. Check the storage backend creation result.

    oceanctl get backend
    

    The following is an example of the command output. If the backend status is Bound, the creation is successful.

    NAMESPACE     NAME            PROTOCOL    STORAGETYPE           SN            STATUS  ONLINE  URL                 
    huawei-csi    backend-demo    nfs         fusionstorage-dtree                 Bound   true    https://192.168.129.157:8088   
    

2.2 - DPC

This section describes how to create a storage backend of the DPC protocol type.

Configuration Item Description

Table 1 backend parameters

Parameter

Description

Mandatory

Default Value

Remarks

storage

Storage service type.

Yes

-

The value is fixed to fusionstorage-dtree.

name

Storage backend name. The value can contain a maximum of 63 characters, including lowercase letters, digits, and hyphens (-). It must start with a letter or digit.

Yes

-

Ensure that the storage backend name is unique.

namespace

Namespace.

No

huawei-csi

The storage backend must be in the same namespace as Huawei CSI.

accountName

Account name on the storage side.

No

-

This parameter is mandatory when NAS resources need to be provisioned under a specified account.

urls

Management URLs of storage device. The value format is a list.

Yes

-

The value can be a domain name or an IP address + port number.

parameters.protocol

Storage protocol. The value is a character string.

  • dpc

Yes

-

  • The value is fixed to dpc.
  • Ensure that DPC has been installed on the connected compute node and the node has been added as a DPC compute node on the storage device to be connected.

parameters.parentname

Name of a file system on the current storage device. A dtree is created in the file system.

No

-

  • Query the name on the File Systems page of DeviceManager.
  • You can configure the parameter in StorageClass.

supportedTopologies

Storage topology awareness configuration. The parameter format is JSON of the list type.

No

-

This parameter is mandatory if storage topology awareness is enabled. For details, see Configuring Storage Topology Awareness.

maxClientThreads

Maximum number of concurrent connections to a storage backend.

No

30

The value ranges from 1 to 30. If this parameter is not set or the value is not in the specified range, the default value 30 is used.

Creating a Storage Backend

  1. Prepare a backend configuration file, for example, backend.yaml.

    storage: "fusionstorage-dtree"
    name: "backend-demo"
    namespace: "huawei-csi"
    urls:
      - "https://192.168.129.157:8088"
    parameters:
      protocol: "dpc"
      parentname: "parent-filesystem"
    maxClientThreads: "30"
    
  2. Run the following command to create a storage backend.

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

    The following is an example of the command output.

    NUMBER  CONFIGURED    NAME           STORAGE                URLS                
    1       false         backend-demo   fusionstorage-dtree    https://192.168.129.157:8088 
    Please enter the backend number to configure (Enter 'exit' to exit):
    
  3. Enter the serial number of the backend to be created and enter the account and password.

    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    fusionstorage-dtree    https://192.168.129.157:8088 
    Please enter the backend number to configure (Enter 'exit' to exit):
    
  4. Check the storage backend creation result.

    oceanctl get backend
    

    The following is an example of the command output. If the backend status is Bound, the creation is successful.

    NAMESPACE     NAME            PROTOCOL    STORAGETYPE          SN          STATUS  ONLINE  URL                 
    huawei-csi    backend-demo    dpc         fusionstorage-dtree              Bound   true    https://192.168.129.157:8088   
    

3 - Block Service

3.1 - iSCSI

This section describes how to create a storage backend of the iSCSI protocol type.

Configuration Item Description

Table 1 backend parameters

Parameter

Description

Mandatory

Default Value

Remarks

storage

Storage service type.

Yes

-

The value is fixed to fusionstorage-san.

name

Storage backend name. The value can contain a maximum of 63 characters, including lowercase letters, digits, and hyphens (-). It must start with a letter or digit.

Yes

-

Ensure that the storage backend name is unique.

namespace

Namespace.

No

huawei-csi

The storage backend must be in the same namespace as Huawei CSI.

urls

Management URLs of storage device. The value format is a list.

Yes

-

The value can be a domain name or an IP address + port number.

pools

Storage pools of storage devices. The value format is a list.

Yes

-

Enter the storage pool names.

parameters.protocol

Storage protocol. The value is a character string.

Yes

-

  • The value is fixed to iscsi.
  • Ensure that an iSCSI client has been installed on the connected compute node.

parameters.portals

Service access port. Nodes will use this port to read and write storage resources. The value format is a list.

Conditionally mandatory

-

  • Multiple ports can be configured.
  • Either iscsiLinks or portals must be set.

parameters.iscsiLinks

Number of dynamic access links. This parameter is supported only in OceanStor Pacific 8.1.5 and later versions.

Conditionally mandatory

  

Either iscsiLinks or portals must be set.

NOTE:
  1. The iscsiLinks parameter takes effect only when the portals parameter is left empty.
  2. The number of valid links is the maximum value among the following three values:
    • Value of iscsiLinks
    • Minimum number of links dynamically allocated by the storage
    • Number of established links on the host

supportedTopologies

Storage topology awareness configuration. The parameter format is JSON of the list type.

No

-

This parameter is mandatory if storage topology awareness is enabled. For details, see Configuring Storage Topology Awareness.

maxClientThreads

Maximum number of concurrent connections to a storage backend.

No

30

The value ranges from 1 to 30. If this parameter is not set or the value is not in the specified range, the default value 30 is used.

Creating a Storage Backend

  1. Prepare a backend configuration file, for example, backend.yaml.

    storage: "fusionstorage-san"
    name: "backend-demo"
    namespace: "huawei-csi"
    urls:
      - "https://192.168.129.157:8088"
    pools:
      - "StoragePool001"
    parameters:
      protocol: "iscsi"
      portals:
        - "10.10.30.20"
        - "10.10.30.21"
    maxClientThreads: "30"
    
  2. Run the following command to create a storage backend.

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

    The following is an example of the command output.

    NUMBER  CONFIGURED    NAME           STORAGE              URLS                
    1       false         backend-demo   fusionstorage-san    https://192.168.129.157:8088 
    Please enter the backend number to configure (Enter 'exit' to exit):
    
  3. Enter the serial number of the backend to be created and enter the account and password.

    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    fusionstorage-san    https://192.168.129.157:8088 
    Please enter the backend number to configure (Enter 'exit' to exit):
    
  4. Check the storage backend creation result.

    oceanctl get backend
    

    The following is an example of the command output. If the backend status is Bound, the creation is successful.

    NAMESPACE     NAME            PROTOCOL    STORAGETYPE        SN       STATUS  ONLINE  URL                 
    huawei-csi    backend-demo    iscsi       fusionstorage-san           Bound   true    https://192.168.129.157:8088   
    

3.2 - SCSI

This section describes how to create a storage backend of the SCSI protocol type.

Configuration Item Description

Table 1 backend parameters

Parameter

Description

Mandatory

Default Value

Remarks

storage

Storage service type.

Yes

-

The value is fixed to fusionstorage-san.

name

Storage backend name. The value can contain a maximum of 63 characters, including lowercase letters, digits, and hyphens (-). It must start with a letter or digit.

Yes

-

Ensure that the storage backend name is unique.

namespace

Namespace.

No

huawei-csi

The storage backend must be in the same namespace as Huawei CSI.

urls

Management URLs of storage device. The value format is a list.

Yes

-

The value can be a domain name or an IP address + port number.

pools

Storage pools of storage devices. The value format is a list.

Yes

-

Enter the storage pool names.

parameters.protocol

Storage protocol. The value is a character string.

Yes

-

  • The value is fixed to scsi.
  • Ensure that a distributed storage VBS client has been installed on the connected compute node.

parameters.portals

Service access port. Nodes will use this port to read and write storage resources. The value format is a list.

Yes

-

If the protocol is scsi, the port is in dictionary format where the key indicates the name of the host where the VBS client is deployed and the value indicates the IP address of the host where the VBS client is deployed.

supportedTopologies

Storage topology awareness configuration. The parameter format is JSON of the list type.

No

-

This parameter is mandatory if storage topology awareness is enabled. For details, see Configuring Storage Topology Awareness.

maxClientThreads

Maximum number of concurrent connections to a storage backend.

No

30

The value ranges from 1 to 30. If this parameter is not set or the value is not in the specified range, the default value 30 is used.

Creating a Storage Backend

  1. Prepare a backend configuration file, for example, backend.yaml.

    storage: "fusionstorage-san"
    name: "backend-demo"
    namespace: "huawei-csi"
    urls:
      - "https://192.168.129.157:8088"
    pools:
      - "StoragePool001"
    parameters:
      protocol: "scsi"
      portals:
        - {"hostname01": "192.168.125.21","hostname02": "192.168.125.22"}
    maxClientThreads: "30"
    
  2. Run the following command to create a storage backend.

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

    The following is an example of the command output.

    NUMBER  CONFIGURED    NAME           STORAGE              URLS                
    1       false         backend-demo   fusionstorage-san    https://192.168.129.157:8088 
    Please enter the backend number to configure (Enter 'exit' to exit):
    
  3. Enter the serial number of the backend to be created and enter the account and password.

    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    fusionstorage-san    https://192.168.129.157:8088 
    Please enter the backend number to configure (Enter 'exit' to exit):
    
  4. Check the storage backend creation result.

    oceanctl get backend
    

    The following is an example of the command output. If the backend status is Bound, the creation is successful.

    NAMESPACE     NAME            PROTOCOL    STORAGETYPE        SN      STATUS  ONLINE  URL                 
    huawei-csi    backend-demo    scsi        fusionstorage-san          Bound   true    https://192.168.129.157:8088