[pve-devel] [PATCH storage 0/2] Add SCST provider to ZFS over iSCSI

Dzmitry Kotsikau dkotsikau at gmail.com
Thu May 3 14:50:20 CEST 2018


SCTS target can be installed on Proxmox node with ZFS

sudo apt-get install subversion quilt dkms gawk build-essential flex bison automake autoconf devscripts pve-headers
svn checkout svn://svn.code.sf.net/p/scst/svn/trunk scst-trunk
cd scst-trunk
make dpkg
cd dpkg
sudo dpkg -i iscsi-scst_*_amd64.deb scst-dkms_*_all.deb scstadmin_*_amd64.deb 

After installation SCST requires at least one empty iSCSI target to be created.

So /etc/scst.conf file may contain something like this:

TARGET_DRIVER iscsi {
        enabled 1
                
        TARGET iqn.2006-10.com.scst:orion {
                allowed_portal 192.168.254.10
                enabled 1
                rel_tgt_id 1
        }
}

Block size option in the target configuration affects only ZFS. I tried to syncronize SCST block size and ZFS block size,
but qemu-image fails to convert such disks. It looks like a qemu bug. It may convert disks < 2GB but will fail on bigger virtual disks.
So SCST creates volumes with 512 block size.


Dzmitry Kotsikau (2):
  add SCST provider to ZFS over iSCSI storage type
  fix scstadmin path to support installation from deb packages

 PVE/Storage/LunCmd/Makefile |   2 +-
 PVE/Storage/LunCmd/Scst.pm  | 557 ++++++++++++++++++++++++++++++++++++++++++++
 PVE/Storage/ZFSPlugin.pm    |  15 +-
 3 files changed, 570 insertions(+), 4 deletions(-)
 create mode 100644 PVE/Storage/LunCmd/Scst.pm

-- 
2.11.0



More information about the pve-devel mailing list