Go to main content

Oracle® Solaris Cluster Data Service for Apache Tomcat Guide

Exit Print View

Updated: June 2017
 
 

How to Enable Apache Tomcat to Run in a Global Zone Configuration

  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.

    Note -  Perform this step only if you create a failover data service.
    # clresourcegroup create Apache-Tomcat-failover-resource-group
  4. (Optional) Create a resource for the Apache Tomcat disk storage.

    Note -  Perform this step only if you create a failover data service.
    # clresource create \
    -g Apache-Tomcat-failover-resource-group \
    -t SUNW.HAStoragePlus \
    -p FileSystemMountPoints=Apache-Tomcat- instance-mount-points Apache-Tomcat-hasp-resource
  5. (Optional) Create a resource for the Apache Tomcat logical hostname.

    Note -  Perform this step for a failover data service.
    # clreslogicalhostname \
    -g Apache-Tomcat-failover-resource-group \
    -h Apache-Tomcat-logical-hostname Apache-Tomcat-lh-resource
  6. Enable the failover resource group that now includes the Apache Tomcat disk storage and logical hostname resources.

    Note -  Perform this step for a failover data service.
    # clresourcegroup online -eM -n current-node Apache-Tomcat-failover-resource-group
  7. (Optional) Create the resource group for the multiple-masters data service.

    Note -  Perform this step only if you create a multiple-masters data service.
    # clresourcegroup create \
    -p Maximum_primaries=2 \
    -p Desired_primaries=2 Apache-Tomcat-scalable-resource-group

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

  8. (Optional) Create a resource for the Apache Tomcat Disk Storage if it is not in the root (/) file system.

    Note -  Perform this step only if you create a multiple-masters data service.
    # clresource create \
    -g Apache-Tomcat-failover-resource-group \
    -t SUNW.HAStoragePlus \
    -p FileSystemMountPoints=Apache-Tomcat- instance-mount-points Apache-Tomcat-hasp-resource
  9. Enable the multiple-masters resource group that now includes the Apache Tomcat disk storage and logical hostname resources.

    Note -  Perform this step only if you create a multiple-masters data service.
    # clresourcegroup online -eM  Apache Tomcat-failover-resource-group
  10. Create a failover resource group for the shared address resource.

    Note -  Perform this step only if you create a scalable data service.
    # clresourcegroup create Apache-Tomcat-shared-address-resource-group
  11. Create the shared address resource.

    Note -  Perform this step only if you create a scalable data service.
    # clressharedaddress create \
    -g Apache-Tomcat-shared-address-resource-group \
    -h Apache-Tomcat-shared-address-hostname \
    Apache-Tomcat-shared-address-resource
  12. Bring online the shared-address resource group.

    Note -  Perform this step only if you create a scalable data service.
    # clresourcegroup online -eM Apache-Tomcat-shared-address-resource-group
  13. Create the resource group for the scalable service.

    Note -  Perform this step only if you create a scalable data service.
    # clresourcegroup create \
    -p Maximum_primaries=2 \
    -p Desired_primaries=2 \
    -p RG_dependencies=Apache-Tomcat-shared-address-resource-group \
    Apache-Tomcat-scalable-resource-group

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

  14. Create a resource for the Apache Tomcat disk storage if it is not in the root (/) file system.

    Note -  Perform this step only if you create a scalable data service.
    # clresource create Apache-Tomcat-hasp-resource \
    -g Apache-Tomcat-scalable-group \
    -t SUNW.HAStoragePlus \
    -p FileSystemMountPoints=Apache-Tomcat-instance-mount-points
  15. Enable the failover resource group that now includes the Apache Tomcat disk storage and logical hostname resources.

    Note -  Perform this step only if you create a scalable data service.
    # clresourcegroup online -eM  Apache-Tomcat-resource-group