HP LTO Ultrium 6 tape drives UNIX, Linux and OpenVMS configuration guide

3. Read the file back from tape:
% cd /tmp
nl
% tar xvf <device file>
The x option to tar here means extract from the archive.
Use the same value for the <device file> argument as in step 2.
4. Compare the original with this retrieved file:
% cmp <original file> /tmp/<retrieved file>
This compares the files byte by byte. If they are the same, there should be no output, and this
verifies that the installation is correct. The arguments are:
The name of the original file, prefixed with /.
nl
Example:/stand/vmunix
<original file>
The name of the file retrieved from the archive.
nl
Example:stand/vmunix
<retrieved file>
Example
Suppose you are verifying the installation of an HP LTO Ultrium tape drive on an HP-UX 11.X
system. The procedure would be as follows:
1. Use ioscan to obtain the tape drive device file options:
%/sbin/ioscan -fnC tape
Identify the Berkeley no-rewind’ option, for example: /dev/rmt/c4t3d0BESTnb
2. Change directory to root:
nl
% cd /
3. Back up /stand/vmunix to tape:
nl
% tar cvf /dev/rmt/c4t3d0BESTnb ./stand/vmunix
Note the prefix of . to the filename.
4. Change to the temporary directory:
nl
% cd /tmp
5. Extract the file from the tape:
nl
% tar xvf /dev/rmt/c4t3d0BESTnb
6. Compare the original with the restored version:
nl
% cmp /stand/vmunix /tmp/stand/vmunix
Note that the original filename is not prefixed with ..
26 Verifying the installation