LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-24-2014, 11:18 AM   #1
HereSomeHow
LQ Newbie
 
Registered: Jan 2011
Distribution: CentOS 5,6 and MythBuntu
Posts: 2

Rep: Reputation: 0
How to Clone Server to different Hardware (including different HDD's)


I've been googling this for a while and can't find a complete answer to this:

I'va an old PC running Centos 5 as a server, very reliable for years but one of it's HDD is starting to show age, so it's time for a renew.

The server consists of 3 old IDE 40GB HDD's, using LVM to add up the space, one of them has the original partition that boots the OS.

I need to clone the server to a new machine, that has been assigned to the task, but my problem is that it only has 1 320Gb HDD, and I'm stuck as how should I proceed.

How should I clone the server, so all of it's services remain working when the new one boots?

The server provides file sharing (easy to clone), an OpenFire chat server (also easy), and a weird homemade mail sending service (to do mass sending of emails to clients in the thousands scale) for which there is no documentation, so cloning the whole system is a must for this case.

Also, if possible I would rather do a hot clone of the server, because it's heavily used (to read files, not much writing).

Thanks for your time reading this.
 
Old 09-26-2014, 08:17 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Hi HearSome,
As best as I can understand your predicament, I might try virtualizing the server first. If you can convert it to image and instance you'll have more latitude to deal with the migration problem (nothing is eternal, least of all CentOS 5.).
I don't normally "clone" physical machines, especially if they are a RHEL derivative. Get their package manifest, let Spacewalk rebuild them, and then migrate one-off apps and data to them manually. Smoke test them and if they pass, deploy them.
You may find that your mailer program is a shell script and easily migratable. If that were the case, I'd lean even more heavily toward virtualizing it.
Hope that helps.
 
Old 09-26-2014, 08:39 PM   #3
bitsource
LQ Newbie
 
Registered: Sep 2014
Location: Guthrie, OK
Distribution: Ubuntu 14.04 , openSUSE 13.1
Posts: 10

Rep: Reputation: Disabled
LVM snapshot: http://tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html

But, yes, it is much easier to clone a VM. I use Xenserver.
 
Old 09-27-2014, 12:59 AM   #4
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
P-to-V that bad boy onto kvm.
 
Old 10-06-2014, 02:39 PM   #5
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 200

Rep: Reputation: 22
If you have the money, vmware has hotclone software to clone to a vcenter server. The you can just power down the old machine and power up the new one.
If it's not a very big drive, I'd just power it down and clonezilla that bad boy. It doesn't take that long to do a few 100GB's.
 
Old 10-06-2014, 03:31 PM   #6
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
P2V is the easiest. Then you can migrate the data to a newer version

You should probably take advantage of this opportunity to get off of CentOS5, and onto CentOS 6 or 7.
 
Old 10-07-2014, 11:11 AM   #7
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 200

Rep: Reputation: 22
For the love of god do not use Centos 7!
 
Old 10-07-2014, 11:32 AM   #8
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
For the love of god why not?
 
Old 10-16-2014, 11:32 AM   #9
HereSomeHow
LQ Newbie
 
Registered: Jan 2011
Distribution: CentOS 5,6 and MythBuntu
Posts: 2

Original Poster
Rep: Reputation: 0
The VM route was not possible, because even the "new" hardware is way better than the old one, It's too lame to drive it trough virtualization.

As dijetlo pointed out, the mailing "system" was batch based, so finally copying the scripts and recreating the crontable on the destination machine did the trick. The rest was a matter of rsync overnight when the server is not used.

Thanks for your time.

P.D.

Centos 7... I installed it first, and feeled lost in it, looked almost the same as Centos 6 but didn't grasp where went some options, so Centos 6 was the choice.
 
Old 10-16-2014, 11:50 AM   #10
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
Different /= bad

Fedora 20/RHEL 7/CentOS 7 just a take a bit to grow on you. After that, they're good.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clone Server to New Hardware dzollinger Linux - Server 9 03-15-2011 09:17 PM
getting clone of hdd divyashree Linux - Newbie 11 09-12-2010 01:56 PM
I need to Clone a Red Hat drive and install clone in HP server drummer54 Linux - Newbie 14 03-07-2009 04:15 PM
some hardware, including monitor not configured Whatshisface Linux - Newbie 3 02-15-2008 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration