![HP 330834-B21 - StorageWorks Ultrium 460 Tape Library Drive Module Technical Reference Manual Download Page 36](http://html.mh-extra.com/html/hp/330834-b21-storageworks-ultrium-460-tape-library-drive-module/330834-b21-storageworks-ultrium-460-tape-library-drive-module_technical-reference-manual_165375036.webp)
36 Verifying the Installation
4
Write a sample file to tape, using ‘
tar
’:
% cd /
% tar cvf <device file> <file>
The options to
tar
have the following meanings:
The arguments follow the
cvf
options in the command line. Their values
depend on the operating system; suggested values are given
the
appropriate operating system chapter
.The arguments are as follows:
Note
Make sure you prefix the file name with ‘
.
’ when you back it up
to tape. If you do not, the restore operation in step 3 will
overwrite the original copy on disk.
5
Read the file back from tape:
% cd /tmp
% 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.
6
Compare the original with this retrieved file:
% cmp <original file> /tmp/<retrieved file>
This step compares the retrieved file and the original file byte by byte. If
they are the same, there should be no output, and this verifies that the
installation is correct. The arguments are as follows:
c
Create a new archive (backup file) on the device.
v
Operate in verbose mode.
f
Specify the device file explicitly.
<device file>
The name of the device file for the drive.
Example:
/dev/rmt/0m
<file>
The name of the file to archive, prefixed with ‘
./
’.
Example:
./stand/vmunix
<original file>
The name of the original file, prefixed with ‘
/
’.
Example:
/stand/vmunix
<retrieved file>
The name of the file retrieved from the archive.
Example:
stand/vmunix
Summary of Contents for 330834-B21 - StorageWorks Ultrium 460 Tape Library Drive Module
Page 8: ...8 ...
Page 24: ...24 IBM AIX ...
Page 28: ...28 Linux ...
Page 34: ...34 Sun Systems Solaris SunOS 5 x ...
Page 38: ...38 Verifying the Installation ...