Update Solaris 11.0 a 11.1

Page last edited hace 2148 días 23 horas
De Solaris-ES
Saltar a: navegación, buscar

Antes de comenzar[editar]

Es muy importante tener bien claro que release de Solaris 11/11 estamos utilizando, es decir a que nivel esta parcheado nuestro S11.0 y esto esta determinado por el SRU. 

Es importante porque dependiendo de dicha release se aplicara un procedimiento u otro de actualización.

En mi caso el repositorio esta actualizado con la version Oracle Solaris 11 11/11 SRU 9.5 por lo cual aplique el procedimiento acorde a la misma. Este procedimiento esta descrito
en el documento How to Update to Oracle Solaris 11.1 Using the Image Packaging System

A continuación detallo la actualización y agrego algunos pasos que creo pueden ser utiles.

Creamos un nuevo BE antes de la actualización[editar]

$ pfexec beadm list
BE                    Active Mountpoint Space   Policy Created          
--                    ------ ---------- -----   ------ -------          
initial               -      -          56.0K   static 2012-07-26 21:53 
solaris               -      -          12.70M  static 2012-07-26 21:41 
solaris-1             NR     /          7.99M   static 2012-07-26 22:25 
$ pfexec beadm create S11.0SRU9.5-PreUpdate

Procedimiento de vuelta atras[editar]

$ pfexec beadm activate S11.0SRU9.5-PreUpdate
$ pfexec reboot 

Verificamos la version de Solaris instalada[editar]

$ pfexec pkg info entire
          Name: entire
       Summary: entire incorporation including Support Repository Update (Oracle Solaris 11 11/11 SRU 9.5).
   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=1372094.1.
      Category: Meta Packages/Incorporations
         State: Installed
     Publisher: solaris
       Version: 0.5.11 (Oracle Solaris 11 SRU 9.5)
 Build Release: 5.11
        Branch: 0.175.0.9.0.5.0
Packaging Date: July  5, 2012 06:23:03 PM 
          Size: 5.45 kB
          FMRI: pkg://solaris/entire@0.5.11,5.11-0.175.0.9.0.5.0:20120705T182303Z

Actualizamos el repositorio y creamos un nuevo BE[editar]

$ pfexec pkg update --be-name S11.0SRU9.5 --accept entire@0.5.11,5.11-0.175.0.10
           Packages to install:   4
            Packages to update:  52
       Create boot environment: Yes
Create backup boot environment:  No

DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                56/56   1136/1136    73.5/73.5$<3>

PHASE                                        ACTIONS
Removal Phase                                155/155 
Install Phase                                397/397 
Update Phase                               2703/2703 

PHASE                                          ITEMS
Package State Update Phase                   108/108 
Package Cache Update Phase                     52/52
Image State Update Phase                         2/2 

PHASE                                          ITEMS
Reading Existing Index                           8/8 
Indexing Packages                              56/56
Optimizing Index...

PHASE                                          ITEMS
Indexing Packages                            514/514 

A clone of S11.0SRU9.5-PreUpdate exists and has been updated and activated.
On the next boot the Boot Environment S11.0SRU9.5 will be
mounted on '/'.  Reboot when ready to switch to this updated BE.
$ pfexec reboot

Verificamos a que version se llevo el repositorio[editar]

$ pfexec pkg info entire
          Name: entire
       Summary: entire incorporation including Support Repository Update (Oracle Solaris 11 11/11 SRU 10.5).
   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=1372094.1.
      Category: Meta Packages/Incorporations
         State: Installed
     Publisher: solaris
       Version: 0.5.11 (Oracle Solaris 11 SRU 10.5)
 Build Release: 5.11
        Branch: 0.175.0.10.0.5.0
Packaging Date: August  3, 2012 06:26:27 PM 
          Size: 5.45 kB
          FMRI: pkg://solaris/entire@0.5.11,5.11-0.175.0.10.0.5.0:20120803T182627Z

Aplicamos el procedimiento: Updating a System Running SRU#10.5[editar]

$ pfexec pkg update pkg:/package/pkg
            Packages to remove:  1
       Create boot environment: No
Create backup boot environment: No

PHASE                                        ACTIONS
Removal Phase                                    9/9 

PHASE                                          ITEMS
Package State Update Phase                       1/1 
Package Cache Update Phase                       1/1
Image State Update Phase                         2/2 

PHASE                                          ITEMS
Reading Existing Index                           8/8 
Indexing Packages                                1/1
$ pfexec pkg update --be-name s11.1ga --accept
------------------------------------------------------------
Package: pkg://solaris/consolidation/osnet/osnet-incorporation@0.5.11,5.11-0.175.1.0.0.24.2:20120919T184141Z
License: usr/src/pkg/license_files/lic_OTN

Oracle Technology Network Developer License Agreement

Oracle Solaris, Oracle Solaris Cluster and Oracle Solaris Express

EXPORT CONTROLS
...
racle may contact you to ask if you had a satisfactory experience
installing and using this OTN software download.



            Packages to remove:   1
           Packages to install:  31
            Packages to update: 492
           Mediators to change:   2
       Create boot environment: Yes
Create backup boot environment:  No

DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              524/524 24357/24357  600.5/600.5$<3>

PHASE                                        ACTIONS
Removal Phase                              8740/8740 
Install Phase                            15321/15321 
Update Phase                             16578/16578 

PHASE                                          ITEMS
Package State Update Phase                 1014/1014 
Package Cache Update Phase                   492/492 
Image State Update Phase                         2/2 

PHASE                                          ITEMS
Reading Existing Index                           8/8 
Indexing Packages                            524/524
Optimizing Index...

PHASE                                          ITEMS
Indexing Packages                            543/543 

A clone of S11.0SRU9.5 exists and has been updated and activated.
On the next boot the Boot Environment s11.1ga will be
mounted on '/'.  Reboot when ready to switch to this updated BE.


---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=REFERENCE&id=1372094.1
---------------------------------------------------------------------------
$ pfexec reboot

Verificamos si el Solaris esta en la version 11.1[editar]

$ uname -a
SunOS sol11 5.11 11.1 i86pc i386 i86pc