This section describes the additional steps that are necessary to configure HA for Apache Tomcat in a failover zone.
This procedure uses the configuration file to register HA for Apache Tomcat in a failover zone.
Before You Begin
Before you register HA for Apache Tomcat in a failover zone, ensure that you have performed the following tasks:
Installed HA for Oracle Solaris Zones and HA for Apache Tomcat data service packages in the global zone of each cluster node that you want to run the failover zone.
Created the failover zone.
Configured the boot component to control your failover zone.
Follow the procedures in the Oracle Solaris Cluster Data Service for Oracle Solaris Zones Guide.
You can place this configuration file in any directory that is accessible to the failover zone.
# ksh /opt/SUNWsctomcat/util/sctomcat_register -f filename
Specifies the configuration file name.
The registration of HA for Apache Tomcat generates an SMF manifest and registers an SMF service in the failover zone that is specified by the ZONE variable in the configuration file. The manifest is named resourcename.xml, where resource is the name that is specified by the RS variable in the configuration file. This manifest is placed in the /var/svc/manifest/application/sczone-agents/ directory. The SMF service is named svc:/application/sczone-agents/resource.
The HA for Apache Tomcat data service uses the SMF component of the HA for Oracle Solaris Zones data service to control and probe this SMF service of the HA for Apache Tomcat. It registers an HA for Oracle Solaris Zones SMF component on top of the already-created SMF service. The name of the script that starts and stops the manifest, as well as probes the SMF component, is control_sctomcat.
Perform this task to change parameters in the HA for Apache Tomcat manifest and to validate the parameters in the failover zone. Parameters for the HA for Apache Tomcat manifest are stored as properties of the SMF service. To modify parameters in the manifest, change the related properties in the SMF service and then validate the parameter changes.
# svccfg svc:/application/sczone-agents:resource
For more information, see the svccfg(1M) man page.
# /opt/SUNWsctomcat/bin/control_sctomcat validate resource
Messages for this command are stored in the /var/adm/messages/ directory of the failover zone.
# clresource disable resource # clresource delete resource
# /opt/SUNWsctomcat/util/sctomcat_smf_remove -f filename
Specifies the name of the configuration file that you used to register HA for Apache Tomcat with the SMF service.
Make a copy of the default file, /opt/SUNWsctomcat/util/sctomcat_config.
Set the ZONE and RS parameters with the values that are used by the data service.
Run the sctomcat_smf_remove command and use the –f option to specify this configuration file.