iSCSI Target on Debian 9.4 x64 (не для кластера)

aptitude install targetcli-fb
mkdir /iscsi

targetcli
cd backstores/fileio
create disk02 /iscsi/disk02.img 32GB
cd /iscsi
create iqn.2018-03.storage1.domain.local:storage.target02
cd iqn.2018-03.storage1.domain.local:storage.target02/tpg1/luns
create /backstores/fileio/disk02
cd ../acls
create iqn.2018-03.com.microsoft:h-n-2.hyper-v.test #initiator
cd ..
set attribute authentication=0
exit

23.03.2018

iSCSI Target on Debian 9.4 x64 для MS Failover Cluster

aptitude install tgt-glusterfs tgt
mkdir /iscsi
tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2018-04.your.domain.com
dd if=/dev/zero of=/iscsi/iscsi-disk1 bs=1M count=8000 #размер файла в ~8GB
tgtadm --lld iscsi --mode logicalunit --op new --tid 1 --lun 1 -b /iscsi/iscsi-disk1
tgtadm --lld iscsi --mode target --op bind --tid 1 -I ALL
tgtadm --lld iscsi --mode target --op show
Target 1: iqn.2018-04.com.example:for.all System information: Driver: iscsi State: ready I_T nexus information: I_T nexus: 1 Initiator: iqn.2018-03.com.microsoft:h-n-3.hyper-v.test alias: none Connection: 1 IP Address: 10.254.1.82 LUN information: LUN: 0 Type: controller SCSI ID: IET 00010000 SCSI SN: beaf10 Size: 8389 MB, Block size: 512 Online: Yes Removable media: No Prevent removal: No Readonly: No SWP: No Thin-provisioning: No Backing store type: null Backing store path: None Backing store flags: Account information: ACL information: ALL

06.04.2018