Proxmox - ZFS over iSCSI

Plaintext jimmyd 10 Views Size: 1.01 KB Posted on: Oct 5, 25 @ 10:59 AM
  1. 1When trying to create a new disk on my ZFS over iSCSI storage I get the following error:
  2. 2TASK ERROR: create failed - No such file or directory. at /usr/share/perl5/PVE/Storage/LunCmd/Iet.pm line 376
  3. 3
  4. 4From what I have found it is caused by a busy ZFS filesystem (with a lot of snapshots)
  5. 5
  6. 6It 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. 7For this reason, the iscsi daemon can not see the underlying device and the LUN is not created.
  8. 8
  9. 9I 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. 10
  11. 11Replace the "empty" line 370 in /usr/share/perl5/PVE/Storage/LunCmd/Iet.pm with the following:
  12. 12sleep 10;
  13. 13
  14. 14When the file has been edited, restart the pvedaemon to re-read the management interface.
  15. 15/etc/init.d/pvedaemon restart
  16. 16
  17. 17After this change, I am able to create disks on my ZFS over iSCSI storage.

Raw Paste

Comments 0
Login to post a comment.
  • No comments yet. Be the first.
Login to post a comment. Login or Register
We use cookies. To comply with GDPR in the EU and the UK we have to show you these.

We use cookies and similar technologies to keep this website functional (including spam protection via Google reCAPTCHA), and — with your consent — to measure usage and show ads. See Privacy.