Operating System - HP-UX
1752719 Members
5567 Online
108789 Solutions
New Discussion юеВ

Re: Clone a box on a network

 
SOLVED
Go to solution
Kevin Daines
Advisor

Clone a box on a network

Help!!!

I need to rename and re-IP a new HP-UX server. We are replacing our current server with a new one, and in order to keep the change over as simple as possible I want to make the new box identical to the existing box on the network.

Any advice would be gratefully received.

Kind Regards
Kevin
8 REPLIES 8
Simon Hargrave
Honored Contributor

Re: Clone a box on a network

Take an Ignite backup to tape, build the new server with this and give the appropriate ip address during the build.

If you haven't got Ignite installed, then you should have for server recovery purposes!

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=IGNITEUXB
Victor BERRIDGE
Honored Contributor

Re: Clone a box on a network

Hi Kevin,
When you mean new server is it an upgrade?
I mean change of box for a newer with more cpu RAM etc... and not same class?

You could use an ignite tape like that you are sure to have an identical...
Be sure to change the name and IP of the older box with set_parms in order to not have duplicates...


All the best
Victor
Kevin Daines
Advisor

Re: Clone a box on a network

it is an upgraded spec box, and it is already built and tested ready to go. thus I don't really want to start over again with ignite...

can i simply change the IP and Hostname? Or will that cause issues?

regards
Kevin
Patrick Wallek
Honored Contributor
Solution

Re: Clone a box on a network

Yes you can change IP/Hostname.

Modify /etc/rc.config.d/netconf and /etc/hosts. If you use DNS, make sure you modify your DNS configuration so it knows about this machine.
Steven E. Protter
Exalted Contributor

Re: Clone a box on a network

To simply change the ip addres:

vi /etc/rc.config.d/netfconf

change it

save the file

from console
/sbin/init.d/net stop
/sbin/init.d/net start

Ignite Golden image will let you copy and clone the current server configuration.

It is not starting over.

Docs:

http://www6.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fdocs.hp.com%2Fen%2FIUX%2Ffaq.html&aid=SEARCH_MANUAL&pil=1&serStr=Ignite+Golcen+Image

http://www6.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fdocs.hp.com%2Fen%2FB2355-90872%2Fch05s03.html&aid=SEARCH_MANUAL&pil=2&serStr=Ignite+Golcen+Image

Overview, features
http://www6.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fdocs.hp.com%2Fen%2FIUX%2Foverview.html&aid=SEARCH_MANUAL&pil=5&serStr=Ignite+Golcen+Image

System Cloning

http://www6.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fdocs.hp.com%2Fen%2FB2355-90872%2Fch09s12.html&aid=SEARCH_MANUAL&pil=13&serStr=Ignite+Golcen+Image

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
A. Clay Stephenson
Acclaimed Contributor

Re: Clone a box on a network

In that case, simply run set_parms hostname and set_parms ip_address but you need to make sure that your old box is shutdown or you will have ip address conflicts. Man set_parms for details.
If it ain't broke, I can fix that.
Victor BERRIDGE
Honored Contributor

Re: Clone a box on a network

If the new box is to become your new production server, I would give it the hostname and IP of the old one and rename/change IP of the latter..
You never know...
(client/server access ftp nfs etc...)

All the best
Victor
Simon Hargrave
Honored Contributor

Re: Clone a box on a network

Changing the IP address and hostname will depend very much on your applications running.

Yes you can use set_parms to change hostname, ip address etc, but remember this only changes system files etc.

If your application (eg Oracle) have hard-coded IP addresses or hostnames that you are changing (e.g. listener.ora, tnsnames.ora) then your applications may not work as expected.

Clearly it depends what applications you run, but especially if you have bespoke software on there check with the vendor first.