Page 1 of 1

New Bie question

Posted: Tue Jan 04, 2011 7:38 pm
by starworse@yahoo.com
hi guys,


i am running solaris 10 as my guest OS(Using VMWare Workstation) on Windows XP. i installed starwind created a Target inside it also done necessary configuration steps(like creating image file, partitioning the slice on XP make it Online with a drive name).

inside solaris i executed following commands

bash-3.00# iscsiadm list target
Target: iqn.2008-08.com.starwindsoftware:xxxxxxx-iscsiDisk1
Alias: -
ISID: 4000002a0000
Connections: 0


bash-3.00# iscsiadm list target -v iqn.2008-08.com.starwindsoftware:xxxxxxx-
iscsiDisk1
Target: iqn.2008-08.com.starwindsoftware:xxxxxxx-iscsiDisk1
Alias: -
ISID: 4000002a0000
Connections: 0
Discovery Method: SendTargets
Login Parameters (Negotiated):
Data Sequence In Order: -
Data PDU In Order: -
Default Time To Retain: -
Default Time To Wait: -
Error Recovery Level: -
First Burst Length: -
Immediate Data: -
Initial Ready To Transfer (R2T): -
Max Burst Length: -
Max Outstanding R2T: -
Max Receive Data Segment Length: -
Max Connections: -
Header Digest: -
Data Digest: -

and finally i excuted the command

bash-3.00#devfsadm -i iscsi

i got the following message from dmesg log

Jan 5 00:44:02 user1 iscsi: [ID 372941 kern.warning] WARNING: iscsi connection(7) login failed - iSCSI service or target is not currently operational. (0x03/0x01)

inside starwind server log

1/5 0:44:02.531 148 Srv: Accepted iSCSI connection from 192.168.1.10:32914 to 192.168.1.11:3260. (Id = 0x1c)
1/5 0:44:02.531 148 C[1c], FREE: Event - CONNECTED.
1/5 0:44:02.531 148 C[1c], XPT_UP: T3.
1/5 0:44:02.546 b80 C[1c], XPT_UP: Login request: ISID 0x4000002a00ff, TSIH 0x0000.
1/5 0:44:02.546 b80 C[1c], XPT_UP: Event - LOGIN.
1/5 0:44:02.546 b80 C[1c], IN_LOGIN: T4.
1/5 0:44:02.546 b80 Params: <<< String param 'InitiatorName': received 'iqn.1986-03.com.sun:01:70db84d8e000.4d1b9948', accepted 'iqn.1986-03.com.sun:01:70db84d8e000.4d1b9948'
1/5 0:44:02.546 b80 Params: <<< String param 'InitiatorAlias': received 'pras1', accepted 'pras1'
1/5 0:44:02.546 b80 Params: <<< Enum param 'SessionType': received 'Discovery', accepted 'Discovery'
1/5 0:44:02.546 b80 Params: <<< Enum param 'HeaderDigest': received 'None', accepted 'None'
1/5 0:44:02.546 b80 Params: <<< Enum param 'DataDigest': received 'None', accepted 'None'
1/5 0:44:02.546 b80 Params: <<< Numeric param 'MaxRecvDataSegmentLength': received 8192, accepted 8192
1/5 0:44:02.546 b80 Params: <<< Numeric param 'DefaultTime2Wait': received 2, accepted 2
1/5 0:44:02.546 b80 Params: <<< Numeric param 'DefaultTime2Retain': received 20, accepted 20
1/5 0:44:02.546 b80 Params: <<< Numeric param 'ErrorRecoveryLevel': received 0, accepted 0
1/5 0:44:02.546 b80 Params: <<< Boolean param 'IFMarker': received No, accepted 0
1/5 0:44:02.546 b80 Params: <<< Boolean param 'OFMarker': received No, accepted 0
1/5 0:44:02.546 b80 Params: >>> ErrorRecoveryLevel=0.
1/5 0:44:02.546 b80 Params: >>> HeaderDigest=None.
1/5 0:44:02.546 b80 Params: >>> DataDigest=None.
1/5 0:44:02.546 b80 Params: >>> OFMarker=No.
1/5 0:44:02.546 b80 Params: >>> IFMarker=No.
1/5 0:44:02.546 b80 Params: >>> InitialR2T=No.
1/5 0:44:02.546 b80 Params: >>> ImmediateData=Yes.
1/5 0:44:02.546 b80 Params: >>> MaxRecvDataSegmentLength=262144.
1/5 0:44:02.546 b80 Params: >>> MaxBurstLength=262144.
1/5 0:44:02.546 b80 Params: >>> FirstBurstLength=262144.
1/5 0:44:02.546 b80 Params: >>> DefaultTime2Wait=2.
1/5 0:44:02.546 b80 Params: >>> DefaultTime2Retain=20.
1/5 0:44:02.546 b80 Params: >>> MaxOutstandingR2T=1.
1/5 0:44:02.546 b80 Params: >>> DataPDUInOrder=Yes.
1/5 0:44:02.546 b80 Params: >>> DataSequenceInOrder=Yes.
1/5 0:44:02.546 f2c T[1c,1]: session 0x1c, connection 0x1c : end of stage 1, next stage 3.
1/5 0:44:02.546 f2c C[1c], IN_LOGIN: Event - LOGIN_ACCEPT.
1/5 0:44:02.546 f2c C[1c], LIN: T5.
1/5 0:44:02.562 f2c C[1c], LIN: Event - LOGOUT.
1/5 0:44:02.562 f2c C[1c], IN_LOGOUT: T9/10.
1/5 0:44:02.562 c54 C[1c], IN_LOGOUT: Event - LOGOUT_ACCEPT.
1/5 0:44:02.562 c54 C[1c], FREE: T13.
1/5 0:44:02.562 b80 C[1c], FREE: recvData returned 10058
1/5 0:44:03.515 148 Srv: Accepted iSCSI connection from 192.168.1.10:32915 to 192.168.1.11:3260. (Id = 0x1d)
1/5 0:44:03.515 148 C[1d], FREE: Event - CONNECTED.
1/5 0:44:03.515 148 C[1d], XPT_UP: T3.
1/5 0:44:03.531 4f4 C[1d], XPT_UP: Login request: ISID 0x4000002a0000, TSIH 0x0000.
1/5 0:44:03.531 4f4 C[1d], XPT_UP: Event - LOGIN.
1/5 0:44:03.531 4f4 C[1d], IN_LOGIN: T4.
1/5 0:44:03.531 4f4 Params: <<< String param 'InitiatorName': received 'iqn.1986-03.com.sun:01:70db84d8e000.4d1b9948', accepted 'iqn.1986-03.com.sun:01:70db84d8e000.4d1b9948'
1/5 0:44:03.531 4f4 Params: <<< String param 'InitiatorAlias': received 'pras1', accepted 'pras1'
1/5 0:44:03.531 4f4 Params: <<< String param 'TargetName': received 'iqn.2008-08.com.starwindsoftware:xxxxxxx-iscsiDisk1', accepted 'iqn.2008-08.com.starwindsoftware:xxxxxxx-iscsiDisk1'
1/5 0:44:03.531 4f4 Params: <<< Enum param 'SessionType': received 'Normal', accepted 'Normal'
1/5 0:44:03.531 4f4 Params: <<< Enum param 'HeaderDigest': received 'None', accepted 'None'
1/5 0:44:03.531 4f4 Params: <<< Enum param 'DataDigest': received 'None', accepted 'None'
1/5 0:44:03.531 4f4 Params: <<< Numeric param 'MaxRecvDataSegmentLength': received 8192, accepted 8192
1/5 0:44:03.531 4f4 Params: <<< Numeric param 'DefaultTime2Wait': received 2, accepted 2
1/5 0:44:03.531 4f4 Params: <<< Numeric param 'DefaultTime2Retain': received 20, accepted 20
1/5 0:44:03.531 4f4 Params: <<< Numeric param 'ErrorRecoveryLevel': received 0, accepted 0
1/5 0:44:03.531 4f4 Params: <<< Boolean param 'IFMarker': received No, accepted 0
1/5 0:44:03.531 4f4 Params: <<< Boolean param 'OFMarker': received No, accepted 0
1/5 0:44:03.531 4f4 Params: <<< Boolean param 'InitialR2T': received Yes, accepted 1
1/5 0:44:03.531 4f4 Params: <<< Boolean param 'ImmediateData': received Yes, accepted 1
1/5 0:44:03.531 4f4 Params: <<< Numeric param 'MaxBurstLength': received 262144, accepted 262144
1/5 0:44:03.531 4f4 Params: <<< Numeric param 'FirstBurstLength': received 65536, accepted 65536
1/5 0:44:03.531 4f4 Params: <<< Numeric param 'MaxOutstandingR2T': received 1, accepted 1
1/5 0:44:03.531 4f4 Params: <<< Numeric param 'MaxConnections': received 1, accepted 1
1/5 0:44:03.531 4f4 Params: <<< Boolean param 'DataPDUInOrder': received Yes, accepted 1
1/5 0:44:03.531 4f4 Params: <<< Boolean param 'DataSequenceInOrder': received Yes, accepted 1
1/5 0:44:03.531 4f4 Tgt: *LIMIT* iqn.2008-08.com.starwindsoftware:xxxxxxx-iscsiDisk1: all of 1 allowed sessions are opened!
1/5 0:44:03.531 4f4 T[1d,1]: *ERROR* Login request: device open failed.
1/5 0:44:03.531 a90 C[1d], IN_LOGIN: Event - LOGIN_REJECT.
1/5 0:44:03.531 a90 C[1d], FREE: T7.
1/5 0:44:03.531 4f4 C[1d], FREE: recvData returned 10058


please help me out

Regards
Prasanth

Re: New Bie question

Posted: Tue Jan 04, 2011 8:50 pm
by anton (staff)
Enable multiple connections per target (use "Clustered=Yes"). For some reason Solaris initiator does not close existing iSCSI session (even if it does not use it in the future) and just spawns new one.