Fixing (scsi) drives at particular /dev locations

Matthew Seaman m.seaman at infracaninophile.co.uk
Sun Mar 7 03:59:50 PST 2004


On Sat, Mar 06, 2004 at 10:53:17PM -0500, scion+fbsdq at webrelay.net wrote:
> FreeBSD 5.2.1; Sun/Cobalt LX50; GENERIC kernel
> 
> Greetings,
> 
> The darned LX50 is wired with the first SCSI bus out the back,
> and the second toward the builtin drives.  So, upon adding an
> external drive, the internal drives all renumber with the generic
> kernel+device hints.
> 
> I thought adding a line to /boot/device.hints might work, so
> reading /usr/src/sys/i386/conf/gethints.awk for clues, I added:
> 
> 	hint.da.0.at="ahc1"

Close, but no cigar.  See the section on "SCSI DEVICE CONFIGURATION"
in /usr/src/sys/conf/NOTES.  What you want is:

    hint.scbus.0.at="ahc1"
    hint.scbus.1.at="ahc0"
    hint.da.0.at="scbus0"
    hint.da.0.target="0"
    hint.da.0.unit="0"

which swaps the ordering of the SCSI busses, and wires down da0 to bus
0, target 0, LUN 0.  You could probably get away with just the first
two lines, as the rest should be the default anyhow.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040307/db8e4162/attachment.bin


More information about the freebsd-questions mailing list