How to create a local repository (repo) for Solaris ISO image using ZFS zpool

book

Article ID: 100052743

calendar_today

Updated On:

Description

Description


To reduce the time taken to upgrade the Solaris version, Veritas recommends downloading the required Solaris ISO image and defining a local repository and publisher.

Please contact Oracle Support for assistance in downloading the Solaris ISO image.

The procedure outlined in this article requires the DMP tunable "dmp_native_support" to be enabled (turned on).

The tunable state can be verified by running:
 

# vxdmpadm gettune dmp_native_support
            Tunable               Current Value  Default Value
------------------------------    -------------  -------------
dmp_native_support                       on              off
 

Steps:
 

1.] If you have a spare disk available, ensure the disk is not in use and can be uninitialized from VxVM use, using the vxdiskunsetup utility.

Uninitialize VxVM disk for ZFS use:

Example:

# /etc/vx/bin/vxdiskunsetup emc0_155e


2.] Create ZFS zpool for SOL 11.4 repo using VxVM disk media name
 

# zpool create SOL114 emc0_155e

# zpool list
NAME                          SIZE  ALLOC   FREE  CAP  DEDUP  HEALTH  ALTROOT
SOL114                       24.9G   122K  24.9G   0%  1.00x  ONLINE  -
dump-pool   24.9G  20.0G  4.87G  80%  1.00x  ONLINE  -
swap-pool   24.9G  20.0G  4.87G  80%  1.00x  ONLINE  -
zroot-pool   249G   174K   249G   0%  1.00x  ONLINE  -
rpool                        99.5G  63.4G  36.1G  63%  1.00x  ONLINE  -


3.] Confirm the mount-point for ZFS zpool "SOL114"
 

# zfs list | grep SOL114
SOL114                                                            86.5K  24.5G    31K  /SOL114


4.] Copy the downloaded SOL 11.4 SRU 42 ISO image to the required host(s) using the mount-point for the newly created ZFS zpool.

In this instance, the ZFS zpool mount-point is "/SOL114"
 

# scp sol-11_4_42_113_1-incr-repo.iso :/SOL114/
# cd /SOL114

# ls -al
total 30445845
drwxr-xr-x   2 root     root           3 Mar 24 17:46 .
drwxr-xr-x  26 root     sys           31 Mar 24 17:43 ..
-rw-r--r--   1 root     root     15576672256 Mar 24 17:47 sol-11_4_42_113_1-incr-repo.iso


5.] Unset existing solaris Publishers:

List the current publishers

# pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
solaris                     origin   online F file:///SRU3623repo/solupdate36/repo/
solaris                     origin   online F https://pkg.oracle.com/solaris/legacy/support/
help

# pkg unset-publisher solaris
Updating package cache                           1/1

# pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
help

 

6.] Mount SOL 11.4 SRU 42 ISO on /cdrom114 using the following steps

# pwd
/SOL114

# ls
sol-11_4_42_113_1-incr-repo.iso

# lofiadm -a /SOL114/sol-11_4_42_113_1-incr-repo.iso
/dev/lofi/1

# mkdir /cdrom114

# mount -o ro -F hsfs /dev/lofi/1 /cdrom114

 

7.] Define the solaris publisher using the locally mounted repository path "/cdrom114/rep"
 

# pkg set-publisher -g file:///cdrom114/repo solaris

# pkg publisher
PUBLISHER                   TYPE     STATUS P LOCATION
help
solaris                     origin   online F file:///cdrom114/repo/


8.] Confirm Solaris 11.4 SRU 42 repo is available with the newly defined solaris publisher
 

# pkg list -af entire
NAME (PUBLISHER)                                  VERSION                    IFO
entire (solaris)                                  11.4-11.4.42.0.1.113.1     ---
entire (solaris)                                  0.5.11-0.175.3.36.0.23.0   i--

 

Solaris Boot Environments

Veritas strongly encourages customers to use the Solaris beadm utility to create and manage Alternate Boot Environments (ABEs).

 

Issue/Introduction

How to create a local repository (repo) for Solaris ISO image using ZFS zpool