LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 07-17-2007, 09:20 PM   #1
chantman
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Rep: Reputation: 0
Server Migration - New Install


Hi All,

Here is my scenario. My server is out of warranty, much like my OS (RH 9). So, I'm going to migrate to a VM running on a newer server. My question is... Should I do a fresh install of CentOS in a VM, or upgrade RH 9 to CentOS then image it into a VM?

If I do a fresh install, how hard will it be to migrate over user accounts and settings, as well as mail? Could I get someone to help me with somewhat detailed instructions?

Thanks in advance!

-Mike
 
Old 07-19-2007, 03:57 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
The distance between RH9 and RHEL/CentOS 5 is huge, so you need to do a fresh install. Generally, upgrades from one version to the next are easy, but this is a big leap. You won't be able to just copy configuration files from /etc/, so will need to spend a bit of time configuring the new system to perform the same functions as the old one.

Users *are* relatively easy. You can transfer account settings, but this requires a sound understanding of *NIX to get right, so it may be better to recreate the accounts if you aren't particularly experienced.

Once you have matching accounts you can simply copy the contents of a user home directory between the servers, use chown and chgrp to reset the owner and group, and chmod to reset the permissions - a small shell script will save a lot of time.

If you haven't done shell scripting, this is a great way to start. http://www.linuxcommand.org/ and an hour of your time will give you all you need.

If you are using mbox files then mail is the same principle - copy all of the files from /var/spool/mail/, and then reset the permissions on the files so that the owner is the relevant user account, and the group is the mail server account.
 
  


Reply

Tags
migration, upgrade


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
server-to-server email migration tool. wachaca Linux - Server 5 12-15-2006 09:08 PM
migration from exchange server to sendmail server sailu_mvn Linux - Software 0 05-18-2006 01:55 AM
Mail Server Migration dapeng4001 Linux - Networking 0 11-29-2005 09:40 AM
server migration jdblueaudis4 Linux - Software 1 08-30-2005 01:47 PM
Server Migration seanfitz Linux - Networking 8 10-07-2004 07:13 PM


All times are GMT -5. The time now is 01:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration