System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Make_net_recovery move to tape

SOLVED
Go to solution
RonVH
Occasional Contributor

Make_net_recovery move to tape

Hi
Does anyone know the best way or command used to take a network recovery of server A, that is stored on server B, then make it into a tape I can put in back into server A to do a recovery.
7 REPLIES
Mel Burslan
Honored Contributor
Solution

Re: Make_net_recovery move to tape

I think you are looking for the command

make_medialif

but the use of it might not be as simple as copying the net recovery image from disk to a tape, but a little more complicated. This page has pointers to two different solutions that you might be interested in:

http://docs.hp.com/en/B2355-90772/ch11s10.html

good luck.
________________________________
UNIX because I majored in cryptology...
Tim Nelson
Honored Contributor

Re: Make_net_recovery move to tape

To recover A, why not just network boot it from B ?

Or maybe there is some reason not to ?

You could create a boot helper tape by executing 'make_tape_recovery -I' from B, use the tape to boot A, then choose the network restore option during install.
Tingli
Esteemed Contributor

Re: Make_net_recovery move to tape

If A and B are in the same subnet, it is easier to recover A from B directly.
RonVH
Occasional Contributor

Re: Make_net_recovery move to tape

One thing to note:
On most our systems the network recovery never seems to work due to the fact that lan0 needs to be the nic that is on the same subnet as the network ignite server or the server is not on the same subnet entirely. Which is why we want to move the image to a tape.
Mel Burslan
Honored Contributor

Re: Make_net_recovery move to tape

Ron,

There is a concept called boot helpers. Details elude me right now, but you can find them in the ignite cookbook. Set one up where your lan0 is located (on another server that is) and use that one to boot from, i.e., boot lan.X.Y.Z.Q where X.Y.Z.Q is the ip address of your ignite helper, then point the process to download the ignite image from your main ignite server, provided ftp/tftp is allowed between lan0 subnet and the ignite server's subnet.

I have done this in the past but it was a long time ago and old age is catching up with my memory.

Hope it helps.
________________________________
UNIX because I majored in cryptology...
Ganesan R
Honored Contributor

Re: Make_net_recovery move to tape

Hi,

Yes. You need boot helper to recover the system if clients are in different subnet.

Refer this on how to configure boot helper.

http://www.docs.hp.com/en/5992-5309/ch05s04.html#Ignite_boot_helper

Also this thread..

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1241707234830+28353475&threadId=1317786

Best wishes,

Ganesh.
RonVH
Occasional Contributor

Re: Make_net_recovery move to tape

Thanks all for your help. Here is the script we developed to do the tape automatically for us:

#!/usr/bin/sh
# tape recover from net image.
# Author
#####
IGNDIR=/var/opt/ignite/clients
TMP=/tmp
TAPEDRIVE=/dev/rmt/0mn
#####

#########################
check ()
{
if [ "$(id -u)" != "0" ] ; then
echo "This script must be run as root" 1>&2
exit 1
fi
}

#########################
input ()
{
count=1
while [ $count -eq 1 ]
do
echo "Please enter name of system you want yo make image of:"
read System
if [ -d $IGNDIR/$System ] ;
then
echo "$System exist on mou065"
count=0
else
echo "!!! System You entered $System doesn't exist on Ignite Server !!!"
echo "!!! Please check and re-enter host !!!"
count=1
fi
done

echo "Please make selection what HP version to use"
echo "B.11.11, B.11.23, B.11.31:"
read var
case "$var" in
"B.11.11")
Ver=`echo "B.11.11"`
;;
"B.11.23")
Ver=`echo "B.11.23"`
;;
"B.11.31")
Ver=`echo "B.11.31"`
;;
*)
echo "No HP matching OS version found !"
exit 1
;;
esac
}
#############################
make_lif ()
{
REAL=`ls -l $IGNDIR/$System/recovery/| grep "latest" | awk -F"->" ' { pr
int $2 } ' | sed 's/ //g'`
cd $IGNDIR/$System/recovery/$REAL
/opt/ignite/bin/make_medialif -f system_cfg -f control_cfg -f archive_cf
g \
-C "$REAL $System recovery image" \
-l $TMP/lif -a -r $Ver
instl_adm -d -F $TMP/lif > $TMP/cfg.tmp
cat $TMP/cfg.tmp | grep -v "end instl_adm defaults." > /$TMP/cfg
echo "control_from_server=FALSE" >> $TMP/cfg
echo "run_ui=TRUE" >> $TMP/cfg
echo "env_vars += \"INST_ALLOW_WARNINGS=10\"" >> $TMP/cfg
echo "# end instl_adm defaults." >> $TMP/cfg
instl_adm -F $TMP/lif -f $TMP/cfg
}

###############################
make_tape ()
{
mt -t $TAPEDRIVE rew
dd if=$TMP/lif of=$TAPEDRIVE obs=2k
dd if=/var/opt/ignite/recovery/archives/$System/$REAL \
of=$TAPEDRIVE obs=10k
mt -t $TAPEDRIVE rew
}
###############################
cleanup ()
{
rm /tmp/lif
rm /tmp/cfg.tmp
rm /tmp/cfg
}

check
input
make_lif
make_tape
cleanup