TEXT 18
Proxmox - ZFS over iSCSI By jimmyd on 18th September 2021 07:21:42 AM
  1. When trying to create a new disk on my ZFS over iSCSI storage I get the following error:
  2. TASK ERROR: create failed - No such file or directory. at /usr/share/perl5/PVE/Storage/LunCmd/Iet.pm line 376
  3.  
  4. From what I have found it is caused by a busy ZFS filesystem (with a lot of snapshots)
  5.  
  6. It seems that Proxmox creates the ZFS volume, but when Proxmox wants to create an iSCSI LUN to share the ZFS volume, the system has not yet finished populating the devfs.
  7. For this reason, the iscsi daemon can not see the underlying device and the LUN is not created.
  8.  
  9. I have found that by adding a delay between the creation of the ZFS volume and the creation of the iSCSI LUN, this problem is resolved (worked around).
  10.  
  11. Replace the "empty" line 370 in /usr/share/perl5/PVE/Storage/LunCmd/Iet.pm with the following:
  12. sleep 10;
  13.  
  14. When the file has been edited, restart the pvedaemon to re-read the management interface.
  15. /etc/init.d/pvedaemon restart
  16.  
  17. After this change, I am able to create disks on my ZFS over iSCSI storage.

PasteIT is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.