Hi!

I'm no specialist on the SCSI protocol, but I always thought LUNs are 
restricted to 0-7 (maybe 0-15). On larger storage systems I've seen "big" LUN 
numbers are mapped to varying targets. On HP-UX they use a pattern like

(LUN / 128), (LUN/8), LUN for "port", "bus" and "target", so this is an example:

disk        45  0/7/1/0.99.16.19.0.10.1   sdisk          CLAIMED     DEVICE     
  HP      HSV200

Adapter 0/7/1/0, Domain 99, Area 16, Port 19, Bus 0, Target 10, LUN 1 (LUN 81)

So "bus 0, target 10, lun 1" actually refers to "lun 81".

I don't know how Linux works there.

Regards,
Ulrich



>>> ??????? ????????<[email protected]> schrieb am 02.02.2012 um 10:53 in
Nachricht
<4de2e2fe-a256-4c0c-b9a5-ee129718d...@a15g2000yqf.googlegroups.com>:
> Hello,
> 
> Ive spent many time to find and answer, and did not have a luck.
> 
> I have scst target with configuration:
> scstadmin --list_group
> 
> Driver: iscsi
> Target: iqn.2011-09.dev.st1.acc
> 
> Group: iqn.2012-01-10.ru.host1:openiscsi
> 
> Assigned LUNs:
> 
>       LUN  Device
>       -----------
>       100    vdisk1
> 
> 
> Assigned Initiators:
> 
>       Initiator
>       -----------------------------------------------------------
>       iqn.2012-01-10.ru.host1:openiscsi
> 
> So, my LUN have a number 100.
> 
> Initiator discover/login to target seccesfully and creates specific
> host in /sys/class/scsi_host
> I can also send a manual scan like echo "- - 100" to /sys/class/
> scsi_host/hostN/scan and my device now is persist in system.
> 
> As far as i know, scst supports up to 16383 lun number.
> 
> And if i add some another large lun number, it does not takes
> automatically (REPORT_LUNS_DATA_CHANGED works, but initiator not see
> large numbers).
> 
> Q: Is the way to do automatically scaning in open-iscsi initiator for
> seeing all custom luns (not only 0-7)? I`m undestand, what it not good
> idea to scan all luns of range 0-16383 at start point, but i think it
> is may be possible to do this thru report luns, such as can do sg_luns
> -s2 /dev/sd*.



 

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to