Windows Server 2016 群集磁盘的 LIO iSCSI 目标 - 设备尚未准备好

Windows Server 2016 群集磁盘的 LIO iSCSI 目标 - 设备尚未准备好

我在 Fedora 22 机器上配置了一个 LIO iSCSI 目标,将 1 个 LUN 导出到 2 台 Windows Server 2016 机器,这两台机器都可以毫无问题地访问磁盘。

这些服务器是 HA 集群的一部分,当我尝试将磁盘添加到集群时,我收到错误消息“设备尚未就绪”。验证工具表示存储由于 SCSI-3 持久保留而未通过,但根据我的研究,这应该给出与我收到的错误不同的错误。

   Creating the physical disk resource for 'Cluster Disk 1'.

Bringing the resource for 'Cluster Disk 1' online.

There was an error creating, configuring, or bringing online the Physical Disk resource (disk) 'Cluster Disk 1'.

The following errors occurred while adding storage to the cluster:

The resource 'Cluster Disk 1' did not come online.

The desired state change for 'Cluster Disk 1' did not occur before the timeout expired.

这是我的 iSCSI 目标:

o- / ........................................................................................................... [...]
  o- backstores ................................................................................................ [...]
  | o- block .................................................................................... [Storage Objects: 1]
  | | o- ha1 ................................................ [/dev/delta/volpool/ha1 (200.0GiB) write-thru activated]
  | o- fileio ................................................................................... [Storage Objects: 0]
  | o- pscsi .................................................................................... [Storage Objects: 0]
  | o- ramdisk .................................................................................. [Storage Objects: 0]
  | o- user ..................................................................................... [Storage Objects: 0]
  o- iscsi .............................................................................................. [Targets: 1]
  | o- iqn.2017-12.net.hirstgroup.adx.delta:storage.target00 ............................................... [TPGs: 1]
  |   o- tpg1 ................................................................................. [no-gen-acls, no-auth]
  |     o- acls ............................................................................................ [ACLs: 4]
  |     | o- iqn.1991-05.com.microsoft:dc1.adx.hirstgroup.net ....................................... [Mapped LUNs: 1]
  |     | | o- mapped_lun0 ..................................................................... [lun0 block/ha1 (rw)]
  |     | o- iqn.1991-05.com.microsoft:dc2.adx.hirstgroup.net ....................................... [Mapped LUNs: 1]
  |     | | o- mapped_lun0 ..................................................................... [lun0 block/ha1 (rw)]
  |     | o- iqn.2017-12.net.hirstgroup.adx.dc1:dc1 ................................................. [Mapped LUNs: 1]
  |     | | o- mapped_lun0 ..................................................................... [lun0 block/ha1 (rw)]
  |     | o- iqn.2017-12.net.hirstgroup.adx.delta:iqn.1991-05.com.microsoft:dc2.adx.hirstgroup.net .. [Mapped LUNs: 1]
  |     |   o- mapped_lun0 ..................................................................... [lun0 block/ha1 (rw)]
  |     o- luns ............................................................................................ [LUNs: 1]
  |     | o- lun0 ............................................................... [block/ha1 (/dev/delta/volpool/ha1)]
  |     o- portals ...................................................................................... [Portals: 1]
  |       o- 0.0.0.0:3260 ....................................................................................... [OK]
  o- loopback ........................................................................................... [Targets: 0]
  o- vhost .............................................................................................. [Targets: 0]

所以,我不确定我在这里做错了什么,除了磁盘不会添加到集群之外,一切似乎都正常。我在研究中发现的一件事是,要实现这一点,需要 SCSI-3 持久预留,但据我了解,LIO 确实支持这一点。我的块设备实际上是一个精简配置的 zvol,因为我在这台机器上运行的是 ZFS。

希望有人可以帮助澄清这里出了什么问题。

答案1

您可能需要尝试清除 SCSI-3 持久保留,因为 LIO 可能会在 LUN 所有权发生变化后“忘记”更新它们。

清除 ClusterDiskReservation

答案2

我解决了这个问题。看来 Fedora 22 中包含的 LIO 版本不能正确支持 SCSI-3 持久保留。我切换到使用 scsi-target-utils,并且它立即使用此配置运行,没有任何问题:

后备存储 /blah/blah/blah/zvol 启动器地址 172.16.20.0/24 传入用户 hgx blahblahblah

相关内容