Taking an image or clone of Red Hat server

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Taking an image or clone of Red Hat server
# 1  
Old 08-17-2015
Taking an image or clone of Red Hat server

Dear All ,

We have a linux Server where we have installed all our Softwares and applications.

Now we want to clone this Server to another server or copy the image of it and put it in the another server.So that all the softwares and apps appear in the new server also , rather than re installation.

Kindly let me know , is it possible in linux and also the disadvantages of doing it like this.

Thanks and Regards ,
Rj
# 2  
Old 08-24-2015
Best practice would be to build the new system from scratch and re-deploy applications. the second best option would be to install your applications in a dedicated filesystem/location like /apps and use rsync to copy that over to a new system. Next would be to buy software that will do "bare-metal" copies or backup/restores of linux systems.

If you want to do it quick and dirty, put the existing boot/OS hard drive in a server and a blank identical hard disk. Boot the system in rescue mode, ensure that the good copy of the data (you can use fdisk and look for the one that is partitioned) is on the first disk (/dev/sda) and do:

Code:
dd if=/dev/sda of=/dev/sdb

Padow
# 3  
Old 08-24-2015
is it a physical or virtual host?
# 4  
Old 08-25-2015
I doubt that re-install everything is a good plan. There is a risk of error and besides, you have to crete everything (all your configs for ntp, mail, groups, sudo rules, syslogs and users even) and the risk is that something gets lost, or a package has been updated, so you don't quite get a clone if you are using on-line resources (Satellite or direct to Red-Hat) to install the packages.

So you want a mksysb (AIX) ignite (HP-UX) etc. type clone on RHEL? Sorry, nothing is supplied. There are options though depending how you are currently running:-
Physical
  • Boot from media
  • Slice your first disk to have a boot partition and a root partition (or LVM managed root and other filesystems is better)
  • Restore a copy of your root and other critical* filesystems
  • Build a new boot image in your boot partition
  • Adjust the loader (usually GRUB)
Virtual
  • Use the VM tools to clone the boot device
  • Bring up the system without network devices defined
  • Change the network definitions
  • Define the network devices for the VM
  • Boot
More practically, there is commercial software that can do this for you. There is Christie Clone Manager and Storix, of which I am familiar, but there may be others too. I have AIX in the estate which I can recover with a mksysb so I use that as my base for all RHEL backups and therefore clones.

Certainly Storix is my favourite, but I have no idea on the cost. It works with physical and virtual servers (can migrate any to any too) and gives you DR capability as well as just cloning. Don't let me sway you to that though, have a look at Christie too and any others out there to make sure you get the one that suits you and the budget best.



Robin
# 5  
Old 08-25-2015
Hi.

At Clonezilla - About you can see if that cloning mechanism is right for you.

The only drawback I found was that it did not understand software RAID (mdadm) and copied the entire partition, block by block (dd), rather than ignoring unused filesystem blocks.

So while impractical for me for a cloned backup, it may be suitable for staging to a new server.

Best wishes ... cheers, drl
These 2 Users Gave Thanks to drl For This Post:
# 6  
Old 08-26-2015
Hi All ,

Thanks for all of your replies.

It was informative and good.

Regards ,
Rj
# 7  
Old 12-17-2015
Mondo rescue might be an alternative. It can do restores from physical to virtual as well, with a little bit of tinkering with the drivers.

Mondo Rescue - GPL disaster recovery solution
This User Gave Thanks to smurphy_it For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Red Hat application server ssl keystore problem

A client is accessing our JBoss server. In the past, we set up a keystore and everything worked fine. That certificat expired and we've installed the new one. Now the client is getting the following error - HTTP/1.1 500 Internal Server Error Date: Mon, 14 Apr 2014 13:25:44 GMT Server:... (1 Reply)
Discussion started by: kkinney
1 Replies

2. Red Hat

Streaming Server over Red Hat

Hi guys, What is the best server for media streaming over network, when I googled some stuff I found that most of these articles talk about VLC, and according to what I know that is VLC is a third party application, and I don't know actually if there any standard linux streaming server. ... (2 Replies)
Discussion started by: leo_ultra_leo
2 Replies

3. Red Hat

Not able to ssh into Red Hat server wtith or without LDAP

Hello, For some reason we are unable to ssh into one of our servers. It is running Red Hat 6.1. We have tried moving in a new sshd_config file as well as a new /etc/pam.d/system-auth file. The server has LDAP enabled and the server side is Oracle directory server. Just to simplify things we... (0 Replies)
Discussion started by: s ladd
0 Replies

4. Red Hat

where can find the good image file of red hat

I have failed many times on install red hat in virtual machine, can anybody provide the good image file of red hat? (3 Replies)
Discussion started by: wulaishiwo
3 Replies

5. Red Hat

Red Hat Server Name Change

Hello Does anyone know if it s complicated process to change a Red Hat Server host name that also has a Oracle db installed on it? rgds D (2 Replies)
Discussion started by: deedaz
2 Replies

6. Linux

Red Hat linux(Advance server) problem

we are receiving following error in our application server & server not booted:- "INIT IP ID x ,Respawning too fast; disable for 5 minutes." Please give me solution for above mention problem as early as possible . AKM (3 Replies)
Discussion started by: akm9999
3 Replies

7. Linux

crash dump server for red hat ent 4

Is it true that you can't have the crash dump server/client on the same server? I know I've installed Nagios open source before, I though it's only for that kind of thing. I never though that Red hat ent 4 would be like client/server on the crash dump. if someone is having problem with high... (0 Replies)
Discussion started by: itik
0 Replies

8. UNIX for Dummies Questions & Answers

Red Hat 7.2 Linux Server - FTP Problems

I have just installed RH7.2 Server and along with apache 1.3 and PHP. I am able to FTP from my linux box to other remote maches, but am unable to FTP to the linux box from other remote machines. The message I get is: A remote host has refused an attempted connect operation. I have done some... (3 Replies)
Discussion started by: jyoung
3 Replies

9. UNIX for Dummies Questions & Answers

Red Hat 7.1 - Bieng a web server

If I have an ADSL connection (therefore with a static IP Address) is it possible to use Red Hat Linux 7.1 straight from the CD to become a web server to host my own web pages (If I have a domain name registered to that IP Address). I've read about Apache, is this what is used to make files... (1 Reply)
Discussion started by: KrazyGuyPaul
1 Replies

10. UNIX for Dummies Questions & Answers

setting up web server on Red hat 7.2

hi I was successful in installing redhat 7.2 with no problems or error =) (first try) and It took me about 40 minutes to install it on a p233 mmx. It's running Gnome. I have some issues which I'm unsure of how to deal with. 1.How do I install an apache server, or is there one simular that... (11 Replies)
Discussion started by: Special K
11 Replies
Login or Register to Ask a Question