Infortrend 卷驱动

Infortrend Infortrend 卷驱动是一个块存储驱动程序,为 Infortrend 存储提供 iSCSI 和光纤通道支持。

支持的操作

Infortrend 卷驱动支持以下卷操作

  • 创建、删除、附加和分离卷。

  • 创建和删除快照。

  • 从快照创建卷。

  • 将镜像复制到卷。

  • 将卷复制到镜像。

  • 克隆卷。

  • 扩展卷

  • 重新类型化卷。

  • 管理和取消管理卷。

  • 迁移带有后端协助的卷。

  • 迁移使用 Infortrend 后端托管卷的实例。

系统要求

要使用 Infortrend 卷驱动,需要以下设置

设置 Infortrend 存储

  • 提前创建逻辑卷。

  • 主机端设置 Peripheral device type 应为 No Device Present (Type=0x7f)

设置 cinder-volume 节点

  • 安装 JRE 7 或更高版本。

  • 发布页面 下载 Infortrend 存储 CLI。选择 github 发布页面上 v2.1.3 下的 raidcmd_ESDS10.jar 文件,并将其分配到默认路径 /opt/bin/Infortrend/

驱动程序配置

cinder-volume 节点上,在您的 /etc/cinder/cinder.conf 中设置以下内容,并使用以下选项进行配置

驱动程序选项

Infortrend 卷驱动配置选项说明

配置选项 = 默认值

描述

[DEFAULT]

infortrend_cli_max_retries = 5

(整数) 命令失败时的最大重试次数。

infortrend_cli_path = /opt/bin/Infortrend/raidcmd_ESDS10.jar

(字符串) Infortrend CLI 的绝对路径。

infortrend_cli_timeout = 60

(整数) CLI 的超时时间,单位为秒。

infortrend_cli_cache = False

(布尔值) Infortrend CLI 缓存。确保阵列仅由 Openstack 管理,并且仅由一个 cinder-volume 节点使用。否则,切勿启用它!如果存在任何其他操作,数据可能会是异步的。

infortrend_pools_name = None

(字符串) Infortrend 逻辑卷名称列表。用逗号分隔。

infortrend_iqn_prefix = iqn.2002-10.com.infortrend

(字符串) Infortrend iSCSI 的 iqn 前缀。

infortrend_slots_a_channels_id = None

(字符串) Infortrend 用于 OpenStack 的 Slot A 上的 raid 通道 ID 列表。用逗号分隔。

infortrend_slots_b_channels_id = None

(字符串) Infortrend 用于 OpenStack 的 Slot A 上的 raid 通道 ID 列表。用逗号分隔。

java_path = /usr/bin/java

(字符串) Java 的绝对路径。

iSCSI 配置示例

[DEFAULT]
default_volume_type = IFT-ISCSI
enabled_backends = IFT-ISCSI

[IFT-ISCSI]
volume_driver = cinder.volume.drivers.infortrend.infortrend_iscsi_cli.InfortrendCLIISCSIDriver
volume_backend_name = IFT-ISCSI
infortrend_pools_name = POOL-1,POOL-2
san_ip = MANAGEMENT_PORT_IP
san_password = MANAGEMENT_PASSWORD
infortrend_slots_a_channels_id = 0,1,2,3
infortrend_slots_b_channels_id = 0,1,2,3

光纤通道配置示例

[DEFAULT]
default_volume_type = IFT-FC
enabled_backends = IFT-FC

[IFT-FC]
volume_driver = cinder.volume.drivers.infortrend.infortrend_fc_cli.InfortrendCLIFCDriver
volume_backend_name = IFT-FC
infortrend_pools_name = POOL-1,POOL-2,POOL-3
san_ip = MANAGEMENT_PORT_IP
san_password = MANAGEMENT_PASSWORD
infortrend_slots_a_channels_id = 4,5

多路径配置

  • /etc/cinder/cinder.conf 中为每个后端或在 [backend_defaults] 部分作为所有后端的通用配置中启用多路径以进行镜像传输。

    use_multipath_for_image_xfer = True
    

    重新启动 cinder-volume 服务。

  • /etc/nova/nova.conf 中启用多路径以进行卷附加和分离。

    [libvirt]
    ...
    volume_use_multipath = True
    ...
    

    重新启动 nova-compute 服务。

额外规格用法

  • infortrend:provisioning - 默认为 full 置备,有效值为 thin 和 full。

  • infortrend:tiering - 默认为使用 all 分层,有效值为 0、1、2、3 的子集。

    如果在 cinder.conf 中配置了多池,则可以为每个池指定,用分号分隔。

    例如

    infortrend:provisioning: POOL-1:thin; POOL-2:full

    infortrend:tiering: POOL-1:all; POOL-2:0; POOL-3:0,1,3

有关更多详细信息,请参阅 Infortrend 文档