Solaris 10 Live Patching Steps

Today I m explaining the procedure for Solaris 10 OS patching when the root File System is UFS .The process is  90% matching with zfs File System .Here we are creating alternative boot environment with sol10-20161209 and current boot environbment is sol10-20160412.Before starting the Patching the take system necessary backup.

 

Solaris 10 Patching Steps for UFS File Systems

# lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
sol10-20160412 yes yes yes no -
# metastat -p
d52 -m d53 1
d53 1 1 /dev/dsk/emcpower5c
d50 -m d501 1
d501 1 1 /dev/dsk/emcpower3c
d55 -m d57 1
d57 1 1 /dev/dsk/emcpower4c
d3 -m d13 d23 1
d13 1 1 c0t0d0s3
d23 1 1 c0t1d0s3
d1 -m d11 d21 1
d11 1 1 c1t0d0s0
d21 1 1 c1t1d0s0
d0 -m d10 d20 1
d10 1 1 c0t0d0s0
d20 1 1 c0t1d0s0

# df -kh
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d3 48G 22G 26G 46% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 621G 1.7M 621G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
fd 0K 0K 0K 0% /dev/fd
swap 8.0G 240K 8.0G 1% /tmp
swap 621G 144K 621G 1% /var/run
/dev/md/dsk/d55 313G 239G 68G 78% /SAP_DATA
/dev/md/dsk/d50 156G 129G 26G 84% /ZONES

# lucreate -c sol10-20160412 -n sol10-`date +%Y%m%d` -m /:/dev/md/dsk/d3:ufs -m /ZONES:/dev/md/dsk/d50:ufs -m /SAP_DATA:/dev/md/dsk/d55:ufs

Updating boot environment description database on all BEs.
ERROR: /dev/md/dsk/d3 is already mounted
ERROR: /dev/md/dsk/d3 is already in use by another boot environment sol10-20160412:/:ufs

luconfig: ERROR: /dev/md/dsk/d3 cannot be used for file system / in boot environment sol10-20161209.
ERROR: Configuration of boot environment failed.

Question : Why its failed ?
Answer : Because its created on mounted metadevices ( mounted metadevice is d3), Hence its get failed .
# lucreate -c sol10-20160412 -n sol10-`date +%Y%m%d` -m /:/dev/md/dsk/d0:ufs -m /ZONES:/dev/md/dsk/d52:ufs
sol10-20161209> successful.

# lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
————————– ——– —— ——— —— ———-
sol10-20160412 yes yes yes no –
sol10-20161209 yes no no yes –

# lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
————————– ——– —— ——— —— ———-
sol10-main yes yes yes no –
sol10-alt yes no no yes –

cd /var/tmp/10_Recommended
# ls
10_Recommended.README Copyright installcluster patch_order patchset.conf
10_Recommended.html LEGAL_LICENSE.TXT installpatchset patches

# ./installpatchset --apply-prereq --s10patchsetSetup ...........................................

Recommended OS Patchset Solaris 10 SPARC (2016.07.14)Application of patches started : 2016.12.09 08:53:45
Application of patches finished : 2016.12.09 08:54:47
Following patches were applied :
119254-93

Following patches were skipped :
Patches already applied
120900-04 119317-01 138215-02 146054-07 125555-16
121133-02 121296-01 148336-02 142251-02

Installation of prerequisite patches complete.

Install log files written :
/var/sadm/install_data/s10s_rec_patchset_short_2016.12.09_08.53.45.log
/var/sadm/install_data/s10s_rec_patchset_verbose_2016.12.09_08.53.45.log

# cd /var/tmp/10_Recommended
# cd 10_Recommended
# ./installpatchset --s10patchset -B sol10-20161209
Setup .............................................
Recommended OS Patchset Solaris 10 SPARC (2016.07.14)

Application of patches started : 2016.12.09 11:14:26

Applying 120900-04 ( 1 of 406) … skipped
Applying 121133-02 ( 2 of 406) … skipped
Applying 119254-93 ( 3 of 406) … success
Applying 152264-01 (405 of 406) … success
Applying 152363-01 (406 of 406) … success

Application of patches finished : 2016.12.09 11:58:45
Following patches were applied :
121136-02 138195-04 145080-15 150616-01 152254-01
121211-02 138822-12 145200-13 150618-02

Installation of patch set to alternate boot environment complete.

Please remember to activate boot environment sol10-20161209 with luactivate(1M)
before rebooting.

Install log files written :
/.alt.sol10-20161209/var/sadm/install_data/s10s_rec_patchset_short_2016.12.09_11.14.26.log
/.alt.sol10-20161209/var/sadm/install_data/s10s_rec_patchset_verbose_2016.12.09_11.14.26.log

init 6

Leave a Reply

Your email address will not be published. Required fields are marked *