Using Tomcat Toolkit in a HP Serviceguard Cluster README Revision: B.06.00
To configure a shared file system which is managed by LVM, you need to
create volume group(s) and logical volume(s) on the shared disks and
construct a new file system for each logical volume for the Tomcat
Server web applications (and CATALINA_BASE).
Static web data such as web pages with no data update features may
reside on a local disk. However, all web data that needs to be shared
must reside on shared storage. This data may contain dynamic data
generated and updated by a client's HTTP POST request.
The following is an example of configuring a Tomcat instance that uses
shared storage for all Tomcat instance data. The procedures below
assume that you are 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".
1. Create a Volume Group "vg01" for a shared storage.
2. Create a Logical Volume "lvol1" on the volume group "vg01".
3. Construct a new file system on the Logical Volume "lvol1".
4. Create a directory named /shared/tomcat_1 on a local disk.
Repeat this step on all nodes configured to run the package.
5. Mount device "/dev/vg01/lvol1" to the "/shared/tomcat_1"
6. Copy all files from "/opt/hpws22/tomcat/conf" to
"/shared/tomcat_1/conf"
7. Create a directory "logs" under the
"/shared/tomcat_1/".
8. Update the Tomcat configuration files present in
"/shared/tomcat_1/conf" directory and change the Tomcat instance
configurations to suit your requirement.
b. Using VxVM
~~~~~~~~~~~~~
To configure a shared file system which is managed by VxVM,
you need to 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.
1. Create a Disk Group "DG_00" on the shared storage.
2. Create Logical volume "LV_00" on the Disk Group "DG_00".
3. Construct a new file system on the Logical Volume "LV_00".
4. Create a directory "/shared/tomcat_1" on a local disk.
Repeat this step on all nodes configured to run the package.
5. Mount device "/dev/vx/dsk/DG_00/LV_00" on "/shared/tomcat_1"
Follow steps 6 - 8 described above.
You can configure multiple Tomcat instances in the cluster using the
same method. Please refer to "Managing Serviceguard" for more
detailed instruction on creating volumes and logical volumes.