Parallel move from RHEL4 to CentOS4

General support questions including new installations
Post Reply
reichhartkg
Posts: 26
Joined: 2005/04/05 06:24:31
Location: Burlington, VT
Contact:

Parallel move from RHEL4 to CentOS4

Post by reichhartkg » 2005/04/09 04:45:00

Here's what I did, what happened as a result and a few (probably unwelcome) observations.

I started with a not-too-important file server running RHEL 4. It was up2date about 2 weeks ago when I lost my entitlements. If things go horibly wrong, I don't care as long as it doesn't touch the data partitions. Even then, I'm the only one affected and it's just 500GB of music that took me five years to collect (sniff).


I downloaded the CDs from all of the US FTP mirrors and they all passed MD5 check but none of them passed the RH disk check at the beginning of the install. After spending over a week downloading and burning many ISOs on a Gateway 3600 running XP, re-installing XP, swapping cd burners, trying a few different software packages and wasting many, many CDs, I decided to go forward and pretend a MD5 check is good enough. If this doesn't work, I'll try downloading with BT and burning on my Ubuntu laptop.


Boot from CD1

At boot prompt, type:

[i]linux upgrade any[/i]

Follow steps to upgrade. The entire upgrade only took a few minutes. Before it started, it said I would need all four disks but only asked for 1, 3 and 4.

The above steps appear to have done nothing. Maybe the move was a little too parallel.

Next is to try a yum upgrade (stolen from http://www.centos.org/modules/newbb/viewtopic.php?topic_id=654&forum=27&post_id=1770#forumpost1770)

[i]rpm --import http://www.gtlib.gatech.edu/pub/centos/4.0/os/i386/RPM-GPG-KEY-CentOS-4[/i]
[i]wget http://www.gtlib.gatech.edu/pub/centos/4.0/os/i386/CentOS/RPMS/centos-release-4-0.1.i386.rpm[/i]
[i]wget http://www.gtlib.gatech.edu/pub/centos/4.0/os/i386/CentOS/RPMS/centos-yumconf-4-2.noarch.rpm[/i]
[i]wget http://www.gtlib.gatech.edu/pub/centos/4.0/os/i386/CentOS/RPMS/yum-2.2.0-1.centos4.2.noarch.rpm[/i]
[i]rpm -Uvh --force centos-release-4-0.1.i386.rpm centos-yumconf-4-2.noarch.rpm yum-2.2.0-1.centos4.2.noarch.rpm[/i]
[i]yum update[/i]

Failed. looks like mod_ssl-2.0.52-9.ent.centos4.1 didn't remove mod_ssl-2.0.52-9.ent when the CD installed it.

[i]rpm -ev mod_ssl-2.0.52-9.ent[/i]
[i]yum update[/i]

Succeeded.



15 packages updated by yum that the CD installer missed. I checked and none of those 15 packages left their RH counterparts behind. However, five of those 15 packages have RHEL in thier names.

No kernel update so no reboot required. Well, that's not necessarily true but if I reboot the server I just upgraded, my music will go away again, so it will have to wait until I'm ready to give up on being productive and play Halo 2.

After excluding things like webmin that contain many distributions' names and /var/spool/up2date, 361 files have "redhat," "red hat," or "rhel" in their name. Keep in mind that this machine has been kept up2date from RHL8 or 9 to RHEL 4, so a lot of those files may not exist on a new install or even one that hasn't been updated quite so many times.

The only files that contained those words were grub.conf (menu.lst) and two kernels (probably the builder's email). Since I already had the latest kernel, neither the CentOS install nor yum installed a CentOS kernel, so again, these may not exist on a new install, and therefore not be subject to RH's licensing issues.



My not-too-important file server seems to be happy running on CentOS 4.1 now (pre-reboot). Sometime in the next week or so I'll decide whether to upgrade my firewall or web/mail server from RHEL 3 to CentOS 4.1 and post the results here.

reichhartkg
Posts: 26
Joined: 2005/04/05 06:24:31
Location: Burlington, VT
Contact:

Re: Parallel move from RHEL4 to CentOS4

Post by reichhartkg » 2005/04/11 13:33:13

I did the first RHEL 3 -> CentOS 4 upgrade on my web/mail server today.

It was a disaster.

It took all day (minus one 1/4 dog walk and one two mile bike ride).

After the first failed install attempt, the system was unbootable. I booted off the first CD in rescue mode and looked at /root/upgrade.log. It choked on renaming /etc/httpd/log. I removed that directory and exited.

The second attempt died on httpd again. I booted into rescue mode again. This time, it choked on renaming /etc/httpd/modules. I chrooted to /mnt/sysimage and tried to rpm -e it but rpm said httpd wasn't installed. I backed up /etc/httpd/ /var/www & /var/log/httpd and then removed them and all httpd-related binaries. Exit and try again.

Third try worked. Rebooted and it came up.

sshd, apache, samba and postfix weren't running.

I tried to start postfix. Nope. Apparently, the installer renamed my /etc/postfix/aliases and aliases.db to .rpmsave and created the stock files as .rpmnew. I moved my files back and started it up and for the first time in about 12 hours, I'm accepting mail.

sshd gave me the following error:
error while loading shared libraries: libcom_err.so.3: cannot open shared object file: No such file or directory
The solution was:
ln -s /usr/lib/libcom_err.so /usr/lib/libcom_err.so.3

httpd wasn't set to start (probably because I had manually removed the init scripts):
chkconfig httpd on
I started httpd and it came up. I stopped httpd and then replaced the stock /etc/httpd/ with my backup and tried to start it and it choked on lib_php. I removed /etc/httpd/conf.d/php.conf and apache started. The error I was getting:
Cannot load /etc/httpd/modules/libphp4.so into server: libpspell.so.4: cannot open shared object file: No such file or directory
ln -s /usr/lib/libpspell.so.15 /usr/lib/libpspell.so.4
Cannot load /etc/httpd/modules/libphp4.so into server: libcurl.so.2: cannot open shared object file: No such file or directory
ln -s /usr/lib/libcurl.so.3.0.0 /usr/lib/libcurl.so.2
Cannot load /etc/httpd/modules/libphp4.so: undefined symbol: new_pspell_config
I guess it didn't like me linking .4 to .15. I removed the link and then unsintalled php and aspell (and all dependent packages) and reinstalled them and it still didn't work. I removed php.conf and started it up. At least now internetseer will stop flooding my mailbox.

Samba errors:
nmbd: error while loading shared libraries: libcom_err.so.3: cannot open shared object file: No such file or directory
I haven't really looked at this one yet.

It's 2am, I'm accepting mail and my web server is up so I'll deal with php (currently only effects webmail on a server with one user) and samba tomorrow. If anyone can come up with a solution to these problems, you would be the coolest person in the world.

This machine was a clean build when I installed RHEL AS3 on it about a year ago and there have been no modifications (other than config and data files).

I'm seriously thinking about backing up my data and doing a clean install. I wish I had thought of that this morning before I spent a beautiful day trapped inside.

I learned a very valuable lesson today... always check weather.com before starting an upgrade.

reichhartkg
Posts: 26
Joined: 2005/04/05 06:24:31
Location: Burlington, VT
Contact:

Re: Parallel move from RHEL4 to CentOS4

Post by reichhartkg » 2005/04/11 14:28:06

When I run yum update on my web/mail server, everything installs smoothly except for apache.

Once again, I had to manually remove /etc/httpd. It installed with no problems after that. This time, I only replaced conf and conf.d (most notable, I didn't replace the new modules dir with my old one).

Now service httpd start yeilds:
Cannot load /etc/httpd/modules/mod_python.so into server: /etc/httpd/modules/mod_python.so: cannot open shared object file: No such file or directory

yum install mod_python
fixed that and led me to the next problem:
Cannot load /etc/httpd/modules/mod_ssl.so into server: /etc/httpd/modules/mod_ssl.so: cannot open shared object file: No such file or directory

yum install mod_ssl
fixed that and led me to a working apache install, php included.

Next I'll tackle the samba issues.
Starting SMB services: smbd: error while loading shared libraries: liblber.so.2: cannot open shared object file: No such file or directory
/usr/lib/liblber.so points to /usr/lib/liblber.so.2.0.17 but the link is broken.
/usr/lib/liblber-2.2.so.7.0.6 exists so I re-linked /usr/lib/liblber.so and created /usr/lib/liblber.so.2 (pointing to the same file).

Starting SMB services: smbd: error while loading shared libraries: libldap.so.2: cannot open shared object file: No such file or directory
Again, broken symlinks in /usr/lib. I'm guessing there's a few of these...

symlinks -r /|grep dangling|wc -l
92

Great... this is going to be fun to fix.

Back to the immediate problem of Samba...
[root@opus lib]# ln -sf libldap_r-2.2.so.7.0.6 libldap_r.so
[root@opus lib]# ln -sf libldap_r-2.2.so.7.0.6 libldap_r.so.2
[root@opus lib]# ln -sf libldap-2.2.so.7.0.6 libldap.so
[root@opus lib]# ln -sf libldap-2.2.so.7.0.6 libldap.so.2
[root@opus lib]# /etc/init.d/smb restart
Shutting down SMB services: [FAILED]
Shutting down NMB services: [FAILED]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]


Thank God.

Now on to fixing all the dangling symlinks.

reichhartkg
Posts: 26
Joined: 2005/04/05 06:24:31
Location: Burlington, VT
Contact:

Re: Parallel move from RHEL4 to CentOS4

Post by reichhartkg » 2005/04/13 21:59:35

I had several problems with the web/mail server, including

atkbd.c: Unknown key pressed (translated set 2, code 0xf4 on isa0060/serio0).
atkbd.c: Unknown key released (translated set 2, code 0xf4 on isa0060/serio0).

whenever I hit any keys on the keyboard (didn't have that problem with the fileserver).

I gave up, backed up, and started from scratch. Since I still haven't been able to get a CD that passes, I decided to do a clean install of RHEL 4.

When that came up, I had the same kbd.c problem as with CentOS 4. I also had problems with SElinux and apache (ended up disabling it in /etc/syscongif/selinux).

I then downloaded and installed yum and ran

yum upgrade

now I have a hybrid RHEL/CentOS 4 box but at least yesterday's mail is coming in.


I've decided that I'm going with CentOS 3 for my firewall. Probably just a yum update while it's live and then a restart.

Post Reply

Return to “CentOS 4 - General Support”