Hi Gorka

I did a general search of AEN/AER, looks like they had been 
obsoleted: 
http://www.santrainingblog.com/2010/04/asynchronous-event-notification-aen/

  Notice that AEN/AER was removed in sam3 (scsi architectural model 3, 
sam3r14 release in 2004/09/21).
  Current sam4 (sam4r14) and last sam5 SCSI draft (sam5r04) no more speak 
about AEN/AER.

  The last reference of AER was in sam2 (sam2r24 2002/09/12) and spc2r20 
(2001/07/18).

Thanks
Peter
在 2017年2月18日星期六 UTC+8上午12:04:54,Gorka Eguileor写道:
>
> On 17/02, [email protected] <javascript:> wrote: 
> > Hi Gorka 
> > 
> > Definitely, the "AEN/AER" approach deserves a try, I will let you know 
> if 
> > it's applicable for my situation. 
> > 
> > For the sysfs way, do you mean echo a command to the host like below: 
> > 
> > echo "c t l" > "/sys/class/scsi_host/host#/scan" 
> > 
>
> Yes, replacing c, t, l, and # with the corresponding values. 
>
> You can find it explained in here 
>
> https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Online_Storage_Reconfiguration_Guide/adding_storage-device-or-path.html
>  
>
> Cheers, 
> Gorka. 
>
> > 
> > Thanks 
> > Peter 
> > 
> > 在 2017年2月15日星期三 UTC+8下午11:52:19,Gorka Eguileor写道: 
> > > 
> > > On 15/02, Peter Wang wrote: 
> > > > Hi 
> > > > 
> > > > I am investing new ways to discover LUN exposed by iSCSI targets. 
> > > > 
> > > > Currently, most of tools/libs are using user land shell commands 
> > > "iscsiadm" 
> > > > to login targets or rescan new LUNs. 
> > > > sometimes, as I observed, the rescan is time-consuming. in 
> > > high-concurrency 
> > > > environment, the overhead by executing massive shell commands cannot 
> be 
> > > > ignored. 
> > > > 
> > > > So, my question is: can we use socket or other efficient ways to 
> trigger 
> > > > actions that we do with "iscsiadm"? 
> > > > 
> > > > Appreciate if you can help on this. 
> > > > 
> > > > Thanks 
> > > > Peter 
> > > > 
> > > 
> > > Hi Peter, 
> > > 
> > > I'm no expert, but if you are already logged in and your target 
> supports 
> > > AEN/AER packets, then iscsid will automatically send a scan request to 
> > > discover changed LUNs, and if it doesn't support it you could use the 
> > > sysfs interface from your code and request a scan writing "c t l" 
> (where 
> > > c=channel t=target l=lun and wildcard - can be used) to 
> > > /sys/class/scsi_host/host#/scan. 
> > > 
> > > I know this is not what you were looking for, but maybe it can 
> alleviate 
> > > your issues until someone with more knowledge gives you the silver 
> > > bullet you wanted. 
> > > 
> > > Cheers, 
> > > Gorka. 
> > > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "open-iscsi" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > Visit this group at https://groups.google.com/group/open-iscsi. 
> > For more options, visit https://groups.google.com/d/optout. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to