As we all know that we can’t directly upgrade from Solaris 10 to Solaris 11. But from Oracle Solaris 11 onwards, when you perform the update ,system will automatically move to major version without any additional efforts. In the last article , we have seen that how to update Solaris 11 from oracle support repository directly .Last time, when i was doing system update last time ,oracle Solaris 11.2 was not released ,so my system wasn’t upgraded to Solaris 11.2.It just got released on 31st July 2014.Solaris 11.2 is integrated with open-stack for cloud operations.
Here we will see how we can upgrade from Solaris 11.1 to Solaris 11.2 .
1. Login to Solaris 11.1 system in which you want to upgrade to Solaris 11.2 .
2.Check the existing boot environment and release details
UA-SOL11#beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
solaris-1 NR / 5.36G static 2014-08-01 01:33
solaris-backup-1 - - 171.0K static 2014-06-29 06:26
UA-SOL11#uname -a
SunOS SAN 5.11 11.1 i86pc i386 i86pc
UA-SOL11#cat /etc/release
Oracle Solaris 11.1 X86
Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
Assembled 06 November 2013
UA-SOL11#
3.Check the current branch for entire system.
UA-SOL11#pkg info entire
Name: entire
Summary: entire incorporation including Support Repository Update (Oracle Solaris 11.1.21.4.1).
Description: This package constrains system package versions to the same
build. WARNING: Proper system update and correct package
selection depend on the presence of this incorporation.
Removing this package will result in an unsupported system. For
more information see https://support.oracle.com/CSP/main/article
?cmd=show&type=NOT&doctype=REFERENCE&id=1501435.1.
Category: Meta Packages/Incorporations
State: Installed
Publisher: solaris
Version: 0.5.11 (Oracle Solaris 11.1.21.4.1)
Build Release: 5.11
Branch: 0.175.1.21.0.4.1
Packaging Date: July 1, 2014 04:57:05 PM
Size: 5.46 kB
FMRI: pkg://solaris/entire@0.5.11,5.11-0.175.1.21.0.4.1:20140701T165705Z
UA-SOL11#
4. Check the current publisher.
UA-SOL11#pkg publisher PUBLISHER TYPE STATUS P LOCATION solaris origin online F https://pkg.oracle.com/solaris/support/ UA-SOL11#
5.Since the publisher is set to Oracle’s support repository , Please use the below command to upgrade the system from 11.1 to 11.2.
UA-SOL11#pkg update --accept
------------------------------------------------------------
Package: pkg://solaris/consolidation/osnet/osnet-incorporation@0.5.11,5.11-0.175.2.0.0.42.2:20140624T183842Z
License: lic_OTN
Oracle Technology Network Developer License Terms
Oracle Solaris, Oracle Solaris Cluster and Oracle Solaris Express
Export Controls
<<<>>>>>
Entire Agreement
You agree that this agreement is the complete agreement for the
Programs and licenses, and this agreement supersedes all prior or
contemporaneous agreements or representations. Any other license terms
that may be included in or with the Program shall not apply. If any
term of this agreement is found to be invalid or unenforceable, the
remaining provisions will remain effective.
Last updated: 12 May 2014
Should you have any questions concerning this License Agreement, or if
you desire to contact Oracle for any reason, please write:
Oracle America, Inc.
500 Oracle Parkway,
Redwood City, CA 94065
Oracle may contact you to ask if you had a satisfactory experience
installing and using this OTN software download.
Packages to remove: 5
Packages to install: 68
Packages to update: 529
Mediators to change: 1
Create boot environment: Yes
Create backup boot environment: No
DOWNLOAD PKGS FILES XFER (MB) SPEED
database/berkeleydb-5 44/602 2757/37790 24.5/553.0 15.6k/s
If your system is pointing to the oracle’s release repository to upgrade, then just review the license agreement and then update it .To configure the local IPS repository, please check it here.
UA-SOL11#pkg publisher PUBLISHER TYPE STATUS P LOCATION solaris origin online F https://pkg.oracle.com/solaris/release/ UA-SOL11# UA-SOL11# pkg update --license|less UA-SOL11# pkg update --accept
If your are wondering how to change the repository from oracle release to oracle support repository , please check it here.
6. Once the package updates are downloaded , system will automatically create a new boot environment and installs the new updates. It also automatically activates the boot environment after the system update.
Packages to remove: 5
Packages to install: 68
Packages to update: 529
Mediators to change: 1
Create boot environment: Yes
Create backup boot environment: No
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 602/602 37790/37790 553.0/553.0 57.2k/s
PHASE ITEMS
Removing old actions 8885/8885
Installing new actions 24683/24683
Updating modified actions 30106/30106
Updating package state database Done
Updating package cache 534/534
Updating image state Done
Creating fast lookup database Done
A clone of solaris-1 exists and has been updated and activated.
On the next boot the Boot Environment solaris-2 will be
mounted on '/'. Reboot when ready to switch to this updated BE.
---------------------------------------------------------------------------
NOTE: Please review release notes posted at:
https://support.oracle.com/epmos/faces/DocContentDisplay?id=1501435.1
---------------------------------------------------------------------------
UA-SOL11#beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
solaris-1 N / 13.37M static 2014-08-01 01:33
solaris-2 R - 9.68G static 2014-08-02 03:04
solaris-backup-1 - - 171.0K static 2014-06-29 06:26
UA-SOL11#
7.What is left out now ? You have to just reboot the system using “init 6” to bring up the Solaris 11.2 .
8.Once the system is up , Just login . You can see that system is booted on Solaris 11.2 environment.
login as: root Using keyboard-interactive authentication. Password: Last login: Sat Aug 2 01:27:25 2014 from 192.168.2.2 Oracle Corporation SunOS 5.11 11.2 June 2014 root@UA_SOL11:~#
9.Check /etc/release file and uname command output .
root@UA-SOL11:~# cat /etc/release
Oracle Solaris 11.2 X86
Copyright (c) 1983, 2014, Oracle and/or its affiliates. All rights reserved.
Assembled 23 June 2014
root@UA-SOL11:~# uname -a
SunOS UA-SOL11 5.11 11.2 i86pc i386 i86pc
root@UA-SOL11:~#
10.Check the current BE. If you want to rollback the change , you can activate the OLD BE using beadm commands.
root@UA-SOL11:~# beadm list BE Active Mountpoint Space Policy Created -- ------ ---------- ----- ------ ------- solaris-1 - - 14.74M static 2014-08-01 01:33 solaris-2 NR / 9.80G static 2014-08-02 03:04 solaris-backup-1 - - 171.0K static 2014-06-29 06:26 root@UA-SOL11:~#
12. Here is the “pkg entire info” & “pkg kernel info” commands output after the system upgrade.
root@UA-SOL11:~# pkg info entire
Name: entire
Summary: Incorporation to lock all system packages to the same build
Description: This package constrains system package versions to the same
build. WARNING: Proper system update and correct package
selection depend on the presence of this incorporation.
Removing this package will result in an unsupported system.
Category: Meta Packages/Incorporations
State: Installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.2.0.0.42.0
Packaging Date: June 24, 2014 07:38:32 PM
Size: 5.46 kB
FMRI: pkg://solaris/entire@0.5.11,5.11-0.175.2.0.0.42.0:20140624T193832Z
root@UA-SOL11:~# pkg info kernel
Name: system/kernel
Summary: Core Kernel
Description: Core operating system kernel, device drivers and other modules.
Category: System/Core
State: Installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.2.0.0.42.2
Packaging Date: June 24, 2014 06:55:42 PM
Size: 33.62 MB
FMRI: pkg://solaris/system/kernel@0.5.11,5.11-0.175.2.0.0.42.2:20140624T185542Z
root@UA-SOL11:~#
- Branch version 0.175.1 .x.x= solaris 11.1 .
- Branch version 0.175.2 .x.x= solaris 11.2 .
We have successfully upgraded the system from Oracle Solaris 11.1 to Solaris 11.2 . Please do not forget to read the notes.
Notes:
* If you are planning for upgrade on SPARC based machines , make sure that zone’s doesn’t have the ldommnager package on it .If it has , just remove it using below command.
# for z in `zoneadm list`; do zlogin $z pkg uninstall ldomsmanager; done
Then just update the pkg packages before going to the system update.
# pkg update package/pkg
* If your Solaris 11.1 is running without regular updates, just update to the below version and reboot it before proceeding with Solaris 11.2 update.
# pkg update --accept entire@0.5.11,5.11-0.175.0.10 # init 6
Hope this article will help to upgrade Solaris 11.2 from Solaris 11.1. Stay tune with UnixArena for more Solaris 11.2 Cloud articles.
Share it ! Comment it !! Be Sociable !!!
vijay says
My name is Vijay. I am working as solaris admin. Upto zones i have an idea. Coming to Ldoms i am not that much stuff, and i am not working in Ldom also. Recently i have changed one project, in that Solaris 11.3 builds is there. I have no building exp also. In that builds create one control domain and one guest domain. Please help me out. it is very urgent.
we have new server(T7-1) build came. Please find my requirement below.
One control domain
One I/O domain
3(or)4 Global zones
In that Global zones 0(or)1 Non-global zones.
vijay says
Hi Team,
My name is Vijay. I am working as solaris admin. Upto zones i have an idea. Coming to Ldoms i am not that much stuff, and i am not working in Ldom also. Recently i have changed one project, in that Solaris 11.3 builds is there. I have no building exp also. In that builds create one control domain and one guest domain. Please help me out. it is very urgent.