ZFS over iSCSI: VM-creation fails

shh

Member
Aug 9, 2021
5
0
6
Hello,
I't trying to get ZFS-over-iSCSI running. Proxmox 8.2.4, all (free) updates.
All seems to be setup correctly, however when I start the VM creation it fails:
Code:
stopped: unable to create VM 100 - Could not open /dev/data/iscsi/vm-100-disk-0
But, the zvol was created correctly in /dev/zvol/data/iscsi/vm-100-disk-0
and Proxmox is searching at the wrong place: My system doesn't have a /dev/data/ path!
Code:
/etc/pve/storage.cfg
...
zfs: zfs-over-iscsi
    blocksize 16k
    iscsiprovider LIO
    pool data/iscsi
    portal 10.70.5.11
    target iqn.2003-01.org.linux-iscsi.HostName.xNUMBERS:sn.SERIAL
    content images
    lio_tpg tpg1
    nowritecache 1
    sparse 1
Code:
# zfs list
NAME                       USED  AVAIL  REFER  MOUNTPOINT
data                      6.18M  4.24T   224K  /data
data/iscsi                 304K  4.24T   192K  /data/iscsi
data/iscsi/vm-100-disk-0   112K  4.24T   112K  -
rpool                     7.62G   172G   104K  /rpool
rpool/ROOT                4.27G   172G    96K  /rpool/ROOT
rpool/ROOT/pve-1          4.27G   172G  4.27G  /
rpool/data                  96K   172G    96K  /rpool/data
rpool/var-lib-vz          3.26G   172G  3.26G  /var/lib/vz

Any ideas why Proxmox is using a wrong path for the zvol?
And how I can correct this?

Best regards...
 
> EDIT: May be a duplicate of this.

Yes!
Symlink helped, thanks! But this doesn't survive a reboot I guess.

- Proxmox 8.1.10: Same problem, no pool at /dev/
- Std-Debian with ZFS: no pools at /dev/
- Even Solaris/OmniOS doesn't link the pools to /dev/
This should be considered a bug. :confused:
 

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!