beautypg.com

Example – HP Ultrium tape drives Q1538-90925 User Manual

Page 28

background image

Verifying the Installation

28

HP restricted

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.

3.

Read the file back from tape:

% cd /t mp

% tar x vf

The ‘x’ option to tar here means “extract from the archive”.
Use the same value for the argument as in step 2.

4.

Compare the original with this retrieved file:

% cmp < original file> /t mp/

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:

Example

Suppose you are verifying the installation of an HP Ultrium tape drive on an HP-UX 11.X system. The

procedure would be as follows.:

1.

Change directory to root:

% cd /

2.

Back up /stand/vmunix to tape:

% tar c vf /dev/ rmt/0m ./ stand/vmu nix

Note the prefix of ‘.’ to the filename.

3.

Change to the temporary directory:

% cd /tmp

4.

Extract the file from the tape:

% tar xvf /de v/rmt/0m

5.

Compare the original with the restored version:

% cmp /stand/ vmunix /t mp/stand/ vmunix

Note that the original filename is not prefixed with ‘.’.

The name of the original file, prefixed with ‘/’.

Example: /stand/vmunix

file>

The name of the file retrieved from the archive.

Example: stand/vmunix