I cannot add zvolume for zfs over iscsi on proxmox.

pilgrimage

Member
Oct 17, 2021
65
2
13
44
I added zfs over iscsi as proxmox cluster storage. However, when I want to create a vm in shared common zfs, it gives the following error?

TASK ERROR: unable to create VM 100 - target portal group tpg1 not found!

Target portal group name looks like tpg1. Could it be because the lun was not created?

1. /iscsi create iqn.2025-01.lab.proxmox:nvme1

2. /iscsi/iqn.2025-01.lab.proxmox:nvme1/tpg1/portals create 10.10.10.1

3./backstores/block create name=tank dev=/dev/zvol/tank/
/iscsi/iqn.2025-01.lab.proxmox:nvme1/tpg1/luns create /backstores/block/tank

I'm stuck on 3 steps. I can't add /dev/zvol/tank with targetcli I created a pool under zfs under disk via proxmox but it doesn't create /dev/zvol/tank /vm at block level. How can I add my zfs disk as lun with lio when it does not create /dev/zvol? My goal is to configure Zfs over iscsi.


Ekran Resmi 2025-01-07 04.34.17.png

My Proxmox ZFS Settings ;

Ekran Resmi 2025-01-07 04.35.28.png

What is the solution to the problem? What am I doing wrong?