我在Fedora 22计算机上配置了LIO iSCSI Target,将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 Persistant Reservations是必需的,但是根据我的理解,LIO确实支持这一点.我的块设备实际上是一个精简配置的zvol,因为我在这台机器上运行ZFS.
希望有人可以帮助澄清这里出了什么问题.
您可能希望尝试清除SCSI-3持久保留,因为LIO可能会“忘记”在LUN所有权更改后更新它们.
原文链接:https://www.f2er.com/windows/370094.html