Setup Guide for updating local system and the repository with the incremental Solaris 11.1 SRU

This guide covers the steps to implement the following setup.

I. Updating the local system from Solaris 11.1 to Solaris 11.1 SRU 16.5
II. Setting up local system as an IPS Repository Server (HTTP interface)
III. Updating the local repository with the incremental Solaris 11.1 SRU 16.5



I. Updating the local system from Solaris 11.1 to Solaris 11.1 SRU 16.5


We assume that the local system is currently installed with Solaris 11.1 GA and the system doesn't have internet connectivity.

What I have:

1. Two parts of full repo iso files downloaded from http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html. Both files are concatenated to a single file using the following command.
$ cat sol-11_1-repo-full.iso-a sol-11_1-repo-full.iso-b > sol-11_1-repo-full.iso

I suggest to verify the downloaded file against its md5checksum value [http://download.oracle.com/otn/solaris/11_1/md5sum.txt] using the following command

digest -a md5 <file-name>  // the output of this command should match the original checksum value for that file.

2. Incremental repo sol-11_1_16_5_0-incr-repo.iso downloaded from MOS [Patch 18269379: ORACLE SOLARIS 11.1.16.5.0 REPO ISO IMAGE (SPARC/X86 (64-BIT)]. You can get the checksum value of incremental repo iso by clicking the check box "show digest details" when you download the file.

3. The local system IP is 192.168.10.10 & port 81 is reserved for repo server

Please note that this repo file (either full or incremental) is common for both SPARC and X86(64BIT).

Steps to update the local system:

 1. #mounting s11.1 full repo iso to mnt


        $ mount -F hsfs /soft/sol-11_1-repo-full.iso /mnt

 2. Setting the pkg publisher to full repo source

        $ pkg set-publisher -g file:///mnt/repo solaris

 3. Perform the update of the packages.

        $ pkg update

II. Setting up local system (Oracle Solaris 11.1) as an IPS Repository Server(HTTP interface):

Please note that we have already mounted the full repo iso at /mnt

    1. # copying /mnt permanently to the disk location at /s11.1
        #zfs create -o atime=off -o mountpoint=/s11.1 rpool/s11.1
        #rsync -aP /mnt/* /s11.1

     2. #unmounting mnt

         #umount /mnt

3. To allow clients to access the local repository via HTTP, enable the application/pkg/server Service Management Facility (SMF) service.

        svccfg -s application/pkg/server setprop pkg/inst_root=<data_source>/repo
        eg: $svccfg -s application/pkg/server setprop pkg/inst_root=/s11.1/repo

4. Setting port# to 81
      svccfg -s application/pkg/server setprop pkg/port=<port_number>
      eg: svccfg -s application/pkg/server setprop pkg/port="81"

5a. Enable the pkg/server service (if the service is disabled)
     $svcs pkg/server
     STATE          STIME    FMRI
     disabled        19:55:03 svc:/application/pkg/server:default

     $svcadm enable pkg/server

5b. Refresh/Restart the service, if it is already online

       $svcadm refresh application/pkg/server
       $svcadm restart application/pkg/server

6. Setting pkg publisher on repo server and repo clients:

      pkg set-publisher -G '*' -g http://<ip>:<port> solaris
      eg: $pkg set-publisher -G '*' -g 'http://192.168.10.10:81' solaris


7. Verify the Solaris 11.1 version from the repository

         $pkgrepo list -s http://192.168.10.10:81 | grep entire
         solaris   entire     0.5.11,5.11-0.175.1.0.0.24.2:20120919T190135Z

You will have multiple row entries if the repository is setup with incremental SRUs.

III. Updating the local repository with the incremental Solaris 11.1 SRU 16.5

1. #mounting s11.1 incremental SRU repo iso to mnt

        $ mount -F hsfs <full_path_to>/sol-11_1_sruN_bldnum_respinnum-incr-repo.iso  /mnt
        $ mount -F hsfs /soft/sol-11_1_16_5_0-incr-repo.iso /mnt

2. Updating the local repository

        $pkgrecv -s  /mnt/repo -d /s11.1/repo '*'

3. Building a Search Index

    $pkgrepo -s /s11.1/repo refresh
     Initiating repository refresh.

4. Refresh/Restart the service

       $svcadm refresh svc:/application/pkg/server
       $svcadm restart svc:/application/pkg/server

5. Verify the repo has the incremental SRU as well.


       # pkgrepo list -s http://192.168.10.10:81 | grep entire
       solaris   entire      0.5.11,5.11-0.175.1.16.0.5.0:20140218T165248Z
       solaris   entire      0.5.11,5.11-0.175.1.0.0.24.2:20120919T190135Z

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Technical Info, Tips and Troubleshooting: Solaris 11, Oracle Database

Search

Archives
« August 2015
SunMonTueWedThuFriSat
      
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
     
Today