Inspur InStorage 系列卷驱动

Inspur InStorage 系列卷驱动为 OpenStack Compute 实例提供对 Inspur Instorage 系列存储系统的访问。

Inspur InStorage 存储系统可以使用 FC 或 iSCSI 连接。

本文档解释了如何配置和连接块存储节点到 Inspur InStorage 系列存储系统。

支持的操作

  • 创建、列出、删除、附加(映射)和分离(取消映射)卷。

  • 创建、列出和删除卷快照。

  • 从快照创建卷。

  • 将镜像复制到卷。

  • 将卷复制到镜像。

  • 克隆卷。

  • 扩展卷。

  • 重新类型化卷。

  • 管理和取消管理卷。

  • 创建、列出和删除一致性组。

  • 创建、列出和删除一致性组快照。

  • 修改一致性组(添加或删除卷)。

  • 从源创建一致性组。

  • 故障转移和故障恢复支持。

配置 Inspur InStorage iSCSI/FC 后端

本节详细介绍了为单个 FC 或 iSCSI 后端配置 Inspur InStorage Cinder 驱动程序所需的步骤。

  1. cinder.conf 配置文件中的 [DEFAULT] 部分,将 enabled_backends 参数设置为 iSCSI 或 FC 后端组

    • 对于光纤通道

      [DEFAULT]
      enabled_backends = instorage-fc-1
      
    • 对于 iSCSI

      [DEFAULT]
      enabled_backends = instorage-iscsi-1
      
  2. 为 enabled_backends 参数中指定的后端组添加一个后端组部分

  3. 在新创建的后端组部分,设置以下配置选项

    • 对于光纤通道

      [instorage-fc-1]
      # Management IP of Inspur InStorage storage array
      san_ip = 10.0.0.10
      # Management Port of Inspur InStorage storage array, by default set to 22
      san_ssh_port = 22
      # Management username of Inspur InStorage storage array
      san_login = username
      # Management password of Inspur InStorage storage array
      san_password = password
      # Private key for Inspur InStorage storage array
      san_private_key = path/to/the/private/key
      # The Pool used to allocated volumes
      instorage_mcs_volpool_name = Pool0
      # The driver path
      volume_driver = cinder.volume.drivers.inspur.instorage.instorage_fc.InStorageMCSFCDriver
      # Backend name
      volume_backend_name = instorage_fc
      
    • 对于 iSCSI

      [instorage-iscsi-1]
      # Management IP of Inspur InStorage storage array
      san_ip = 10.0.0.10
      # Management Port of Inspur InStorage storage array, by default set to 22
      san_ssh_port = 22
      # Management username of Inspur InStorage storage array
      san_login = username
      # Management password of Inspur InStorage storage array
      san_password = password
      # Private key for Inspur InStorage storage array
      san_private_key = path/to/the/private/key
      # The Pool used to allocated volumes
      instorage_mcs_volpool_name = Pool0
      # The driver path
      volume_driver = cinder.volume.drivers.inspur.instorage.instorage_iscsi.InStorageMCSISCSIDriver
      # Backend name
      volume_backend_name = instorage_iscsi
      

    注意

    当同时提供 san_passwordsan_private_key 时,驱动程序将优先使用私钥而不是密码。

  4. 保存对 /etc/cinder/cinder.conf 文件的更改,并重启 cinder-volume 服务。