Re: Live Upgrade for Linux
From: Stephen Samuel (email@example.com)
Date: Wed, 02 Apr 2003 17:09:15 -0800 From: Stephen Samuel <firstname.lastname@example.org> To: email@example.com
Christopher Cashell wrote:
> At Wed, 26 Mar 03, Unidentified Flying Banana Eric Rostetter, said:
>>This isn't the same as Live Upgrade. With Live Upgrade, I can install a
>>fresh OS while the machine is running, or upgrade (e.g. From Solaris 8
>>to Solaris 9) while the system is running. In the linux world, at least
>>I agree you can do updates (install security patches, etc) this way.
>>But not a full install or major OS upgrade, AFAIK.
I've upgraded a box from 7.0 to 7.3 using RPMs. It worked fine for a
home system (YMMV on a production box). I wrote a program to search
find upgraded versions of installed RPMS from a file list.
> A full install would be somewhat trickier, though with a little work, it
> should be doable. A major OS upgrade is definitely possible, but you
> should be prepared for possible minor down time while individual
> applications are upgraded.>
As far as I can tell, A full install with RPMs is doable... All you
have to do is rpm --root /mnt/second a_long_list_of_RPMS.
You can get a list of RPMS to install using anaconda. but
the only way I've used anaconda is from the boot CD, so you're
on your own for doing the last bit of research on that.
I've created minimal RedHat installations on clean partitions that
would *seem* to be bootable using RPMs, so you can try something like
that. You'd then have to update all the pertinent configuration files.
Doing a dd or tar of appropriate partitionswould also allow you to test
the results of upgrades. The one thing you would have to do is modify the
/etc/fstab file on the 'test' root system before you reboot, and make
sure that a reference to the appropriate kernel is in the main grub
directory. having your /home directory on a mountable partition helps on this.
In terms of making the two systems reboot-compatible, you'd also need to do
things like symbolically link /var/spool from the old filesystem to the new
system. If you're using RedHat, you can't do that with all of /var because
/var/lib/rpm contains the list of installed RPMs (which will be different
on the two systems).
what other directories you do(n't) want to transfer between installations is
going to be up to you.
-- Stephen Samuel +1(604)876-0426 firstname.lastname@example.org http://www.bcgreen.com/~samuel/ Powerful committed communication, reaching through fear, uncertainty and doubt to touch the jewel within each person and bring it to life.