Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
51.  Managing Tape Drives (Tasks) Displaying Tape Drive Status How to Display Tape Drive Status Example--Displaying Tape Drive Status  Previous   Contents   Next 
   
 

Handling Magnetic Tape Cartridges

If errors occur when a tape is being read, retension the tape, clean the tape drive, and then try again.

How to Retension a Magnetic Tape Cartridge

Retension a magnetic tape cartridge with the mt command.

For example:

$ mt -f /dev/rmt/1 retension
$

Note - Do not retension non-QIC tape drives.


How to Rewind a Magnetic Tape Cartridge

To rewind a magnetic tape cartridge, use the mt command.

For example:

$ mt -f /dev/rmt/1 rewind
$

Guidelines for Drive Maintenance and Media Handling

A backup tape that cannot be read is useless. So, to clean and check your tape drives periodically to ensure correct operation. See your hardware manuals for instructions on procedures for cleaning a tape drive. You can check your tape hardware by doing either of the following:

  • Copying some files to the tape, reading them back, and then comparing the original with the copy.

  • Using the -v option of the ufsdump command to verify the contents of the media with the source file system. The file system must be unmounted or completely idle for the -v option to be effective.

Be aware that hardware can fail in ways that the system does not report.

Always label your tapes after a backup. If you have planned a backup strategy similar to those strategies suggested in Chapter 45, Backing Up and Restoring File Systems (Overview), you should indicate on the label "Tape A," "Tape B," and so forth. This label should never change. Every time you do a backup, make another tape label containing the backup date, the name of the machine and file system backed up, backup level, the tape number (1 of n, if it spans multiple volumes), plus any information specific to your site.

Store your tapes in a dust-free safe location, away from magnetic equipment. Some sites store archived tapes in fireproof cabinets at remote locations.

You should create and maintain a log that tracks which media (tape volume) stores each job (backup) and the location of each backed-up file.

 
 
 
  Previous   Contents   Next