![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||
Solution Type Technical Instruction Sure Solution 1503899.1 : Setting up Solaris Repositories on ZFS Storage 7320 in SPARC SuperCluster
Steps to configure Offline Solaris Repositories on ZUN ZFS Storage 7320 in SPARC SuperCluster Applies to:SPARC SuperCluster T4-4 - Version All Versions to All Versions [Release All Releases]Information in this document applies to any platform. GoalConfigure Offline Solaris Repositories on ZFS SA on SPARC SuperCluster FixIn the event of access to the external Oracle Solaris Support Repositories isn't possible and the customer doesn't have one available on their network then it might be useful to create a local repo on the ZFS-SA to install additional packages if required. Login to the ZFS SA and create the share on which the Oracle Solaris 11 package repository will reside. The following transcript is provided as a basic guide only, it illustrates the setting up of a share with default attributes. The procedure the operator uses to create the share may need to take into account additional site specific requirements (ie. share access permissions). Refer to MOS note: 1503867.1 for details on creating shares on ZFS SA.
# ssh sscsn1 Last login: Fri Jul 20 11:01:31 2012 from 192.168.1.60 sscsn1:> shares sscsn1:shares> project IPS-repos sscsn1:shares IPS-repos (uncommitted)> commit sscsn1:shares IPS-repos> filesystem s11repo sscsn1:shares IPS-repos/s11repo (uncommitted)> set sharenfs="sec=sys,rw,root=@<host-ip-where-share-will-be-mounted>/24" sscsn1:shares IPS-repos/s11repo (uncommitted)> commit sscsn1:shares IPS-repos> exit Connection to sscsn1 closed. #
Login to a T4-4 primary node. Copy the repo/ directory from the Oracle Solaris 11 11/11 ISO image to the package repository share set up on the ZFS SA, then re-index the repository :
# mkdir -p <tmp-dir> # mount -F hsfs $DOWNLOAD_HOME/templates/solaris-11/repository-image/nov-11-2011/sol-11-1111-repo-full.iso <tmp-dir> where ($DOWNLOAD_HOME=/root/ssc-1.0.1.build-14) # cd <tmp-dir> # pax -rw -p p repo /net/<zfssa-host>/export/s11repo # umount <tmp-dir> # pkgrepo rebuild -s /net/<zfssa-host>/export/s11repo/repo
Using the Oracle Solaris 11 SRU 8.5 ISO image in the software bundle, to Load SRU 8.5 to the package repository :
# mkdir -p <tmp-dir> # mount -F hsfs $DOWNLOAD_HOME/templates/solaris-11/SRU8.5/sol-11-1111-sru8-05-incr-repo.iso <tmp-dir> where ($DOWNLOAD_HOME=/root/ssc-1.0.1.build-14) # pkgrecv -s <tmp-dir>/repo -d /net/<zfssa-host>/export/s11repo/repo '*' # umount <tmp-dir> # pkgrepo rebuild -s /net/<zfssa-host>/export/s11repo/repo
Configure the repository server service.
# svccfg -s application/pkg/server setprop pkg/inst_root=/net/<zfssa-host>/export/s11repo/repo # svccfg -s application/pkg/server setprop pkg/readonly=true Verify the server service: # svcprop -p pkg/inst_root application/pkg/server
NOTE - By default pkg.depotd listens for connections on port 80. we can change it to 11000 as follows :
# svccfg -s application/pkg/server setprop pkg/port=11000
Start the Repository Service
# svcadm refresh application/pkg/server # svcadm enable application/pkg/server
Now we should be able to use the primary T4-4 as our local pkg.depotd server. Set the publisher on all the domains as follows:
# pkg set-publisher -G '*' -g http://<sscsn1> solaris # pkg publisherPUBLISHER TYPE STATUS URIsolaris origin online http://<sscsn1>/NOTE - It is good practice to snapshot the ZFS filesystem on which the package repository resides before making changes to the repository. This provides a means to rollback the repository if the need arises. For information about ZFS SA snapshots, see: http://docs.oracle.com/cd/E26765_01/html/E26397/shares__shares__snapshots.html#scrolltoc
Community DiscussionsStill have questions? Use the communities window below to search for similar discussions or start a new discussion on this subject. (Window is the live community not a screenshot) Click here to open in main browser window ReferencesAttachments This solution has no attachment |
||||||||||||
|