Re: Forcing a da* numbering scheme.

2006-02-22 Thread Scott Long

Frank Mayhar wrote:

bOn Tue, 2006-02-21 at 22:59 -0800, Peter Losher wrote:


What's the proper method these days for defining a static naming scheme
for direct access devices (da*)?



/boot/device.hints

hint.scbus.0.at=ahc0
hint.da.0.at=scbus0
hint.da.0.target=0
hint.da.1.at=scbus0
hint.da.1.target=1

hint.scbus.1.at=ahc1
hint.da.100.at=scbus1
hint.da.100.target=0
hint.da.101.at=scbus1
hint.da.101.target=1

etc.


The hint scheme for scsi is also documented in /sys/conf/NOTES, as well
as the scsi(4) manpage.

Scott

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Forcing a da* numbering scheme.

2006-02-22 Thread Daniel Eriksson
Peter Losher wrote:

 What's the proper method these days for defining a static 
 naming scheme for direct access devices (da*)?

man glabel

Easy to use, works on any GEOM-aware storage medium (SCSI, ATA, USB,
...).

/Daniel Eriksson
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Forcing a da* numbering scheme.

2006-02-21 Thread Peter Losher
Hi -

What's the proper method these days for defining a static naming scheme
for direct access devices (da*)?

In this case, I have two systems (one 5.1 and one 6.0) connected to a
read-only RAID appliance (via FibreChannel) while having two SCSI disks
onboard for the OS and applications.  With the 5.4 system, the onboard
SCSI disks take up da{0,1} and the FibreChannel connected devices fall
behind it. With the 6.0 system it's the reverse, with the onboard disks
taking up the end of the line, which causes more than a little havoc w/
fstab when we add more read-only devices over FibreChannel and the boot
partition keeps moving because of it... :(

It used to be in the 4.x days you could define the da* in the kernel and
tie it to it's SCSI ID, is that still the case now, or is there some
boot-time variable in /boot/loader.conf that is now preferred?

-Peter
-- 
[ http://www.plosh.net/ ] - Earth Halted: Please reboot to continue



signature.asc
Description: OpenPGP digital signature


Re: Forcing a da* numbering scheme.

2006-02-21 Thread Frank Mayhar
bOn Tue, 2006-02-21 at 22:59 -0800, Peter Losher wrote:
 What's the proper method these days for defining a static naming scheme
 for direct access devices (da*)?

/boot/device.hints

hint.scbus.0.at=ahc0
hint.da.0.at=scbus0
hint.da.0.target=0
hint.da.1.at=scbus0
hint.da.1.target=1

hint.scbus.1.at=ahc1
hint.da.100.at=scbus1
hint.da.100.target=0
hint.da.101.at=scbus1
hint.da.101.target=1

etc.
-- 
Frank Mayhar [EMAIL PROTECTED] http://www.exit.com/
Exit Consulting http://www.gpsclock.com/
http://www.exit.com/blog/frank/
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]