DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 22nd July 2008
dk_netsvil dk_netsvil is offline
Real Name: Devon
Fdisk Soldier
 
Join Date: May 2008
Location: New York
Posts: 75
Default How to duplicate an installed Operating Environment

I wanted to start a thread about techniques that members have had experience with that can be used to duplicate an installed OS and set it up on other hardware. I am hoping to remain as OS-neutral as possible and open discussion for software that can be used on Linux, BSD, or Microsoft products. As an administrator I'm usually faced with a situation like this:

A machine running some necessary service begins to have hardware issues. There is a similar piece of hardware that is collecting dust, unused, in the corner. What can I do to copy necessary machine A to dusty machine B?

In the past I've used applications like (what is now known as) Norton Ghost, carbon copy, and server virtualization to create a backup of a server. However, these types of duplication tend to require some kind of downtime. Since I already accumulate several hours of unpaid overtime every week I would rather have, at my disposal, a tool that will allow me to create a live installable backup of an existing server. And, if it isn't too much trouble, a magic lamp which I can rub to get winning lottery numbers.

Can anyone suggest a software package that can accomplish this or point out a tutorial to the forum where additional reading can be found?

Below I have listed some links relating to Carbon Copy and Virtualizing an existing installation. They aren't exactly comprehensive, but if you've already had to perform this type of backup they suggest some alternatives:

Carbon Copy
Virtualizing Linux machines
Ntfsclone for M$

There is also this resource within this forum that is BSD specific using the dump command.

One method I've tested out is combining dd with netcat, but it is very slow and plays poorly with dynamic data. Because I could not locate my original source I will cite another equally good source:
dd if=/dev/my_harddrive | nc <remote_ip> <some_port> and over on the new residence: nc -l -p <some_port> | dd of=/dev/new_harddrive.

I tried this with a 2 gig install of FreeBSD and it took about 40 minutes to copy over, which seemed long. I wasn't able to determine if the bottleneck was the netcat command on the other box or the dd command that the data was getting redirected to. 2 gigs took awhile. 40+ would have been a nightmare.

But, it didn't require me to disrupt services although I did have to perform a dump and restore on the second machine to get the database working as well as change the hostname and IP.

Last edited by dk_netsvil; 22nd July 2008 at 05:49 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Design and Implementation of the FreeBSD Operating System cajunman4life Book reviews 9 27th July 2013 04:04 PM
Operating BSD partitions through XP SunSpyda OpenBSD General 10 16th September 2009 08:22 PM
Advanced programming in the UNIX environment 2nd edition? graudeejs Book reviews 11 1st December 2008 10:15 AM
I. Treating 'iso-itis' in an OpenBSD environment with USBmediazine® J65nko Guides 3 31st July 2008 01:51 AM
Can't use bash on chroot'd openssh environment jploh FreeBSD General 2 18th June 2008 02:12 AM


All times are GMT. The time now is 04:23 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick