How to Live Upgrade an active Solaris 10 enverment
split second disk (or replace it and put aside
metadettach & metaclear
Check for latest patches for live upgrade at live upgrade patches
Or
Get patch 121430-57
Oracle Live upgrade
install from the latest os cd
cd <mount>/Solaris_10/Product
pkgadd -d . SUNWlucfg
Contents
check for patch 121430 (get the latest)
Note: Add a -C /dev/dsk/c0t0d0s0 if you get an error cant find boot…
# lucreate -C /dev/dsk/c0t0d0s0 -c second_disk_img -n s10u9ufs -m /:/dev/dsk/c0t1d0s0:ufs -m \ /opt:/dev/dsk/c0t1d0s5:ufs -m /usr:/dev/dsk/c0t1d0s6:ufs -m /var:/dev/dsk/c0t1d0s1:ufs \ -m -:/dev/dsk/c0t1d0s3:swap -m /data1:/dev/dsk/c0t1d0s4:ufs Determining types of file systems supported Validating file system requests Preparing logical storage devices Preparing physical storage devices Configuring physical storage devices Configuring logical storage devices Analyzing system configuration. Comparing source boot environmentfile systems with the file system(s) you specified for the new boot environment. Determining which file systems should be in the new boot environment. Updating boot environment description database on all BEs. Updating system configuration files. The device is not a root device for any boot environment; cannot get BE ID. Creating configuration for boot environment . Source boot environment is . Creating boot environment . Creating file systems on boot environment . Creating file system for > in zone on . Creating file system for in zone on . Creating file system for in zone on . Creating file system for in zone on . Mounting file systems for boot environment . Calculating required sizes of file systems for boot environment . Populating file systems on boot environment . Checking selection integrity. Integrity check OK. Populating contents of mount point >. Populating contents of mount point . Populating contents of mount point . Populating contents of mount point . Copying.
Next run the upgrade with lupgrade
Create an auto reg disable file
echo "auto_reg=disable" > /tmp/disable_auto_reg
Upgrade to latest solaris
# luupgrade -u -n s10u9ufs -k /tmp/disable_auto_reg -s /cdrom 62652 blocks miniroot filesystem isMounting miniroot at Validating the contents of the media . The media is a standard Solaris media. The media contains an operating system upgrade image. The media contains version <10>. Constructing upgrade profile to use. Locating the operating system upgrade program. Checking for existence of previously scheduled Live Upgrade requests. Creating upgrade profile for BE . Determining packages to install or upgrade for BE . Performing the operating system upgrade of the BE . CAUTION: Interrupting this process may leave the boot environment unstable or unbootable. ...
Next steps are to activate the lu
luactivate s10u9ufs
Note: there is no need to modify /etc/system
Now will migrate from ufs to zfs
Prepare the disk first
Note: You need to format the disk to only one partition (in this case slice 0)
Then run zpool create
zpool create rpool c0t0d0s0
Migare the disk from ufs to zfs
lucreate -c s10u9ufs -n s10u9zfs -p rpool Analyzing system configuration. Comparing source boot environmentfile systems with the file system(s) you specified for the new boot environment. Determining which file systems should be in the new boot environment. Updating boot environment description database on all BEs. Updating system configuration files. The device is not a root device for any boot environment; cannot get BE ID. Creating configuration for boot environment . Source boot environment is . Creating boot environment . Creating file systems on boot environment . Creating file system for > in zone on . Populating file systems on boot environment . Checking selection integrity. Integrity check OK. Populating contents of mount point >. Copying. luactivate s10u9zfs ... init 6