[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] apache resource problem in RHCS 5.1



Hi Lorenz

I had a similar problem while testing with Centos 5.1 on a VMWare
workstation setup. One more difference, I have been using
system-config-cluster
to configure the cluster. Luci seemed to be giving me problems with
setting up a mount of an NFS export. But I have not retried Luci since
changing
the selinux setting I mention below.

I found if I did not configure SELinux with setenforce permissive, the
/usr/share/cluster/apache.sh script did not execute. Once that runs,
it creates
/etc/cluster/apache/apache:"name". In that subdirectory, the script
creates an httpd.conf file from /etc/httpd/httpd.conf. I also found
the new httpd.conf
had the Listen statement commented out even though I had set it to my
clustered address in /etc/httpd/httpd. I needed to manually uncomment
the
Listen statement on each node in /etc/cluster/apache/apache:"name"/httpd.conf.

Hope this helps.

Ron C.



On Thu, May 29, 2008 at 11:22 AM, Lorenz Pfiffner <lp xbe ch> wrote:
>
> Hello everybody
>
> I have the following test setup:
>
> - RHEL 5.1 Cluster Suite with rgmanager-2.0.31-1 and cman-2.0.73-1
> - Two VMware machines on an ESX 3.5 U1, so no fence device (it's only a test)
> - 4 IP resources defined
> - GFS over DRBD, doesn't matter, because it doesn't even work on a local disk
>
> Now I would like to have an "Apache Resource" which i can select in the luci interface. I assume it's using the /usr/share/cluster/apache.sh script. If I try to start it, the error message looks like
> this:
>
> May 28 16:18:15 testsrv clurgmgrd: [18475]: <err> Starting Service apache:test_httpd > Failed
> May 28 16:18:15 testsrv clurgmgrd[18475]: <notice> start on apache "test_httpd" returned 1 (generic error)
> May 28 16:18:15 testsrv clurgmgrd[18475]: <warning> #68: Failed to start service:test_proxy_http; return value: 1
> May 28 16:18:15 testsrv clurgmgrd[18475]: <notice> Stopping service service:test_proxy_http
> May 28 16:18:16 testsrv clurgmgrd: [18475]: <err> Checking Existence Of File /var/run/cluster/apache/apache:test_httpd.pid [apache:test_httpd] > Failed - File Doesn't Exist
> May 28 16:18:16 testsrv clurgmgrd: [18475]: <err> Stopping Service apache:test_httpd > Failed
> May 28 16:18:16 testsrv clurgmgrd[18475]: <notice> stop on apache "test_httpd" returned 1 (generic error)
> May 28 16:18:16 testsrv clurgmgrd[18475]: <warning> #71: Relocating failed service service:test_proxy_http
>
> I've another cluster in which I had to alter the default init.d/httpd script to be able to run multiple apache instances (not vhosts) on one server. But there I have the Apache Service configured with
> a "Script Resource".
>
> Is this supposed to work of is it a feature in development? I don't see something like "Apache Resource" in the current documentation.
>
> Kind Regards
> Lorenz
>
>
> --
> Linux-cluster mailing list
> Linux-cluster redhat com
> https://www.redhat.com/mailman/listinfo/linux-cluster


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]