清除 SCSI-3 永久保留

如果您有 Windows 集群、则即使所有集群主机都处于脱机状态、也需要删除仲裁磁盘的 SCSI-3 预留。

如果尝试将源 LUN 标记为外部磁盘,则会显示以下错误信息:

错误:命令失败:指定的外部磁盘具有 SCSI 持久性预留。磁盘序列号: "6006016021402700787 、 BAC217B44E411" 。在创建导入关系之前,请使用“ storage disk remove-reservation ”命令清除预留。

您可以使用storage disk remove-reservation以下命令删除 NetApp 控制器上仲裁磁盘的 SCSI-3 预留:
storage disk remove-reservation –disk disk_name
下面是一个代码片段,其中显示了此错误及其补救措施:
cluster-4b::*> lun offline -vserver fli_cluster -path /vol/fli_volume/cluster_CVS
cluster-4b::*> lun import create -vserver fli_cluster -path /vol/fli_volume/cluster_CVS -foreign-disk 6006016021402700787BAC217B44E411
Error: command failed: The specified foreign disk is not marked as foreign. Disk serial number: "6006016021402700787BAC217B44E411".

cluster-4b::*> sto disk show -disk DGC-1.6 -fields serial-number,is-foreign 
 (storage disk show)
disk is-foreign serial-number
------- ---------- --------------------------------
DGC-1.6 true 6006016021402700787BAC217B44E411

cluster-4b::*> lun import create -vserver fli_cluster -path /vol/fli_volume/cluster_CVS -foreign-disk 6006016021402700787BAC217B44E411 

Error: command failed: The specified foreign disk has SCSI persistent reservations. Disk serial number: "6006016021402700787BAC217B44E411". Clear the reservation using the "storage disk remove-reservation" command before creating the import relationship.

cluster-4b::*> storage disk remove-reservation -disk DGC-1.6 
cluster-4b::*> lun import create -vserver fli_cluster -path /vol/fli_volume/cluster_CVS -foreign-disk 6006016021402700787BAC217B44E411
cluster-4b::*> lun online -vserver fli_cluster -path /vol/fli_volume/cluster_CVS
cluster-4b::*> lun import show

vserver foreign-disk path operation admin operational percent in progress state state complete
 -------------------------------------------------------------------------------
fli_cluster 6006016021402700787BAC217B44E411 /vol/fli_volume/cluster_CVS import stopped stopped 0

cluster-4b::*> lun import start -vserver fli_cluster -path /vol/fli_volume/cluster_CVS 
cluster-4b::*> lun import show 

vserver foreign-disk path operation admin operational percent in progress state state complete
------------------------------------------------------------------------------- 
fli_cluster 6006016021402700787BAC217B44E411 /vol/fli_volume/cluster_CVS import started in_progress 7