Home / Solaris Cluster / How to Install Oracle Solaris Cluster on Solaris 11 ?

How to Install Oracle Solaris Cluster on Solaris 11 ?

This is the first article about Sun cluster aka oracle Solaris cluster on UnixArena. This Oracle Solaris cluster series articles will cover the build of a two-node cluster running Solaris Cluster 4.1 on Solaris 11.The intention of making the cluster will be configuring High availability local zone aka failover local zones.We have done the same setup on veritas cluster quite long time back.In this article we will see the installation of the cluster software.


Cluster Nodes: UnixArena,UnixArena1
Cluster Software: Oracle Solaris Cluster 4.1.
Operating System:Solaris 11

1.Download the oracle Solaris cluster from oracle website.You may need oracle support login to download it.The file name will be “osc-4_1-ga-repo-full.iso” .

2. Copy the file to your cluster nodes using winscp.

3. Create a device file for ISO image to mount on both the nodes.

root@UnixArena:~#  lofiadm -a /osc-4_1-ga-repo-full.iso
/dev/lofi/1


4.Create the mount point and mount it on both the cluster nodes.

root@UnixArena:~# mkdir -p /testrepo/hasol1
root@UnixArena:~# mount -F hsfs /dev/lofi/1 /testrepo/hasol1
root@UnixArena:~#


5.Set the package publisher on both cluster nodes.

root@UnixArena:~# pkg set-publisher -g file:///testrepo/hasol1 ha-cluster
pkg set-publisher: The origin URIs for 'ha-cluster' do not appear to point to a valid pkg repository.
Please verify the repository's location and the client's network configuration.
Additional details:

Unable to contact valid package repository
Encountered the following error(s):
Transport errors encountered when trying to contact repository.
Reported the following errors:
file protocol error: code: 22 reason: The path '/testrepo/hasol1' does not contain a valid package repository.
Repository URL: 'file:///testrepo/hasol1'.
root@UnixArena:~#


oops…We are not pointing the correct repo file.

6.set the correct the repo file and rebuild the index using pkg command.

root@UnixArena:~# pkg set-publisher -g file:///testrepo/hasol1/repo ha-cluster
root@UnixArena:~# pkg rebuild-index
PHASE ITEMS
Building new search index 884/884
root@UnixArena:~#


7.List the available publisher. You can see the newly configured  cluster repo here.

root@UnixArena:~# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F file:///testrepo/
ha-cluster origin online F file:///testrepo/hasol1/repo/
root@UnixArena:~#


8.Install the oracle solaris cluster using pkg command on both the commands.

root@UnixArena:~#  pkg install ha-cluster-full
Creating Plan (Solver setup): |

Creating Plan (Evaluating mediators): |


Packages to install: 68
Create boot environment: No
Create backup boot environment: Yes
Services to change: 7

DOWNLOAD PKGS FILES XFER (MB) SPEED
...r/data-service/oracle-database 8/68 203/7059 1.0/52.4 cache

DOWNLOAD PKGS FILES XFER (MB) SPEED
ha-cluster/system/cfgchk 48/68 1198/7059 10.8/52.4 cache

DOWNLOAD PKGS FILES XFER (MB) SPEED
ha-cluster/system/core 49/68 1803/7059 23.7/52.4 cache


9.Here is the final result of the installation.

root@UnixArena:~#  pkg install ha-cluster-full
Packages to install: 68
Create boot environment: No
Create backup boot environment: Yes
Services to change: 7

DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 68/68 7059/7059 52.4/52.4 0B/s

PHASE ITEMS
Installing new actions 9506/9506
Updating package state database Done
Updating image state Done
Creating fast lookup database Done
Reading search index Done
Building new search index 952/952
root@UnixArena:~#


10.Install quorum server package  on both the nodes.

root@UnixArena:/# pkg install ha-cluster-quorum-server-full
Packages to install: 6
Create boot environment: No
Create backup boot environment: No
Services to change: 3

DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 6/6 69/69 0.1/0.1 0B/s

PHASE ITEMS
Installing new actions 223/223
Updating package state database Done
Updating image state Done
Creating fast lookup database Done
Reading search index Done
Updating search index 6/6
root@UnixArena:/#


10.Add the below path in root’s profile to access the cluster commands.

root@UnixArena:~#  export PATH=$PATH:/usr/cluster/bin


We have successfully installed the oracle cluster 4.1 on both cluster nodes.The installation  is so simple like veritas cluster. Very soon we will see the configuration part.

Thank you for visiting UnixArena.

VMTURBO-CLOUD-CAPACITY

One comment

  1. Awaiting for “configuring two node Cluster 4.x in Solaris 11”

Leave a Reply

Your email address will not be published. Required fields are marked *