Thursday, 17 July 2014

Step by Step Procedure Solaris 8 to 10 live Upgrade

 

 

1.Determine the disk and choosing the upgrade disk.
# echo |format
AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@0,0----------------------(Solaris 8)
       1. c1t1d0 <SEAGATE-ST373207LSUN72G-045A cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@1,0------------------------(Free disk for Upgrade)

2. Uninstall the SUNWlucfg  SUNWluu  SUNWlur packages.
Note: configuration parameters will take from new DVD.
#pkgrm SUNWlucfg SUNWluu SUNWlur

3. Check and compare the OS release is well-matched (IMP)


4.Install the new packages using ./liveupgrade20
#cd $SOLARIS10MEDIA/Solaris_10/Tools/Installers
#./liveupgrade20 -noconsole –nodisplay
Note: This will install the following packages SUNWluu SUNWlur SUNWlucfg


5.Now  create boot environment
# lucreate  -c Solaris_8 -n Solaris10 -m /:/dev/dsk/c1t1d0s0:ufs -m -:/dev/dsk/c1t1d0s1:swap -m /local:/dev/dsk/c1t1d0s7:ufs -m /var:/dev/dsk/c1t1d0s5:ufs
Discovering physical storage devices
Discovering logical storage devices
Cross referencing storage devices with boot environment configurations
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 environment <Solaris_8> file 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.
Searching /dev for possible boot environment filesystem devices

Updating system configuration files.
The device </dev/dsk/c1t1d0s0> is not a root device for any boot environment.
Creating configuration for boot environment <Solaris10>.
Source boot environment is <Solaris_8>.
Creating boot environment <Solaris10>.
Creating file systems on boot environment <Solaris10>.
Creating <ufs> file system for </> on </dev/dsk/c1t1d0s0>.
Creating <ufs> file system for </local> on </dev/dsk/c1t1d0s7>.
Creating <ufs> file system for </var> on </dev/dsk/c1t1d0s5>.
Mounting file systems for boot environment <Solaris10>.
Calculating required sizes of file systems for boot environment <Solaris10>.
Populating file systems on boot environment <Solaris10>.
Checking selection integrity.
Integrity check OK.
Populating contents of mount point </>.
Populating contents of mount point </local>.
Populating contents of mount point </var>.
Copying.
Creating shared file system mount points.
Creating compare databases for boot environment <Solaris10>.
Creating compare database for file system </var>.
Creating compare database for file system </local>.
Creating compare database for file system </>.
Updating compare databases on boot environment <Solaris10>.
Making boot environment <Solaris10> bootable.
Population of boot environment <Solaris10> successful.
Creation of boot environment <Solaris10> successful.


6.Now we have to upgrade the new boot Environment
#luupgrade -u -n Solaris10 -s /cdrom
Validating the contents of the media </cdrom>.
The media is a standard Solaris media.
The media contains an operating system upgrade image.
The media contains <Solaris> 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 <Solaris10>.
Determining packages to install or upgrade for BE <Solaris10>.
Performing the operating system upgrade of the BE <Solaris10>.
CAUTION: Interrupting this process may leave the boot environment unstable
Upgrading Solaris: 100% completed
Installation of the packages from this media is complete.
Updating package information on boot environment <Solaris10>.
Package information successfully updated on boot environment <Solaris10>.
Adding operating system patches to the BE <Solaris10>.
The operating system patch installation is complete.
INFORMATION: The file </var/sadm/system/logs/upgrade_log> on boot
environment <Solaris10> contains a log of the upgrade operation.
INFORMATION: The file </var/sadm/system/data/upgrade_cleanup> on boot
environment <Solaris10> contains a log of cleanup operations required.
WARNING: <6> packages failed to install properly on boot environment <Solaris10>.
INFORMATION: The file </var/sadm/system/data/upgrade_failed_pkgadds> on
boot environment <Solaris10> contains a list of packages that failed to
upgrade or install properly.
INFORMATION: Review the files listed above. Remember that all of the files
are located on boot environment <Solaris10>. Before you activate boot
environment <Solaris10>, determine if any additional system maintenance is
required or if additional media of the software distribution must be
installed.
The Solaris upgrade of the boot environment <Solaris10> is successfully  complete.


7. Check the lustatus
#lustatus
Boot Environment           Is       Active Active    Can    Copy
Name                       Complete Now    On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
Solaris_8                  yes      yes    yes       no     -
Solaris10                  yes      no     no        yes    -


8. Now we have to activate the environment.
#luactivate Solaris10
WARNING: <6> packages failed to install properly on boot environment <Solaris10>.
INFORMATION: </var/sadm/system/data/upgrade_failed_pkgadds> on boot
environment <Solaris10> contains a list of packages that failed to upgrade
or install properly. Review the file before you reboot the system to
determine if any additional system maintenance is required.
WARNING: The following files have changed on both the current boot
environment <Solaris_8> and the boot environment to be activated
<Solaris10>:
   /var/mail/root
   /var/mail/s11o10g1
   /var/mail/s52o11g1
INFORMATION: The files listed above are in conflict between the current
boot environment <Solaris_8> and the boot environment to be activated
<Solaris10>. These files will not be automatically synchronized from the
current boot environment <Solaris_8> when boot environment <Solaris10> is
activated.


**********************************************************************

The target boot environment has been activated. It will be used when you
reboot. NOTE: You MUST NOT USE the reboot, halt, or uadmin commands. You
MUST USE either the init or the shutdown command when you reboot. If you
do not use either init or shutdown, the system will not boot using the
target BE.

**********************************************************************

In case of a failure while booting to the target BE, the following process
needs to be followed to fall back to the currently working boot environment:

1. Enter the PROM monitor (ok prompt).

2. Change the boot device back to the original boot environment by typing:

     setenv boot-device disk:a

3. Boot to the original boot environment by typing:

     boot

**********************************************************************

Activation of boot environment <Solaris10> successful.



9. Reboot the server #init 6
Note: Don’t use reboot command.
Live Upgrade: Deactivating current boot environment <Solaris_8>.
Live Upgrade: Current boot environment is <Solaris_8>.
Live Upgrade: New boot environment will be <Solaris10>.
Live Upgrade: Activating boot environment <Solaris10>.
Live Upgrade: The boot device for boot environment <Solaris10> is
</dev/dsk/c1t1d0s0>.
Live Upgrade: Activation of boot environment <Solaris10> completed.
 

 

 

No comments:

Post a Comment

Job chronyd.service/start failed with result 'dependency'

 Job chronyd.service/start failed with result 'dependency' Issue :  CRITICAL: Neither ntpd nor chronyd running. Exiting  Error :  sy...