CentOS 4.4 to CentOS 5 Upgrade

General support questions including new installations
daveys110
Posts: 2
Joined: 2007/04/13 09:21:53

CentOS 4.4 to CentOS 5 Upgrade

Post by daveys110 » 2007/04/13 09:25:11

Is there any supported (or unsupported) upgrade path from CentOS 4.4 ServerCD to CentOS 5?

Rgds,
D

arrfab
Site Admin
Posts: 878
Joined: 2005/01/03 21:30:54
Location: /country/belgium
Contact:

Re: CentOS 4.4 to CentOS 5 Upgrade

Post by arrfab » 2007/04/13 10:30:37

Have you at least read the announcement mail ? it contains useful informations regarding upgrade ... : http://lists.centos.org/pipermail/centos-announce/2007-April/013660.html

oliau
Posts: 13
Joined: 2006/06/29 02:35:20
Location: Australia
Contact:

Re: CentOS 4.4 to CentOS 5 Upgrade

Post by oliau » 2007/04/14 10:15:54

FYI I am just in the process of doing this remotely on a server via SSH.

I like to live life on the edge, so I didn't do anything special apart from a "yum clean all" before upgrading. The only third party repository I am using is DAG.

I had problems with python, hal, pcmcia-cs and the rpm database, which I somehow corrupted then had to rebuild. I was forced to reinstall yum and other packages relating to rpm and python manually (ie. not with yum).

I was able to do a "yum upgrade rpm python" successfully, and am now sitting here waiting for "yum upgrade" to complete.

Will post more details when this completes (successfully I hope).

rshol
Posts: 35
Joined: 2005/01/26 18:33:19
Contact:

Re: CentOS 4.4 to CentOS 5 Upgrade

Post by rshol » 2007/04/14 15:19:40

The first machine I tried to upgrade from 4.4 from disk. The upgrade got most of the way through and failed on PERL file. I shut down the machine and rebooted. It booted with some UDEV errors. Did a YUM update, it rebuilt the YUM indexes got the rest of the packages and installed them without a hitch. Re-booted again, this time with no errors on boot, all seems well.

Not what I wanted to have happen. It would scare me to death on my production web server. But it seems to have worked ok on this test server.

carlosap
Posts: 5
Joined: 2007/04/14 17:23:02
Contact:

Re: CentOS 4.4 to CentOS 5 Upgrade

Post by carlosap » 2007/04/14 17:27:47

I did an upgrade from rhel 4 to rhel and It was a pain, some services stopped working mostly because some major upgrades that have rh 5

Some advice from various users from rh was that i run a clean install its better

rshol
Posts: 35
Joined: 2005/01/26 18:33:19
Contact:

Re: CentOS 4.4 to CentOS 5 Upgrade

Post by rshol » 2007/04/15 03:15:06

Upgraded second server running CentOS 4.4 from CD. No GUI is installed and services running include Samba, sshd, cups and webmin (its a file and print server). Everything seems to have gone fine.

hson
Posts: 7
Joined: 2005/09/07 23:56:41

Re: CentOS 4.4 to CentOS 5 Upgrade

Post by hson » 2007/04/15 08:42:28

[quote]
arrfab wrote:
Have you at least read the announcement mail ? it contains useful informations regarding upgrade ... : http://lists.centos.org/pipermail/centos-announce/2007-April/013660.html[/quote]

But its far from clear, it says:
[quote]
- Disable all repositories, except the centos-5 OS and Updates repos
[/quote]

Shouldnt that be "CenOS-4 Base and Update repos"?

[quote]
- download and install the centos-release-5.x rpm, which will update your yum configs
[/quote]

Install how?
"rpm -i" or "rpm -u" and with which flags ("--nodeps --force" or)?


I've tried upgrading a freshly installed 4.4 (minimal install) using these steps:
init 3
rpm -Uvh --nodeps centos-release-5-0.0.el5.centos.2.i386.rpm
yum upgrade

But "yum upgrade" fails with these dependency errors:
Error: Unable to satisfy dependencies
Error: Package hal needs kernel < 2.6.17, this is not available.
Error: Package initscripts needs kernel < 2.6.12, this is not available.
Error: Package lksctp-tools needs kernel < 2.6.10, this is not available.
Error: Package kudzu needs kernel < 2.6.13, this is not available.
Error: Package autofs needs kernel < 2.6.17, this is not available.

erlend_oyen
Posts: 9
Joined: 2006/08/30 14:16:38
Contact:

Re: CentOS 4.4 to CentOS 5 Upgrade

Post by erlend_oyen » 2007/04/15 19:30:28

i have the same problem....

kandrei
Posts: 1
Joined: 2007/04/15 20:17:04
Location: Petrosani, Romania

Re: CentOS 4.4 to CentOS 5 Upgrade

Post by kandrei » 2007/04/15 20:31:49

I had a successful upgrade by first upgrading "centos-release" and "centos-release-notes" packages, then manually upgrading the kernel, rebooting, then removing all other kernels, then manually installing "initscripts", "SysVinit" and "libselinux" (where needed I used --nodeps), then the yum upgrade ran without a hitch.

I must note that I used the centos repositories and the rpmforge one configured for centos 5.

If I'll do an upgrade again soon, I'll post detailed instructions.

jani
Posts: 2
Joined: 2007/04/16 12:25:50
Contact:

Re: CentOS 4.4 to CentOS 5 Upgrade

Post by jani » 2007/04/16 13:55:23

Hello,

What I see is the biggest problem on upgrade from ver. 4.4 to ver. 5.0 the next (at least in my case).

I have installed both X86_64 and I386 (or I686) rpm files installed on server, e.g.:

ImageMagick.x86_64
ImageMagick.i386

When i make yum remove all files with I386 then almost everything was OK :-D
Only problem was been with files like you:

Error: Package hal needs kernel < 2.6.17, this is not available.
Error: Package initscripts needs kernel < 2.6.12, this is not available.
Error: Package lksctp-tools needs kernel < 2.6.10, this is not available.
Error: Package kudzu needs kernel < 2.6.13, this is not available.
Error: Package autofs needs kernel < 2.6.17, this is not available.

and then i install the kernel manually with --nodeps (like rpm -Uvh kernel-2* --nodep)
and then reboot machine (Yes it is rebooting OK :)

and on the end i just make

yum upgrade


of course on the end of upgrade the yum was not working anymore ;), just error:


[root@tower dd]# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named cElementTree

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Mar 14 2007, 19:01:42)
[GCC 4.1.1 20070105 (Red Hat 4.1.1-52)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq





Then I make the next:

rpm -e yum-updatesd-3.0.5-1.el5.centos.2
rpm -e yum-metadata-parser-1.0-8.fc6.x86_64
rpm -e yum-cron-0.1-1.el5.centos.noarch
rpm -e yum-3.0.5-1.el5.centos.2.noarch
rpm -e python-elementtree-1.2.6-7.el4.rf

rpm -i python-elementtree-1.2.6-5.x86_64.rpm
rpm -i yum*


and then yum was working OK..

Of course a lot of thing's are not working yet (like MailScanner, bind, etc...) but I will make
end of this day (I hope) :)

I hope it will help to you..

Jani

Post Reply