Solaris Cluster

Sun cluster aka oracle Solaris cluster on hans-karri. 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: hans-karri,hans-karri1
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@hans-karri:~#  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@hans-karri:~# mkdir -p /testrepo/hasol1
root@hans-karri:~#  mount -F hsfs /dev/lofi/1 /testrepo/hasol1
root@hans-karri:~#

5.Set the package publisher on both cluster nodes.

root@hans-karri:~# 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@hans-karri:~#

oops…We are not pointing the correct repo file.

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

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

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

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

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

root@hans-karri:~#  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@hans-karri:~#  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@hans-karri:~#

10.Install quorum server package  on both the nodes.

root@hans-karri:/# 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@hans-karri:/#

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

root@hans-karri:~#  export PATH=$PATH:/usr/cluster/bin