I don't know how many still using SRPT but I am using it as my main protocol to share LUN instead of iscsi/iser.
Package Info
In addition, the following packages are needed
build-essential, subversion, opensm, pve-headers-4.2.6-1-pve
Then run following command, the SCST version that I use to compile is 6776
This should compile and install scst.ko and ib_srpt.ko
Follow config will load the necessary module when starting scst service
following config is a sample of /etc/scst.conf
Package Info
Code:
root@nas:~# pveversion --verbose
proxmox-ve: 4.1-28 (running kernel: 4.2.6-1-pve)
pve-manager: 4.1-2 (running version: 4.1-2/78c5f4a2)
pve-kernel-4.2.6-1-pve: 4.2.6-28
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 0.17.2-1
pve-cluster: 4.0-29
qemu-server: 4.0-42
pve-firmware: 1.1-7
libpve-common-perl: 4.0-42
libpve-access-control: 4.0-10
libpve-storage-perl: 4.0-38
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.4-18
pve-container: 1.0-35
pve-firewall: 2.0-14
pve-ha-manager: 1.0-16
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u1
lxc-pve: 1.1.5-5
lxcfs: 0.13-pve2
cgmanager: 0.39-pve1
criu: 1.6.0-1
zfsutils: 0.6.5-pve6~jessie
openvswitch-switch: 2.3.2-2
In addition, the following packages are needed
build-essential, subversion, opensm, pve-headers-4.2.6-1-pve
Then run following command, the SCST version that I use to compile is 6776
Code:
svn checkout svn://svn.code.sf.net/p/scst/svn/trunk scst-trunk.6776
cp scst-trunk.6776 scst-trunk -R
cd scst-trunk
make 2perf
make scst srpt scstadm scst_install srpt_install scstadm_install
This should compile and install scst.ko and ib_srpt.ko
Follow config will load the necessary module when starting scst service
Code:
nano /etc/init.d/scst
parse_scst_conf() {
-- SCST_MODULES="scst"
++ SCST_MODULES="scst scst_vdisk ib_srpt"
following config is a sample of /etc/scst.conf
Code:
root@nas:~# cat /etc/scst.conf
# Automatically generated by SCST Configurator v3.1.0-pre1.
HANDLER vdisk_blockio {
DEVICE asrs_disk {
filename /dev/zvol/rpool/vm/asrs_disk
}
DEVICE erp_ap {
filename /dev/zvol/rpool/vm/erp_ap
}
}
TARGET_DRIVER ib_srpt {
TARGET fe80:0000:0000:0000:0002:c903:00a0:b671 {
comp_v_mask ff
enabled 1
rel_tgt_id 1
GROUP pve4 {
LUN 0 asrs_disk
LUN 1 erp_ap
INITIATOR *
}
}
}