Archive for the ‘Uncategorized’ Category
Configure Local IPS Repository on Solaris 11
Oracle Solaris 11 has been released and coming up as the first cloud OS, Oracle Solaris 11 coming with more features and enhancements. One of it is IPS (Image Packing Systems) this the new way you manage the software patches and packages, IPS make you easy to manage package and patches.
Why you configure Local IPS?
1. Performance (more speed from local network)
2. Security (you don’t want your client to connect to internet)
3. Replication (You want manage the repository, and to make your installation today is exactly the same for the installation next Year)
Prerequisite :
1. Install Oracle Solaris 11
2. 2 DVD ISO repository : https://edelivery.oracle.com

you need to unzip the iso, below the tow iso repository look like :
rachmat@solaris:~$ ls -l *iso -rw-r--r-- 1 rachmat staff 3537872896 Nov 13 06:53 V28915-01.iso -rw-r--r-- 1 rachmat staff 3403360256 Nov 13 14:52 V28916-01.iso
3. Create Zpool for IPS Repository (it’s optional, but I create Zpool specially for holding the repository)
root@solaris:~# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c3t0d0
/pci@0,0/pci8086,2829@d/disk@0,0
1. c3t2d0
/pci@0,0/pci8086,2829@d/disk@2,0
Specify disk (enter its number): ^D
root@solaris:~# zpool create ipspool c3t2d0
root@solaris:~# zfs create ipspool/ips
-optional :
root@solaris:~# zfs set atime=off ipspool/ips
root@solaris:~# zfs set compression=on ipspool/ips
set a time to off for better performance, it’s optional.
4. Mount the first repository iso and rsync it, after finished umount it :
root@solaris:~# lofiadm -a /export/home/rachmat/V28915-01.iso /dev/lofi/1 root@solaris:~# mount -F hsfs /dev/lofi/1 /mnt root@solaris:~# ls /mnt/ COPYRIGHT NOTICES README repo root@solaris:~# rsync -aP /mnt/repo /ipspool/ips root@solaris:~# umount /mnt root@solaris:~# lofiadm -d /dev/lofi/1
5. Mount the second repository iso and rsync it, after finished umount it :
root@solaris:~# lofiadm -a /export/home/rachmat/V28916-01.iso /dev/lofi/1 root@solaris:~# mount -F hsfs /dev/lofi/1 /mnt root@solaris:~# ls /mnt/ COPYRIGHT NOTICES README repo root@solaris:~# rsync -aP /mnt/repo /ipspool/ips root@solaris:~# umount /mnt root@solaris:~# lofiadm -d /dev/lofi/1
6. set the repository to your repository folder, in this case /ipspool/ips/repo
root@solaris:~# svccfg -s application/pkg/server setprop pkg/inst_root=/ipspool/ips/repo
7. Set the readonly to true :
root@solaris:~# svccfg -s application/pkg/server setprop pkg/readonly=true
8. Enable and refresh pkg serer :
root@solaris:~# svcadm refresh application/pkg/server root@solaris:~# svcadm enable application/pkg/server
9. setting up the client, to use only this repository
root@solaris:~# pkg set-publisher -G '*' -g <origin> solaris
Where the origin is your repository server domain / ip address
root@solaris:~# pkg set-publisher -G '*' -g http://10.0.7.1 solaris
10. Verify and testing :
root@solaris:~# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online http://10.0.7.1/
root@solaris:~# pkg install nmap
Packages to install: 2
Create boot environment: No
Create backup boot environment: No
Services to change: 1
DOWNLOAD PKGS FILES XFER (MB)
Completed 2/2 454/454 3.1/3.1
PHASE ACTIONS
Install Phase 538/538
PHASE ITEMS
Package State Update Phase 2/2
Image State Update Phase 2/2
Note : See the README file of repository for the complete options.
Comments (2)



