beautypg.com

Using the seek and tell features of mt, What next – HP Ultrium Tape Drive User Manual

Page 25

background image

What Next?

Lin

ux

25

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 3-SCSI

”.

What Next?

Once the device files have been created, you should confirm that your new tape drive is

working properly.

Chapter 7, “Verifying the Installation”

provides instructions on backing up

and restoring a sample file to test your installation.