How to Enable Apache Tomcat as a Failover Data Service
-
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.
-
Register the SUNW.gds and
SUNW.HAStoragePlus resource type.
# clresourcetype register SUNW.gds SUNW.HAStoragePlus
-
Create a failover resource group.
# clresourcegroup create Apache-Tomcat-failover-resource-group
-
Create a resource for the Apache Tomcat disk storage.
# clresource create \
-g Apache-Tomcat-failover-resource-group \
-t SUNW.HAStoragePlus \
-p FileSystemMountPoints=Apache-Tomcat- instance-mount-points Apache-Tomcat-hasp-resource
-
Create a resource for the Apache Tomcat logical hostname.
# clreslogicalhostname \
-g Apache-Tomcat-failover-resource-group \
-h Apache-Tomcat-logical-hostname Apache-Tomcat-lh-resource
-
Enable the failover resource group that now includes the
Apache Tomcat disk storage and logical hostname resources.
# clresourcegroup online -eM -n current-node Apache-Tomcat-failover-resource-group
Next Steps
Go to How to Install and Configure Apache Tomcat.