Clone a RHEL6.4 server on identical hardware, what to reconfigure?

Latest response

Hello

I have two identical physical servers, one of them (server1) is ready configured (users, software) and operational.

Now I take the system disk of server2, insert it into server1 (hot pluggable) and clone the system disk1 with dd to disk2.

Then put the disk2 into server2 and boot the server without network cable.

Then I change the server name and ip adress.

What else to I have to reconfigure (devices, wwn, Linux-ID of the server)?

Do I have to register the server2 in RHN too (have a license for two physical servers, server1 already registered)?

I'm new to RHEL, coming from Solaris :-)

Kind regards
Harald

Responses

This reference will seem odd (at first), but I would review the RHEV instructions on how to create a Virtual Machine Template. It basically indicates how you unidentify a VM for multiple deployment.

4.2.1. Create a Red Hat Enterprise Linux Template
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.1/html/Quick_Start_Guide/Quick_Start_Guide-Using_Templates.html

Personally - I would recommend doing this activity before registering to RHN or your Satellite. Regardless, you will need to register the 2nd node also.
You could also review: /usr/sbin/sys-unconfig

James is spot on here with the link to the RHEV guide. For automation, use virt-sysprep provided by the libguestfs-tools rpm.

Regarding your network configuration, you should also check HWADDR in

/etc/sysconfig/networking/profiles/default/ifcfg-eth*
/etc/sysconfig/networking/devices/ifcfg-eth*
/etc/sysconfig/network-scripts/ifcfg-eth*

And you might want to recreate your /etc/ssh/ssh_host*key* too ...

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.