Solaris Express Live Upgrade (Part 2)

March 3rd, 2008 by tyr

A while ago I showed how I upgraded my Solaris Express system using Live Upgrade. Now it’s time to upgrade again. This time we do it a bit differently as a boot environment for the upgrade is already available. Read on for the full story.

First a recap of the current boot environments

bash-3.2# lustatus
Boot Environment           Is       Active Active    Can    Copy
Name                       Complete Now    On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
snv_78                     yes      no     no        yes    -
snv_81                     yes      yes    yes       no     -

What we want to do is move to a system running snv_83. To do this we’ll update the unused snv_78 environment.

To do this we need to get familiar with lurename and lumake.

First off lets rename the BE so we know what’s what.

bash-3.2# lurename -e snv_78 -n snv_83
Renaming boot environment (snv_78) to (snv_83).
Changing the name of BE in the BE definition file.
Changing the name of BE in configuration file.
Updating compare databases on boot environment (snv_83).
Changing the name of BE in Internal Configuration Files.
Propagating the boot environment name change to all BEs.
Boot environment (snv_78) renamed to (snv_83).

Now update this BE to bring it in sync with our current environment.

bash-3.2# lumake -n snv_83 -s snv_81

Creating configuration for boot environment (snv_83).
Source boot environment is (snv_81).
Determining the split file systems of (/).
Determining the merge point of (/).
Determining the size and inode count for the split filesystem of (/).
Creating boot environment (snv_83).
Checking for GRUB menu on boot environment (snv_83).
Saving GRUB menu on boot environment (snv_83).
Creating file systems on boot environment (snv_83).
Creating (ufs) file system for (/) in zone (global) on (/dev/dsk/c2d0s0).
Mounting file systems for boot environment (snv_83).
Calculating required sizes of file systems for boot environment (snv_83).
Populating file systems on boot environment (snv_83).
Checking selection integrity.
Integrity check OK.
Populating contents of mount point (/).
Copying.
--- go for lunch ---
Creating shared file system mount points.
Creating compare databases for boot environment (snv_83).
Creating compare database for file system (/).
Updating compare databases on boot environment (snv_83).
Making boot environment (snv_83) bootable.
Updating bootenv.rc on ABE (snv_83).
Restoring GRUB menu.
The GRUB menu has been restored on device (/dev/dsk/c2d0s0).
Updating GRUB menu default setting
Population of boot environment (snv_83) successful.

Now it can just be upgraded as before (with mounted media obviously)

bash-3.2# luupgrade -u -n snv_83 -s /mnt

bash-3.2# luactivate snv_83

Posted in Solaris

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.