Become superuser or assume a role that provides solaris.cluster.verb RBAC 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.
Perform this step only if you create a failover data service.
# clresourcegroup create Apache Tomcat-failover-resource-group |
(Optional) Create a resource for the Apache Tomcat Disk Storage.
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-has-resource |
(Optional) Create a resource for the Apache Tomcat Logical Hostname.
Perform this step for a failover data service.
# 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.
Perform this step for a failover data service.
# clresourcegroup online -M -n current-node Apache Tomcat-failover-resource-group |
(Optional) Create the resource group for the multiple masters data service.
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.
(Optional) Create a resource for the Apache Tomcat Disk Storage if it is not in the root file system.
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-has-resource |
Enable the failover resource group that now includes the Apache Tomcat Disk Storage and Logical Hostname resources.
Perform this step only if you create a multiple masters data service.
# clresourcegroup online -M Apache Tomcat-failover-resource-group |
Create a failover resource group for the SharedAddress resource.
Perform this step only if you create a scalable data service.
# clresourcegroup create Apache-Tomcat-SharedAddress-resource-group |
Create the SharedAddress resource.
Perform this step only if you create a scalable data service.
# clressharedaddress create \ > -g Apache-Tomcat-SharedAddress-resource-group\ > -h Apache-Tomcat-SharedAddress-hostname \ > Apache-Tomcat-SharedAddress-resource |
Online the SharedAddress resource group.
Perform this step only if you create a scalable data service.
# clresourcegroup online -M Apache-Tomcat-SharedAddress-resource-group |
Create the resource group for the scalable service.
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-SharedAddress-resource-group \ > Apache-Tomcat-Scalable-resource-group |
If you need more nodes, adjust Maximum_primaries and Desired_primaries to the appropriate value.
Create a resource for the Apache Tomcat Disk Storage if it is not in the root file system.
Perform this step only if you create a scalable data service.
# clresource create Apache-Tomcat-has-resource \ > -g Apache-Tomcat-scalable-group \ > -t SUNW.HAStoragePlus \ > -p FilesystemMountPoints=Apache Tomcat- instance-mount-points |
Enable the failover resource group that now includes the Apache Tomcat Disk Storage and Logical Hostname resources.
Perform this step only if you create a scalable data service.
# clresourcegroup online -M Apache Tomcat-resource-group |