- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Duplicate a server
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2010 05:19 PM
02-24-2010 05:19 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2010 01:24 AM
02-25-2010 01:24 AM
Solutionhttp://mondorescue.org/
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
http://mondorescue.org/docs.shtml
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
Elko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2010 01:43 AM
02-25-2010 01:43 AM
Re: Duplicate a server
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2010 05:39 AM
02-25-2010 05:39 AM
Re: Duplicate a server
[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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2010 05:53 AM
02-25-2010 05:53 AM
Re: Duplicate a server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2010 06:29 AM
02-25-2010 06:29 AM
Re: Duplicate a server
mindi-busybox-1.7.3-1.rhel5.i386.rpm
mindi-2.0.7.2-1.rhel5.i386.rpm
mondo-2.2.9.2-1.rhel5.i386.rpm
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 :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2010 10:31 AM
02-25-2010 10:31 AM
Re: Duplicate a server
[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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2010 12:10 PM
02-25-2010 12:10 PM
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.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2010 12:35 PM
02-25-2010 12:35 PM
Re: Duplicate a server
mondoarchive
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2010 11:19 AM
02-26-2010 11:19 AM
Re: Duplicate a server
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2010 12:44 PM
02-26-2010 12:44 PM
Re: Duplicate a server
I would never not rely on DVD's for a backup!
They degrade are easily misplaced and take forever to restore. Use your network and another server to make a backup. Of course you should also implement an offsite disaster recovery plan when the server is really important.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2010 01:01 PM
02-26-2010 01:01 PM
Re: Duplicate a server
I want to replicate an existing server to the laptop. So I thought to burn the forst iso image to the dvd. So I burned to the DVD but it is failing to restore at the partition table as /dev/hda1 is tiny.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 08:06 AM
03-01-2010 08:06 AM
Re: Duplicate a server
It says /dev/hda doesn't contain a valid partition. And asks me to edit the following:
Device Mountpoint Format Size(B)
/dev/hda2 lvm lvm 4278
/dev/VolGroup000/LogVol00 / ext3 0
/dev/hda1 /boot ext3 11
/dev/VolGroup000/LogVol01 swap 0
So asks me to edit the mount list and /dev/hda is tiny.
so what needs to change? I get the command prompt but I don't know what to change?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2010 09:43 AM
03-01-2010 09:43 AM
Re: Duplicate a server
Download some version of Linux that runs out of CD (like Knoppix) and boot the destination server with this CD.
on source machine:
dd if=/dev/hda (or whatever devicename stands for the hard drive) | netcat targethost-IP 1234
on target machine:
netcat -l -p 1234 | dd of=/dev/hda (or whatever devicename stands for the hard drive)
http://www.linuxquestions.org/linux/answers/Applications_GUI_Multimedia/How_To_Do_Eveything_With_DD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2010 10:57 AM
03-02-2010 10:57 AM
Re: Duplicate a server
Thank you for your reply. So can I follow the below steps:
targethost-IP=192.168.1.2
targethost harddisk size: 320G
Source hardisk size:
[root@server log]# pvdisplay
--- Physical volume ---
PV Name /dev/hda2
VG Name VolGroup00
PV Size 74.41 GB / not usable 31.09 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 2380
Free PE 0
Allocated PE 2380
PV UUID Ngsx2A-O85C-PDal-dGGq-9DQe-Wann-1XeHnB
[root@server log]#
1) Install the base O/S(Linux 5.2) on target machine.
2) On source machine:
dd if=/dev/hda2 | netcat 192.168.1.2 1234
3) On target machine:
netcat 192.168.1.2 1234 | dd of=/dev/sda
Will this work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2010 06:04 AM
03-04-2010 06:04 AM
Re: Duplicate a server
I only able to restore until the following state:
Restoring from archives
Restoring data from the archives, please wait. This may take some time.
Restoring from fileset # 152 on CDR #1
7:47 taken 49:42 remaining
13% done 87% to go
So any idea, why it is stopping after that? I tried 4 or 5 times, still stopping at the same place at 13%. Any ideas?
Thank you