Hello,
I am attempting to share a zfs volume via iscsi, but I can not get the volume shared.
When I restart istgt, everything seams fine:
However, when I want to confirm that the target has been properly setup, I don't see any targets:
And naturally, when I try and connect to the target from my linux system, it also does not find any targets:
My configuration files are:
I have not been able to find much online about the istgtcontrol list error I am getting.
Can anyone point me in the right direction?
Regards
Sandi
I am attempting to share a zfs volume via iscsi, but I can not get the volume shared.
When I restart istgt, everything seams fine:
Code:
# /usr/local/etc/rc.d/istgt restart
Stopping istgt.
Waiting for PIDS: 953.
Starting istgt.
istgt version 0.5 (20121028)
normal mode
using kqueue
using host atomic
LU1 HDD UNIT
LU1: LUN0 file=/dev/zvol/tank/iscsi/vmvols/win7, size=171798691840
LU1: LUN0 335544320 blocks, 512 bytes/block
LU1: LUN0 160.0GB storage for iqn.2013-01.net.fbsdsrv.iscsitgt:win7
LU1: LUN0 serial 10000001
LU1: LUN0 read cache enabled, write cache enabled
LU1: LUN0 command queuing enabled, depth 32
However, when I want to confirm that the target has been properly setup, I don't see any targets:
Code:
# istgtcontrol list
ERROR no target
ABORT LIST command
And naturally, when I try and connect to the target from my linux system, it also does not find any targets:
Code:
# iscsiadm -m discovery -t st -p 192.168.1.110
iscsiadm: No portals found
My configuration files are:
Code:
# cat /usr/local/etc/istgt/istgt.conf
[Global]
Comment "Global section"
NodeBase "iqn.2013-01.net.fbsdsrv.iscsitgt"
DiscoveryAuthMethod CHAP
DiscoveryAuthGroup AuthGroup9999
#The following values were not editied
PidFile /var/run/istgt.pid
AuthFile /usr/local/etc/istgt/auth.conf
MediaDirectory /var/istgt
LogFacility "local7"
Timeout 30
NopInInterval 20
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
#Unit controller
[UnitControl]
Comment "Internal Logical Unit Controller"
AuthMethod CHAP Mutual
AuthGroup AuthGroup10000
Portal UC1 127.0.0.1:3261
Netmask 127.0.0.1
#Portal of the Win7 Disk
[PortalGroup1]
Comment "SINGLE PORT TEST"
Portal DA1 192.168.1.110:3260
# Initiators for the Win7 Disk
[InitiatorGroup1]
Comment "Initiator Group1"
InitiatorName "iqn.2013-01.net.fbsdsrv.iscsitgt:win7"
Netmask 192.168.1.0/24
# Win7 Disk
[LogicalUnit1]
Comment "Win7 Disk"
TargetName win7
TargetAlias "Win7 System Disk"
Mapping PortalGroup1 InitiatorGroup1
AuthMethod CHAP
AuthGroup AuthGroup1
UseDigest Auto
UnitType Disk
LUN0 Storage /dev/zvol/tank/iscsi/vmvols/win7 160GB
Code:
# cat /usr/local/etc/istgt/auth.conf
[AuthGroup1]
Comment "Group for the Test Disk"
Auth "iqn.2013-01.net.fbsdsrv.iscsitgt:win7" "win7123"
[AuthGroup9999]
Comment "Group for discovery"
Auth "iqn.2013-01.net.fbsdsrv.iscsitgt:discoverer" "discover123"
[AuthGroup10000]
Comment "Group for unit controller"
Auth "ctluser" "test" "mutualuser" "mutualsecret"
Code:
# cat /usr/local/etc/istgt/istgtcontrol.conf
[Global]
Comment "Sample Configuration"
Timeout 60
AuthMethod CHAP Mutual
Auth "ctluser" "test" "mutualuser" "mutualsecret"
Host localhost
Port 3261
TargetName "qn.2013-01.net.fbsdsrv.iscsitgt:win7disk"
Lun 0
Flags "ro"
Size "auto"
I have not been able to find much online about the istgtcontrol list error I am getting.
Can anyone point me in the right direction?
Regards
Sandi