LinuxQuestions.org
Visit Jeremy's Blog.
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 02-27-2016, 08:20 AM   #1
packets
Member
 
Registered: Oct 2005
Posts: 339

Rep: Reputation: 32
migrate old server to new hardware


I have an old IBM server running CentOS 6 and I will need to migrate to a new server. The model will not be the same but the specification will be the same. It will be same hard disk, same number of nic cards, etc.

My question is what is the best way to migrate my server? As mush as possible I don't want to reinstall the OS and start from scratch. I am thinking of using Clonezilla. My concern is how to do it. I know Clonezilla is used to clone disk but I haven't use it before.

Any recommendation on how I can properly migrate my old server? TIA.
 
Old 02-27-2016, 08:46 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Are you running a rolling distro? If not, I'd say go for fresh install with latest version of your favorite distro. Use the old box configuration as reference.
 
Old 02-27-2016, 08:57 AM   #3
packets
Member
 
Registered: Oct 2005
Posts: 339

Original Poster
Rep: Reputation: 32
Distro is CentOs 6 and CentOS 7 is out already. I am already thinking to do fresh install and just migrate data. Is just that the risk is high and a bit tedious :-)
 
Old 02-27-2016, 09:55 AM   #4
Chris E
Member
 
Registered: Jun 2008
Location: Berkshire, UK.
Distribution: CentOS
Posts: 31

Rep: Reputation: 2
Unless you really want to there is no need to do a fresh install. I've swapped drives between servers many times with completely different chipsets etc and rarely had issues. CentOS 6 is also more forgiving than earlier releases on detecting hardware.

Two things you will need to do are:

1. Delete or move /etc/udev/rules.d/70-persistant-net.rules - Udev will recreate this file on boot, otherwise your NIC's may not be detected.

2. Update the mac address/HWADDR in /etc/sysconfig/ifcfg-* to match the new NIC's

If you are going to use new drives I would just use dd if they are the same size, or partition manually + rsync the files over.
 
Old 02-27-2016, 10:04 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by packets View Post
Distro is CentOs 6 and CentOS 7 is out already. I am already thinking to do fresh install and just migrate data.
That is the best way to go, in my opinion, ALWAYS. I've had too many issues with old bits of things hanging around after an in-place upgrade, that have caused issues later. A wipe/reload (in my opinion), usually yields better results.
Quote:
Is just that the risk is high and a bit tedious :-)
...and welcome to your job as a systems administrator. This is where your knowledge and training come in to play.

If you're getting a new server, get new hard drives too. Do your install/migration there, and test things...leave your old server in place as a fall-back in case there are issues. When you're done, and have verified that everything is working on the new box, format/reload the old server, and tuck that hard drive away.
 
Old 02-28-2016, 05:01 AM   #6
packets
Member
 
Registered: Oct 2005
Posts: 339

Original Poster
Rep: Reputation: 32
Thanks all for the inputs. I opted to do the fresh install :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Migrate existing OS to new hardware LVsFINEST Linux - Hardware 1 12-07-2013 09:41 AM
Migrate older server to newer one with different hardware MacDragon Linux - Server 1 12-04-2008 04:04 PM
migrate debian into other hardware ? cccc Debian 6 09-30-2008 05:48 PM

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

All times are GMT -5. The time now is 06:31 AM.

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