Operating System - HP-UX
1753886 Members
7623 Online
108809 Solutions
New Discussion юеВ

Cloning HP-UX 11.11 System onto identical H/W configuration

 
SOLVED
Go to solution
Robert Dukes
Advisor

Cloning HP-UX 11.11 System onto identical H/W configuration

Hello,

Ive been reading responses within ITRC on cloning using Ignite UX and make_tape_recovery commands and also reading the Ignite UX Docs. Could someone just describe in a nutshell how to do this. I am cloning an rp5470 onto another box of exactly the same specification, I am running the following command on the node I wish to take an image from:

make_tape_recovery -A -x inc_entire=vg00 -v -a /dev/rmt/0mn

Once this is produced, can someone detail how I load this onto another box, and give me the options of changing the hostname/IP Address/other essential bits of information.

Thanks in advance for any help on this.
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: Cloning HP-UX 11.11 System onto identical H/W configuration

Oracle data really should not be part of vg00.

But if it is and you want to clone oracle config, you MUST shut down the database. Then do the make_tape_recovery job.

Then boot the second server off the tape.

intervene at the 10 second prompt

sea


bo P

N, do not interact.


Now you will at the console see a prompt for manual intervention.

You must do that to change the hostname and network information. You'll see the standard Ignite/UX interface you'd get if you cold installed.

I've done this many times, and for me its actually kinda fun. Yea, I need a hobby. That would be itrc forums on the weekend. Yea, rent a life.

Seriously, you have the right tool. Make sure Ignite is up to date.

You may wish to set up a golden image server if you're going to be doing this regularly and want to customize the install process.

Going off tape will let you preserve mirror configuration. Golden image will require a post install script.

Let me know if you need more information on Golden Imaging.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Costigan
Honored Contributor

Re: Cloning HP-UX 11.11 System onto identical H/W configuration

Put the recovery tape into the new system and boot it. Interupt the boot process and when prompted type 'sea' this will search the IO devices for bootable devices. It will then list each with a P number e.g. P0, P1, P2. Find the P# for the tape drive and type BO P2 [or P3, etc] (boot from path #2)

Answer No to interact with ISL and the system will boot the install shell from the tape. You can then select "install HPUX", make changes if you wish using the character based "GUI" and say OK.

Everything will load and the system will reboot. After the first reboot it will ask questions about hostname, IP address, etc.

And then reboot again.

You are then done.
Robert Dukes
Advisor

Re: Cloning HP-UX 11.11 System onto identical H/W configuration

Steve,

Thanks for the reply - thats exactly what I was looking for - however we dont have any Oracle data on vg00, dont know where you got that from :-)

Do you have any documents detailing the process that you described? The Ignite-UX docs on docs.hp.com, dont describe that process (or else ive missed it - please point me to the doc/page)?

Also can you tell me whether the make_tape_recovery command that I used, will clone absolutely everything within vg00?

Thanks again for your help,

Rob.

Alzhy
Honored Contributor

Re: Cloning HP-UX 11.11 System onto identical H/W configuration

Aside from the Ignite approach, if you've your first rp5470 mirrored (properly) and the two are EXACTLY alike -- then simply pull out the alternate disk and insert onto the other rp5470. Then boot off this disk in maint mode (-lm) where you can also fix IP address and hostname. You'll also learn a lot of "other" things...

Hakuna Matata.
Steven E. Protter
Exalted Contributor

Re: Cloning HP-UX 11.11 System onto identical H/W configuration

I think you have it right. Here is mine.

#!/usr/bin/sh
/opt/ignite/bin/make_tape_recovery -Av -x inc_entire=vg00

I can and have replicated oracle database and ias configurations by shutting it all down and including more volume groups in the image. I used golden images, but it works with tape based installs as well.

The database won't come up after installation until you've either edited the oracle init.ora and other oracle network information or automated that as part of a post installation script.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Victor BERRIDGE
Honored Contributor

Re: Cloning HP-UX 11.11 System onto identical H/W configuration

Hi,
To convince yourself:
halt the other system
load the tape, boot on it, if you did not use the -i option you will just let the system continue its installation once finished - Compare :
-Same hostname
-Same IP
-Same /etc/passwd
-Same etc...


If conviced and are happy with this new installation then just type set_parms (do a man before...)
and give it its new hostname IP etc...
before to reboot the other box!

All the best
Victor
Robert Dukes
Advisor

Re: Cloning HP-UX 11.11 System onto identical H/W configuration

Just to clarify, can you confirm the command I would need to run to produce a make_tape_recovery of the entire vg00, that allows me to change the IP Address/Hostname before the system image is put on the new machine, Do i need a '-i' or a '-I'?
Would the following be correct:-

make_tape_recovery -A -x inc_entire=vg00 -v -I -a /dev/rmt/0mn
Alzhy
Honored Contributor
Solution

Re: Cloning HP-UX 11.11 System onto identical H/W configuration

You will need a uppoer case I (as in Ice-Cream).. so when you boot your Ignite Recovery Tape it will not automatically recover and allow you to interactively customise the restored OS... ie. different sizes of Filesystems, diff hostname and networking info, etc..

Hakuna Matata.
Robert Dukes
Advisor

Re: Cloning HP-UX 11.11 System onto identical H/W configuration

Nelson,

Thanks for your help.

Cheers, Rob.