HP LTO Ultrium 6 tape drives UNIX, Linux and OpenVMS configuration guide

lsmod
For example, the st driver for tape listing would resemble the entry shown below. Also shown
below are three examples of HBA drivers—cciss and hpsa drivers (for HP SmartArray SAS
HBAs), and mptsas driver (for LSI SAS HBA):
Module Size Used by
st 38749 0
.
.
cciss 68484 3
.
.
mptsas 37321 0
.
.
hlsa 47277 2
If a particular driver module is not listed as above use the modprobe utility to load it. For example
if the st driver is missing, execute:
modprobe st
NOTE: Loading of the st driver should happen naturally if your system is rebooted after attaching
the drive.
Determining the attached devices
HBAs which use the cciss driver may require an explicit scan procedure to allow the attached
tape drive to be discovered after each reboot; execute the following from the command line (or
from a shell script):
for x in /proc/driver*/cciss/c*;do echo engage scsi > $x; done; dmesg
HBAs that use the hpsa driver may also require an explicit scan procedure to allow the attached
tape drive to be discovered after each reboot; execute the following from the command line (or
from a shell script):
for x in /sys/class/scsi_host/host*/rescan; do echo 1 > $x; done
Check the contents of the file /proc/scsi/scsi to determine whether the system discovered the
tape drive at module load time:
cat /proc/scsi/scsi
Examine the contents for something like:
Host: SCSI0 Channel: 00 Id:00 Lun:00
Vendor: HP Model: Ultrium 6-SCSI Rev: ZxxD
Type: Sequential-Access ANSI SCSI Revision 06
Look through the output of dmesg to discover which tape drive instance is used (st0 in the example
below) and to review the SCSI HBA driver (cciss in the extract below).
NOTE: The exact format and style of the listing may vary with different Linux distributions and
versions.
TIP: You may prefer to redirect a lengthy dmesg output to a file for browsing at your convenience:
dmseg > my_boot_messages.txt
or pipe the output of dmesg to a page scrolling utility
dmesg | more
Extract from dmesg output:
14 Linux servers and workstations