<div dir="ltr"><div><div>Hi,<br><br></div>I've never used crm_report before. I just read the man file and generated a tarball from 1-2 hours before I reconfigured all the DRBD related resources. I've put the tarball here - <a href="https://www.dropbox.com/s/suj9pttjp403msv/unexplained-apache-failure.tar.bz2?dl=0">https://www.dropbox.com/s/suj9pttjp403msv/unexplained-apache-failure.tar.bz2?dl=0</a><br><br></div>Hope you can help figure out what I'm doing wrong. Thanks for the help!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 29, 2014 at 9:24 AM, Andrew Beekhof <span dir="ltr"><<a href="mailto:andrew@beekhof.net" target="_blank">andrew@beekhof.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you run crm_report so we can see the logs and PE files?<br>
<div class="HOEnZb"><div class="h5"><br>
> On 28 Oct 2014, at 9:16 pm, Sihan Goi <<a href="mailto:goister@gmail.com">goister@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I followed those steps previously. I just tried it again, but I'm still getting the same error. My "crm configure show" shows the following:<br>
><br>
> node node01 \<br>
> attributes standby=off<br>
> node node02<br>
> primitive ClusterIP IPaddr2 \<br>
> params ip=192.168.1.110 cidr_netmask=24 \<br>
> op monitor interval=30s<br>
> primitive WebData ocf:linbit:drbd \<br>
> params drbd_resource=wwwdata \<br>
> op monitor interval=60s<br>
> primitive WebFS Filesystem \<br>
> params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=ext4<br>
> primitive WebSite apache \<br>
> params configfile="/etc/httpd/conf/httpd.conf" \<br>
> op monitor interval=1min<br>
> ms WebDataClone WebData \<br>
> meta master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true<br>
> location prefer-node01 WebSite 50: node01<br>
> colocation WebSite-with-WebFS inf: WebSite WebFS<br>
> colocation fs_on_drbd inf: WebFS WebDataClone:Master<br>
> colocation website-with-ip inf: WebSite ClusterIP<br>
> order WebFS-after-WebData inf: WebDataClone:promote WebFS:start<br>
> order WebSite-after-WebFS inf: WebFS WebSite<br>
> order apache-after-ip Mandatory: ClusterIP WebSite<br>
> property cib-bootstrap-options: \<br>
> dc-version=1.1.10-14.el6_5.3-368c726 \<br>
> cluster-infrastructure=cman \<br>
> stonith-enabled=false \<br>
> no-quorum-policy=ignore<br>
> rsc_defaults rsc_defaults-options: \<br>
> migration-threshold=1<br>
><br>
> What am I doing wrong?<br>
><br>
> On Tue, Oct 28, 2014 at 5:11 PM, Andrew Beekhof <<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>> wrote:<br>
><br>
> > On 28 Oct 2014, at 6:26 pm, Sihan Goi <<a href="mailto:goister@gmail.com">goister@gmail.com</a>> wrote:<br>
> ><br>
> > Hi,<br>
> ><br>
> > No, I did not do this. I followed the Pacemaker 1.1 - Clusters from scratch edition 5 for Fedora 13, and in section 7.3.4 it instructed me to run the following commands, which I did:<br>
> > mkfs.ext4 /dev/drbd1<br>
> > mount /dev/drbd1 /mnt<br>
> > create index.html file in /mnt<br>
> > umount /dev/drbd1<br>
> ><br>
> > Subsequently, after unmounting, there were no further instructions to mount any other directories.<br>
> ><br>
> > So, how should I mount /dev/mapper/vg_node02-drbd--demo to /var/www/html? Should I be mounting /dev/mapper/vg_node02-drbd--demo, or /dev/drbd1. Since I've already created index.html in /dev/drbd1, should I be mounting that? I'm a little confused here.<br>
><br>
> <a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/_configure_the_cluster_for_drbd.html" target="_blank">http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/_configure_the_cluster_for_drbd.html</a><br>
><br>
> Look for "Now that DRBD is functioning we can configure a Filesystem resource to use it"<br>
><br>
> ><br>
> > On Tue, Oct 28, 2014 at 11:41 AM, Andrew Beekhof <<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>> wrote:<br>
> ><br>
> > > On 27 Oct 2014, at 6:05 pm, Sihan Goi <<a href="mailto:goister@gmail.com">goister@gmail.com</a>> wrote:<br>
> > ><br>
> > > Hi,<br>
> > ><br>
> > > That offending line is as follows:<br>
> > > DocumentRoot "/var/www/html"<br>
> > ><br>
> > > I'm guessing it needs to be updated to the DRBD block device, but I'm not sure how to do that, or even what the block device is.<br>
> > ><br>
> > > fdisk -l shows the following, which I'm guessing is the block device?<br>
> > > /dev/mapper/vg_node02-drbd--demo<br>
> > ><br>
> > > lvs shows the following:<br>
> > > drbd-demo vg_node02 -wi-ao---- 1.00g<br>
> > ><br>
> > > btw I'm running the commands on node02 (secondary) rather than node01 (primary). It's just a matter of convenience due to the physical location of the machine. Does it matter?<br>
> ><br>
> > Um, you need to mount /dev/mapper/vg_node02-drbd--demo to /var/www/html with a FileSystem resource.<br>
> > Have you not done this?<br>
> ><br>
> > ><br>
> > > Thanks.<br>
> > ><br>
> > > On Mon, Oct 27, 2014 at 11:35 AM, Andrew Beekhof <<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>> wrote:<br>
> > > Oct 27 10:28:44 node02 apache(WebSite)[10515]: ERROR: Syntax error on line 292 of /etc/httpd/conf/httpd.conf: DocumentRoot must be a directory<br>
> > ><br>
> > ><br>
> > ><br>
> > > > On 27 Oct 2014, at 1:36 pm, Sihan Goi <<a href="mailto:goister@gmail.com">goister@gmail.com</a>> wrote:<br>
> > > ><br>
> > > > Hi Andrew,<br>
> > > ><br>
> > > > Logs in /var/log/httpd/ are empty, but here's a snippet of /var/log/messages right after I start pacemaker and do a "crm status"<br>
> > > ><br>
> > > > <a href="http://pastebin.com/ivQdyV4u" target="_blank">http://pastebin.com/ivQdyV4u</a><br>
> > > ><br>
> > > > Seems like the Apache service doesn't come up. This only happens after I run the commands in the guide to configure DRBD.<br>
> > > ><br>
> > > > On Fri, Oct 24, 2014 at 8:29 AM, Andrew Beekhof <<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>> wrote:<br>
> > > > logs?<br>
> > > ><br>
> > > > > On 23 Oct 2014, at 1:08 pm, Sihan Goi <<a href="mailto:goister@gmail.com">goister@gmail.com</a>> wrote:<br>
> > > > ><br>
> > > > > Hi, can anyone help? Really stuck here...<br>
> > > > ><br>
> > > > > On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi <<a href="mailto:goister@gmail.com">goister@gmail.com</a>> wrote:<br>
> > > > > Hi,<br>
> > > > ><br>
> > > > > I'm following the "Clusters from Scratch" guide for Fedora 13, and I've managed to get a 2 node cluster working with Apache. However, once I tried to add DRBD 8.4 to the mix, it stopped working.<br>
> > > > ><br>
> > > > > I've followed the DRBD steps in the guide all the way till "cib commit fs" in Section 7.4, right before "Testing Migration". However, when I do a crm_mon, I get the following "failed actions".<br>
> > > > ><br>
> > > > > Last updated: Thu Oct 16 17:28:34 2014<br>
> > > > > Last change: Thu Oct 16 17:26:04 2014 via crm_shadow on node01<br>
> > > > > Stack: cman<br>
> > > > > Current DC: node02 - partition with quorum<br>
> > > > > Version: 1.1.10-14.el6_5.3-368c726<br>
> > > > > 2 Nodes configured<br>
> > > > > 5 Resources configured<br>
> > > > ><br>
> > > > ><br>
> > > > > Online: [ node01 node02 ]<br>
> > > > ><br>
> > > > > ClusterIP (ocf::heartbeat:IPaddr2): Started node02<br>
> > > > > Master/Slave Set: WebDataClone [WebData]<br>
> > > > > Masters: [ node02 ]<br>
> > > > > Slaves: [ node01 ]<br>
> > > > > WebFS (ocf::heartbeat:Filesystem): Started node02<br>
> > > > ><br>
> > > > > Failed actions:<br>
> > > > > WebSite_start_0 on node02 'unknown error' (1): call=278, status=Timed Out, last-rc-change='Thu Oct 16 17:26:28 2014', queued=20000ms, exec=0ms<br>
> > > > > WebSite_start_0 on node01 'unknown error' (1): call=203, status=Timed<br>
> > > > > Out, last-rc-change='Thu Oct 16 17:26:09 2014', queued=20000ms, exec=0ms<br>
> > > > ><br>
> > > > > Seems like the apache Website resource isn't starting up. Apache was<br>
> > > > > working just fine before I configured DRBD. What did I do wrong?<br>
> > > > ><br>
> > > > > --<br>
> > > > > - Goi Sihan<br>
> > > > > <a href="mailto:goister@gmail.com">goister@gmail.com</a><br>
> > > > ><br>
> > > > ><br>
> > > > ><br>
> > > > > --<br>
> > > > > - Goi Sihan<br>
> > > > > <a href="mailto:goister@gmail.com">goister@gmail.com</a><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>
> > > > 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>
> > > > - Goi Sihan<br>
> > > > <a href="mailto:goister@gmail.com">goister@gmail.com</a><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>
> > > 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>
> > > - Goi Sihan<br>
> > > <a href="mailto:goister@gmail.com">goister@gmail.com</a><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>
> > 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>
> > - Goi Sihan<br>
> > <a href="mailto:goister@gmail.com">goister@gmail.com</a><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>
> 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>
> - Goi Sihan<br>
> <a href="mailto:goister@gmail.com">goister@gmail.com</a><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>
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>- Goi Sihan<br><a href="mailto:goister@gmail.com">goister@gmail.com</a>
</div>