ClusterRepo
From pressy's brainbackup
Cluster Repository
To install solaris cluster 4.x we might want to use a local repository:
root@zsol01:~# ls /downloads osc-4_1-ga-repo-full.iso sol-11_1-repo-full.iso root@zsol01:~# mount -F hsfs /downloads/osc-4_1-ga-repo-full.iso /mnt root@zsol01:~# mkdir /export/repo/sc4 root@zsol01:~# rsync -a /mnt/repo /export/repo/sc4 root@zsol01:~# pkgrepo -s /export/repo/sc4/repo/ refresh root@zsol01:~# pkgrepo get -s /export/repo/sc4/repo/ SECTION PROPERTY VALUE publisher prefix ha-cluster repository check-certificate-revocation False repository description This\ repository\ serves\ a\ copy\ of\ the\ Oracle\ Solaris\ Cluster\ 4.1\ Package\ Repository. repository name Oracle\ Solaris\ Cluster\ 4.1\ Package\ Repository repository signature-required-names () repository trust-anchor-directory /etc/certs/CA/ repository version 4 root@zsol01:~# root@zsol01:~# svccfg -s pkg/server add ha-cluster root@zsol01:~# svccfg -s pkg/server:ha-cluster addpg pkg application root@zsol01:~# svccfg -s pkg/server:ha-cluster setprop pkg/port=8080 root@zsol01:~# svccfg -s pkg/server:ha-cluster setprop pkg/inst_root=/export/repo/sc4/repo root@zsol01:~# svccfg -s pkg/server list :properties default ha-cluster root@zsol01:~# root@zsol01:~# svccfg -s pkg/server:ha-cluster addpg general framework root@zsol01:~# svccfg -s pkg/server:ha-cluster addpropvalue general/enabled boolean: true root@zsol01:~# root@zsol01:~# root@zsol01:~# svcadm refresh application/pkg/server:ha-cluster root@zsol01:~# svcadm enable application/pkg/server:ha-cluster root@zsol01:~# netstat -an | grep 8080 *.8080 *.* 0 0 128000 0 LISTEN 127.0.0.1.48122 127.0.0.1.8080 130880 0 139264 0 TIME_WAIT root@zsol01:~#
Let's go to the cluster node:
root@clnode01:~# pkg set-publisher -G '*' -M '*' -g http://192.168.56.101:8080/ ha-cluster root@clnode01:~# pkg publisher PUBLISHER TYPE STATUS P LOCATION solaris origin online F http://192.168.56.101/ ha-cluster origin online F http://192.168.56.101:8080/ root@clnode01:~#
Update the Cluster Repository
root@zsol01:~# pkgrecv -s https://pkg.oracle.com/ha-cluster/support \ > -d /export/repo/sc4/repo/ \ > --key /var/pkg/ssl/Oracle_Solaris_Cluster_4_Support.key.pem \ > --cert /var/pkg/ssl/Oracle_Solaris_Cluster_4_Support.certificate.pem \ > ha-cluster '*' Processing packages for publisher ha-cluster ... Retrieving and evaluating 92 package(s)... PROCESS ITEMS GET (MB) SEND (MB) Completed 51/51 53.7/53.7 185.3/185.3 root@zsol01:~# root@zsol01:~# pkgrepo -s /export/repo/sc4/repo refresh Initiating repository refresh. root@zsol01:~#
And on the client we can refresh our publisher
root@clnode02:~# root@clnode02:~# pkg unset-publisher ha-cluster root@clnode02:~# pkg set-publisher -G '*' -M '*' -g http://192.168.56.101:8080/ ha-cluster root@clnode02:~# pkg list -af ha-cluster/system/core NAME (PUBLISHER) VERSION IFO ha-cluster/system/core (ha-cluster) 4.1-7.1 --- ha-cluster/system/core (ha-cluster) 4.1-0.18.2 --- root@clnode02:~#