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