On Wed, 13 Apr 2005, Mike Odegard wrote:
Has anyone done this yet?
Yes - several times - I will have a writeup soon to go with my collection at:
http://www.owlriver.com/projects/yum/
which has several procedural hints to help 'skinny' down a host to help mazimize the prospects for a successful upgrade, and to guard against a failed upgrade.
But capsule form it is:
1. Set up a local FTP mirror of the ISOS, using lftp:
[EMAIL PROTECTED] ~]# cat lftp-centos4-beta2-iso.conf_
#
# Get the Centos 4 ISOs
#
mirror -e -c \
-I CentOS-3.4-i386-disc* \
-I MD5SUMS \
ftp://ftp.oregonstate.edu/pub/cAos/centos/3.4/isos/i386 \
/var/ftp/pub/mirror/centos-4/iso
#
#with a command like: lftp -f lftp-centos4-beta2-iso.conf_
2. Loop mount and hang them on a local host (not the one to be upgraded) for local FTP access
see the code at:
ftp://ftp.owlriver.com/pub/mirror/ORC/k12ltsp/ in install-from-iso.sh and ORCsetPXE
3. As root, make a directory on the host to be upgraded, and retrieve the following files:
mkdir /boot/upgradeany/
cd /boot/upgradeany/
lftp (local mirror)
get /pub/install/ftpinstall/images/pxeboot/*[EMAIL PROTECTED] ~]$ lftp ftp
lftp ftp:~> cd pub/install/ftpinstall/images/pxeboot/
cd ok, cwd=/pub/install/ftpinstall/images/pxeboot
lftp ftp:/pub/install/ftpinstall/images/pxeboot> ls
lrwxrwxrwx 1 0 0 51 Apr 07 02:17 README
-> ../../../../loop/ftpinstall/1/images/pxeboot/README
lrwxrwxrwx 1 0 0 55 Apr 07 02:17 initrd.img ->
../../../../loop/ftpinstall/1/images/pxeboot/initrd.img
lrwxrwxrwx 1 0 0 52 Apr 07 02:17 vmlinuz ->
../../../../loop/ftpinstall/1/images/pxeboot/vmlinuz
lftp ftp:/pub/install/ftpinstall/images/pxeboot>
which gets initrd.img and vmlinuz into that directory
4. Edit /boot/grub/grub.conf to add a stanza one thus:
title upgradeany
root (hd0,0)
kernel /vmlinuz upgradeany
initrd /initrd.img
5. Reboot and boot option 1 rather than the default.
6. Answer the questions.
7. Upgrade completed.
8. Log in and get the updates in place:
cd /usr/share/doc/centos-release-4/
rpm --import RPM-GPG-KEY
rpm --import RPM-GPG-KEY-centos4
yum -y upgrade
9. Make sure you are on the centos-announce mailing list.
10. Please report issues or successes here or to me directly.
-- Russ Herrold
-- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
