分类: SOLARIS
2016-03-21 16:39:49
原文地址:如何将Solaris11升级到solaris11.1 作者:DC_楚楚
升级solaris11到solaris11.1
升级Solaris11到Solaris11.1的前提条件:
如果当前安装的SRU包是SRU9或者更低,必须先升级到SRU10或者SRU11。
如果当前安装的SRU包是SRU10或者SRU11,那么可以直接执行升级。
如果当前安装的SRU包是SRU12或者SRU13,由于这两种升级包,包含了一些比Solaris11.1原始版本还高的补丁。所以不可以直接执行升级。
如果当前安装的是SRU 9~ SRU13 ,可以升级到Solaris11.1+ SRU1。
升级方法:
一、升级使用SOLARIS版本库
1、确定当前安装的SRU版本:
# pkg info entire |grep Version
Version: 0.5.11 (Oracle Solaris 11 SRU 11.4)
如果安装的SRU为版本9 或者更低,则需要先升级到SRU 10或者SRU11
添加SRU10或者SRU11 到Publisher
# pkg set-publisher -g solaris
升级到SRU10
# pkg update --accept
或者SRU11:
# pkg update --accept
重启系统
# reboot
2、设置Publisher到Solaris11.1的full repo
使用光盘挂载:
# df -h
/dev/dsk/c4t0d0s2 6.8G 6.8G 0K 100% /media/SOL_11_1_REPO_FULL
# pkg set-publisher -g file:/media/SOL_11_1_REPO_FULL/repo solaris
# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online
二、执行升级
3、升级IPS pkg包本身
# pkg update pkg:/package/pkg
4、升级系统pkg
# pkg update --be-name solaris11.1 -v --accept
A clone of solaris-1 exists and has been updated and activated.
On the next boot the Boot Environment solaris11.1 will be
mounted on '/'. Reboot when ready to switch to this updated BE.
---------------------------------------------------------------------------
NOTE: Please review release notes posted at:
---------------------------------------------------------------------------
5、重启系统
# reboot
三、版本确认
6、确认系统版本
# more /etc/release
Oracle Solaris 11.1 X86
Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved.
Assembled 19 September 2012
# 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.1.0.0.24.2
Packaging Date: September 19, 2012 07:01:35 PM
Size: 5.46 kB
FMRI: pkg://solaris/entire@0.5.11,5.11-0.175.1.0.0.24.2:20120919T190135Z
四、升级Solaris11.1 SRU包
执行setup-standard.sh
# cd /media/eis-dvd/sun/install
# ./setup-standard.sh
# pkg set-publisher -g file:/media/SOL11_1_SRU5_05_INCR_REPO/repo solaris
# pkg update -v
经过多次的升级,BE(Boot Environment)也变多了!
# beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
solaris - - 12.37M static 2013-03-19 20:12
solaris-1 - - 12.98M static 2013-03-19 22:16
solaris11.1 N / 138.0K static 2013-03-20 00:11
solaris11.1-1 R - 6.58G static 2013-03-20 00:38
solaris11.1-backup-1 - - 151.0K static 2013-03-20 00:31
solaris11.1-backup-2 - - 155.0K static 2013-03-20 00:32
solaris11.1-backup-3 - - 163.0K static 2013-03-20 00:32