LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-17-2012, 08:17 PM   #1
ravindert
Member
 
Registered: Oct 2011
Posts: 68

Rep: Reputation: Disabled
Upgrade the Rhel 2 to Rhel 5


Hi ,


Can any one help over here.

Currently we are running our application running on the Rhel2.1 and now we want to upgrade its to kernel to latest Rhel 5 while keeping all old binary files as it is (dont want to updgrade old binaries like perl, php etc as the application is dependent on the them ) because the application running dependent on the old binary files.

Thanks in Advance for your help!!!!!!!!

Ravinder

Last edited by ravindert; 10-17-2012 at 08:19 PM.
 
Old 10-18-2012, 02:18 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
this is absolutely not possible. The upgrade process can not do this, and packages Perl is an integral part of the operating system, and need to be kept up to date, indeed that is what RHEL IS, it's not possible to upgrade without... upgrading things.
 
Old 10-18-2012, 03:18 AM   #3
grzeslaw
Member
 
Registered: Nov 2008
Posts: 111

Rep: Reputation: 24
As acid_kewpie is is not possbile to not touch the core system files like php and perl.

I suggest you to install a fresh machine, and then move the application there.. And if you have some problems with app, you or sbd else need to made some code correction..

Be aware, that there could be also a secrutiy risk in your code if it is not valid under never php/perl..
I will strongly recomment updateing the code, and OS
 
1 members found this post helpful.
Old 10-18-2012, 09:35 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,710

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by ravindert View Post
Hi ,
Can any one help over here.

Currently we are running our application running on the Rhel2.1 and now we want to upgrade its to kernel to latest Rhel 5 while keeping all old binary files as it is (dont want to updgrade old binaries like perl, php etc as the application is dependent on the them ) because the application running dependent on the old binary files.
Also, the latest RHEL is 6.x, not 5. And, RHEL is a commercial distro. Unless you're going to PAY for RHEL, then you should NOT be using it. Use CentOS instead, since it's 99.x% identical to RHEL, but free. If you're running a server for a company, using RHEL, and not paying for it, that's a colossally BAD IDEA. You will then NOT get bugfixes/security updates/patches, and your entire server will be unstable and easily compromised.

If you ARE paying for RHEL support, you can call Red Hat, and they can try to assist you, but I'll very much agree with the others here. If you have code that's so old (RHEL2 is VERY old), it can only use very old versions of programs, then you need to update them. If you don't want to, then keep using RHEL2...and good luck when the hardware you're on dies, since RHEL2 will NOT support new hardware.
 
Old 10-18-2012, 04:25 PM   #5
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
From the other duplicate (message by me):
I did this before. The truth is that even older Linux server are still in operation, just as many DOS servers are. You (John VV) can't just say: forget about your software, forget about COBOL and Fortran. The real world just doesn't work like that.

As for the problem, I also advice using a fresh CentOS6 base, as you probably don't care about commercial (paid) RedHat support if you were still using 2.1. After installing 6.3, copy your old disk (the whole thing) in /opt/rhel21 by mounting it, then use
Code:
mkdir -p /opt/rhel21;
cp -a /path/to/old/mount/point /opt/rhel21
Then use the "chroot" command to create a jail of the RedHat EL 2.1 in 6.3. I tried other methods such as virtualisation and emulator. They ofter fail because the distribution is so old that it is untested. The jail seem to hold on pretty well compared to other alternatives. When I tried in RHEL5, the newer kernel could run the old binaries (application) without visible drawback. It could even start X application on the native RHEL6.3 display.

So, if you need to migrate RHEL2.1 to RHEL6, you can't, but you can have both running in parallel on the same computer. Remember that this is totally unsupported and may require advanced Linux skill to make it work. After you get the jail working, make an init script to start it during boot (LVL 2 or 3). Booting a jail require custom bootscript, as it is not the same as a native boot (you need to bind /dev, /dev/pts, /sys, /proc and start services manually)

Last edited by Elv13; 10-18-2012 at 04:28 PM.
 
  


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
Upgrade to RHEL 5.3 from RHEL 4.4 only using the kernel rpm of RHEL 5.3 rhystech Red Hat 4 05-28-2012 10:01 PM
upgrade RHEL 4.3 to RHEL 4.8 to fix CIFS bug - best practice? jaredk51 Linux - Enterprise 6 04-19-2010 05:35 AM
how to upgrade from RHEL 5.0 to RHEL 5.3? v_fone Linux - Enterprise 9 11-19-2009 05:46 AM
Upgrade RHEL 3 AS to RHEL 4 AS louisb Linux - Enterprise 8 06-04-2009 02:57 PM
How to upgrade from RHEL 5.1 to RHEL 5.2 louisb Linux - Enterprise 4 01-06-2009 12:13 PM

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

All times are GMT -5. The time now is 11:29 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