Thursday, February 11, 2016

Apply patches using live upgrade in Solaris


1) create a New environment using lucreate

# lucreate -n s10u11-20160121
Analyzing system configuration.
Updating boot environment description database on all BEs.
Updating system configuration files.
Creating configuration for boot environment <s10u11-20160121>.
Source boot environment is <s10u11-20141117>.
Creating file systems on boot environment <s10u11-20160121>.
Populating file systems on boot environment <s10u11-20160121>.
Analyzing Primary boot environment.
Processing alternate boot environment.
ZFS Datasets for which snapshot and clone will be created for BE <s10u11-20160121> are:
rpool/ROOT/s10u11-20141117
rpool/ROOT/s10u11-20141117/var
Duplicating ZFS datasets from PBE to ABE.
Creating snapshot for <rpool/ROOT/s10u11-20141117> on <rpool/ROOT/s10u11-20141117@s10u11-20160121>.
Creating clone for <rpool/ROOT/s10u11-20141117@s10u11-20160121> on <rpool/ROOT/s10u11-20160121>.
Creating snapshot for <rpool/ROOT/s10u11-20141117/var> on <rpool/ROOT/s10u11-20141117/var@s10u11-20160121>.
Creating clone for <rpool/ROOT/s10u11-20141117/var@s10u11-20160121> on <rpool/ROOT/s10u11-20160121/var>.
Mounting ABE <s10u11-20160121>.
Generating list of files to be copied to ABE.
Finalizing ABE.
Unmounting ABE <s10u11-20160121>.
Fixing properties of ZFS datasets in ABE.
Reverting state of zones in PBE <s10u11-20141117>.
Making boot environment <s10u11-20160121> bootable.
Population of boot environment <s10u11-20160121> successful.
Creation of boot environment <s10u11-20160121> successful.

# lustatus
Boot Environment           Is       Active Active    Can    Copy     
Name                       Complete Now    On Reboot Delete Status   
-------------------------- -------- ------ --------- ------ ----------
s10u11-20141117        yes      yes    yes       no     -        
s10u11-20160121            yes      no     no        yes    -      



2)Below are the patches to be installed recomended by vendor, apply these patches using luupgrade .

Required: 119059-70 X11 6.6.2: Xsun patch
Required: 119254-92 SunOS 5.10: Install and Patch Utilities Patch
Required: 120812-32 OpenGL 1.5: OpenGL Patch for Solaris
Required: 149175-10 SunOS 5.10: qlc patch
Required: 149279-04 SunOS 5.10: fabric-xlate.so PCIEX.dict patch

Download above patches and upload to server under directory /patchdir ,also unzip them eg. unzip 119254-92.zip
.

3)Apply patches using luupgrade into new BE.

# luupgrade -n s10u11-20160121 -t -s /patchdir 119254-92 150400-31 149175-10 149279-04

Validating the contents of the media </var/tmp/20160121>.
The media contains 4 software patches that can be added.
Mounting the BE <s10u11-sau-20160121>.
Adding patches to the BE <s10u11-sau-20160121>.
Validating patches...

Loading patches installed on the system...

Done!

Loading patches requested to install.

Version of package SUNWcakr from directory SUNWcakr.u in patch 150400-31 differs from the package installed on the system.
Version of package SUNWcakr from directory SUNWcakr.us in patch 150400-31 differs from the package installed on the system.
Done!

The following requested patches have packages not installed on the system
Package SUNWcpr from directory SUNWcpr.u in patch 150400-31 is not installed on the system. Changes for package SUNWcpr will not be applied to the system.
Package SUNWefc from directory SUNWefc.u in patch 150400-31 is not installed on the system. Changes for package SUNWefc will not be applied to the system.
Package SUNWefc from directory SUNWefc.us in patch 150400-31 is not installed on the system. Changes for package SUNWefc will not be applied to the system.

Checking patches that you specified for installation.

Done!


The following requested patches will not be installed because
at least one required patch is not installed on this system.

           0 For patch 150400-31, required patch 150510-03 does not exist.

Approved patches will be installed in this order:

119254-92 149175-10 149279-04


Checking installed patches...
Executing prepatch script...
Installing patch packages...

Patch 119254-92 has been successfully installed.
See /a/var/sadm/patch/119254-92/log for details
Executing postpatch script...

Patch packages installed:
  SUNWinstall-patch-utils-root
  SUNWpkgcmdsr
  SUNWpkgcmdsu
  SUNWswmt

Checking installed patches...
Executing prepatch script...
Installing patch packages...

Patch 149175-10 has been successfully installed.
See /a/var/sadm/patch/149175-10/log for details
Executing postpatch script...

Patch packages installed:
  SUNWqlc
  SUNWqlcu

Checking installed patches...
Executing prepatch script...
Installing patch packages...

Patch 149279-04 has been successfully installed.
See /a/var/sadm/patch/149279-04/log for details
Executing postpatch script...

Patch packages installed:
  FJSVfmd
  SUNWdcaf
  SUNWfmd

Unmounting the BE <s10u11-20160121>.
The patch add to the BE <s10u11-20160121> completed.



4)Activate the new boot environment

#luactivate  s10u11-20160121

5)Reboot the server

#shutdown -g0 -y -i6

6)Verify with lustatus command.
#lustatus

No comments:

Post a Comment