I set up 2 data sets from my zpool:
I tweaked my istgt.conf
auth.conf
istgtcontrol.conf
Everything looks fine:
My initiator finds the target but it will not mount the volumes? Did I miss a zfs step?
Thanks
zfs create -V 8T zroot/vol1
zfs create -V 8T zroot/vol2
Code:
zroot/vol1 8.25T 11.7T 136K -
zroot/vol2 8.25T 11.7T 136K -
I tweaked my istgt.conf
Code:
[Global]
Comment "Global section"
NodeBase "iqn.2015-06.local.mydomain.san"
PidFile /var/run/istgt.pid
AuthFile /usr/local/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
InitialR2T Yes
ImmediateData Yes
DataPDUInOrder Yes
DataSequenceInOrder Yes
ErrorRecoveryLevel 0
[UnitControl]
Comment "Internal Logical Unit Controller"
#AuthMethod Auto
AuthMethod CHAP Mutual
AuthGroup AuthGroup10000
Portal UC1 127.0.0.1:3261
Netmask 127.0.0.1
[PortalGroup1]
Comment "SINGLE PORT TEST"
Portal DA1 192.168.13.76:3260
[InitiatorGroup1]
Comment "Initiator Group1"
InitiatorName "ALL"
Netmask 192.168.13.0/24
[LogicalUnit1]
Comment "esx volume 1"
TargetName vol1
TargetAlias "vol1"
Mapping PortalGroup1 InitiatorGroup1
AuthMethod Auto
AuthGroup AuthGroup1
UseDigest Auto
UnitType Disk
LUN0 Storage /dev/zvol/zroot/vol1 Auto
[LogicalUnit2]
Comment "esx volume 2"
TargetName vol2
TargetAlias "vol2"
Mapping PortalGroup1 InitiatorGroup1
AuthMethod Auto
AuthGroup AuthGroup1
UseDigest Auto
UnitType Disk
LUN0 Storage /dev/zvol/zroot/vol2 Auto
auth.conf
Code:
[AuthGroup1]
Comment "Auth Group1"
Auth "iscsi" "test123!"
[AuthGroup10000]
Comment "Unit Controller's users"
Auth "testuser" "secret" "mutual user" "mutual secret"
Auth "onlysingle" "secret"
istgtcontrol.conf
Code:
[Global]
Comment "sample configuration"
Timeout 60
AuthMethod CHAP Mutual
Auth "testuser" "secret" "mutual user" "mutual secret"
Host localhost
Port 3261
Everything looks fine:
Code:
istgt version 0.5 (20121028)
normal mode
using kqueue
using host atomic
LU1 HDD UNIT
LU1: LUN0 file=/dev/zvol/zroot/vol1, size=8796093022208
LU1: LUN0 17179869184 blocks, 512 bytes/block
LU1: LUN0 8192.0GB storage for iqn.2015-06.local.mydomain.san:vol1
LU1: LUN0 serial 10000001
LU1: LUN0 read cache enabled, write cache enabled
LU1: LUN0 command queuing enabled, depth 32
LU2 HDD UNIT
LU2: LUN0 file=/dev/zvol/zroot/vol2, size=8796093022208
LU2: LUN0 17179869184 blocks, 512 bytes/block
LU2: LUN0 8192.0GB storage for iqn.2015-06.local.mydomain.san:vol2
LU2: LUN0 serial 10000002
LU2: LUN0 read cache enabled, write cache enabled
LU2: LUN0 command queuing enabled, depth 32
$ sudo istgtcontrol list
Code:
iqn.2015-06.local.mydomain.san:vol1
iqn.2015-06.local.mydomain.san:vol2
DONE LIST command
My initiator finds the target but it will not mount the volumes? Did I miss a zfs step?
Thanks