Re: ErrorRecoveryLevel > 0 On LIO Target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2013-11-19 at 17:00 +0530, Arshad Hussain wrote:
> Upon looking further. I found out that the target does indeed support
> ERL=[0,1,2]. As it throws error if value is not between 0 and 2.
> 
> However, the symptoms remains the same. When attempting
> to login with ERL=1, the target response back ERL=0. Are we looking at 
> an error?
> 

No.

The ErrorRecoveryLevel parameter needs to be explicitly set on a per
TargetName+TargetPortalGroupTag basis in order to allow an initiator to
negotiate ErrorRecoveryLevel > 0.

This is set from within targetcli /iscsi/$IQN/$TPGT/ context, using:
  
      set parameter ErrorRecoveryLevel=2

Note that ErrorRecoveryLevel=0 is enforced by default to avoid certain
initiators that attempt to negotiate ErrorRecoveryLevel>1, but end up
(historically) violating the connection recovery state machine, causing
themselves to eventually take their LUNs offline.

--nab

> Thanks,
> Arshad
> 
> --snip--
> Nov 19 04:57:55 localhost kernel: [104354.626532] Illegal value for 
> "ErrorRecoveryLevel", must be between 0 and 2.
> Nov 19 04:57:55 localhost kernel: [104354.626547] iSCSI Login 
> negotiation failed.
> --snip--
> 
> On 11/19/2013 12:41 PM, Arshad Hussain wrote:
> > Hi Nicholas,
> >
> > I am trying to negotiate "ErrorRecoveryLevel=1".  At the time of login.
> > However, the response for target comes back always as 
> > "ErrorRecoveyLevel=0".
> > I am assuming target is not supporting ERL>0. Is my observation correct ?
> >
> > Thanks,
> > Arshad
> >
> > [root@localhost src]# cat /sys/kernel/config/target/iscsi/lio_version
> > RisingTide Systems Linux-iSCSI Target v4.1.0-rc2
> > [root@localhost src]#
> 
> --
> To unsubscribe from this list: send the line "unsubscribe target-devel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux