russel053/ 十一月 17, 2017/ ZFS

安裝:
apt install subversion

svn checkout:

svn checkout svn://svn.code.sf.net/p/scst/svn/trunk scst-svn

編譯:
make 2perf
make scst scst_install iscsi iscsi_install scstadm scstadm_install

安裝:
apt-get install open-iscsi

編輯:
nano /etc/pve/storage.cfg
nano /etc/scst.conf
systemctl restart scst

/etc/default/scst
SCST_TARGET_MODULES="iscsi-scst"

/etc/init.d/scst
SCST_MODULES="scst iscsi-scst scst_vdisk"


nano /etc/scst.conf
HANDLER vdisk_blockio {
        DEVICE win10_data {
                filename /dev/zvol/RAIDSSD/iscsi/windows
        }
}

TARGET_DRIVER copy_manager {
        TARGET copy_manager_tgt {
                LUN 0 windows
        }

}

TARGET_DRIVER iscsi {
        enabled 1

        TARGET iqn.2017-05.com.pve.iscsi-scst-1:tgt {
                allowed_portal 10.0.1.50
                LUN 0 windows
                enabled 1
        }
}

顯示iscsi target:
Scstadmin -list_target

重啟iscsi服務:
systemctl restart scst

流程2:

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
Share this Post