<div dir="ltr"><div><div><div>Hi,<br><br></div>getenforce returns "Enforcing"<br></div>ls -dZ /var/www/html returns "drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 /var/www/html" on both nodes.<br><br></div>Running restorecon doesn't change the ls-dZ output.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 12, 2014 at 2:24 PM, Vladislav Bogdanov <span dir="ltr"><<a href="mailto:bubble@hoster-ok.com" target="_blank">bubble@hoster-ok.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">11.11.2014 07:27, Sihan Goi wrote:<br>
> Hi,<br>
><br>
> DocumentRoot is still set to /var/www/html<br>
> ls -al /var/www/html shows different things on the 2 nodes<br>
> node01:<br>
><br>
> total 28<br>
> drwxr-xr-x. 3 root root 4096 Nov 11 12:25 .<br>
> drwxr-xr-x. 6 root root 4096 Jul 23 22:18 ..<br>
> -rw-r--r--. 1 root root 50 Oct 28 18:00 index.html<br>
> drwx------. 2 root root 16384 Oct 28 17:59 lost+found<br>
><br>
> node02 only has index.html, no lost+found, and it's a different version<br>
> of the file.<br>
><br>
<br>
</span>It look like apache is unable to stat its document root.<br>
Could you please show output of two commands:<br>
<br>
getenforce<br>
ls -dZ /var/www/html<br>
<br>
on both nodes when fs is mounted on one of them?<br>
If you see 'Enforcing', and the last part of the selinux context of a<br>
mounted fs root is not httpd_sys_content_t, then run<br>
'restorecon -R /var/www/html' on that node.<br>
<span class=""><br>
> Status URL is enabled in both nodes.<br>
><br>
><br>
> On Oct 30, 2014 11:14 AM, "Andrew Beekhof" <<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a><br>
</span><span class="">> <mailto:<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>>> wrote:<br>
><br>
><br>
> > On 29 Oct 2014, at 1:01 pm, Sihan Goi <<a href="mailto:goister@gmail.com">goister@gmail.com</a><br>
</span><div><div class="h5">> <mailto:<a href="mailto:goister@gmail.com">goister@gmail.com</a>>> wrote:<br>
> ><br>
> > Hi,<br>
> ><br>
> > I've never used crm_report before. I just read the man file and<br>
> generated a tarball from 1-2 hours before I reconfigured all the<br>
> DRBD related resources. I've put the tarball here -<br>
> <a href="https://www.dropbox.com/s/suj9pttjp403msv/unexplained-apache-failure.tar.bz2?dl=0" target="_blank">https://www.dropbox.com/s/suj9pttjp403msv/unexplained-apache-failure.tar.bz2?dl=0</a><br>
> ><br>
> > Hope you can help figure out what I'm doing wrong. Thanks for the<br>
> help!<br>
><br>
> Oct 28 18:13:38 node02 Filesystem(WebFS)[29940]: INFO: Running start<br>
> for /dev/drbd/by-res/wwwdata on /var/www/html<br>
> Oct 28 18:13:39 node02 kernel: EXT4-fs (drbd1): mounted filesystem<br>
> with ordered data mode. Opts:<br>
> Oct 28 18:13:39 node02 crmd[9870]: notice: process_lrm_event: LRM<br>
> operation WebFS_start_0 (call=164, rc=0, cib-update=298,<br>
> confirmed=true) ok<br>
> Oct 28 18:13:39 node02 crmd[9870]: notice: te_rsc_command:<br>
> Initiating action 7: start WebSite_start_0 on node02 (local)<br>
> Oct 28 18:13:39 node02 apache(WebSite)[30007]: ERROR: Syntax error<br>
> on line 292 of /etc/httpd/conf/httpd.conf: DocumentRoot must be a<br>
> directory<br>
><br>
> Is DocumentRoot still set to /var/www/html?<br>
> If so, what happens if you run 'ls -al /var/www/html' in a shell?<br>
><br>
> Oct 28 18:13:39 node02 apache(WebSite)[30007]: INFO: apache not running<br>
> Oct 28 18:13:39 node02 apache(WebSite)[30007]: INFO: waiting for<br>
> apache /etc/httpd/conf/httpd.conf to come up<br>
><br>
> Did you enable the status url?<br>
> <a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/_enable_the_apache_status_url.html" target="_blank">http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/_enable_the_apache_status_url.html</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
</div></div>> <mailto:<a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a>><br>
<div class="HOEnZb"><div class="h5">> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
><br>
<br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">- Goi Sihan<br><a href="mailto:goister@gmail.com">goister@gmail.com</a></div>
</div>