niedziela, 16 grudnia 2007

Live Upgrade i downgrade systemu

Z Live Upgrade możliwy jest nawet downgrade systemu.
Potrzebne jest tylko archiwum z poprzednią wersją systemu.

W moim przykładzie zrobię downgrade systemu z SXCE 75 do Solaris10u4.


Montujemy płytkę instalacyjną Solarisa 10u4:

# lofiadm -a /mnt/sol-10-u4-ga-x86-dvd.iso
/dev/lofi/1
# mount -F hsfs -o ro /dev/lofi/1 /mnt/x


Upgrejdujemy puste (utworzone z opcją "-s -") środowisko uruchomieniowe:

# time luupgrade -f -n 'be3' -s /mnt/x -a /kopia_systemu_sol10u4.flar
Copying failsafe kernel from media.
Uncompressing miniroot
Creating miniroot device
miniroot filesystem is
Mounting miniroot at
Validating the contents of the media .
The media is a standard Solaris media.
Validating the contents of the miniroot .
Locating the flash install program.
Checking for existence of previously scheduled Live Upgrade requests.
Constructing flash profile to use.
Creating flash profile for BE .
Checking for GRUB menu on ABE .
Performing the operating system flash install of the BE .
CAUTION: Interrupting this process may leave the boot environment unstable or unbootable.
Extracting Flash Archive: 100% completed (of 704,71 megabytes)
The operating system flash install completed.
Deleted empty GRUB menu on ABE .
Updating bootenv.rc on ABE .
Configuring failsafe for system.
Failsafe configuration is complete.
ABE boot partition backing deleted.
The Live Flash Install of the boot environment is complete.
Installing failsafe
Failsafe install is complete.

real 2m29.205s
user 0m54.048s
sys 0m23.786s


Teraz nasze środowisko uruchomieniowe "be3" zawiera system Solaris10u4.

Brak komentarzy: