HP Q1581A HP DDS/DAT drives UNIX, Linux and OpenVMS configuration guide (DW049 - Page 37

Verifying the installation - cartridge

Page 37 highlights

8 Verifying the installation As part of the installation process, you will have installed the appropriate device driver for your UNIX system, and created device files to communicate with the tape drive. This section describes how you can verify that the installation has been performed correctly. In outline, the procedure is as follows: 1. Write test data to a tape. 2. Read the test data from the tape. 3. Compare the data read from the tape with the original data on disk. To verify the installation 1. Test the SCSI connection to the tape drive by sending a status request: a. Ensure a tape cartridge installed in the drive. b. Enter the following using the command line: % mt -f status For example, on Linux: % mt -f /dev/st0 status If the response in the command line is: mt /dev/st0: No such file or directory the hardware installation may be faulty. Check the troubleshooting section of the User's Guide for help in identifying the problem. If the response in the command line is: mt /dev/st0: No medium found check that a tape is loaded in the drive. If tape drive information is returned, the tape drive has been detected correctly by the operating system. 2. Write a sample file to tape, using 'tar': % cd / % tar cvf The options to tar have the following meanings: c Create a new archive (backup file) on the device. v Operate in verbose mode. f Specify the archive name explicitly. The arguments follow the cvf options in the command line. The arguments are as follows: The name of the archive name to be created. Example: /dev/st0 The name of the file to archive, prefixed with './'. Example: ./boot/vmlinuz HP Evolution II DDS/DAT drives: UNIX, Linux and OpenVMS configuration guide 37

  • 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
  • 41
  • 42

HP Evolution II DDS/DAT drives: UNIX, Linux and OpenVMS configuration guide
37
8
Verifying the installation
As part of the installation process, you will have installed the appropriate device driver for your
UNIX system, and created device files to communicate with the tape drive.
This section describes how you can verify that the installation has been performed correctly.
In outline, the procedure is as follows:
1.
Write test data to a tape.
2.
Read the test data from the tape.
3.
Compare the data read from the tape with the original data on disk.
To verify the installation
1.
Test the SCSI connection to the tape drive by sending a status request:
a.
Ensure a tape cartridge installed in the drive.
b.
Enter the following using the command line:
% mt -f <archive name> status
For example, on Linux:
% mt -f /dev/st0 status
If the response in the command line is:
mt /dev/st0: No such file or directory
the hardware installation may be faulty. Check the troubleshooting section of the
User’s
Guide
for help in identifying the problem.
If the response in the command line is:
mt /dev/st0: No medium found
check that a tape is loaded in the drive.
If tape drive information is returned, the tape drive has been detected correctly by the
operating system.
2.
Write a sample file to tape, using ‘
tar
’:
% cd /
% tar cvf <archive name> <file>
The options to
tar
have the following meanings:
The arguments follow the
cvf
options in the command line. The arguments are as follows:
c
Create a new archive (backup file) on the device.
v
Operate in verbose mode.
f
Specify the archive name explicitly.
<archive name>
The name of the archive name to be created.
Example:
/dev/st0
<file>
The name of the file to archive, prefixed with ‘
./
’.
Example:
./boot/vmlinuz