Содержащиеся в
Найти другие документы
Ресурсы поддержки
| Загрузить это руководство в формате PDF
Managing Tape Drives
46
- This chapter describes how to manage tape drives.
- This is a list of the step-by-step instructions in this chapter.
-
Choosing Which Media to Use
- You typically back up Solaris 2.5 systems using:
-
- 1/2-inch reel tape
- 1/4-inch streaming cartridge tape
- 8-mm cartridge tape
- 4-mm cartridge tape (DAT)
- You can perform backups using diskettes, but this is time-consuming and cumbersome.
- The media you choose depends on the availability of the equipment that supports it and of the media (usually tape) that you use to store the files. Although you must do the backup from a local system, you can write the files to a remote device.
-
Table 46-1 shows typical media used for backing up file systems and shows the length (or storage capacity) for each.
-
Table 46-1
| Media | Capacity | Tape Length |
| 1/2-inch tape | 40-45 Mbytes | 2300 feet |
| 60-Mbyte 1/4-inch cartridge | 60 Mbytes | 425 feet |
| 150-Mbyte 1/4-inch cartridge | 150 Mbytes | 700 feet |
| 2.3-Gbyte 8-mm | 2.3 Gbytes | 6000 feet |
| 5.0-Gbyte 8-mm | 5.0 Gbytes | 13000 feet |
| 3.5-inch diskette | 1422 blocks (1.44 Mbytes) |
-
Note - Capacity for 4-mm cartridge tapes depends on the type of drive and the data being written to the tape.
Backup Device Names
- You specify a tape or diskette drive to use for backup by supplying a logical device name. This name points to the subdirectory containing the "raw" device file and includes the logical unit number of the drive. Tape drive naming conventions use a logical, not a physical, device name. Table 46-2 shows this naming scheme.
-
Table 46-2
| Device Type | Name |
| Tape | /dev/rmt/n |
| Diskette | /vol/dev/rdiskette0/unlabeled |
- The drive writes at its "preferred" density, which usually means the highest density it supports. Most SCSI drives can automatically sense the density or format on the tape and read it accordingly.
- Tape drives fall into two categories based on controller type:
-
- Xylogics 472 for 1/2-inch rack-mounted (top-loaded) reel-to-reel drives (see Figure 46-1)
- SCSI for 1/4-inch cartridge, 1/2-inch front-loaded reel-to-reel, and 4-mm or 8-mm helical scan drives
- Within the /dev/rmt subdirectory is a set of tape device files that support different output densities.
- In general, you specify a tape drive device as shown in Figure 46-1.

Figure 46-1
- You can have both SCSI and non-SCSI tape drives on the same system.
-
- A SCSI controller can have a maximum of seven SCSI tape drives.
- A non-SCSI controller can have a maximum of four tape drives.
- For each drive number (X), the density character depends on the controller and drive type as described in the following paragraphs.
-
Table 46-3 shows the device abbreviation for different tape controllers/units and media. Note that the first character in the device abbreviation for drive number does not have to be 0 as shown, but could be 1, 2, or 3, and so on, depending on how many tape drives are attached to the system.
-
Table 46-3
Controller |
Drive Unit |
Size |
Type |
Format |
Tracks | Device
Abbreviation |
| Xylogics(R) 472 | Fujitsu M2444 | 1/2-inch | Reel | 1600 bpi | 9 | /dev/rmt/0m |
| 1/2-inch | Reel | 6250 bpi | 9 | /dev/rmt/0h |
| SCSI front-loaded | HP | 1/2-inch | Reel | 800 bpi | 9 | /dev/rmt/0m |
| 6250 bpi | 9 | /dev/rmt/0h |
| SCSI | Sysgen(R) | 1/4-inch | Cartridge | QIC-11 | 4 | /dev/rmt/0l |
| QIC-24 | 4 | /dev/rmt/0m |
| QIC-11 | 9 | /dev/rmt/0l |
| QIC-24 | 9 | /dev/rmt/0m |
| Emulex(R) MT-02 | 1/4-inch | Cartridge | QIC-11 | 4 | /dev/rmt/0l |
| QIC-24 | 4 | /dev/rmt/0m |
| QIC-11 | 9 | /dev/rmt/0l |
| QIC-24 | 9 | /dev/rmt/0m |
| Archive(R) QIC-150 | 1/4-inch | Cartridge | QIC-150 | 18 | /dev/rmt/0h |
| Wangtek(TM) QIC-150 | 1/4-inch | Cartridge | QIC-150 | 18 | /dev/rmt/0h |
| Desktop Backup Pack | 1/4-inch | Cartridge | QIC-150 | 18 | /dev/rmt/0h |
| Exabyte(R) 8200 (2.3 GB) | 8 mm | Cartridge | 8 mm | Helical Scan | /dev/rmt/0m |
| Exabyte 8500 (2.3 GB) | 8 mm | Cartridge | 8 mm | Helical Scan | /dev/rmt/0l |
| Exabyte 8500 (5 GB) | 8 mm | Cartridge | 8 mm | Helical Scan | /dev/rmt/0m |
| Archive(R) Python | 4 mm | Cartridge | 4 mm | Helical Scan | /dev/rmt/0 |
Rack-Mounted Non-SCSI 1/2-Inch Reel Drives
- For 1/2-inch rack-mounted tape drives with either a Tapemaster or Xylogics 472 controller, substitute the density from Table 46-4 for the A variable in the device name (/dev/rmt/XA).
-
Table 46-4
| Character | Density |
| null | Default "preferred" (highest) density (usually 6250 bpi uncompressed) |
| l | 800 bpi |
| m | 1600 bpi |
| h | 6250 bpi |
| u | 6250 bpi compressed |
- If you omit the density character, the tape is usually written at its highest density, not compressed.
SCSI 1/4-Inch Cartridge and 1/2-Inch Front-Loaded Reel Drives
- For SCSI 1/4-inch cartridge and 1/2-inch front-loaded reel drives, substitute the density from Table 46-5 for the A variable in the device name (/dev/rmt/XA).
-
Table 46-5
Character |
Density
1/4-Inch Cartridge | Density
1/2-Inch Front-Loaded
Reel-to-Reel |
| null | Default preferred (highest) density | Default preferred (highest) density |
| l | QIC-11 format | 800 bpi |
| m | QIC-24 format | 1600 bpi |
| h | QIC-150 | 6250 bpi |
| u | Reserved | Reserved |
- For 1/4-inch cartridges, density is specified by the format in which the data is written: the QIC format. The QIC-11 and QIC-24 format write approximately 1000 bytes per inch on each track. The density for QIC-150 is somewhat higher. The "preferred" density for a 60-Mbyte 1/4-inch cartridge drive is QIC-24 and for a 150-Mbyte 1/4-inch cartridge drive is QIC-150.
- An 18-track drive can write only QIC-150; it cannot be switched to write QIC-24 or QIC-11. Format selection is only useful for drives that can write both QIC-24 and QIC-11.
Specifying the Default Density for a Tape Drive
- Normally, you specify a tape drive by its logical unit number, which may run from 0 to n. Table 46-6 describes how to specify tape device names using default density settings.
-
Table 46-6
| To Specify The ... | Use ... |
| First drive, rewinding | /dev/rmt/0 |
| First drive, nonrewinding | /dev/rmt/0n |
| Second drive, rewinding | /dev/rmt/1 |
| Second drive, nonrewinding | /dev/rmt/1n |
- By default, the drive writes at its "preferred" density, which is usually the highest density it supports. If you do not specify a tape device, the command writes to drive number 0 at the default density the device supports.
Specifying Different Densities for a Tape Drive
- To transport a tape to a system whose tape drive supports only a certain density, specify a device name that writes at the desired density. Table 46-7 describes how to specify different densities for a tape drive.
-
Table 46-7
| To Specify The ... | Use ... |
| First drive, rewinding, low density | /dev/rmt/0l |
| First drive, nonrewinding, low density | /dev/rmt/0ln |
| Second drive, rewinding, medium density | /dev/rmt/1m |
| Second drive, nonrewinding, medium density | /dev/rmt/1mn |
- The unit and density characters are shown in Figure 46-1.
Determining Tape Drive Types
- You can use the status option to the mt command to get status information about the Xylogics 472 1/2-inch tape drive and the Exabyte EXB-8200 8-mm tape drive.
- The mt command also reports information about these 1/4-inch tape drives:
-
- Xylogics 472
- Exabyte EXB-8200
- Sysgen (QIC-24)
- Emulex MT-02 (QIC-24)
- Archive QIC-150
- Wangtek QIC-150
· How to Determine the Type of a Tape Drive
-
-
Load a tape into the drive you want information about.
-
Display tape drive information with the mt command.
-
# mt -f /dev/rmt/n status
|
-
-
Repeat steps 1-2, substituting tape drive numbers 1, 2, 3, and so on to display information about all available tape drives.
Example--Determining the Type of a Tape Drive
- This example shows status for a QIC-150 tape drive (/dev/rmt/0) and an Exabyte tape drive (/dev/rmt/1).
-
$ mt -f /dev/rmt/0 status
Archive QIC-150 tape drive:
sense key(0x0)= No Additional Sense residual= 0 retries= 0
file no= 0 block no= 0
$ mt -f /dev/rmt/1 status
Exabyte EXB-8200 8mm tape drive:
sense key(0x0)= NO Additional Sense residual= 0 retries= 0
file no= 0 block no= 0
|
- Here is an quick way to poll a system and locate all tape drives. In this example, the tape drive is at 0.
-
$ for drive in 0 1 2 3 4 5 6 7
> do
> mt -f /dev/rmt/$drive status
> done
Archive QIC-150 tape drive:
sense key(0x0)= No Additional Sense residual= 0 retries= 0
file no= 0 block no= 0
/dev/rmt/1: No such file or directory
/dev/rmt/2: No such file or directory
/dev/rmt/3: No such file or directory
/dev/rmt/4: No such file or directory
/dev/rmt/5: No such file or directory
/dev/rmt/6: No such file or directory
/dev/rmt/7: No such file or directory
$
|
· How to Show the Status of a Magnetic Tape Drive
- To display tape drive status information, use the mt command.
-
$ mt -f /dev/rmt/n status
|
- Status for the tape drive you specify is displayed.
Examples--Showing the Status of a Magnetic Tape Drive
- In the following example, there is no tape in drive /dev/rmt/1.
-
$ mt -f /dev/rmt/1 status
/dev/rmt/1: no tape loaded or drive offline
$
|
- In this example, the status is shown for the tape in drive /dev/rmt/1.
-
$ mt -f /dev/rmt/1 status
Archive QIC-150 tape drive:
sense key(0x6)= unit attention residual= 0 retries= 0
file no= 0 block no= 0
$
|
Handling Magnetic Tape Cartridges
- If errors occur when reading a tape, 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.
-
$ mt -f /dev/rmt/n retension
|
Example--How to Retension a Magnetic Tape Drive
- In this example, the tape in drive /dev/rmt/1 is retensioned.
-
$ 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.
-
$ mt -f /dev/rmt/n rewind
|
Example--Rewinding a Magnetic Tape Cartridge
- In this example, the tape in drive /dev/rmt/1 is rewound.
-
$ mt -f /dev/rmt/1 rewind
$
|
Guidelines for Drive Maintenance and Media Handling
- A backup tape that cannot be read is useless. It is a good idea 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:
-
- Copying some files to the tape, reading them back, and then comparing the original with the copy.
- Or, you could use 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 suggested in Chapter 41, "Overview of Backing Up and Restoring File Systems," 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.
|
|