HP C7401A HP Ultrium Drives Technical Reference Manual V5.0 UNIX Configuration - Page 23

Using the Seek and Tell Features of mt, What Next

Page 23 highlights

Linux In order to enable large transfers under Linux (>64 KB per write), edit the file /usr/src/linux/drivers/scsi/st_options.h and change the definition of ST_BUFFER_BLOCKS. If you want requests to space to end of data to be faster, you should also enable ST_FAST_MTEOM in the same file. After changing this file, rebuild the modules and install the new binary. At the very least, this requires: make modules make modules_install from the /usr/src/linux directory. See your kernel documentation. Using the Seek and Tell Features of mt In order to use the seek and tell features of mt, you must tell the st driver that HP Ultrium drives use logical block addressing. You can do this by using the command: mt -f stsetoptions scsi2logical where /dev/stp is the device file. Note however that this information is not preserved across reboots, so you need to execute this command each time the system comes up. The stinit utility offers a convenient way of handling this; see the relevant man page for more information. If you use this approach, set the manufacturer parameter to HP and the model to "Ultrium 1-SCSI". What Next? Once the device files have been created, you should confirm that your new tape drive is working properly. Chapter 6, "Verifying the Installation" provides instructions on backing up and restoring a sample file to test your installation. Linux 23

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40

Linux 23
Linux
In order to enable large transfers under Linux (>64 KB per write), edit the file
/usr/src/linux/drivers/scsi/st_options.h
and change the
definition of
ST_BUFFER_BLOCKS
.
If you want requests to space to end of data to be faster, you should also
enable
ST_FAST_MTEOM
in the same file. After changing this file, rebuild the
modules and install the new binary. At the very least, this requires:
make modules
make modules_install
from the
/usr/src/linux
directory. See your kernel documentation.
Using the Seek and Tell Features of mt
In order to use the seek and tell features of
mt
, you must tell the
st
driver that
HP Ultrium drives use logical block addressing.
You can do this by using the command:
mt -f <device file> stsetoptions scsi2logical
where
/dev/stp
is the device file.
Note however that this information is not preserved across reboots, so you
need to execute this command each time the system comes up. The
stinit
utility offers a convenient way of handling this; see the relevant
man
page for
more information. If you use this approach, set the manufacturer parameter to
HP
and the model to “
Ultrium 1-SCSI
”.
What Next?
Once the device files have been created, you should confirm that your new
tape drive is working properly.
Chapter 6, “Verifying the Installation”
provides instructions on backing up and restoring a sample file to test your
installation.