autoloading sg driver during boot

Aleksandar Milivojevic amilivojevic at pbl.ca
Thu Apr 14 13:36:58 UTC 2005


Aaron M. Hirsch wrote:

> What type of tape library is it?  What about dmesg, what does it show?
> Can you provide the contents of the modules.conf?  I had a similar
> error and it was due to positioning....

It's an Exabyte EZ17, with Exabyte M2 tape drive inside.  It takes two 
SCSI IDs, one for the robotic arm, and the other for the tape library. 
Mine is set to use 0 and 1 respectively (either factory default, or 
somebody using it prior to me).  The modprobe.conf looks like this 
(generated by Anaconda):

alias eth0 tg3
alias scsi_hostadapter i2o_block
alias scsi_hostadapter1 aic7xxx
alias usb-controller uhci-hcd

i2o_block is Adaptec hardware RAID with disk drives.  aic7xxx is 
dual-channel SCSI controller and has only the tape library connected to 
it on one of the channels.

The relevant part of dmesg looks like this:

SCSI subsystem initialized
I2O Core - (C) Copyright 1999 Red Hat Software
i2o: max_drivers=4
i2o: Checking for PCI I2O controllers...
i2o: I2O controller found on bus 0 at 97.
i2o: PCI I2O controller at E0000000 size=1048576
i2o: using write combining MTRR
i2o: MTRR workaround for Intel i960 processor
iop0: Installed at IRQ 11
iop0: Activating I2O controller...
iop0: This may take a few minutes if there are many devices
iop0: HRT has 1 entries of 16 bytes each.
Adapter 00000012: TID 0000:[HPC*]:PCI 1: Bus 1 Device 22 Function 0
iop0: Controller added
I2O Block Storage OSM v0.9
    (c) Copyright 1999-2001 Red Hat Software.
block-osm: registered device at major 80
block-osm: New device detected (TID: 20c)
  i2o/hda: i2o/hda1
block-osm: New device detected (TID: 20a)
  i2o/hdb: i2o/hdb1 i2o/hdb2
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
         <Adaptec aic7890/91 Ultra2 SCSI adapter>
         aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs

   Vendor: EXABYTE   Model: EXB-210           Rev: 1.10
   Type:   Medium Changer                     ANSI SCSI revision: 02
(scsi0:A:1): 40.000MB/s transfers (20.000MHz, offset 31, 16bit)
   Vendor: EXABYTE   Model: Mammoth2          Rev: v07g
   Type:   Sequential-Access                  ANSI SCSI revision: 02


[ then goes some LVM and SELinux gibberish - deleted]


st: Version 20040403, fixed bufsize 32768, s/g segs 256
Attached scsi tape st0 at scsi0, channel 0, id 1, lun 0
st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 
1048575
st0: Block limits 4 - 245760 bytes.


After I do manual load of sg driver (modprobe sg), the following lines 
are logged:


Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 8
Attached scsi generic sg1 at scsi0, channel 0, id 1, lun 0,  type 1

-- 
Aleksandar Milivojevic <amilivojevic at pbl.ca>    Pollard Banknote Limited
Systems Administrator                           1499 Buffalo Place
Tel: (204) 474-2323 ext 276                     Winnipeg, MB  R3T 1L7




More information about the fedora-list mailing list