Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2007 07:27:01 -1000
From:      Robert Marella <rmarella@gmail.com>
To:        "Dave" <dmehler26@woh.rr.com>, freebsd-questions@freebsd.org <freebsd-questions@freebsd.org>
Subject:   Re: locking down scsi device id's in 6.2
Message-ID:  <20070409072701.0687c6cd@p4>
In-Reply-To: <000501c7797b$961a9010$0200a8c0@satellite>
References:  <000501c778a1$769989b0$0200a8c0@satellite> <20070407124555.3243bbcb@p4> <000501c7797b$961a9010$0200a8c0@satellite>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 7 Apr 2007 21:16:50 -0400
"Dave" <dmehler26@woh.rr.com> wrote:

(Format recovered: Please do not top post)

> 
> > On Fri, 6 Apr 2007 19:15:27 -0400
> > "Dave" <dmehler26@woh.rr.com> wrote:
> >
> >> Hello,
> >> I've got a situation where three devices, one a scsi tape drive and
> >> the other two ide burners under scsi emulation with atapicam are
> >> fighting for scsi id's and i'd like to lock them down to specific
> >> id's. When the tape drive isn't plugged in the burners get 000 and
> >> 010 scsi ids, but when the tape goes in it takes 050 and the
> >> burners are on bus2 200 and 210 respectively. I hope this makes
> >> sense. I've been over loader and device.hints as well and i'm
> >> lost. I'd appreciate any info on this. Thanks.
> >> Dave.
> >>
> >
> > Hello Dave
> >
> > Have you looked at man scsi (4) for the correct way to
> > edit /boot/device.hints to wire down devices?
> >
> >
> > HTH
> >
> > Robert 
> 
> Hello,
>     Yes i have. I am confused as to bus, target, and the values i'm
> suppose to use.
> Dave.

Dave,

Not only is top posting frowned upon on the FreeBSD lists you also
removed -questions from your reply. I didn't even check my email
over the weekend. Had you kept -questions in the loop you might have
received an answer a lot sooner. Also, since I am wrong about as often
as I am right you would probably received a better answer.

That said, I will try to help.

IMHO the easiest way to find the values is to boot with your SCSI tape
drive connected. When you are up you can run "camcontrol devlist"
without the quotes. This will show you the values. Example:

<SONY DVD RW DW-Q120A PYS1>        at scbus1 target 0 lun 0 (cd1,pass1)
<SONY DVD-ROM DDU1612 DYS1>        at scbus1 target 1 lun 0 (cd0,pass0)

You should use dmesg to find the controller for the SCSI. It will be
something like AHC0. you can then use all of these values in
"/boot/device.hints" as shown in man scsi.

I hope this helps. 

Remember to keep the list in the email. The archives will then have the
final solution for the next person who needs it or when I forget :-)

Robert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070409072701.0687c6cd>