tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SCSI devices with identical WWID
@ 2004-08-13 21:05 Tobias Nygren
  2004-08-14 11:48 ` SUMMARY: " Tobias Nygren
  0 siblings, 1 reply; 2+ messages in thread
From: Tobias Nygren @ 2004-08-13 21:05 UTC (permalink / raw)


Hi everyone, I'm a new subscriber to this list.

Recently I bought a pack of factory refurbished SCSI disks that I'd like
to use with LSM. First I installed the system with only one disk. Then I
ran into problems adding a second disk:

isp0: QLOGIC ISP1040B/V2
isp0: Firmware revision 5.57 (loaded by console)
isp0: Fast RAM timing enabled.
alt0: 1000 Mbps full duplex Link Up via autonegotiation
camdb_devreg: Matching WWID w/ LID 1 - state 0x1000001
camdb_add_new_path: Updating Stale path at LID 1: 1/0/0
camdb_add_new_path: Path reused: LID 1: 1/0/0
camdb_devreg: Matching WWID w/ LID 1 - state 0x1000003
camdb_add_new_path: allocated new path
camdb_add_new_path: Path added: LID 1: 1/2/0
disk at scsi1 target 0 lun 0 (LID=1) (CSC 73GB10K REFURBISHED  0102) (Wide16)
WWID:0410002c:"CSC 73GB10K REFURBISHED                     "
disk at scsi1 target 2 lun 0 (LID=1) (CSC 73GB10K REFURBISHED  0102) (Wide16)
WWID:0410002c:"CSC 73GB10K REFURBISHED                     "
scsi1 at isp0 slot 0 rad 0
disk at scsi1 target 0 lun 0 (LID=1) (CSC 73GB10K REFURBISHED  0102) (Wide16)
WWID:0410002c:"CSC 73GB10K REFURBISHED                     "
disk at scsi1 target 2 lun 0 (LID=1) (CSC 73GB10K REFURBISHED  0102) (Wide16)
WWID:0410002c:"CSC 73GB10K REFURBISHED                     "
[...]
panic (cpu 0): vfs_mountroot: cannot mount root
syncing disks... done

I suspect the reason is that the same WWID is assigned to two paths.

Quoting the documentation for 5.1:

"Ideally, the WWID for a device is unique, enabling the identification
of every SCSI device attached to the system. However, some legacy devices
(and even some new devices available from third-party vendors) do not
provide the information required to create a unique WWID for a specific
device. For such devices, the operating system will attempt
to generate a WWID, and in the extreme case will use the
device nexus (the SCSI bus/target/lun) to create a WWID for the device."


Now to the questions:

How is the WWID for a SCSI disk determined? (serial number in firmware?)
Can I somehow force the system to use the device nexus for WWID?

Thanks,

--
Tobias Nygren
tnn@netilium.org


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

* SUMMARY: SCSI devices with identical WWID
  2004-08-13 21:05 SCSI devices with identical WWID Tobias Nygren
@ 2004-08-14 11:48 ` Tobias Nygren
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Nygren @ 2004-08-14 11:48 UTC (permalink / raw)


Many thanks to Thomas Blinn for his explanation of what's going on.
It turns out that devices that report WWID capability but do not ensure
WWID uniqueness violate relevant SCSI standards. The reason CAM fails
is simply because it was designed to be used with Working disks.

Generally running LSM & AdvFS on such devices is not recommended,
since they both rely heavily on WWID.

However, with this newfound knowledge I managed to google a solution
posted two years ago by Jay Nash. This is perfectly fine for me since
it is a testbed system.

# Add this to /etc/ddr.dbase, run ddr_config -c
# Force CAM to use BTL WWID.

SCSIDEVICE
  Type = disk
  Name = "CSC" # Your nasty vendor goes here.
    ATTRIBUTE:
      AttributeName = "VPDinfo"
        Length = 16
        ubyte[1] = 1
        ubyte[5] = 15 

--
Tobias Nygren
tnn@netilium.org


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

end of thread, other threads:[~2004-08-14 11:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-13 21:05 SCSI devices with identical WWID Tobias Nygren
2004-08-14 11:48 ` SUMMARY: " Tobias Nygren

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