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