Warning Livedoc is no longer being updated and will be deprecated shortly. Please refer to https://documentation.tjhsst.edu.

Solaris Cluster

From Livedoc - The Documentation Repository
Jump to: navigation, search

Solaris Cluster (sometimes Sun Cluster or SunCluster) is a high-availability cluster software product for the Solaris Operating System, created by Sun Microsystems, a subsidiary of Oracle Corporation. It is used to improve the availability of software services such as databases, file sharing on a network, electronic commerce websites, or other applications. Sun Cluster operates by having redundant computers or nodes where one or more computers continue to provide service if another fails. Nodes may be located in the same data center or on different continents.

TJ HA-AFS Configuration

http://www.sun.com/bigadmin/content/submitted/ha_containers_zfs.jsp

scinstall

  • create cluster
  • new cluster
  • typical install
  • name = jetblue
  • node names (all)
  • transport adapters (1|3)
  • quorum selection
    • No disabling of automatic quorum device selection
    • use lofi device for /globaldevices
  • reboot (automatic)

Booting in cluster mode

Apr 19 23:44:10 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CMM: Node dulles.sun.tjhsst.edu (nodeid = 1) with votecount = 1 added.
Apr 19 23:44:10 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CMM: Node dulles.sun.tjhsst.edu: attempting to join cluster.
Apr 19 23:44:10 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CMM: Cluster has reached quorum.
Apr 19 23:44:10 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CMM: Node dulles.sun.tjhsst.edu (nodeid = 1) is up; new incarnation number =  1303271050.
Apr 19 23:44:10 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CMM: Cluster members: dulles.sun.tjhsst.edu.
Apr 19 23:44:10 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CMM: node reconfiguration #1 completed.
Apr 19 23:44:13 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CMM: Node dulles.sun.tjhsst.edu: joined cluster.
Apr 19 23:44:13 dulles.sun.tjhsst.edu ip: ip: joining multicasts failed (18) on clprivnet0 - will use link layer broadcasts for  multicast 
dulles.sun.tjhsst.edu console login: did instance 1 created.
did subpath dulles.sun.tjhsst.edu:/dev/rdsk/c2t9d0 created for instance 1.
did instance 2 created.
did subpath dulles.sun.tjhsst.edu:/dev/rdsk/c2t12d0 created for instance 2.
did instance 3 created.
did subpath dulles.sun.tjhsst.edu:/dev/rdsk/c1t11d0 created for instance 3.
did instance 4 created.
did subpath dulles.sun.tjhsst.edu:/dev/rdsk/c3t0d0 created for instance 4.
did instance 5 created.
did subpath dulles.sun.tjhsst.edu:/dev/rdsk/c1t8d0 created for instance 5.
did instance 6 created.
did instance 7 created.
did subpath dulles.sun.tjhsst.edu:/dev/rdsk/c2t13d0 created for instance 7.
did instance 8 created.
did subpath dulles.sun.tjhsst.edu:/dev/rdsk/c2t8d0 created for instance 8.
did instance 9 created.
did subpath dulles.sun.tjhsst.edu:/dev/rdsk/c1t9d0 created for instance 9.
did instance 10 created.
did subpath dulles.sun.tjhsst.edu:/dev/rdsk/c3t1d0 created for instance 10.
did instance 11 created.
did subpath dulles.sun.tjhsst.edu:/dev/rdsk/c1t13d0 created for instance 11.
did instance 12 created.
did subpath dulles.sun.tjhsst.edu:/dev/rdsk/c2t10d0 created for instance 12.
did instance 13 created.
did subpath dulles.sun.tjhsst.edu:/dev/rdsk/c2t11d0 created for instance 13.
did instance 14 created.
did subpath dulles.sun.tjhsst.edu:/dev/rdsk/c1t12d0 created for instance 14.
Apr 19 23:44:25 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CMM: Node seatac.sun.tjhsst.edu (nodeid = 2) with votecount = 0 added.
Apr 19 23:44:25 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CMM: Cluster members: dulles.sun.tjhsst.edu.
Apr 19 23:44:25 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CMM: node reconfiguration #2 completed.
Apr 19 23:44:26 dulles.sun.tjhsst.edu cl_runtime: NOTICE: clcomm: Adapter bge1 constructed
Apr 19 23:44:26 dulles.sun.tjhsst.edu ip: ip: joining multicasts failed (18) on clprivnet0 - will use link layer broadcasts for  multicast
Apr 19 23:44:27 dulles.sun.tjhsst.edu cl_runtime: NOTICE: clcomm: Adapter bge3 constructed
Configuring DID devices
obtaining access to all attached disks
Configuring the /dev/global directory (global devices)

Nothing much to see.  Oh, were you planning to login?

Apr 19 23:50:58 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CMM: Node seatac.sun.tjhsst.edu (nodeid: 2, incarnation #: 1303271454) has become reachable.
Apr 19 23:50:58 dulles.sun.tjhsst.edu cl_runtime: NOTICE: clcomm: Path dulles.sun.tjhsst.edu:bge3 - seatac.sun.tjhsst.edu:bge3 online
Apr 19 23:50:58 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CMM: Node seatac.sun.tjhsst.edu (nodeid = 2) is up; new incarnation number = 1303271454.
Apr 19 23:50:58 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CMM: Cluster members: dulles.sun.tjhsst.edu seatac.sun.tjhsst.edu.
Apr 19 23:50:59 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CMM: node reconfiguration #3 completed.
Apr 19 23:50:59 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CCR: Ignoring override field for table directory on joining node seatac.sun.tjhsst.edu.
Apr 19 23:50:59 dulles.sun.tjhsst.edu cl_runtime: NOTICE: CCR: Ignoring override field for table dcs_service_classes on joining node seatac.sun.tjhsst.edu.
Apr 19 23:50:59 dulles.sun.tjhsst.edu cl_runtime: NOTICE: clcomm: Path dulles.sun.tjhsst.edu:bge1 - seatac.sun.tjhsst.edu:bge1 online
  • add d1 as a shared quorum device
  • run clsetup after verification of quorum, reset 'installmode'
  • verify 1 shared device; 3 total votes possible

/etc/hosts

A line in /etc/hosts must exist for each LogicalHostname that you want to use with Solaris Cluster. In our example, this would include haafs1, haafs2, and nfs-mail

  1. Create the resource group

scrgadm -a -g haafs1

  1. Give the resource group a description

scrgadm -c -g haafs1 -y RG_description="HA-AFS 1"

  1. Create a resource for the zpool and assign it to the resource group

clresource create -g haafs1 -t SUNW.HAStoragePlus -p Zpools=skillet_a skillet_a

  1. Create a logical hostname and assign it to the resource group

clreslogicalhostname create -g haafs1 -h haafs1.csl.tjhsst.edu haafs1-lh clreslogicalhostname create -g haafs1 -h nfs-mail.tjhsst.edu nfs-mail

  1. Enable the resource group and resources
  1. Register the zone with the resource group
/opt/SUNWsczone/sczbt/util/sczbt_register -f /global/zone/haafs1.sczbt.config
sourcing /global/zone/haafs1.sczbt.config
Registration of resource haafs1-rs succeeded.
Validation of resource haafs1-rs succeeded.

Resources