Can not delete images on ZFS over iSCSI storage

Bitals

Member
Mar 2, 2020
2
0
21
26
Hello,

I've setted up Proxmox using 2 ZFS over iSCSI shares on FreeNAS for VM storage using this tutorial:
https://forum.proxmox.com/threads/guide-setup-zfs-over-iscsi-with-pve-5x-and-freenas-11.54611/

It have been working great for half a year, but after moving to a different building and to a different network I am no longer able to delete VM images reliably. It works 1 time out of 10 (wanted to get an error to paste here, but it worked first try, lol. But then again failed). The error I am receiving:
Code:
Could not remove disk 'SharedVMs:vm-137-disk-2', check manually: error with cfs lock 'storage-SharedVMs': Unable to delete lun /dev/zvol/SharedVMs/vm-137-disk-2 at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 212.
error with cfs lock 'storage-SharedVMs': Unable to delete lun /dev/zvol/SharedVMs/vm-137-disk-0 at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 212.

Please help me troubleshoot this issue.

Also I have an everyday snapshot task and it started to always e-mail me at 2 AM with the text
Subroutine zfs_get_wwid_number redefined at /usr/share/perl5/PVE/Storage/ZFSPlugin.pm line 179, <DATA> line 755.
Subroutine zfs_get_wwid_number redefined at /usr/share/perl5/PVE/Storage/ZFSPlugin.pm line 188, <DATA> line 755.
Subroutine zfs_get_wwid_number redefined at /usr/share/perl5/PVE/Storage/ZFSPlugin.pm line 197, <DATA> line 755.
Subroutine zfs_get_wwid_number redefined at /usr/share/perl5/PVE/Storage/ZFSPlugin.pm line 206, <DATA> line 755.
Subroutine zfs_get_wwid_number redefined at /usr/share/perl5/PVE/Storage/ZFSPlugin.pm line 215, <DATA> line 755.
But it actually succeeds and snapshots are working, tested, so it's less of an issue, but still uncomfortable.
 
Last edited:
I'm getting the same/similar error when trying to rollback to a snaphot taken of an image stored on FreeNAS via ZFS over iSCSI.

Code:
Unable to delete lun /my/lun/path/vm-101-disk-0 at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 212.
 
Something must be broken in the FreeNAS-API. Try asking the developer of the FreeNAS-API what is wrong. Using ZFS over iSCSI with Comstar works flawlessly here.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!