 |
 |
 |
 |
| Linux Chat The place to talk about anything linux-related outside of Fedora |

13th October 2008, 08:03 PM
|
|
Registered User
|
|
Join Date: Oct 2008
Location: Dallas, Texas, USA
Posts: 3

|
|
|
Migrate from RHEL to Fedora or CentOS?
For various reasons, a friend of mine would like to walk away from an x86 RHEL 4 license and consider using Fedora or CentOS instead. No matter what approach is taken, it will be a distraction from business as usual. So, this manager is looking for the "lesser of evils".
There are very few applications installed on the subject server: - Apache web server + Perl CGI scripts
- Oracle database server
No matter what course of action is taken, I'll help this friend export+backup all of the web configuration files, web objects, Perl CGI scripts, database tables, database DDL scripts, client application source code, and user directory tree contents. Fortunately, this manager maintains good notes and keeps the important items in a couple of trees. Also, an independent backup system receives deltas every night via FTPS after end of day processing. So, this business is in good shape for a migration.
We were curious about doing a conversion to either Fedora or (perhaps) CentOS instead of re-creating the world. We have time. This will probably take place during the last 2 weeks of the year (relatively "dead" time for the business).
Questions:
1 - Is an "upgrade" to Fedora even possible? Been done before?
2 - Would CentOS 5 be a closer fit and, therefore, lower risk?
3 - Or does doing a ground-up make more sense? (That would be my approach if it were MY business.)
Thank you in advance.
|

13th October 2008, 08:05 PM
|
 |
Retired Community Manager
|
|
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376

|
|
|
( Moved to Linux Chat )
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
|

13th October 2008, 08:11 PM
|
 |
Retired Administrator
|
|
Join Date: Oct 2006
Posts: 21,509

|
|
It would be possible to update to CentOS 5 ( it's real easy )
Code:
su
rpm -Uvh http://ftp.heanet.ie/pub/centos/5.2/os/i386/CentOS/centos-release-5-2.el5.centos.i386.rpm
yum clean all
yum update
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
|

13th October 2008, 08:14 PM
|
 |
Registered User
|
|
Join Date: Feb 2005
Location: Lansing, Mi
Age: 28
Posts: 2,222

|
|
|
yes centos is essentially rhel just without the copyrighted graphics etc. the code is the same. fedora is far more bleeding edge. i would recommend centos over fedora for a production server any day of the week
|

13th October 2008, 10:37 PM
|
|
Registered User
|
|
Join Date: Oct 2008
Location: Dallas, Texas, USA
Posts: 3

|
|
Thanks all for the replies.
One last (not so small, perhaps) thing: There is no `yum` on this RHEL4. I don't know why or when yum might have been introduced to RHEL.
If installing centos-release-5-2.el5.centos.i386.rpm "registers" the system with Centos so that running up2date will work, then probably, this code will work just as well:
sudo rpm -Uvh http://ftp.heanet.ie/pub/centos/5.2/...entos.i386.rpm
sudo up2date --nox -u Or does someone think that I ought to install just `yum` with up2date and do the mass update with yum?
sudo rpm -Uvh http://ftp.heanet.ie/pub/centos/5.2/...entos.i386.rpm
sudo up2date --nox yum
sudo yum update Of course, if either code set doesn't work, then we have to strongly consider a re-build.
Here is the content of that RPM file: /etc/issue
/etc/issue.net
/etc/pki/rpm-gpg
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
/etc/pki/rpm-gpg/RPM-GPG-KEY-beta
/etc/redhat-release
/etc/sysconfig/rhn
/etc/sysconfig/rhn/sources
/etc/yum.repos.d
/etc/yum.repos.d/CentOS-Base.repo
/etc/yum.repos.d/CentOS-Media.repo
/usr/share/doc/centos-release-5
/usr/share/doc/centos-release-5/EULA
/usr/share/doc/centos-release-5/GPL
/usr/share/doc/centos-release-5/autorun-template
/usr/share/eula/eula.en_US
/usr/share/firstboot/modules/eula.py
/usr/share/firstboot/modules/eula.pyc
/usr/share/firstboot/modules/eula.pyo Thanks in advance.
|

14th October 2008, 12:59 AM
|
 |
Registered User
|
|
Join Date: May 2007
Location: U.S.
Posts: 4,852

|
|
Quote:
Originally Posted by lemon8h8ead
Thanks all for the replies.
One last (not so small, perhaps) thing: There is no `yum` on this RHEL4. I don't know why or when yum might have been introduced to RHEL.
If installing centos-release-5-2.el5.centos.i386.rpm "registers" the system with Centos so that running up2date will work, then probably, this code will work just as well:
sudo rpm -Uvh http://ftp.heanet.ie/pub/centos/5.2/...entos.i386.rpm
sudo up2date --nox -u Or does someone think that I ought to install just `yum` with up2date and do the mass update with yum?
sudo rpm -Uvh http://ftp.heanet.ie/pub/centos/5.2/...entos.i386.rpm
sudo up2date --nox yum
sudo yum update
|
Are you talking about "upgrading" from RHEL4 to CentOS 5? I've not used RH at all, but I have used CentOS, and it seems that there's too much difference between the two to switch from one to the other without a fresh install.
Is that what you were getting at, Leigh - that you can "upgrade" a running RHEL box to CentOS? Seems far-fetched, but I can be an idiot sometimes.
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
|

14th October 2008, 06:00 AM
|
|
Registered User
|
|
Join Date: Oct 2008
Posts: 299

|
|
|
Yeah, if you want the latest packages, get fedora. If you want stability, go CentOS.
__________________
Intel Core 2 Quad Q8400 CPU (2.66 GHz)
3gb RAM
500GB HD
Debian Lenny x86_64 & Windows 7 Ultimate x64
NVIDIA GeForce 9800 GTX+ Superclocked - Fattypack
Second(Server) PC:
512mb RAM
80gb TiVO HD(Lololol, took it from TiVO, old one broke)
PC-BSD 7.1.1 x86
Ossom router decked out with DD-WRT as a bridge providing net
Sign the Online Petition to bring Crysis 2 to Linux/Mac!
|

14th October 2008, 06:07 AM
|
 |
Retired Administrator
|
|
Join Date: Oct 2006
Posts: 21,509

|
|
Quote:
Originally Posted by tjvanwyk
Are you talking about "upgrading" from RHEL4 to CentOS 5? I've not used RH at all, but I have used CentOS, and it seems that there's too much difference between the two to switch from one to the other without a fresh install.
Is that what you were getting at, Leigh - that you can "upgrade" a running RHEL box to CentOS? Seems far-fetched, but I can be an idiot sometimes. 
|
RHEL & CentOS are basically the same OS so the update should be easy .
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
|

14th October 2008, 06:10 AM
|
 |
Retired Administrator
|
|
Join Date: Oct 2006
Posts: 21,509

|
|
Quote:
Originally Posted by lemon8h8ead
Thanks all for the replies.
One last (not so small, perhaps) thing: There is no `yum` on this RHEL4. I don't know why or when yum might have been introduced to RHEL.
If installing centos-release-5-2.el5.centos.i386.rpm "registers" the system with Centos so that running up2date will work, then probably, this code will work just as well:
sudo rpm -Uvh http://ftp.heanet.ie/pub/centos/5.2/...entos.i386.rpm
sudo up2date --nox -u Or does someone think that I ought to install just `yum` with up2date and do the mass update with yum?
sudo rpm -Uvh http://ftp.heanet.ie/pub/centos/5.2/...entos.i386.rpm
sudo up2date --nox yum
sudo yum update Of course, if either code set doesn't work, then we have to strongly consider a re-build.
Here is the content of that RPM file: /etc/issue
/etc/issue.net
/etc/pki/rpm-gpg
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
/etc/pki/rpm-gpg/RPM-GPG-KEY-beta
/etc/redhat-release
/etc/sysconfig/rhn
/etc/sysconfig/rhn/sources
/etc/yum.repos.d
/etc/yum.repos.d/CentOS-Base.repo
/etc/yum.repos.d/CentOS-Media.repo
/usr/share/doc/centos-release-5
/usr/share/doc/centos-release-5/EULA
/usr/share/doc/centos-release-5/GPL
/usr/share/doc/centos-release-5/autorun-template
/usr/share/eula/eula.en_US
/usr/share/firstboot/modules/eula.py
/usr/share/firstboot/modules/eula.pyc
/usr/share/firstboot/modules/eula.pyo Thanks in advance.
|
I would use yum to update .
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
|

14th October 2008, 06:38 AM
|
 |
Retired Again - Administrator
|
|
Join Date: Nov 2007
Location: Reality
Posts: 3,034

|
|
RHEL and CentOS packages are allegedly interchangeable - in most cases they're compiled from exactly the same source, so they should be. Here, though, you're upgrading from one major release to the next, so there's risk of breaking something. From what I've read on the web, CentOS <5.0 can't be upgraded successfully to CentOS 5.x due to too many interdependencies .... but there may be fixes.
It would be interesting to see if it worked. If willing to try, I would:
a. get yum (any version)
b. install the CentOS 5.2 release rpm
c. check CentOS 5.2 is your only enabled repo (just in case)
d. update yum separately:
e. then upgrade the rest of the system:
I'd also be prepared to do a fresh install if the above fails.
Here are a couple of sites with useful advice:
http://www.cyberciti.biz/tips/upgrad...-51-to-52.html
http://www.silfreed.net/content/centos-upgrade-success
Edit: Even though we normally accept that yum upgrade and yum update now do exactly the same thing (due to obsoletes=1 being set in yum.conf), if you're getting yum from CentOS, I don't know what the default setting in yum.conf will be, hence the suggestion of yum upgrade. Alternatively, you could use yum update --obsoletes.
__________________
.
Marching to the beat of his own conundrum.
Last edited by Evil_Bert; 14th October 2008 at 06:58 AM.
|

14th October 2008, 07:56 AM
|
 |
Retired Again - Administrator
|
|
Join Date: Nov 2007
Location: Reality
Posts: 3,034

|
|
Quote:
Originally Posted by lemon8h8ead
... this manager is looking for the "lesser of evils" ...
|
Having thought about it a bit more ...
Have you considered jus changing to CentOS 4.x? CentOS 4 will remain supported until Feb, 2012, which will give you time to consider other measures - you may even plan on replacing hardware in that timeframe or moving to a virtualised server, in which case, you'd need to do a fresh install then, anyway. So changing to CentOS 4.x may give you what you want now with minimum pain.
Changing from RHEL 4.x to CentOS 4.x seems to be relatively routine. Here's one guide:
Converting RHEL 4 to CentOS 4.
__________________
.
Marching to the beat of his own conundrum.
|

14th October 2008, 10:23 AM
|
|
Registered User
|
|
Join Date: Jan 2005
Posts: 5,002

|
|
|
Download the CentOS 5.2 dvd and do a proper upgrade.
SJ
__________________
Do the Math
|

21st October 2008, 04:35 AM
|
|
Registered User
|
|
Join Date: Oct 2008
Location: Dallas, Texas, USA
Posts: 3

|
|
|
Converting RHEL 4 to CentOS 4 - Done
I followed the following procedure verbatim and it worked like a charm:
http://www.cse.ucsd.edu/deptadmin/cs...o_centos4.html
Thank you, Evil Bert.
It turns out someone at UCSD had developed a shell script to automate the process (at the bottom of http://www.cse.ucsd.edu/deptadmin/cs..._overview.html). I did the manual procedure which did not take very long.
Thanks also to everyone else for the other comments.
Last edited by lemon8h8ead; 21st October 2008 at 04:41 AM.
|

21st October 2008, 08:57 AM
|
 |
Retired Again - Administrator
|
|
Join Date: Nov 2007
Location: Reality
Posts: 3,034

|
|
Quote:
Originally Posted by lemon8h8ead
Thank you, Evil Bert.
|
You're welcome. We like to see satisfied customers.
(Maybe now is a good time to ask the Admin's for that raise .....  )
__________________
.
Marching to the beat of his own conundrum.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 02:23 (Sunday, 19-05-2013)
|
|
 |
 |
 |
 |
|
|