Showing results for 
Search instead for 
Did you mean: 

Duplicate a server

Go to solution
Super Advisor

Duplicate a server

I know we can setup the Acronis for the system and backup and recovery, I mean one of the methods I used before in my earlier project. But don't have that much time to setup Acronis(will take long time to buy and setup).

In this new project I need to duplicate a kickstart server as we only have a production, which I was inherited when I took this project. Since we don't have a backup, I am concerned if something happens to the current server, we are lost. So as a backup, I want to create a dev node as a backup. So now, I need a quick setup to replicate the kickstart, which is running linux 5.2. So how can I approach this?

On a new server, I will install linux 5.2 and then can I copy(dd) the data from prod server to the dvd and apply on the new server? Or any better ideas?

Thank you for your time.
Frequent Advisor

Re: Duplicate a server

You can use mondorescue

These exist .rpm packages, and installation is very easy. Once you install it, you can make exact copy of your system and burn it to CD/DVD, copy to USBs, HD, whatever you want.

Here is documentation

Copy of working system on ( eg ) DVDs, you save and use it in case of problem.
Recovery is simple, you can recover some files, partitions, whole system.
Do not forget to check are media written correct after making them

Hope this helps

Honored Contributor

Re: Duplicate a server

+1 to the mondorescue suggestion.

A tar (or dd) would also work, but mondorescue is far more convenient as it even allows to restore to bare metal, automatically creating partitions and everything.
Super Advisor

Re: Duplicate a server

Thank you Elko. sounds good, I will install Mondo. But when I try to download I see whole bunch of the software versions at the site. I am not sure what mindi version will go with mondo, and so on. Can you please let me know what versions will be suitable for the following version:

[root@server etc]# cat redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
[root@server etc]# uname -a
Linux server.local 2.6.18-92.1.10.el5 #1 SMP Wed Jul 23 03:55:54 EDT 2008 i686 i686 i386 GNU/Linux
[root@server etc]#

Thank you.
Respected Contributor

Re: Duplicate a server

I like to use clonezilla for these kind of things. But you could also try ping or g4u.
Frequent Advisor

Re: Duplicate a server

As you have RHEL 5.2


First install mindi-busybox, then mindi and mondo.

Please read at least first 20 pages of .pdf on mondorescue. it is very clear written, In PDF document you have more information how to start mondo, how to create backup, on DVDs or as iso images. Once you start mondo, you can experiment with it and find what best suit you.

Important : Once you create backup media, please verify them. I mean, before you consider they are ok, try to recover system from them, just to be sure backup media is ok and working .
Murphy never sleep :)
Super Advisor

Re: Duplicate a server

Thank you Elko. I did install successfully in the morning. But now, I am trying to backup and failed both when I tried to dvd and cd. I guess dvd should be specific DVD+RW or DVD-RAM, and I have is DVD-R and failed. So I tried with CD-R and it failed too. Help needed badly. see the details:

[Main] libmondo-fork.c->eval_call_to_make_ISO#179: Basic call 'cdrecord -eject -v (null) fs=4m dev=/dev/cdrom
speed=8 //mondo.tmp.2vkx6w/temporary.iso' returned an error.
Press ENTER to continue.
mkisofs and/or cdrecord returned an error. CD was not created
Making an ISO (CDR #1)...failed to write
[Main] libmondo-devices.c->is_this_device_mounted#1132: Is /dev/cdrom mounted?

I really like if DVD works. Any ideas?
Thank you
Exalted Contributor

Re: Duplicate a server


Depending on the model of DVD/CD-Writer you have, writing to that media can be problematic.

Much better to create iso files on an NFS Share, or even local disk, which you can copy across the network to become the building blocks of new systems.

Steven E Protter
Owner of ISN Corporation
Frequent Advisor

Re: Duplicate a server

When you run


then will show up blue screen with red options
1) cd-r disks
2) dvd disks
3) tape
and so on,

please choose option hard disk, next step is to choose path, after that is compression, then it says
" Please enter how big you want each ISO image to be (in megabytes). This should be less..DVD's (4480) you plan to backup to. ""

choose there size ( or accept default 4480 for DVD image ) for iso image size.
After that give it a name and wait on it to finish. It will make iso image at path you choosed above.
After that you can burn image on same machine or use scp to copy it to some other machine and burn it.
That image or images are copy of your system.

When decide to recover system, boot up from first of media you made and follow steps.
I think option "nuke" will back system at state when images were made. It is also possible to recover some files/dirctories.

Super Advisor

Re: Duplicate a server

Thank you Steven. Also thank you Elko. Now, I backed to the local disk and has 7 iso images. so now how I can I burn it to the dvd? Do I need to mount the dvd and then copy to that? Or I have a ntfs USB drive but can't mount that on linux. Is there any other way, so that I don't need to have 7 DVDs? I am so excited, once this works I want to try the restore.

Restore questions: Can I restore from dvd(once I am done)on any other node or it should be hardware specific? I am planning to restore to a dell laptop.

Thank you for all your valuable time and help.