CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 4 - General Support
  Migrating RHEL 4 to CentOS

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread Rated:  14 Votes
  •  iampd
      iampd
Migrating RHEL 4 to CentOS
#1
Newbie
Joined: 2006/3/11
From
Posts: 2
Hello, I've got some RHEL 4 systems I'd like to migrate to CentOS 4 but am not quite sure what all I need to do to make it successful. What I've done so far on my test system is:

rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4

up2date --configure
Change noSSLServerURL to http://www.centos.org/XMLRPC
Change serverURL to https://www.centos.org/XMLRPC

Got rid of /etc/sysconfig/rhn/systemid

Successfully ran:

up2date centos-release yum centos-yumconf

Which caused it to load those as well as:

python-elementtree
python-sqlite
python-urlgrabber
sqlite

Finally, ran up2date -u and it installed:

comps
indexhtml
initscripts
redhat-logos


But I'm pretty sure I'm not completely done, for example, I still have
up2date-4.4.67-4 instead of up2date-4.4.50-4.centos4, and I still
have rpmdb-redhat-4-0.20060303 instead of rpmdb-CentOS-4.2-0.20051011

The production machines I want to migrate are running apache and Plesk
so I'm a little nervous about doing this until I am 100% sure what all needs
to change. We've been installing fresh servers using CentOS no problem,
so it's just these old boxes I want to move that worry me.

Thanks,

PD
Posted on: 2006/3/11 21:36
Create PDF from Post Print
Top
  •  iampd
      iampd
Re: Migrating RHEL 4 to CentOS
#2
Newbie
Joined: 2006/3/11
From
Posts: 2
Forgot to mention one other change I made up front. Edit /etc/sysconfig/rhn/sources
and comment out "up2date default" and add the following at the bottom:

yum centos4-Base http://mirror.centos.org/centos/4/os/$ARCH/
yum centos4-Updates http://mirror.centos.org/centos/4/updates/$ARCH/
yum centos4-extras http://mirror.centos.org/centos/4/extras/$ARCH/
#yum centos4-contrib http://mirror.centos.org/centos/4/contrib/$ARCH/
yum centos4-addons http://mirror.centos.org/centos/4/addons/$ARCH/
#yum centos4-centosplus http://mirror.centos.org/centos/4/centosplus/$ARCH/
Posted on: 2006/3/12 15:35
Create PDF from Post Print
Top
  •  PRandal
      PRandal
Re: Migrating RHEL 4 to CentOS
#3
Regular Board Member
Joined: 2006/2/16
From Worcester, UK
Posts: 133
You need to do

rpm -e --nodeps redhat-release

and then try

yum upgrade

You've done all this the hard way, by the way.

I downloaded the following from a CentOS mirror into an empty directory (in my case, they're on my USB memory stick):

centos-release-4-2.1.i386.rpm
centos-yumconf-4-4.3.noarch.rpm
python-elementtree-1.2.6-4.i386.rpm
python-sqlite-1.1.6-1.i386.rpm
python-urlgrabber-2.9.6-2.noarch.rpm
RPM-GPG-KEY-centos4
sqlite-3.2.2-1.i386.rpm
yum-2.4.0-1.centos4.noarch.rpm

Then ran:

rpm --import RPM-GPG-KEY-centos4
rpm -e --nodeps redhat-release
rpm -Uvh *.rpm

then

yum upgrade

I've done this without problems on three boxes so far.

Cheers,

Phil
Posted on: 2006/3/14 10:34
Create PDF from Post Print
Top
  •  devhen
      devhen
Re: Migrating RHEL 4 to CentOS
#4
Peeking in the Member Window
Joined: 2006/4/6
From
Posts: 15
Phil,

I'm moving from RHEL 3 (ES) to CentOS 4.3. I was going to use the CD's and choose the 'Upgrade' option but I'm worried how it'll turn out. Its on a mission-critical web server. Will your yum method above work for me?! What about using the CDs? Any good?

Thanks for any help you can give me, I've got to make the decision between RHEL or CentOS by tomorrow night when we install ;)



Devin
Posted on: 2006/4/6 0:42
Create PDF from Post Print
Top
  •  scoon
      scoon
Re: Migrating RHEL 4 to CentOS
#5
Newbie
Joined: 2006/4/19
From
Posts: 1
I would also be curious about moving from rhel3 to cent4.3.

-scoon
Posted on: 2006/4/19 20:45
Create PDF from Post Print
Top
  •  devhen
      devhen
Re: Migrating RHEL 4 to CentOS
#6
Peeking in the Member Window
Joined: 2006/4/6
From
Posts: 15
Why so, scoon? I decided to stick with Red Hat (we still have almost a year on our subscription) and upgraded from ES 3 to ES 4, Update 3 (essentially centos 4.3, no?) and it was seamless. All of my config files worked, though some needed to be renamed from .rpmsave. I did the upgrade the old fashioned way, via the CDs. The only problems I had were rather simple ones albeit strange, the upgrader installed the non-smb version of the kernel, limiting me to one processor on a dual core xeon system with hyperthreading. Downloaded the smb kernel from Red Hat and fixed that. Besides that, there was a strange problem where apparently 64bit versions of RHEL 4 are missing a kerboros5 file which broke pop3 and imap connectivity. Found the file online and installed it, now I'm running with no problem. Anyone having this problem, just telnet to your pop3 port and it will report on the missing file.

Devin
Posted on: 2006/4/20 19:43
Create PDF from Post Print
Top
  •  tedtarg
      tedtarg
Re: Migrating RHEL 4 to CentOS
#7
Newbie
Joined: 2006/5/29
From
Posts: 1
I too am curious about migrating RHEL 3 and/or 4 to Centos 4.3 ... Has anyone done so? I was assuming the safest way would be to put the ISO disks in and do "Upgrade" just like you'd do with a RHEL .... does anyone have any experience with this?

TedT
Posted on: 2006/5/29 2:03
Create PDF from Post Print
Top
  •  pattobw
      pattobw
Re: Migrating RHEL 4 to CentOS
#8
Newbie
Joined: 2006/8/20
From
Posts: 1
Phil,

Thanks for your post. After my student subscription expired, I was faced with paying out of my own pocket the fees for RHEL 4 upgrade subscription services. I tried Fedora Core 5, but it broke too my of my commercial software applicaitons. With your post, I was able to seamlessly switch over to CentOS. I liked the yumex uitlity in Fedora much better than up2date on RHEL. Now, I have the best of both worlds.

Thanks again,
Bruce
Posted on: 2006/8/20 18:39
Create PDF from Post Print
Top
  •  scansterz
      scansterz
Re: Migrating RHEL 4 to CentOS
#9
Newbie
Joined: 2006/8/21
From
Posts: 1
Quote:

iampd wrote:


The production machines I want to migrate are running apache and Plesk
so I'm a little nervous about doing this until I am 100% sure what all needs
to change. We've been installing fresh servers using CentOS no problem,
so it's just these old boxes I want to move that worry me.

Thanks,

PD


Did you ever try this on your PLESK server?
I am about to. I will try it on two test machines. One without Plesk. Then one with Plesk installed.
Any advice will be helpfull.
Posted on: 2006/8/21 13:05
Create PDF from Post Print
Top
  •  morphal
      morphal
Re: Migrating RHEL 4 to CentOS
#10
Newbie
Joined: 2006/11/1
From
Posts: 1
I'd be very interested to hear some success stories on this method. We've currently got Apache, Postfix, Dovecot, Webmin, and possibly a few other things running on this server. Is it really just as simple as running this handful of commands that Phil has posted for us?

I wouldn't mind paying for Red Hat support as much if they offered a reasonable level of it. Either you pay through the nose and get average support or you pay a reasonable amount with a two-day response time. That's unacceptable.

I've thought of switching to other distributions entirely but the migration seems daunting and the time involved might be enough by itself to justify paying for the minimal level Red Hat support just so I don't have to be bothered with it..
Posted on: 2006/11/1 17:53
Create PDF from Post Print
Top
  •  andreas1234567
      andreas1234567
Re: Migrating RHEL 4 to CentOS
#11
Newbie
Joined: 2006/11/18
From
Posts: 2
Yesterday, I successfully migrated my RHEL 4 system to CentOS 4 using the procedure described by Phil above. There was one exception, however: I did not find the centos-yumconf package. Nevertheless, the upgrade went smooth as silk and was finished in less than 10 minutes. My environment is a typical LAMP-setup that includes Apache, MySQL and Perl. I've had no problems so far. I would recommend a full backup prior to upgrading though, e.g. using mondoarchive.

# Download rpm packages from a CentOS mirror of choice
RPM-GPG-KEY-centos4
centos-release
centos-yumconf
python-elementtree
python-sqlite
python-urlgrabber
sqlite
yum

# Import gpg key
rpm --import RPM-GPG-KEY-centos4

# Remove redhat dependencies
rpm -e --nodeps redhat-release

# Install the centos packages above
rpm -Uvh *.rpm

# Upgrade the installation
yum upgrade

Andreas
--
Posted on: 2006/11/18 13:32
Create PDF from Post Print
Top
  •  billwest
      billwest
Re: Migrating RHEL 4 to CentOS
#12
Regular Board Member
Joined: 2006/11/19
From Perth, Western Australia
Posts: 122
I would be interested too on the results of upgrading from RHEL3 to Centos4.
In fact, I am considering upgrading RHEL2 (with Oracle) to Centos4.

Does anyone foresee any problems?

Thanks,

Bill.

_________________


Local Area Network in Australia, the LAN Down Under.
Posted on: 2006/11/24 0:45
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com