Shared Configuration

To configure a shared file system which is managed by LVM, create volume group(s) and logical volume(s) on the shared disks and construct a new file system for each logical volume for the Apache Web Server document root (and server root).

Static web data such as web pages with no data update features may reside on 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 an Apache instance that uses shared storage for all Apache instance data. The procedures below assume that all Apache instance files are configured on a shared file system /shared/apache_1 directory, which 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/apache_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/apache_1.

6.Copy all files from /opt/hpws22/apache/conf to /shared/apache_1/conf.

7.Create a directory "logs" under the /shared/apache_1/.

8.Create a symbolic link between /shared/apache_1/modules and /opt/hpws22/ apache/modules.

9.Update the Apache configuration files present in /shared/apache_1/conf directory and change the Apache instance configurations to suit your requirement.

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 Apache Web Server document root (and server root).

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 named /shared/apache_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/apache_1"

Follow steps 6 to 9 described above.

Multiple Apache instances can be configured 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.

To configure an Apache Web Server package in a CFS environment, the SG CFS packages need to be running in order for the Apache package to access CFS mounted file systems. See Managing ServiceGuard manual available at http://www.hp.com/go/hpux-serviceguard-docs —>HP Serviceguard for information on how to configure SG CFS packages. Create a directory /shared/apache on all cluster nodes. Mount the CFS filesystem on /shared/apache to hold necessary files and configuration information.

In a Veritas Cluster File System environment Apache Web Server can be configured in the following two ways:

Active - Active

In an active-active configuration, multiple nodes can run an Apache instance concurrently serving the same document root. To coordinate the startup and shutdown of Apache instances with cluster

Configuring the Apache Web Server with Serviceguard 101

Page 101
Image 101
HP Serviceguard Toolkit for Oracle Data Guard manual Configuring the Apache Web Server with Serviceguard