FreeBSD/iSCSI intiator into EMC Clarion target
Len Conrad
lconrad at Go2France.com
Wed Jul 8 19:25:57 UTC 2009
uname -a
FreeBSD xxx 7.1-RELEASE FreeBSD 7.1-RELEASE #0
kldstat
Id Refs Address Size Name
1 5 0xc0400000 97f830 kernel
2 1 0xc0d80000 ff18 iscsi_initiator.ko
3 1 0xc0d90000 6a2c4 acpi.ko
iscontrol doesn't have -V version and strings doesn't find anything that looks like a version.
iscontrol -d -v -t 192.168.78.5
port = 3260
tags = 0
maxluns = 0
iqn = iqn.2005-01.il.ac.huji.cs:
maxConnections = 1
maxRecvDataSegmentLength = 65536
maxXmitDataSegmentLength = 65536
maxBurstLength = 131072
firstBurstLength = 65536
defaultTime2Wait = 0
defaultTime2Retain = 0
maxOutstandingR2T = 1
errorRecoveryLevel = 0
targetPortalGroupTag = 0
headerDigest = None,CRC32C
dataDigest = None,CRC32C
initialR2T = 1
immediateData = 1
dataPDUInOrder = 1
dataSequenceInOrder = 1
sessionType = Normal
targetAddress = (null)
targetAlias = (null)
targetName = (null)
initiatorName = (null)
initiatorAlias = (null)
authMethod = None
chapSecret = (null)
chapIName = (null)
tgtChapName = (null)
tgtChapSecret = (null)
tgttgtChallengeLen = 0
I-: cmd=0x3 len=301
SessionType=Discovery
InitiatorName=iqn.2005-01.il.ac.huji.cs::mr1.xxxx.net
MaxBurstLength=131072
HeaderDigest=None,CRC32C
DataDigest=None,CRC32C
MaxRecvDataSegmentLength=65536
ErrorRecoveryLevel=0
DefaultTime2Wait=0
DefaultTime2Retain=0
DataPDUInOrder=Yes
DataSequenceInOrder=Yes
MaxOutstandingR2T=1
T-: cmd=0x23 len=281
TargetPortalGroupTag=0
TargetAlias=1576.b3
HeaderDigest=None
DataDigest=None
MaxRecvDataSegmentLength=65536
MaxBurstLength=Irrelevant
DefaultTime2Wait=0
DefaultTime2Retain=0
MaxOutstandingR2T=Irrelevant
DataPDUInOrder=Irrelevant
DataSequenceInOrder=Irrelevant
ErrorRecoveryLevel=0
I-: cmd=0x4 len=16
SendTargets=All
recvpdu: Socket is not connected
recvpdu failed
I-: cmd=0x6 len=0
recvpdu: Socket is not connected
recvpdu failed
==========
iniatator does work into a FreeBSD/iscsi-target:
# iscontrol -c /etc/iscsi.conf -n target0
iscontrol[817]: running
iscontrol[817]: (pass3:iscsi0:0:0:0): tagged openings now 0
iscontrol[817]: cam_open_btl: no passthrough device found at 2:0:1
iscontrol[817]: cam_open_btl: no passthrough device found at 2:0:2
iscontrol[817]: cam_open_btl: no passthrough device found at 2:0:3
iscontrol: supervise starting main loop
#ll /dev/is*
crw------- 1 root wheel 0, 27 Jul 8 13:29 /dev/iscsi
crw------- 1 root wheel 0, 103 Jul 8 13:29 /dev/iscsi0
#ll /dev/da*
crw-r----- 1 root operator 0, 90 Jul 8 13:29 /dev/da0
crw-r----- 1 root operator 0, 91 Jul 8 13:29 /dev/da0s1
crw-r----- 1 root operator 0, 92 Jul 8 08:30 /dev/da0s1a
crw-r----- 1 root operator 0, 93 Jul 8 13:30 /dev/da0s1b
crw-r----- 1 root operator 0, 94 Jul 8 13:29 /dev/da0s1c
crw-r----- 1 root operator 0, 95 Jul 8 08:29 /dev/da0s1d
crw-r----- 1 root operator 0, 96 Jul 8 08:29 /dev/da0s1e
crw-r----- 1 root operator 0, 105 Jul 8 13:29 /dev/da1
crw-r----- 1 root operator 0, 106 Jul 8 13:29 /dev/da1s1
crw-r----- 1 root operator 0, 107 Jul 8 13:29 /dev/da1s1c
crw-r----- 1 root operator 0, 108 Jul 8 13:29 /dev/da1s1d
#mount /dev/da1s1 /iscsitest/
#df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/da0s1a 10154158 141662 9200164 2% /
devfs 1 1 0 100% /dev
/dev/da0s1d 20308398 1393604 17290124 7% /usr
/dev/da0s1e 40622090 292054 37080270 1% /var
/dev/da1s1 9907690 2990276 6124800 33% /iscsitest
=========
Red Hat Enterprise iscsi initiator connects to EMC SAN target reliably.
If we can't get the FreeBSD iniatator working, we'll have to convert several machines from FreeBSD to Linux.
Len
More information about the freebsd-questions
mailing list