[SOLVED] Proxmox 6 ZFS Over ISCSI

Konstantinq

New Member
Aug 27, 2019
4
1
3
29
Hello, we are using proxmox 6. We using ZFS Over ISCSI with istgt provider and really hard to find the manual configuration.
We set up a Linux Debian host with istgt installed. Here's the config for istgt:
[Global]
Comment "Global section"
NodeBase "iqn.2019-08.bpm.lanit"
PidFile /var/run/istgt.pid
AuthFile /etc/istgt/auth.conf
MediaDirectory /var/istgt
LogFacility "local7"
Timeout 30
NopInInterval 20
DiscoveryAuthMethod Auto
MaxSessions 16
MaxConnections 4
MaxR2T 32
MaxOutstandingR2T 16
DefaultTime2Wait 2
DefaultTime2Retain 60
FirstBurstLength 262144
MaxBurstLength 1048576
MaxRecvDataSegmentLength 262144
[UnitControl]
Comment "Internal Logical Unit Controller"
AuthMethod CHAP Mutual
AuthGroup AuthGroup10000
Portal UC1 127.0.0.1:3261
[PortalGroup1]
Comment "SINGLE PORT TEST"
Portal DA1 172.30.163.58:3260
[InitiatorGroup1]
Comment "Initiator Group1"
InitiatorName "ALL"
Netmask 192.268.1.0/24
[LogicalUnit1]
Comment "Hard Disk Sample"
TargetName disk1
TargetAlias "Data Disk1"
Mapping PortalGroup1 InitiatorGroup1
AuthMethod Auto
AuthGroup AuthGroup1
UseDigest Auto
UnitType Disk
LUN0 Storage /data/vms


I have set up the ssh key and I can log in using that key. But when I'm finishing added virtual machine I got error:

No configuration found. Install istgt on "host" usr/share/perl5/PVE/Storage/LunCmd/Istgt.pm line 99. (500). but that istgt successful running

what's wrong? any help please
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
6,966
1,079
164
istgt is considered the iscsi target for FreeBSD (hence the config-file path is '/usr/local/etc/istgt/istgt.conf')
Any particular reason you don't use LIO on linux/Debian?
 
  • Like
Reactions: Konstantinq

Konstantinq

New Member
Aug 27, 2019
4
1
3
29
Hmm, I read many feedbacks on forums, which iscsi provider provides better read/write speed. And their opinion was istgt. apt-get also has istgt package, so I tried to configure on Debian. ISCSI Provider LIO special for Debian?
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
6,966
1,079
164
Maybe you can create a soft link for /usr/local/etc/istgt/istgt.conf -> your actual isgt config file path?
This should work for the config-reading - I'm not sure if the rest of the stack is compatible.
LIO is the in-kernel implementation of the iscsi target and available on most Linux distros - see e.g. https://wiki.archlinux.org/index.php/ISCSI/LIO
http://linux-iscsi.org/wiki/LIO

Hence it's specific to Linux

Should you have some comparison where istgt has advantages to LIO (speed-wise, ease-of-use wise) please open an enhancement request in our bugzilla: https://bugzilla.proxmox.com
 
  • Like
Reactions: Konstantinq

Konstantinq

New Member
Aug 27, 2019
4
1
3
29
This should work for the config-reading - I'm not sure if the rest of the stack is compatible.
LIO is the in-kernel implementation of the iscsi target and available on most Linux distros - see e.g. https://wiki.archlinux.org/index.php/ISCSI/LIO
http://linux-iscsi.org/wiki/LIO

Hence it's specific to Linux

Should you have some comparison where istgt has advantages to LIO (speed-wise, ease-of-use wise) please open an enhancement request in our bugzilla: https://bugzilla.proxmox.com
Thanks you, seems LIO is working fine
 
  • Like
Reactions: Stoiko Ivanov

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
6,966
1,079
164
Glad LIO worked for you!
Please mark the thread as 'SOLVED' so that others know what to expect.
Thanks!
 

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 your own in 60 seconds.

Buy now!