Category
storage_target
Sub-Category
iscsi
Description
When creating a ZFS filesystem, sharing it via iSCSI and then destroying the ZFS filesystem, ZFS does not automatically unshare the iSCSI target.
Frequency
Always
Regression
No
Steps to Reproduce
zfs create -s -V 16K storagepool/zfs-target
zfs set shareiscsi=on storagepool/zfs-target
iscsitadm list target -v
zfs destroy storagepool/zfs-target
iscsitadm list target -v
Expected Result
iscsitadm does report an empty target list.
Actual Result
$ iscsitadm list target -v
Target: storagepool/zfs-target
iSCSI Name: iqn.1986-03.com.sun:02:76066345-b2d0-6cc9-f669-8b37ac3d7834
Alias: storagepool/zfs-target
Connections: 0
ACL list:
TPGT list:
LUN information:
LUN: 0
GUID: 0
VID: SUN
PID: SOLARIS
Type: disk
Size: 16K
Backing store: /dev/zvol/rdsk/storagepool/zfs-target
Status: online
Error Message(s)
Test Case
Workaround
Run the following command before destroying the filesystem:
zfs set shareiscsi=off storagepool/zfs-target
Submitter wants to work on bug
No
Additional configuration information
OpenSolaris build 85:
$ uname -a
SunOS qbic 5.11 snv_85 i86pc i386 i86pc