78
5.2. Configuring Shared Storage
To set up the shared file system resource, perform the following tasks as root on one cluster
system:
1. On one cluster node, use the interactive
the document root directory. Note that it is possible to create multiple document root
directories on different disk partitions. Refer to Section 2.5.3.1 Partitioning Disks for
more information.
2. Use the
mkfs
the previous step. Specify the drive letter and the partition number. For example:
mkfs -t ext3 /dev/sde3
3. Mount the file system that contains the document root directory. For example:
mount /dev/sde3 /var/www/html
Do not add this mount information to the
software can mount and unmount file systems used in a service.
4. Copy all the required files to the document root directory.
5. If you have CGI files or other files that must be in different directories or in separate
partitions, repeat these steps, as needed.
5.3. Installing and Configuring the Apache HTTP Server
The Apache HTTP Server must be installed and configured on all nodes in the assigned
failover domain, if used, or in the cluster. The basic server configuration must be the same
on all nodes on which it runs for the service to fail over correctly. The following example
shows a basic Apache HTTP Server installation that includes no third-party modules or
performance tuning.
On all node in the cluster (or nodes in the failover domain, if used), install the
package. For example:
rpm -Uvh httpd-
¨
To configure the Apache HTTP Server as a cluster service, perform the following tasks:
1. Edit the
/etc/httpd/conf/httpd.conf
according to your configuration. For example:
Specify the directory that contains the HTML files. Also specify this mount point
•
when adding the service to the cluster configuration. It is only required to change
this field if the mountpoint for the website's content differs from the default setting
of
/var/www/html/
DocumentRoot "/mnt/httpdservice/html"
command to create an ext3 file system on the partition you created in
version
arch
.
©
¨
©
. For example:
Chapter 5. Setting Up Apache HTTP Server
utility to create a partition to use for
parted
/etc/fstab
.rpm
configuration file and customize the file
file because only the cluster
httpd
RPM
Need help?
Do you have a question about the CLUSTER SUITE - CONFIGURING AND MANAGING A CLUSTER 2006 and is the answer not in the manual?
Questions and answers