Operating System - HP-UX
1833894 Members
1631 Online
110063 Solutions
New Discussion

Re: Ignite tape from net_recovery

 
Shahul
Esteemed Contributor

Ignite tape from net_recovery

Hi Chaps,

A quick one here. I reckon someone around the globe must have tried this before.

I have an Ignite server and ignite client. Client is backed up to server via make_net_recovery. I would like to create a recovery tape from the archive stored in ignite server. Is it possible?

Points assured.

TIA
Shahul
7 REPLIES 7
Peter Godron
Honored Contributor

Re: Ignite tape from net_recovery

Uday_S_Ankolekar
Honored Contributor

Re: Ignite tape from net_recovery

Following doc should have details about it.

/opt/ignite/share/doc/makenetrec.txt.

Also check this KB doc: KBAN00000003
Good Luck..
Peter Godron
Honored Contributor

Re: Ignite tape from net_recovery

Shahul,
is this problem resolved ?
If yes, could you please complete the thread by awarding points to helpful answers and summarising the solution for you.

This will help resolution of similar problems in the future.
Craig Johnson_1
Regular Advisor

Re: Ignite tape from net_recovery

Basically you dd a usable bootLIF record and the network image sequentially to a tape big enough to hold them. Sounds more complicated than it is.
Bob Ingersoll
Valued Contributor

Re: Ignite tape from net_recovery

First, ensure you have a current Ignite version installed. You can get it here:

http://www.docs.hp.com/en/IUX/download.html

There is an excellent script provided for this purpose in /opt/ignite/data/scripts/examples named make_media_install. It can be used to put an IUX image on tape or optical disk.

Use the following process:

1. create a "pseudo_root" directory. This can be created anywhere but it's simplest to use the default location:

mkdir -p /var/opt/ignite/media/pseudo_root/archives

2. copy the image that you want to put on to tape using the following example. Change the paths as appropriate for your environment:

cp /var/opt/ignite/recovery/archives//2006-08-21,05:00 /var/opt/ignite/media/pseudo_root/archives/B.11.11_archive_PA.gz
3. create the tape:

cd /opt/ignite/data/scripts/examples
./make_media_install -T -r B.11.11 -a B.11.11_archive_PA.gz -c /dev/rmt/1mn -o64w -f /var/opt/ignite/clients//recovery//system_cfg

make_media_install will create a bootable IUX recovery tape. If you want to include file system configurations other than vg00 add an additional paramter to the make_media_install:

-f /var/opt/ignite/clients//recovery//control_cfg

make_media_install is one of the best undocumented IUX features.

Hope this helps.
Shahul
Esteemed Contributor

Re: Ignite tape from net_recovery

Hi,

The URL provided by Peter is a good one. I have tested the procedure and it worked for me. As most of the URLs are relocated (or is it a plite way of telling "removed"?) after some time, I have pasted the procedure below.

Create a Bootable Archive Tape via the Network


This section explains how to create a self-contained recovery tape for a recovery configuration already stored on an Ignite-UX server via network system recovery. See the make_net_recovery(4) manpage for more details. It is important that the archive fit onto a single tape.

These instructions assume that:

The hostname of the machine the archive was created for is sys1.

The archive was created at "2001-03-12,09:00".

The archive will fit onto a single tape.

Build the LIF file. The LIF file will contain the Ignite-UX tools and environment, the config files produced for the recovery archive, and the scripts used during recovery.

Use make_medialif to build the LIF file:

cd /var/opt/ignite/clients/sys1/recovery/2001-03-12,09:00

make_medialif -f system_cfg -fcontrol_cfg -f archive_cfg\
-C "2001-03-12,09:00 sys1 recovery image" \
-l /var/tmp/my_lif -a -r os_rev

Modify the LIF file for use on the tape:

instl_adm -d -F /var/tmp/my_lif > /var/tmp/cfg

Add these lines to the end of the /var/tmp/cfg file:

control_from_server=FALSErun_ui=TRUEOR, if you just want the recovery to proceed without any interaction, make:

run_ui = FALSEand specify to allow warnings as shown here:

env_vars += "INST_ALLOW_WARNINGS=10"Enter:

instl_adm -F /var/tmp/my_lif -f /var/tmp/cfg

Create the Tape. To write the LIF and archive to a tape:

Determine which tape device file you can use to write the tape. The device file must match the tape drive type you will use when actually recovering the system. Also, the tape device file must be the no-rewind type. For the rest of this example, assume that /dev/rmt/c1t0d0DDS1n is a no-rewind DDS-1/no compression device file.

Rewind the tape, write out the LIF and archive, and rewind again:

mt -t /dev/rmt/c1t0d0DDS1n rew

dd if=/var/tmp/my_lif of=/dev/rmt/c1t0d0DDS1n obs=2k

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

mt -t /dev/rmt/c1t0d0DDS1n rew

In this example, the archive is retrieved from the standard location on the Ignite-UX server for this host. If you have chosen to put the archive elsewhere, refer to that location instead.

Thanks to everyone who replied to this.

Regards
Shahul
Shahul
Esteemed Contributor

Re: Ignite tape from net_recovery

Thanks to everyone.

Regards
Shahul