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 :
view source
print?
1 rachmat@solaris:~$ ls -l *iso
2 -rw-r--r-- 1 rachmat staff 3537872896 Nov 13 06:53 V28915-01.iso
3 -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)
01 root@solaris:~# format
02 Searching for disks...done
03
04 AVAILABLE DISK SELECTIONS:
05 0. c3t0d0
06 /pci@0,0/pci8086,2829@d/disk@0,0
07 1. c3t2d0
08 /pci@0,0/pci8086,2829@d/disk@2,0
09 Specify disk (enter its number): ^D
10
11 root@solaris:~# zpool create ipspool c3t2d0
12 root@solaris:~# zfs create ipspool/ips
13
14 -optional :
15 root@solaris:~# zfs set atime=off ipspool/ips
16 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 :
1 root@solaris:~# lofiadm -a /export/home/rachmat/V28915-01.iso /dev/lofi/1
2 root@solaris:~# mount -F hsfs /dev/lofi/1 /mnt
3 root@solaris:~# ls /mnt/
4 COPYRIGHT NOTICES README repo
5
6 root@solaris:~# rsync -aP /mnt/repo /ipspool/ips
7 root@solaris:~# umount /mnt
8 root@solaris:~# lofiadm -d /dev/lofi/1
5. Mount the second repository iso and rsync it, after finished umount it :
1 root@solaris:~# lofiadm -a /export/home/rachmat/V28916-01.iso /dev/lofi/1
2 root@solaris:~# mount -F hsfs /dev/lofi/1 /mnt
3 root@solaris:~# ls /mnt/
4 COPYRIGHT NOTICES README repo
5
6 root@solaris:~# rsync -aP /mnt/repo /ipspool/ips
7 root@solaris:~# umount /mnt
8 root@solaris:~# lofiadm -d /dev/lofi/1
6. set the repository to your repository folder, in this case /ipspool/ips/repo
1 root@solaris:~# svccfg -s application/pkg/server setprop pkg/inst_root=/ipspool/ips/repo
7. Set the readonly to true :
1 root@solaris:~# svccfg -s application/pkg/server setprop pkg/readonly=true
8. Enable and refresh pkg serer :
1 root@solaris:~# svcadm refresh application/pkg/server
2 root@solaris:~# svcadm enable application/pkg/server
9. setting up the client, to use only this repository
1 root@solaris:~# pkg set-publisher -G '*' -gsolaris
Where the origin is your repository server domain / ip address
view source
print?
1 root@solaris:~# pkg set-publisher -G '*' -g http://10.0.7.1 solaris
10. Verify and testing :
01 root@solaris:~# pkg publisher
02 PUBLISHER TYPE STATUS URI
03 solaris origin online http://10.0.7.1/
04
05 root@solaris:~# pkg install nmap
06 Packages to install: 2
07 Create boot environment: No
08 Create backup boot environment: No
09 Services to change: 1
10
11 DOWNLOAD PKGS FILES XFER (MB)
12 Completed 2/2 454/454 3.1/3.1
13
14 PHASE ACTIONS
15 Install Phase 538/538
16
17 PHASE ITEMS
18 Package State Update Phase 2/2
19 Image State Update Phase 2/2
Note : See the README file of repository for the complete options.
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 :
view source
print?
1 rachmat@solaris:~$ ls -l *iso
2 -rw-r--r-- 1 rachmat staff 3537872896 Nov 13 06:53 V28915-01.iso
3 -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)
01 root@solaris:~# format
02 Searching for disks...done
03
04 AVAILABLE DISK SELECTIONS:
05 0. c3t0d0
06 /pci@0,0/pci8086,2829@d/disk@0,0
07 1. c3t2d0
08 /pci@0,0/pci8086,2829@d/disk@2,0
09 Specify disk (enter its number): ^D
10
11 root@solaris:~# zpool create ipspool c3t2d0
12 root@solaris:~# zfs create ipspool/ips
13
14 -optional :
15 root@solaris:~# zfs set atime=off ipspool/ips
16 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 :
1 root@solaris:~# lofiadm -a /export/home/rachmat/V28915-01.iso /dev/lofi/1
2 root@solaris:~# mount -F hsfs /dev/lofi/1 /mnt
3 root@solaris:~# ls /mnt/
4 COPYRIGHT NOTICES README repo
5
6 root@solaris:~# rsync -aP /mnt/repo /ipspool/ips
7 root@solaris:~# umount /mnt
8 root@solaris:~# lofiadm -d /dev/lofi/1
5. Mount the second repository iso and rsync it, after finished umount it :
1 root@solaris:~# lofiadm -a /export/home/rachmat/V28916-01.iso /dev/lofi/1
2 root@solaris:~# mount -F hsfs /dev/lofi/1 /mnt
3 root@solaris:~# ls /mnt/
4 COPYRIGHT NOTICES README repo
5
6 root@solaris:~# rsync -aP /mnt/repo /ipspool/ips
7 root@solaris:~# umount /mnt
8 root@solaris:~# lofiadm -d /dev/lofi/1
6. set the repository to your repository folder, in this case /ipspool/ips/repo
1 root@solaris:~# svccfg -s application/pkg/server setprop pkg/inst_root=/ipspool/ips/repo
7. Set the readonly to true :
1 root@solaris:~# svccfg -s application/pkg/server setprop pkg/readonly=true
8. Enable and refresh pkg serer :
1 root@solaris:~# svcadm refresh application/pkg/server
2 root@solaris:~# svcadm enable application/pkg/server
9. setting up the client, to use only this repository
1 root@solaris:~# pkg set-publisher -G '*' -g
Where the origin is your repository server domain / ip address
view source
print?
1 root@solaris:~# pkg set-publisher -G '*' -g http://10.0.7.1 solaris
10. Verify and testing :
01 root@solaris:~# pkg publisher
02 PUBLISHER TYPE STATUS URI
03 solaris origin online http://10.0.7.1/
04
05 root@solaris:~# pkg install nmap
06 Packages to install: 2
07 Create boot environment: No
08 Create backup boot environment: No
09 Services to change: 1
10
11 DOWNLOAD PKGS FILES XFER (MB)
12 Completed 2/2 454/454 3.1/3.1
13
14 PHASE ACTIONS
15 Install Phase 538/538
16
17 PHASE ITEMS
18 Package State Update Phase 2/2
19 Image State Update Phase 2/2
Note : See the README file of repository for the complete options.
No comments:
Post a Comment