Go to main content

Oracle® Solaris Cluster Data Service for Apache Tomcat Guide

Exit Print View

Updated: August 2018

How to Enable Apache Tomcat as a Scalable Data Service

  1. Assume the root role or assume a role that provides solaris.cluster.admin authorization on one of the nodes in the cluster that will host Apache Tomcat.
  2. Register the SUNW.gds and SUNW.HAStoragePlus resource type.
    # clresourcetype register SUNW.gds SUNW.HAStoragePlus
  3. Create a failover resource group for the shared address resource.
    # clresourcegroup create Apache-Tomcat-shared-address-resource-group
  4. Create the shared address resource.
    # clressharedaddress create \
    -g Apache-Tomcat-shared-address-resource-group \
    -h Apache-Tomcat-shared-address-hostname \
  5. Bring online the shared-address resource group.
    # clresourcegroup online -eM Apache-Tomcat-shared-address-resource-group
  6. Create the resource group for the scalable service.
    # clresourcegroup create \
    -p Maximum_primaries=2 \
    -p Desired_primaries=2 \
    -p RG_dependencies=Apache-Tomcat-shared-address-resource-group \

    If you need more nodes, adjust Maximum_primaries and Desired_primaries to the appropriate value.

  7. Create a resource for the Apache Tomcat disk storage if it is not in the root (/) file system.
    # clresource create Apache-Tomcat-hasp-resource \
    -g Apache-Tomcat-scalable-group \
    -t SUNW.HAStoragePlus \
    -p FileSystemMountPoints=Apache-Tomcat-instance-mount-points
  8. Enable the failover resource group that now includes the Apache Tomcat disk storage and logical hostname resources.
    # clresourcegroup online -eM  Apache-Tomcat-resource-group

Next Steps

Go to How to Install and Configure Apache Tomcat.