make_tape_recovery.1m (2012 03)

m
make_tape_recovery(1M) make_tape_recovery(1M)
Extracting Files from a PA-RISC Recovery
After the PA-RISC System Recovery Tape has been created, a single file or files may be extracted from
tape by seeking to the tape position where the archive is located. The
mt command may be used to seek
to the appropriate location, and
pax or tar
may be used to extract files from the archive.
To extract a single file from a PA-RISC recovery archive:
mt -t /dev/rmt/0mn rew
mt -t /dev/rmt/0mn fsf 1
tar -xvf /dev/rmt/0m filename
A rewind mode device special file may be used in this case to simplify repeated attempts to list and
extract archive content. Extracting files from tape may take a long time, especially when archives are
large.
Extracting Files from an Integrity Recovery
After the Integrity System Recovery Tape has been created, a single file or files may be extracted from
tape by use of the
ansitape command. The
ansitape command may be used to find the appropriate
tape file and read archive file content. Standard output from this command may be redirected to the
pax
or tar command to read archive content and extract files.
To extract a single file from an Integrity recovery archive:
/opt/ignite/lbin/ansitape -xf mt=/dev/rmt/0m archive |
tar -xvf - filename
Extraction of archive content will not start until the ansitape command locates the archive file on
tape. The ansitape command requires use of the f option to request standard output to process
archive files and other files 2 GiB or larger. A rewind mode device special file may be used in this case to
simplify repeated attempts to list and extract archive content. Extracting files from tape may take a long
time, especially when archives are large.
It is possible to extract a single file from an Integrity recovery archive without using the
ansitape com-
mand:
mt -t /dev/rmt/0mn rew
mt -t /dev/rmt/0mn fsf 22
tar -xvf /dev/rmt/0m filename
However, use of the ansitape command is recommended in case the format of Integrity recovery tapes
changes in the future. #else
Using the Recovery Archive
To recover a failed system using the network recovery archive:
If the client system is being replaced, or the LAN card has changed since
make_net_recovery
was last used, you should manually rename the old client directory
prior to starting the recovery. Not doing so will cause a new directory to be created and you will
not see the recovery archives created under the old client directory. To rename the client direc-
tory, obtain the new LAN address (you can use the
LanAddress boot-ROM command in the
information menu), then use the mv command. For example:
cd /var/opt/ignite/clients
mv 0x00108305463A 0x0060B0C43AB7
If you have already booted the new system, you will need to remove the new client before renam-
ing the old directory. Be careful not to remove the old directory containing the recovery informa-
tion.
Boot the system using either a network boot, a tape created using
make_boot_tape, or using
the bootsys command if the system is still running.
Do not interact with ISL.
Select:
[ Install HP-UX ].
From the Ignite-UX GUI, select the icon for the client.
Choose
Install/New Install.
Select the recovery configuration to use.
HP-UX 11i Version 3: March 2012 7 Hewlett-Packard Company 7