Proxmox VE 3.3 and Freenas 9.2.7 ZFS via ISCSI

After upgrading to Versions 3.4-1 I decided to give it another go as I see that the ZFS packages have been updated.
Unfortunately it is still not working.

I have a zpool called PVE, my settings in storage.cfg are as followed

zfs: freenas
blocksize 4k
target iqn.2011-03.nl.tbu.istgt
pool PVE
iscsiprovider istgt
portal 192.168.1.249
content images

When trying to add a VM, I get the following error,

Use of uninitialized value $zvol in concatenation (.) or string at /usr/share/perl5/PVE/Storage/ZFSPoolPlugin.pm line 286.
cannot create 'PVE/': trailing slash in name
TASK ERROR: create failed - command '/usr/bin/ssh -o 'BatchMode=yes' -i /etc/pve/priv/zfs/192.168.1.249_id_rsa root@192.168.1.249 zfs create -b 4k -V 33554432k PVE/' failed: exit code 1

Hope it helps and it can be fixed.
 
Hi,
you try to load the local ZFS Pool. but your settings is for ZFS over iSCSI !
 
I just noticed a new package update for the storage, the error now changed to,

TASK ERROR: create failed - No configuration found. Install istgt on 192.168.1.249 at /usr/share/perl5/PVE/Storage/LunCmd/Istgt.pm line 99.


proxmox-ve-2.6.32: 3.3-147 (running kernel: 2.6.32-34-pve)
pve-manager: 3.4-1 (running version: 3.4-1/3f2d890e)
pve-kernel-2.6.32-37-pve: 2.6.32-147
pve-kernel-2.6.32-34-pve: 2.6.32-140
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.7-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.10-2
pve-cluster: 3.0-16
qemu-server: 3.3-20
pve-firmware: 1.1-3
libpve-common-perl: 3.0-24
libpve-access-control: 3.0-16
libpve-storage-perl: 3.0-31
pve-libspice-server1: 0.12.4-3
vncterm: 1.1-8
vzctl: 4.0-1pve6
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 2.1-12
ksm-control-daemon: 1.1-1
glusterfs-client: 3.5.2-1

 
Last edited:
This means that the config on your Freenas is not found.
This config is on Free4Nas side, may by they have moved them.
 
This means that the config on your Freenas is not found.
This config is on Free4Nas side, may by they have moved them.
Hi Wolfgang it seems it does create the zvol.

FreeNAS doesn't use istgt anymore, but ctld. This is on 9.3 STABLE
Jep it is definitly the thing.
They have patched 9.3 and removed istgt for perfomance reasons and replaced it by ctld
(see https://www.freebsd.org/cgi/man.cgi?query=ctld&sektion=8)

See also https://bugs.pcbsd.org/issues/8066

Is it a dropin replacement?
Just change istgt to ctld and ctl.conf?
 
Last edited:
ctld cannot be replaced with istgt. Providing support for ctld will have to wait until it is properly implemented. In its current state there is a hardcoded limit for 100 luns (disks) which makes it unsuited for providing storage to a virtualization environment.
 
ctld cannot be replaced with istgt. Providing support for ctld will have to wait until it is properly implemented. In its current state there is a hardcoded limit for 100 luns (disks) which makes it unsuited for providing storage to a virtualization environment.

Hi mir, thanks for your reply!
Are you sure about this limit?
I found the following http://www.secnetix.de/olli/FreeBSD/svnews/index.py?r=278037
According to this the limit is now 256 and will be changed to 1024
 
I had the same problem with proxmox and freenas.

Now i switched to napp-it via comstar, in my test environment it works perfect.
 
Hello,

Any news about ctld support for zfs over iSCSI?
Will it be avaible soon?
Is it already on the roadmap?
 

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!