Re: device.hints isn't setting what I want

2010-01-23 Thread Doug Barton

On 01/22/10 08:57, Freddie Cash wrote:

Just as a side note:  does mergemaster or installworld handle the
installation of /boot/device.hints?


Easy way to answer this category of questions. Do 'mergemaster -v', then 
when you get to the prompt for, "*** The following files exist only in 
the installed ..." hit ^C, then go look at the created temproot 
directory. If the file is in there, mergemaster will deal with it for 
you. If it's not there, mergemaster has no knowledge of it.



hth,

Doug

--

Improve the effectiveness of your Internet presence with
a domain name makeover!http://SupersetSolutions.com/

Computers are useless. They can only give you answers.
-- Pablo Picasso

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: device.hints isn't setting what I want

2010-01-22 Thread Freddie Cash
Just as a side note:  does mergemaster or installworld handle the
installation of /boot/device.hints?

If it's mergemaster, then everything is fine, it'll detect your changes.
If it's installworld, you'll lose your changes at the next update.

Either way, I find it nicer/simpler to use /boot/loader.conf for this, as
nothing in the build/update process touches it, and it keeps all boot/kernel
options in one file.  And, it overrides any settings in device.hints.

-- 
Freddie Cash
fjwc...@gmail.com
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: device.hints isn't setting what I want

2010-01-22 Thread Greg Byshenk
On Fri, Jan 22, 2010 at 10:01:02AM +0100, Greg Byshenk wrote:
> On Thu, Jan 21, 2010 at 08:23:23PM -0500, Dan Langille wrote:
  
> > First, see also my post: do I want ch0 or pass1?
> > 
> > I have an external tape library and an external tape drive.  They are
> > not always powered up.  My goal: always get the same devices regardless
> > of whether or not the tape library is powered on at boot.
> > 
> > After booting, with the tape library powered on, I have these devices:
> > 
> > # camcontrol devlist
> >  at scbus0 target 5 lun 0 (sa0,pass0)
> > at scbus1 target 0 lun 0 (ch0,pass1)
> > at scbus1 target 5 lun 0 (sa1,pass2)
> > at scbus2 target 0 lun 0 (cd0,pass3)
> >   at scbus5 target 0 lun 0 (da0,pass4)
> > 
> > In /boot/devices, I have added these entries:
> > 
> > hint.scbus.1.at="ahc0"
> > hint.scbus.0.at="ahc1"
> > hint.scbus.2.at="acd0"
> > hint.scbus.5.at="umass0"
> 
> I think that this is wrong.
> 
> I had a similar issue (multiple tape drives and changer devices that 
> needed to stay at the same ids).
> 
> Your device.hints entries should look something like this:
> 
>hint.sa.0.at="scbus0"
>hint.sa.0.target="5"
>hint.sa.0.unit="0"
>hint.sa.1.at="scbus0"
>hint.sa.1.target="3"
>hint.sa.1.unit="0"
>hint.sa.2.at="scbus0"
>hint.sa.2.target="1"
>hint.sa.2.unit="0"
>hint.ch.0.at="scbus0"
>hint.ch.0.target="4"
>hint.ch.0.unit="0"
>hint.ch.1.at="scbus0"
>hint.ch.1.target="2"
>hint.ch.1.unit="0"
>hint.ch.2.at="scbus0"
>hint.ch.2.target="0"
>hint.ch.2.unit="0"
> 
> Which I use to get this:
> 
># camcontrol devlist
>at scbus0 target 0 lun 0 (pass0,ch2)
>   at scbus0 target 1 lun 0 (sa2,pass1)
>at scbus0 target 2 lun 0 (pass2,ch1)
>   at scbus0 target 3 lun 0 (sa1,pass3)
># 
> 
> (Currently the first changer is not powered up.)
> 
> 
> So I think that what you want is something like:
> 
>hint.sa.0.at="scbus0"
>hint.sa.0.target="5"
>hint.sa.0.unit="0"
>hint.sa.1.at="scbus1"
>hint.sa.1.target="5"
>hint.sa.1.unit="0"
>hint.ch.0.at="scbus1"
>hint.ch.0.target="0"
>hint.ch.0.unit="0"
>[...]


Just saw your second message.

I don't know if you can wire down 'pass?' the same way, but if you can,
I would assume that you need to set it the same way as the 'sa?' and 
other devices.

That is, if you want:

> >  at scbus0 target 5 lun 0 (sa0,pass0)

Then the device.hints entry would look like:

   hint.pass.0.at="scbus0"
   hint.pass.0.target="5"
   hint.pass.0.unit="0"

(If you can do that.)

-greg

-- 
greg byshenk  -  gbysh...@byshenk.net  -  Leiden, NL
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: device.hints isn't setting what I want

2010-01-22 Thread Greg Byshenk
On Thu, Jan 21, 2010 at 08:23:23PM -0500, Dan Langille wrote:
 
> First, see also my post: do I want ch0 or pass1?
> 
> I have an external tape library and an external tape drive.  They are
> not always powered up.  My goal: always get the same devices regardless
> of whether or not the tape library is powered on at boot.
> 
> After booting, with the tape library powered on, I have these devices:
> 
> # camcontrol devlist
>  at scbus0 target 5 lun 0 (sa0,pass0)
> at scbus1 target 0 lun 0 (ch0,pass1)
> at scbus1 target 5 lun 0 (sa1,pass2)
> at scbus2 target 0 lun 0 (cd0,pass3)
>   at scbus5 target 0 lun 0 (da0,pass4)
> 
> In /boot/devices, I have added these entries:
> 
> hint.scbus.1.at="ahc0"
> hint.scbus.0.at="ahc1"
> hint.scbus.2.at="acd0"
> hint.scbus.5.at="umass0"

I think that this is wrong.

I had a similar issue (multiple tape drives and changer devices that 
needed to stay at the same ids).

Your device.hints entries should look something like this:

   hint.sa.0.at="scbus0"
   hint.sa.0.target="5"
   hint.sa.0.unit="0"
   hint.sa.1.at="scbus0"
   hint.sa.1.target="3"
   hint.sa.1.unit="0"
   hint.sa.2.at="scbus0"
   hint.sa.2.target="1"
   hint.sa.2.unit="0"
   hint.ch.0.at="scbus0"
   hint.ch.0.target="4"
   hint.ch.0.unit="0"
   hint.ch.1.at="scbus0"
   hint.ch.1.target="2"
   hint.ch.1.unit="0"
   hint.ch.2.at="scbus0"
   hint.ch.2.target="0"
   hint.ch.2.unit="0"

Which I use to get this:

   # camcontrol devlist
   at scbus0 target 0 lun 0 (pass0,ch2)
  at scbus0 target 1 lun 0 (sa2,pass1)
   at scbus0 target 2 lun 0 (pass2,ch1)
  at scbus0 target 3 lun 0 (sa1,pass3)
   # 

(Currently the first changer is not powered up.)


So I think that what you want is something like:

   hint.sa.0.at="scbus0"
   hint.sa.0.target="5"
   hint.sa.0.unit="0"
   hint.sa.1.at="scbus1"
   hint.sa.1.target="5"
   hint.sa.1.unit="0"
   hint.ch.0.at="scbus1"
   hint.ch.0.target="0"
   hint.ch.0.unit="0"
   [...]


-- 
greg byshenk  -  gbysh...@byshenk.net  -  Leiden, NL
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"