public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* SCSI-ID persistence query...
@ 2004-05-13 11:00 Shobhit Mathur
  2004-05-13 16:00 ` Bryan Henderson
  2004-05-19 20:20 ` Kurt Garloff
  0 siblings, 2 replies; 4+ messages in thread
From: Shobhit Mathur @ 2004-05-13 11:00 UTC (permalink / raw)
  To: linux-scsi

Hello,

I have a few basic questions pertaining to SCSI-id
numbering & persistence :

* How do SCSI targets/LUNs get numbered ? My view is
  that the OS numbers them as it receives
cmd-response.
* If the above observation is correct, a disk with a
  particular id during one boot, will not have the
same
  id during the next boot, which can have other 
  consequences...

  My question is: How is SCSI numbering done and how
is
  it persistent across boots ?

- Thank you

- Shobhit Mathur


	
		
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: SCSI-ID persistence query...
@ 2004-05-13 11:42 Parthiban  Manickam - NPD, Chennai
  0 siblings, 0 replies; 4+ messages in thread
From: Parthiban  Manickam - NPD, Chennai @ 2004-05-13 11:42 UTC (permalink / raw)
  To: Shobhit Mathur, linux-scsi

Hi Shobhit

In case of Directed Attached Storage(DAS)
SCSI ID is configurable using jumper settings.
The vendor will provide the details about 
the configuration. You have to make sure that id
assigned is unique.

In the SAN(FC or iSCSI Based) environment initiator
will assign unique id.

thanks
Parthi

-----Original Message-----
From: Shobhit Mathur [mailto:shobhitmmathur@yahoo.com]
Sent: Thursday, May 13, 2004 4:30 PM
To: linux-scsi@vger.kernel.org
Subject: SCSI-ID persistence query...


Hello,

I have a few basic questions pertaining to SCSI-id
numbering & persistence :

* How do SCSI targets/LUNs get numbered ? My view is
  that the OS numbers them as it receives
cmd-response.
* If the above observation is correct, a disk with a
  particular id during one boot, will not have the
same
  id during the next boot, which can have other 
  consequences...

  My question is: How is SCSI numbering done and how
is
  it persistent across boots ?

- Thank you

- Shobhit Mathur


	
		
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SCSI-ID persistence query...
  2004-05-13 11:00 SCSI-ID persistence query Shobhit Mathur
@ 2004-05-13 16:00 ` Bryan Henderson
  2004-05-19 20:20 ` Kurt Garloff
  1 sibling, 0 replies; 4+ messages in thread
From: Bryan Henderson @ 2004-05-13 16:00 UTC (permalink / raw)
  To: Shobhit Mathur; +Cc: linux-scsi

>How do SCSI targets/LUNs get numbered ?

There are lots of different ways that SCSI targets and logical units get 
numbered/named.  (The LUN is one way a logical unit gets numbered).  You 
didn't say which numbers you're talking about, but I'm going to guess from 
some things you say in your posting that you're interested in the Linux 
device numbers (major/minor).

They're pretty much arbitrary and unpersistent.

Linux basically assigns them sequentially to logical units as it discovers 
their existence, which means if everything stays stable across reboots, 
including which devices are visible, which device drivers you load, and 
what LUNs the targets assign to their logical units, you will see the same 
device number for the same logical unit before and after reboot.  In 
practice, this stability is fairly common.  But the more complex your 
system, the less you can rely on that.  In large complex systems, people 
create device special files on the fly, one way or another (e.g. udev), 
such that the device special file name persistently identifies a 
particular logical unit, even though the device number (or even the target 
ID and LUN) are arbitrary.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SCSI-ID persistence query...
  2004-05-13 11:00 SCSI-ID persistence query Shobhit Mathur
  2004-05-13 16:00 ` Bryan Henderson
@ 2004-05-19 20:20 ` Kurt Garloff
  1 sibling, 0 replies; 4+ messages in thread
From: Kurt Garloff @ 2004-05-19 20:20 UTC (permalink / raw)
  To: Shobhit Mathur; +Cc: Linux SCSI list

[-- Attachment #1: Type: text/plain, Size: 1080 bytes --]

On Thu, May 13, 2004 at 04:00:21AM -0700, Shobhit Mathur wrote:
> Hello,
> 
> I have a few basic questions pertaining to SCSI-id
> numbering & persistence :
> 
> * How do SCSI targets/LUNs get numbered ? My view is
>   that the OS numbers them as it receives cmd-response.
> * If the above observation is correct, a disk with a
>   particular id during one boot, will not have the same
>   id during the next boot, which can have other 
>   consequences...
> 
>   My question is: How is SCSI numbering done and how is
>   it persistent across boots ?

It's not persistent by default.
The SCSI devices are just enumerated in the order of detection.

If you look for more persistent device name for 2.4 and 2.6, have a 
look at scsidev.

For 2.6, another option is to have your hotplug scripts call udev 
call scsi_id.

Regards,
-- 
Kurt Garloff                   <kurt@garloff.de>             [Koeln, DE]
Physics:Plasma modeling <garloff@plasimo.phys.tue.nl> [TU Eindhoven, NL]
Linux: SUSE Labs (Head)        <garloff@suse.de>    [SUSE Nuernberg, DE]

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-05-19 22:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-13 11:00 SCSI-ID persistence query Shobhit Mathur
2004-05-13 16:00 ` Bryan Henderson
2004-05-19 20:20 ` Kurt Garloff
  -- strict thread matches above, loose matches on Subject: below --
2004-05-13 11:42 Parthiban  Manickam - NPD, Chennai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox