Go to main content

Oracle® Solaris Cluster Data Service for Apache Tomcat Guide

Exit Print View

Updated: June 2017
 
 

Example: Configuring Cluster Resources for Apache Tomcat

  1. Register the necessary resource types.
    phys-schost-1# clresourcetype register SUNW.gds SUNW.HAStoragePlus
  2. Create the failover resource group.
    phys-schost-1# clresourcegroup create zone-rg
  3. Create a zpool on a shared disk to host the zonepath for the failover zone.
    phys-schost-1# zpool create -m /ha-zones ha-zones \
    /dev/rdsk/c0t60080E500017B52C00002B9D4EB40DB5d0
    phys-schost-1# zpool export ha-zones

    In a failover configuration, the zone's zonepath must be on a highly available file system.

  4. Register the zpool with the HAStoragePlus resource and create a resource (of type HASP) for the zones' disk storage (the zpool).
    phys-schost-1# clresource create -g zone-rg -t SUNW.HAStoragePlus \
    -p Zpools=ha-zones ha-zones-hasp-rs
    phys-schost-1# clresourcegroup online -eM -n phys-schost-1 zone-rg
    phys-schost-1# zfs create ha-zones/solaris