HP LTO Ultrium 5 tape drives UNIX, Linux and OpenVMS configuration guide (March 2010)

st 3:0:0:0: Attached scsi tape st0
.
.
The tape drive instance identifies which device files are applicable to the tape drive. For example:
st0 indicates device files /dev/st0 or /dev/nst0
st1 indicates device files /dev/st1 or /dev/nst1
and so on...
A list of tape device files gets created automatically when the st driver module and the correct HBA
driver have been added. They reside in the /dev/ directory and have the syntax:
/dev/stp or dev/nstp
where:
p is the instance number of the device file (if only one drive is connected to the system, this will
be 0)
n Indicates this is a no-rewind driver.
Using the seek and tell features of mt
To use the seek and tell features of mt, the st driver needs to be configured for logical block addressing
with HP Ultrium drives.
With some Linux distributions it is possible to do this using the stsetoptions function with mt utility:
mt -f <devicefile> stsetoptions scsi2logical
where <devicefile> is /dev/stp or /dev/nstp.
Note however that this information is not preserved across reboots, so you need to execute this
command each time the system comes up. Some Linux distributions include the stinit utility, which
offers a convenient way of handling this using the /etc/stinit.def configuration file. Note that
the file /etc/stinit.def may not exist in a new installation and so may need to be created. See
the examples of stinit.def entries in /usr/share/doc/mt-st-<version>/
stinit.def.examples. If you use this approach, set the manufacturer parameter to HP and the
model to Ultrium 5-SCSI.
Where stinit is available, you can also re-initialize the drive to new parameters as entered in /
etc/stinit.def without reboot by running:
stinit
What next?
Once device files have been created, you should confirm that your new tape drive is working properly.
Verifying the installation on page 31 provides instructions on backing up and restoring a sample
file to test your installation.
UNIX, Linux and OpenVMS configuration guide 19