Symantec logo

Procedure

The general procedure is to install the Solaris Live Upgrade packages on the running disk, clone the current operating system onto the new disk, upgrade the operating system for the clone, mount the new disk, remove and re-install the kernel-level packages for the version of the operating system, and migrate VCS to the new disk.

 To install the Solaris Live Upgrade packages

  1. Format the target disk to have the same size and the same partition as the source disk.
  2. Install the Solaris Live Upgrade packages on the current source operating system disk.

    The release of the Solaris Live Upgrade packages must match the release of the operating system that you are upgrading to. For example, if your current source disk has Solaris 9 and you want to upgrade the target boot disk to Solaris 10, install the Live Upgrade packages from the Solaris 10 disk onto your Solaris 9 operating system.

 To create and populate the new boot environment by cloning the current operating environment

  1. Make sure that your second alternate book disk is the same size and has the same partitions as your current boot environment.
  2. Execute the lucreate command with the following options to create a new boot environment for the alternate boot disk.

    The -c option assigns the specified name to the current boot environment.

    The -m option specifies the root slice (/) that is going to be copied to /dev/dsk/c0t1d0s0.

    The -n option specifies the name of boot environment.

    For example:

    # lucreate -c sol_9 -m /:/dev/dsk/c0t1d0s0:ufs
    -m -:/dev/dsk/c0t1d0s1:swap -n sol_10

    Output from this command includes naming, analyzing, creating, checking, and populating the new environment.

After slice set up and boot environment creation, upgrade the operating system in the new boot environment.

 To upgrade the new boot environment

  1. Execute the luupgrade command with following options to upgrade the new boot environment.

    The -u option specifies upgrading the operating system for the boot environment.

    The -n option specifies the boot environment to upgrade.

    The -s option specifies the source for the operating system's image or flash image.

    For example:

    # luupgrade -u -n sol_10 -s /net/vcsinstall/netinstall/2.10

    Output from this command includes validation and upgrade messages.

You now need to remove operating system specific kernel-level packages. You must then re-install the packages that match the operating system version.

 To mount the new environment and remove and re-install the kernel-level packages

  1. Create a new directory and mount the new disk.

    # mkdir /tmp/a

    # mount /dev/dsk/c0t1d0s0 /tmp/a

  2. Remove the old packages.

    # pkgrm -R /tmp/a VRTSvxfen VRTSgab VRTSllt

  3. Add the packages that match the version on the operating system on the new boot environment.

    # pkgadd -d . -R /tmp/a VRTSllt VRTSgab VRTSvxfen

 To stop VCS, boot the new environment for VCS, and verify the new environment

  1. Stop VCS.

    # hastop -all

  2. Enter the init command to select the new disk and start the node, for example:

    # init 0

    OK boot disk1

  3. Enter the luactivate command to verify that your current boot environment is the one that you want.

    # luactivate

    In the example, the output is:

    Sol_10