UnixPedia : HPUX / LINUX / SOLARIS: HPUX :Creating a Bootable Recovery Tape with a make_net_recovery Archive

Tuesday, February 11, 2014

HPUX :Creating a Bootable Recovery Tape with a make_net_recovery Archive

Note: It is important that the archive fits onto a single tape

Example: The hostname is sys1, the recovery archive is named “2002-03-12,09:00”

Creating the LIF header (Boot Header)
# /usr/bin/cd /var/opt/ignite/clients/sys1/recovery/2002-03-12,09:00
# /opt/ignite/bin/make_medialif \
-f system_cfg -f control_cfg -f archive_cfg \
-C "2002-03-12,09:00 sys1 recovery image" \
-a -l /var/tmp/my_lif


Now modify the LIF file to set it up for use on the tape:
# /opt/ignite/bin/instl_adm -d -F /var/tmp/my_lif > /var/tmp/cfg
Edit the /var/tmp/cfg file and add the following lines to the end of the file:
control_from_server=FALSE
run_ui=TRUE

Or, if you just want the recovery to proceed without any interaction, make run_ui FALSE and
specify to allow warnings, as shown in the following:
control_from_server=FALSE
run_ui=FALSE
env_vars += "INST_ALLOW_WARNINGS=10"

Then, issue the following command:
# /opt/ignite/bin/instl_adm -F /var/tmp/my_lif -f /var/tmp/cfg


Writing the LIF Header and the network recovery archive onto tape


Create a DDS1 device file if you do not have one already. A DDS1 device file is compatible
with most tape drives:
# /usr/sbin/ioscan -fC tape
Class I H/W Path Driver S/W State H/W Type Description
==============================================================
tape 0 8/16/5.6.0 stape CLAIMED DEVICE HP C1533A
# /usr/sbin/mksf -v -H 8/16/5.6.0 -b DDS1 -n –a
This will create the device file, /dev/rmt/c1t6d0DDS1n, for example. Rewind the tape and
write the LIF Header and the archive onto the tape:
# /usr/bin/mt -t /dev/rmt/c1t0d0DDS1n rew
# /usr/bin/dd if=/var/tmp/my_lif of=/dev/rmt/c1t0d0DDS1n obs=2k

# /usr/bin/dd \
if=/var/opt/ignite/recovery/archives/sys1/2002-03-12,09:00
of=/dev/rmt/c1t0d0DDS1n obs=10k



Then rewind the tape again:
# /usr/bin/mt -t /dev/rmt/c1t0d0DDS1n rew


No comments:

Post a Comment