Re: Adding hard drives to an existing SCSI controller



Nico Kadel-Garcia wrote:

I'm dealing with an OpenServer 5.0.6 system, which is a new OS for me.
I need to add SCSI drives to an existing system, which already has
boot drives, and find that the "mkdev hd" utility insists that I know
a lot of information about the existing hardware, including LUN's and
other data.

Is there a graceful way to extract that information from the boot
logs, or a readable configuration file somewhere? I've gotten spoiled
by the BSD UNIX style "fdisk -l" command to list the available drives
on other UNIX or Linux systems. The system has multipls SCSI
controllers, and I really don't want to have to bring it down to poke
things manually.

Run `hwconfig -h`. "adapter" lines are your SCSI host adapters:

adapter 0x2400-0x24ff 5 - type=ad320 ha=0 slot=0 bus=0 id=7 fts=sto
adapter 0x2c00-0x2cff 10 - type=ad320 ha=1 slot=0 bus=0 id=7 fts=sto
adapter 0x1f0-0x1f7 14 - type=IDE ctlr=0 dvr=wd
adapter 0x170-0x177 15 - type=IDE ctlr=1 dvr=wd

This example shows two Adaptec 320 (79xx, AHA-29320) and the two IDE
controllers (they show as "wd" with earlier drivers). For the SCSI,
"id=7" shows that the adapters are using ID 7, which is pretty standard.

"type=S" lines are SCSI peripherals:

cd-rom - - - type=S ha=1 id=4 lun=0 bus=0 ht=ad320
tape - - - type=S ha=1 id=2 lun=0 bus=0 ht=ad320
tape - - - type=S ha=1 id=3 lun=0 bus=0 ht=ad320
disk - - - type=S ha=0 id=1 lun=0 bus=0 ht=ad320
disk - - - type=S ha=0 id=0 lun=0 bus=0 ht=ad320

Two disks on the 0th ad320, 2 tapes and a CD on the 1st. All the other
parameters are there.

In most cases there are man pages for the host adapter drivers, but my
example system is a bad example -- neither ad320 nor "IDE" show up as
man pages! `man wd` gives the IDE driver man page, and there's no
ad320. But almost all others should work. Run `apropos "host adapter"`
for a nearly complete list of HBA driver man pages. Look at the
contents of /etc/default/scsihas for a complete list (including any that
may be missing their man pages).

Bela<
.



Relevant Pages