ZFS iscsi share failing after ZFS storage reboot
Hello,
ZFS with VDI 3.2.1 works fine until i reboot the ZFS server.
After the ZFS server reboot, the desktop providers are not able to access the virtual disks via iscsi.
This is what is see when listing the targets:
Target: vdi/0fe93683-91ca-4faf-a4db-d711b8c1a1d3
iSCSI Name: iqn.1986-03.com.sun:02:e5012bea-487c-40ff-81d5-af89405c7121
Alias: vdi/0fe93683-91ca-4faf-a4db-d711b8c1a1d3
Connections: 0
ACL list:
TPGT list:
LUN information:
LUN: 0
GUID: 600144f04cf383010000144f201a2c00
VID: SUN
PID: SOLARIS
Type: disk
Size: 20G
Backing store: /dev/zvol/rdsk/vdi/0fe93683-91ca-4faf-a4db-d711b8c1a1d3
Status: No such file or directory
zfs list -Hrt volume vdi | grep d711b8c1a1d3
vdi/0fe93683-91ca-4faf-a4db-d711b8c1a1d3 0 774G 8.69G -
The vdi/0fe93683-91ca-4faf-a4db-d711b8c1a1d3 was cloned from a template prior to the reboot.
The workaround is to delete and re-create all pools after the ZFS server reboot.
I use the VDI broker as the ZFS server which mounts an iscsi volume from a Linux box. The following shows an error in sharing a ZFS snaphoot via iscsi after a reboot. Not sure why. The same seems to happen with zfs clone as shown above.
vdi/ad03deb8-214f-4b8a-bd51-8dc8f819c460 114M 765G 114M -
vdi/ad03deb8-214f-4b8a-bd51-8dc8f819c460@version1 0 - 114M -
zfs set shareiscsi=off vdi/ad03deb8-214f-4b8a-bd51-8dc8f819c460
zfs set shareiscsi=on vdi/ad03deb8-214f-4b8a-bd51-8dc8f819c460
cannot share 'vdi/ad03deb8-214f-4b8a-bd51-8dc8f819c460@version1': iscsitgtd failed request to share
I'm a bit desparate as i cannot find a solution. VDI 3.2.1 is really good but the above behaviour in deleting and re-creating vdi pools after reboots is not sustainable.
Thanks
Thierry.