[Pacemaker] DRBD with Pacemaker on CentOs 6.5

Andrew Beekhof andrew at beekhof.net
Tue Oct 28 05:11:55 EDT 2014


> On 28 Oct 2014, at 6:26 pm, Sihan Goi <goister at gmail.com> wrote:
> 
> Hi,
> 
> 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:
> mkfs.ext4 /dev/drbd1
> mount /dev/drbd1 /mnt
> create index.html file in /mnt
> umount /dev/drbd1
> 
> Subsequently, after unmounting, there were no further instructions to mount any other directories.
> 
> 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.

http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/_configure_the_cluster_for_drbd.html

Look for "Now that DRBD is functioning we can configure a Filesystem resource to use it"

> 
> On Tue, Oct 28, 2014 at 11:41 AM, Andrew Beekhof <andrew at beekhof.net> wrote:
> 
> > On 27 Oct 2014, at 6:05 pm, Sihan Goi <goister at gmail.com> wrote:
> >
> > Hi,
> >
> > That offending line is as follows:
> > DocumentRoot "/var/www/html"
> >
> > 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.
> >
> > fdisk -l shows the following, which I'm guessing is the block device?
> > /dev/mapper/vg_node02-drbd--demo
> >
> > lvs shows the following:
> > drbd-demo vg_node02 -wi-ao----  1.00g
> >
> > 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?
> 
> Um, you need to mount /dev/mapper/vg_node02-drbd--demo to /var/www/html with a FileSystem resource.
> Have you not done this?
> 
> >
> > Thanks.
> >
> > On Mon, Oct 27, 2014 at 11:35 AM, Andrew Beekhof <andrew at beekhof.net> wrote:
> > 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
> >
> >
> >
> > > On 27 Oct 2014, at 1:36 pm, Sihan Goi <goister at gmail.com> wrote:
> > >
> > > Hi Andrew,
> > >
> > > 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"
> > >
> > > http://pastebin.com/ivQdyV4u
> > >
> > > Seems like the Apache service doesn't come up. This only happens after I run the commands in the guide to configure DRBD.
> > >
> > > On Fri, Oct 24, 2014 at 8:29 AM, Andrew Beekhof <andrew at beekhof.net> wrote:
> > > logs?
> > >
> > > > On 23 Oct 2014, at 1:08 pm, Sihan Goi <goister at gmail.com> wrote:
> > > >
> > > > Hi, can anyone help? Really stuck here...
> > > >
> > > > On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi <goister at gmail.com> wrote:
> > > > Hi,
> > > >
> > > > 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.
> > > >
> > > > 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".
> > > >
> > > > Last updated: Thu Oct 16 17:28:34 2014
> > > > Last change: Thu Oct 16 17:26:04 2014 via crm_shadow on node01
> > > > Stack: cman
> > > > Current DC: node02 - partition with quorum
> > > > Version: 1.1.10-14.el6_5.3-368c726
> > > > 2 Nodes configured
> > > > 5 Resources configured
> > > >
> > > >
> > > > Online: [ node01 node02 ]
> > > >
> > > > ClusterIP    (ocf::heartbeat:IPaddr2):    Started node02
> > > >  Master/Slave Set: WebDataClone [WebData]
> > > >      Masters: [ node02 ]
> > > >      Slaves: [ node01 ]
> > > > WebFS   (ocf::heartbeat:Filesystem):    Started node02
> > > >
> > > > Failed actions:
> > > >     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
> > > >     WebSite_start_0 on node01 'unknown error' (1): call=203, status=Timed
> > > > Out, last-rc-change='Thu Oct 16 17:26:09 2014', queued=20000ms, exec=0ms
> > > >
> > > > Seems like the apache Website resource isn't starting up. Apache was
> > > > working just fine before I configured DRBD. What did I do wrong?
> > > >
> > > > --
> > > > - Goi Sihan
> > > > goister at gmail.com
> > > >
> > > >
> > > >
> > > > --
> > > > - Goi Sihan
> > > > goister at gmail.com
> > > > _______________________________________________
> > > > Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> > > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> > > >
> > > > Project Home: http://www.clusterlabs.org
> > > > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > > > Bugs: http://bugs.clusterlabs.org
> > >
> > >
> > > _______________________________________________
> > > Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> > >
> > > Project Home: http://www.clusterlabs.org
> > > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > > Bugs: http://bugs.clusterlabs.org
> > >
> > >
> > >
> > > --
> > > - Goi Sihan
> > > goister at gmail.com
> > > _______________________________________________
> > > Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> > >
> > > Project Home: http://www.clusterlabs.org
> > > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > > Bugs: http://bugs.clusterlabs.org
> >
> >
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs: http://bugs.clusterlabs.org
> >
> >
> >
> > --
> > - Goi Sihan
> > goister at gmail.com
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs: http://bugs.clusterlabs.org
> 
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
> 
> 
> 
> -- 
> - Goi Sihan
> goister at gmail.com
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org





More information about the Pacemaker mailing list