The following is an example of configuring a Tomcat instance that uses shared storage for all Tomcat instance data.

NOTE: The procedures below assume that configuring all Tomcat instance files on a shared file system "/shared/tomcat_1" directory, that resides on a logical volume "lvol1" from a shared volume group "/dev/vg01":

a.Create a Volume Group "vg01" for a shared storage.b.Create a Logical Volume "lvol1" on the volume group "vg01".c.Construct a new file system on the Logical Volume "lvol1".

d.Create a directory named “/shared/tomcat_1” on a local disk. Repeat this step on all nodes configured to run the package.

e.Mount device "/dev/vg01/lvol1" to the "/shared/tomcat_1".f.Copy all files from "/opt/hpws22/tomcat/conf" to "/shared/tomcat_1/conf"g.Create a directory "logs" under the "/shared/tomcat_1/".

h.Update the Tomcat configuration files present in "/shared/tomcat_1/conf" directory and change the Tomcat instance configurations to suit your requirement.

2.Using VxVM

To configure a shared file system which is managed by VxVM, create disk group(s) and logical volume(s) on the shared disks and construct a new file system for each logical volume for the Tomcat Web applications (and CATALINA_BASE).

The following is an example of configuring the above steps using VxVM:

a.Create a Disk Group "DG_00" on the shared storage.b.Create Logical volume "LV_00" on the Disk Group "DG_00".c.Construct a new file system on the Logical Volume "LV_00".

d.Create a directory "/shared/tomcat_1" on a local disk. Repeat this step on all nodes configured to run the package.

e.Mount device "/dev/vx/dsk/DG_00/LV_00" on "/shared/tomcat_1".

Configure multiple Tomcat instances in the cluster using the same method. See Managing ServiceGuard manual available at http://www.hp.com/go/hpux-serviceguard-docs —>HP Serviceguard " for more detailed instruction on creating volumes and logical volumes.

114 Using Tomcat Toolkit in a HP Serviceguard Cluster