This was my experience with upgrading, your mileage may vary especially if it's in kilometers. This is what I had to do to get my system running again.
##############
In order to attempt this upgrade, I had to use "linux upgradeany", a mode not listed for the installer CDs.
My first problem was I could no longer boot the system after the upgrade. My grub menu showed my old FC2 kernel, Fedora Core (2.6.10-1.14_FC2), but not the kernel for Centos. Trying to boot this FC2 kernel it froze after "Enabling swap space:"
* Boot up the "linux rescue", chroot /mnt/sysimage * used lynx to download kernel-2.6.9-5.EL.i686.rpm * rpm -ivh kernel-2.6.9-5.EL.i686.rpm
warning: kernel-2.6.9-5.EL.i686.rpm: V3 DSA signature: NOKEY, key ID 4fe06303 error: failed to stat /dev/shm: No such file or directory Preparing... ################################################## package kernel-2.6.10-1.14_FC2 (which is newer than kernel-2.6.9-5.EL) is already installed
* rpm -ivh --old-package kernel-2.6.9-5.EL.i686.rpm
warning: kernel-2.6.9-5.EL.i686.rpm: V3 DSA signature: NOKEY, key ID 4fe06303 error: failed to stat /dev/shm: No such file or directory Preparing... ################################################## error: %pre(kernel-2.6.9-5.EL.i686) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping kernel-2.6.9-5.EL
* rpm2cpio kernel-2.6.9-5.EL.i686.rpm | cpio -i --make-directories * mv boot/* /boot/ * mv lib/modules/* /lib/modules/ * depmod -a * mkinitrd /boot/initrd-2.6.9-5.EL 2.6.9-5.EL * edit /etc/grub.conf an add in this kernel
* rebooted into the Centos-4 system at this point just need to do some finishing work to get things started
* fedora-release-2-4.i386 wasn't upgraded to centos-release
* yum wouldn't run as the fedora release version was 2 cp /etc/yum.conf /etc/yum.conf.old cp /etc/yum.conf.rpmnew /etc/yum.conf
wget http://beta.centos.org/centos/4.0beta/os/i386/CentOS/RPMS/centos-release-4.0...
rpm -e --nodeps fedora-release rpm -ivh centos-release-4.0beta-5.i386.rpm rpm --import /usr/share/rhn/RPM-GPG-KEY-centos4.0beta yum clean all rpm -e --nodeps $(rpm -qa | grep kernel | grep FC2) yum install kernel (or rpm -ivh kernel-2.6.9-5.EL.i686.rpm) yum update
-Mike
On Sun, 20 Feb 2005 02:05:39 -0700, Michael Best mbest@pendragon.org wrote:
This was my experience with upgrading, your mileage may vary especially if it's in kilometers. This is what I had to do to get my system running again.
I'm constantly surprised how many people wish to 'upgrade'.
Historically I've been updating my Linux distro when Redhat still was shipped in nappies. I've learnt pretty early on the following:
1. Never trust an OS upgrader... it always is like a dog with diarrhea running through your house. :( 2. Keep seperated partitions... /home /usr/local and normally the ones you wish to keep... (I also backup the entire /etc directory) 3. Ensure you have working backups... well of at least the stuff you MUST get back. 4. Choose to install fresh (not upgrade), and format the existing partitions /, /usr, /tmp and /var.... whilst you probably wish to keep /usr/local and /home. 5. Recover anything you need (such as /etc based files).
You'll be up and running much faster... without the mess. ;)
On Sun, 2005-02-20 at 14:15 +0100, Lothar Joeckel wrote:
Matt Bottrell wrote:
On Sun, 20 Feb 2005 02:05:39 -0700, Michael Best mbest@pendragon.org wrote:
This was my experience with upgrading, your mileage may vary especially if it's in kilometers. This is what I had to do to get my system running again.
I'm constantly surprised how many people wish to 'upgrade'.
Historically I've been updating my Linux distro when Redhat still was shipped in nappies. I've learnt pretty early on the following:
- Never trust an OS upgrader... it always is like a dog with diarrhea
running through your house. :( 2. Keep seperated partitions... /home /usr/local and normally the ones you wish to keep... (I also backup the entire /etc directory) 3. Ensure you have working backups... well of at least the stuff you MUST get back. 4. Choose to install fresh (not upgrade), and format the existing partitions /, /usr, /tmp and /var.... whilst you probably wish to keep /usr/local and /home. 5. Recover anything you need (such as /etc based files).
You'll be up and running much faster... without the mess. ;)
Can agree totally. I've made the same experience over the years. 'Upgrading' is mostly a vaste of expensive time!
Lothar Joeckel LinWave Consulting _______________________________________________
I agree, and so does the documentation: http://beta.centos.org/centos/4.0beta/docs/html/rhel-ig-x8664-multi-en-4/ap-...
I think a fresh install is much easier and cleaner.
Matt Bottrell wrote:
I'm constantly surprised how many people wish to 'upgrade'.
Historically I've been updating my Linux distro when Redhat still was shipped in nappies. I've learnt pretty early on the following:
I had the option.
I have backups, separate partitions, all that fun stuff.
Mostly, it was more of an informative upgrade.
I certainly wouldn't suggest that people do this on a server, but this was on a desktop. I wanted to show that it was possible, and that it was/wasn't a good idea, however, there are all types out there and someone might want to try it.
Just my experience with it, if someone finds it useful, great. If not, well at least I got an upgraded desktop out of it.
Also at the end of it I ended up with 79 "fc2" packages, everything from desktop style things like mozilla-acroread to things like syslinux, tzdata, system-config-samba, libraries, etc.
-Mike
Thanks for writing back in Michael...
Was starting to think 'poor bloke... he'll think we're ganging up on him'.
Yeah agree... for a 'try and see' it's reasonable to try... agree... for the server... prudent to do the advised way... and reinstall.
I did a FC2 -> FC3 upgrade recently... and it left the system in a mess... (My current desktop.. .waiting for Centos V4 final) ... I ended up reinstalling as a result.
As you previously stated... YMMV.
Cheers,
Matt.
On Sun, 20 Feb 2005 08:31:16 -0700, Michael Best mbest@pendragon.org wrote:
Matt Bottrell wrote:
I'm constantly surprised how many people wish to 'upgrade'.
Historically I've been updating my Linux distro when Redhat still was shipped in nappies. I've learnt pretty early on the following:
I had the option.
I have backups, separate partitions, all that fun stuff.
Mostly, it was more of an informative upgrade.
Matt Bottrell wrote:
I'm constantly surprised how many people wish to 'upgrade'.
Historically I've been updating my Linux distro when Redhat still was shipped in nappies. I've learnt pretty early on the following:
[...]
- Choose to install fresh (not upgrade), and format the existing
partitions /, /usr, /tmp and /var.... whilst you probably wish to keep /usr/local and /home.
Matt: I agree with you, fresh installs are my preferred "upgrade" path.
But I was just curious what to do in a remote server situation? I manage about a dozen boxes remotely. They are running CentOS3.3 right now. When CentOS4 becomes final, I would like to upgrade. But not sure if there's a way to do it "fresh" since I'm not at the machines physically.
Along the same lines, does RedHat themselves have an official position about upgrades from RHEL3 to RHEL4?
johnn
Johnn Tan wrote:
Matt Bottrell wrote:
I'm constantly surprised how many people wish to 'upgrade'.
Historically I've been updating my Linux distro when Redhat still was shipped in nappies. I've learnt pretty early on the following:
[...]
- Choose to install fresh (not upgrade), and format the existing
partitions /, /usr, /tmp and /var.... whilst you probably wish to keep /usr/local and /home.
Matt: I agree with you, fresh installs are my preferred "upgrade" path.
But I was just curious what to do in a remote server situation? I manage about a dozen boxes remotely. They are running CentOS3.3 right now. When CentOS4 becomes final, I would like to upgrade. But not sure if there's a way to do it "fresh" since I'm not at the machines physically.
Along the same lines, does RedHat themselves have an official position about upgrades from RHEL3 to RHEL4?
johnn _______________________________________________ CentOS mailing list CentOS@caosity.org http://lists.caosity.org/mailman/listinfo/centos
On my production systems I only do fresh installs when moving from something like RHEL 3 -> 4. Also I don't upgrade a machine unless I have to due to end of life or a requirement for a feature offered in the new version. The many years of support and security patches is what drew me to RHEL and CentOS on my servers.
That's why a VNC install is pretty neat. Also with any remote machines I ensure I have serial console access. ;)
Add those two features and life is pretty sweet.
I agree.... I'll do minor upgrades via yum... however major ones I always reinstall. :) ie: 3.3 -> 3.4 (yum) and 3.x -> 4.x (reinstall).
Cheers,
Matt.
On Tue, 22 Feb 2005 16:12:59 -0600, Aaron Havens havensa@nsuok.edu wrote:
Johnn Tan wrote:
Matt Bottrell wrote:
I'm constantly surprised how many people wish to 'upgrade'.
Historically I've been updating my Linux distro when Redhat still was shipped in nappies. I've learnt pretty early on the following:
[...]
- Choose to install fresh (not upgrade), and format the existing
partitions /, /usr, /tmp and /var.... whilst you probably wish to keep /usr/local and /home.
Matt: I agree with you, fresh installs are my preferred "upgrade" path.
But I was just curious what to do in a remote server situation? I manage about a dozen boxes remotely. They are running CentOS3.3 right now. When CentOS4 becomes final, I would like to upgrade. But not sure if there's a way to do it "fresh" since I'm not at the machines physically.
Along the same lines, does RedHat themselves have an official position about upgrades from RHEL3 to RHEL4?
johnn _______________________________________________ CentOS mailing list CentOS@caosity.org http://lists.caosity.org/mailman/listinfo/centos
On my production systems I only do fresh installs when moving from something like RHEL 3 -> 4. Also I don't upgrade a machine unless I have to due to end of life or a requirement for a feature offered in the new version. The many years of support and security patches is what drew me to RHEL and CentOS on my servers.
-- Aaron Havens Network Technician Computing and Telecommunications Northeastern State University 610 N. Grand Suite 318 Tahlequah, OK 74464 http://netnotes.nsuok.edu/~havensa/ 918-456-5511 Ext. 5813
CentOS mailing list CentOS@caosity.org http://lists.caosity.org/mailman/listinfo/centos