HP Ultrium Tape Drive Using the Seek and Tell Features of mt, Where /dev/stp is the device file

Page 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 <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 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.

Linux

What Next? 25

Image 25
Contents Generation 3 drives Version Date Changes Contents Verifying the Installation Related documents Purpose of this manualDocuments specific to HP Ultrium drives Documentation mapDrives-general Interface General documents and standardization How error correction worksIrvine, CA Tel 800 854 7179 or 714 261Page Introduction Backup ApplicationsUltrium Drives in a Library IntroductionHP-UX AIX HP Servers and Workstations-HP-UX HP-UX SystemsIntroduction Determining the Scsi ID HP-UX SystemsFor an HP Ultrium drive, execute the following Creating the Device FilesSelect the following Where When you have exited sam, run ioscan to see the tape driveRun insf as follows To create a device file with the following characteristicsWhat Next? For compressed mode defaultHardware path can be found from previous ioscan output HP-UX Systems HP Alpha Unix HP Alpha UnixHP Alpha Unix Add the following entry to your /dev/ddr.dbase fileWhat Next? Determining the Scsi ID Configuring the Device FilesThis will produce output that looks similar to Device Filenames under AIX Linux Configuring on Linux SystemsDetermining the Scsi ID Linux LinuxThis should find a number of lines. One should look like Where /dev/stp is the device file Using the Seek and Tell Features of mtLinux Sun Systems, Solaris 8, 9 Sun Systems, Solaris 8, 9This will produce output similar to the following This produces a list similar toLs -l /dev/rmt/*m grep st@X Determine the device file by typingWhen the system is down, reboot Do a reconfigure bootHP-Data Values Specifies the Scsi ID target of the device Values for the parameters for name are as followsSpecifies the LUN for the device Verifying the Installation of the Drive Unix Verifying the InstallationTo verify the installation Verifying the InstallationRead the file back from tape File The name of the file to archive, prefixed with ‘./’Change to the temporary directory Compare the original with the restored versionExtract the file from the tape Verifying the Installation Glossary GlossaryFibre Channel switching technology Response to a filemark commandFeatures required by that standard Point-to-point connection between itself and the fabricGlossary Glossary Index IndexAIX Index