Sponsored Content
Operating Systems Solaris Solaris 11 to 11.1 update help Post 302981782 by fly3rs on Monday 19th of September 2016 12:01:06 PM
Old 09-19-2016
Yes the plan is to go to 11.2 - I got the 11.1 update to work on both global and non global 11.0 system. The thing is I did so much stuff I'm still not clear on the procedure - mainly on how to get the repository to be seen by the zone - when I got the update to finally work the zone had a pkg publisher of an http localhost:1008/sorlairs/version (I assume) it was a long string of numbers... well I did get it to work but not sure how I did it... :-) Next step is to update to 11.2 tomorrow. I will post output of what you requested if I have trouble with that. I did have to download a pre-update iso and combine it with 11.0 repo to do the first part of update - then I had to run pkg install pkg/package after that with 11.1 repo configured and that's when it wouldn't connect to the zone... kept failing with https connection errors... I went back and looked at 11.1 docs and I configured a sharenfs for the repo and also configured application/pkg/server. After I did all that I got pkg install package/pkg to run. Here is the application/pkg/server steps I followed:

This service was in maintenance when I checjed it after configuration.. i rebooted system and it came back disabled.. I enabled it and it went online - after that I was able to install package/pkg and update both global and non global zone.

Code:
$ svccfg -s application/pkg/server setprop pkg/inst_root=/export/11.1repo
$ svccfg -s application/pkg/server setprop pkg/readonly=true

Check your work:

Code:
$ svcprop -p pkg/inst_root application/pkg/server
/export/repoSolaris11

Use pkg.depotd to serve the repository to clients. By default, pkg.depotd listens for connections on port 80. You can change the port by resetting the pkg/port property.

Code:
$ svccfg -s application/pkg/server setprop pkg/port=port_number

Start the Repository Service

Restart the pkg.depotd repository service.

Code:
$ svcadm refresh application/pkg/server
$ svcadm enable application/pkg/server

Here are the NFS share steps I followed:

Code:
root@suntest:/var/tmp/11.1repo# zfs create -o mountpoint=/export/11-1repo rpool/export/11-1repo
cannot create 'rpool/export/11-1repo': dataset already exists

root@suntest:/var/tmp/11.1repo# zfs set share=name=s11-1repo,path=/export/11-1repo,prot=nfs rpool/export/11-1repo
name=s11-1repo,path=/export/11-1repo,prot=nfs

root@suntest:/var/tmp/11.1repo# zfs set sharenfs=on rpool/export/11-1repo

root@suntest:/var/tmp/11.1repo# grep repo /etc/dfs/sharetab
/export/11-1repo        s11-1repo       nfs     sec=sys,rw      
root@usphlsuntest:/var/tmp/11.1repo#

Make sure sharenfs is on:

Code:
root@suntest:/var/tmp/11.1repo# zfs get sharenfs rpool/export/11-1repo
NAME                   PROPERTY  VALUE     SOURCE
rpool/export/11-1repo  sharenfs  on        local
root@suntest:/var/tmp/11.1repo#

Here is the error I was getting before I performed the above...

Code:
root@suntest:/var/tmp/pre-upgrade# pkg install /package/pkg                                                
Recursing into linked image: zone:testzone 
Returning from linked image: zone:testzone 
            Packages to remove:  1         
       Create boot environment: No
Create backup boot environment: No

Recursing into linked image: zone:testzone 
Returning from linked image: zone:testzone 
pkg: install failed (linked image exception(s)):

A 'sync-linked' operation failed for child 'zone:testzone' with an unexpected
return value of 1 and the following error message:
pkg: 0/1 catalogs successfully updated:
   
Unable to contact valid package repository
Encountered the following error(s):
Unable to contact any configured publishers.
This is likely a network configuration problem.
1: Framework error: code: 7 reason: couldn't connect to host

I can't put URLs in my message the the error is unable to connect to localhost 1008 etc...


Any Idea what I did to get it to work?

---------- Post updated at 12:01 PM ---------- Previous update was at 11:55 AM ----------

PS - after all this and getting the systems to 11.1 I was able to install a new 11.1 zone using the 11-1repo - so it looks like the repo is working OK now - my worries are when I unset that repo and configure the 11.2 repo I will have the same issues. I'd like to know what I'm doing with this stuff but docs online are barbaric... haha

By the way thanks a lot for taking an interest and trying to help me out...


Here is the info you asked for..

Code:
root@suntest:~# 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
root@usphlsuntest:~# pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F file:///export/11-1repo/
root@suntest:~# pkg list -af entire
NAME (PUBLISHER)                                  VERSION                    IFO
entire                                            0.5.11-0.175.1.0.0.24.2    i--
root@suntest:~# zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP    
   0 global           running    /                              solaris  shared
   1 bob              running    /rpool/bob                     solaris10 excl  
   2 testzone         running    /zones/testzone                solaris  excl  
   3 testzone11-1     running    /zones/testzone11-1            solaris  excl  
   - usphlvis01       configured /zones/usphlvis01              solaris10 excl  
root@suntest:~#

Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by fly3rs; 09-19-2016 at 08:12 PM.. Reason: Added CODE tags, again.
 

10 More Discussions You Might Find Interesting

1. Solaris

How to update patches to Solaris 10?

I am seeking help to add patches to Solaris 10 on 64 bit Sparc server. This is to prepare the server for the installation of Oracle 10g. Please list command and specific directory that patches should be added to. Thanks (4 Replies)
Discussion started by: duke0001
4 Replies

2. Solaris

How update Solaris ?

I have Solaris 10 01/06 version on my server, but i wanna update her from my DVD-Disc to 08/07. How i can do it ? I has try boot from disc, but don't find Upgrade function =( Please help me anyone! (1 Reply)
Discussion started by: jess_t03
1 Replies

3. Solaris

update openshh on solaris 10

Hi All, I've downloaded and extracted openssh4.1 on solaris 10. When I run the install-sh, it replied with "./install-sh: no input file specified". The file is executable and been move to owner root or the rest of the files. Why is that? Please help. Thanks in advance, itik (4 Replies)
Discussion started by: itik
4 Replies

4. Solaris

Undo the Veritas mirroring and update from Solaris 8 to Solaris 10

Hi all I wish to undo the mirroring for root and update the Solaris version from 8 to 10. Since i am lack of knowledge and experience on this, hope you all can help me double check the step and correct me. Existing disk groups details root@leo # vxdg list NAME STATE ID... (3 Replies)
Discussion started by: SmartAntz
3 Replies

5. Solaris

Update Solaris patch

Hi All I had update the solaris version, and now wish to update the patch. but when i check my patch version, i cant find any version for that. any idea? root@leo # showrev Hostname: leo Hostid: 839b58a3 Release: 5.10 Kernel architecture: sun4u Application architecture: sparc... (8 Replies)
Discussion started by: SmartAntz
8 Replies

6. Solaris

Update Solaris from 8 to 10

Hi all, i am facing a problem. i cant update the 8 to 10. It show me the error cannot mount the root, swap, and other filesystem. when i run # format in the normal situation, it give me the below result # format 0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> ... (12 Replies)
Discussion started by: SmartAntz
12 Replies

7. Solaris

Solaris Update 2 to 7

I need to get from Solaris 10 update 2 to update 7, whats the quickest way just apply kernel patch or live upgrade? If it is just kernel patching can i go straight from update 2 to 7 or do I have to apply each revision level patch i.e. go from update 2 to 3 to 4 etc... (2 Replies)
Discussion started by: mr_crosby
2 Replies

8. Solaris

Install update 6 on solaris with update 3

I want to update my solaris 10 server which is currently on update 3 stage. A new application require it to be on update 6. What is the best way to make it update 6. should i just install the patch or should i go for the liveupgrade?? thanks for you help in advance (3 Replies)
Discussion started by: uxravi
3 Replies

9. Solaris

Solaris Repo Update

Hi Folks, Just a quick question on this, I've tried to run this a couple of times now - first time it failed I increased the swap. I'm not sure that increasing the physical memory will do any good, but will try later today - has anyone seen this or anything similar? SunOS fvssphsun01 5.11... (8 Replies)
Discussion started by: gull04
8 Replies

10. Solaris

How to update Solaris 10 Update 3 to Update 11?

Hi friends, We have a Solaris machine running 10 update 3 -bash-3.2# cat /etc/release Solaris 10 11/06 s10s_u3wos_10 SPARC Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. ... (6 Replies)
Discussion started by: prvnrk
6 Replies
All times are GMT -4. The time now is 05:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy