[Linux-cluster] clustered web service using Apache resource?

Liam Forbes loforbes at alaska.edu
Wed Nov 16 20:36:03 UTC 2011


Hello,

I've set up a 5 node cluster using RHEL 6.1 and the HA & Resilient
Storage add-ons, with one service group (so far) containing an IP
address resource and an Apache resource.  The service is working fine,
but only on the first node (which happens to be where luci is
running).  All the /etc/cluster/cluster.conf files match, but I only
see the /etc/cluster/apache directory on that node.  I have one
failover domain that includes all nodes.  All nodes have the httpd RPM
and the GFS2 filesystem containing the apache service files mounted
(from /etc/fstab), but I don't seem to be able to get the service to
move over to another node through the Conga interface.  I haven't
tried anything at the command-line yet.

In C. Hohberger's Red Hat SUMMIT tutorial slides, I see he used a
Script instead of an Apache resource.  I also found a statement in KB
DOC-5897 that an apache web server clustered service needs an IP
address, a script, and a filesystem.  Why a Script instead of an
Apache resource?  Is using the Apache resource why I can't get the
service to launch on another node?

[lforbes at hatest1 ~]$ ls -l /etc/cluster
total 12
drwxr-xr-x 3 root root 4096 Nov 16 10:25 apache
-rw-r----- 1 root root 3370 Nov 16 10:24 cluster.conf
drwxr-xr-x 2 root root 4096 Aug  5 04:15 cman-notify.d
[lforbes at hatest1 ~]$ ls -l /etc/cluster/apache
total 4
drwxr-xr-x 2 root root 4096 Nov 16 10:25 apache:bbtest
[lforbes at hatest1 ~]$ ls -l /etc/cluster/apache/apache\:bbtest/
total 36
-rw-r--r-- 1 root root 35021 Nov 16 10:25 httpd.conf

[lforbes at hatest5 ~]$ ls -l /etc/cluster
total 8
-rw-r----- 1 root root 3370 Nov 16 10:24 cluster.conf
drwxr-xr-x 2 root root 4096 Aug  5 04:15 cman-notify.d


[lforbes at hatest1 ~]$ sudo md5sum /etc/cluster/cluster.conf
d1eda9c2f1452a729837374b8f1779c6  /etc/cluster/cluster.conf

[lforbes at hatest5 ~]$ sudo md5sum /etc/cluster/cluster.conf
d1eda9c2f1452a729837374b8f1779c6  /etc/cluster/cluster.conf


[lforbes at hatest1 ~]$ ps -eaf | grep http | grep -v grep
root     22437     1  0 10:25 ?        00:00:00 /usr/sbin/httpd
-Dbbtest -d /datafs/bbtest/httpd -f
/etc/cluster/apache/apache:bbtest/httpd.conf -k start
apache   22448 22437  0 10:25 ?        00:00:00 /usr/sbin/httpd
-Dbbtest -d /datafs/bbtest/httpd -f
/etc/cluster/apache/apache:bbtest/httpd.conf -k start
apache   22450 22437  0 10:25 ?        00:00:00 /usr/sbin/httpd
-Dbbtest -d /datafs/bbtest/httpd -f
/etc/cluster/apache/apache:bbtest/httpd.conf -k start
apache   22451 22437  0 10:25 ?        00:00:00 /usr/sbin/httpd
-Dbbtest -d /datafs/bbtest/httpd -f
/etc/cluster/apache/apache:bbtest/httpd.conf -k start
apache   22452 22437  0 10:25 ?        00:00:00 /usr/sbin/httpd
-Dbbtest -d /datafs/bbtest/httpd -f
/etc/cluster/apache/apache:bbtest/httpd.conf -k start
apache   22453 22437  0 10:25 ?        00:00:00 /usr/sbin/httpd
-Dbbtest -d /datafs/bbtest/httpd -f
/etc/cluster/apache/apache:bbtest/httpd.conf -k start
apache   22454 22437  0 10:25 ?        00:00:00 /usr/sbin/httpd
-Dbbtest -d /datafs/bbtest/httpd -f
/etc/cluster/apache/apache:bbtest/httpd.conf -k start
apache   22455 22437  0 10:25 ?        00:00:00 /usr/sbin/httpd
-Dbbtest -d /datafs/bbtest/httpd -f
/etc/cluster/apache/apache:bbtest/httpd.conf -k start
apache   22456 22437  0 10:25 ?        00:00:00 /usr/sbin/httpd
-Dbbtest -d /datafs/bbtest/httpd -f
/etc/cluster/apache/apache:bbtest/httpd.conf -k start
[lforbes at hatest1 ~]$ ls -l /datafs/bbtest
total 12
drwxr-xr-x 2 apache apache 0 Oct  6 07:47 cgi-bin
drwxr-xr-x 2 apache apache 0 Nov 16 10:08 html
drwxr-xr-x 6 root   root   0 Nov 16 10:00 httpd
[lforbes at hatest1 ~]$ ls -l /datafs/bbtest/httpd
total 20
drwxr-xr-x 2 root root  0 Nov 16 10:14 conf
drwxr-xr-x 2 root root  0 Oct 23 02:33 conf.d
drwxr-xr-x 2 root root  0 Nov 16 10:06 logs
lrwxrwxrwx 1 root root 24 Nov 16 10:00 modules -> /usr/lib64/httpd/modules
drwxr-xr-x 2 root root  0 Nov 16 10:00 run

[lforbes at hatest5 ~]$ ps -eaf | grep http | grep -v grep
[lforbes at hatest5 ~]$ ls -l /datafs/bbtest
total 12
drwxr-xr-x 2 apache apache 3864 Oct  6 07:47 cgi-bin
drwxr-xr-x 2 apache apache 3864 Nov 16 10:08 html
drwxr-xr-x 6 root   root   3864 Nov 16 10:00 httpd
[lforbes at hatest5 ~]$ ls -l /datafs/bbtest/httpd
total 20
drwxr-xr-x 2 root root 3864 Nov 16 10:14 conf
drwxr-xr-x 2 root root 3864 Oct 23 02:33 conf.d
drwxr-xr-x 2 root root 3864 Nov 16 10:06 logs
lrwxrwxrwx 1 root root   24 Nov 16 10:00 modules -> /usr/lib64/httpd/modules
drwxr-xr-x 2 root root 3864 Nov 16 10:00 run

Assistance appreciated.

--
Regards,
-liam

-There are uncountably more irrational fears than rational ones. -P. Dolan
Liam Forbes       HPC Systems Analyst,      HPC&S Group Leader,      CISSP
ARSC, U of AK, Fairbanks   lforbes at arsc.edu 907-450-8618 fax: 907-450-8605




More information about the Linux-cluster mailing list