Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-11-12 Thread Sihan Goi
Hi,

getenforce returns Enforcing
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.

Running restorecon doesn't change the ls-dZ output.

On Wed, Nov 12, 2014 at 2:24 PM, Vladislav Bogdanov bub...@hoster-ok.com
wrote:

 11.11.2014 07:27, Sihan Goi wrote:
  Hi,
 
  DocumentRoot is still set to /var/www/html
  ls -al /var/www/html shows different things on the 2 nodes
  node01:
 
  total 28
  drwxr-xr-x. 3 root root  4096 Nov 11 12:25 .
  drwxr-xr-x. 6 root root  4096 Jul 23 22:18 ..
  -rw-r--r--. 1 root root50 Oct 28 18:00 index.html
  drwx--. 2 root root 16384 Oct 28 17:59 lost+found
 
  node02 only has index.html, no lost+found, and it's a different version
  of the file.
 

 It look like apache is unable to stat its document root.
 Could you please show output of two commands:

 getenforce
 ls -dZ /var/www/html

 on both nodes when fs is mounted on one of them?
 If you see 'Enforcing', and the last part of the selinux context of a
 mounted fs root is not httpd_sys_content_t, then run
 'restorecon -R /var/www/html' on that node.

  Status URL is enabled in both nodes.
 
 
  On Oct 30, 2014 11:14 AM, Andrew Beekhof and...@beekhof.net
  mailto:and...@beekhof.net wrote:
 
 
   On 29 Oct 2014, at 1:01 pm, Sihan Goi gois...@gmail.com
  mailto:gois...@gmail.com wrote:
  
   Hi,
  
   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 -
 
 https://www.dropbox.com/s/suj9pttjp403msv/unexplained-apache-failure.tar.bz2?dl=0
  
   Hope you can help figure out what I'm doing wrong. Thanks for the
  help!
 
  Oct 28 18:13:38 node02 Filesystem(WebFS)[29940]: INFO: Running start
  for /dev/drbd/by-res/wwwdata on /var/www/html
  Oct 28 18:13:39 node02 kernel: EXT4-fs (drbd1): mounted filesystem
  with ordered data mode. Opts:
  Oct 28 18:13:39 node02 crmd[9870]:   notice: process_lrm_event: LRM
  operation WebFS_start_0 (call=164, rc=0, cib-update=298,
  confirmed=true) ok
  Oct 28 18:13:39 node02 crmd[9870]:   notice: te_rsc_command:
  Initiating action 7: start WebSite_start_0 on node02 (local)
  Oct 28 18:13:39 node02 apache(WebSite)[30007]: ERROR: Syntax error
  on line 292 of /etc/httpd/conf/httpd.conf: DocumentRoot must be a
  directory
 
  Is DocumentRoot still set to /var/www/html?
  If so, what happens if you run 'ls -al /var/www/html' in a shell?
 
  Oct 28 18:13:39 node02 apache(WebSite)[30007]: INFO: apache not
 running
  Oct 28 18:13:39 node02 apache(WebSite)[30007]: INFO: waiting for
  apache /etc/httpd/conf/httpd.conf to come up
 
  Did you enable the status url?
 
 http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/_enable_the_apache_status_url.html
 
 
 
  ___
  Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
  mailto:Pacemaker@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@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@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
gois...@gmail.com
___
Pacemaker mailing list: Pacemaker@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


Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-11-11 Thread Sihan Goi
Hi,

I'm fluent in English so I doubt it's a language barrier. I have reasonable
user experience in Linux, though not extensive experience in the various
system commands, and I have zero experience in HA. I'm in fact trying to
make things as simple as possible by simply following the Clusters from
Scratch guide step by step, and only modifying/omitting steps when they
don't work.

I know a block device (like /dev/sda) is simply a device (such as a hard
disk) that appears like a file in Linux, allowing users buffered access to
the device.
I know a file system is like FAT/NTFS/ext2/etc.
I know a mount point is a directory that you can mount an image file with a
file system onto it. Once mounted, it would be as if the entire file system
has the mount point as its root directory.

I set up DRBD almost exactly like the instructions from Chapter 7 of
Clusters from Scratch. The only differences are in our setups. The guide
assumes Fedora 13, DRBD 8.3 while I'm using CentOS 6.5 and DRBD 8.4.

Since I was following the guide from start to finish, /var/www/html already
has index.html already in there. node01 has it's own index.html, and node02
has its own index.html, both with different content. The guide did not
instruct me to delete these files, and seems to configure the mount point
to be /var/www/html (Chapter 7.4) with an ext4 file system, hence mounting
the image onto a directory that already has files in it. Is this a problem?


On Tue, Nov 11, 2014 at 6:07 PM, Lars Ellenberg lars.ellenb...@linbit.com
wrote:

 On Tue, Nov 11, 2014 at 12:27:23PM +0800, Sihan Goi wrote:
  Hi,
 
  DocumentRoot is still set to /var/www/html
  ls -al /var/www/html shows different things on the 2 nodes
  node01:
 
  total 28
  drwxr-xr-x. 3 root root  4096 Nov 11 12:25 .
  drwxr-xr-x. 6 root root  4096 Jul 23 22:18 ..
  -rw-r--r--. 1 root root50 Oct 28 18:00 index.html
  drwx--. 2 root root 16384 Oct 28 17:59 lost+found
 
  node02 only has index.html, no lost+found, and it's a different version
 of
  the file.

 I'm unsure if there is just a language barrier,
 or if you just have not enough experience with linux in general,
 or if you try to make things more complicated as they are.

 Do you know
  * what a block device is?
  * what a file system is?
  * what a mount point is?
  * that a mount point may not be empty, even though it typically is?
  * what it means to mount a file system to a mount point?

 Assuming you set up DRBD in a sane way,
 and it is mounted on *one* node (the node where it is Primary),
 then on the *other* node, where it is NOT mounted,
 you will only see the mount point,
 and whatever happens to be in there.

 You probably should clear out the contents of that mount point,
 so that you'd have an empty mount point.

 Or, if you like, replace it with some dummy content
 that clearly shows that this is the mount point,
 and not the file system that is intended to be mounted there.

  Status URL is enabled in both nodes.

 As for the DocumentRoot must be a directory,
 please double check for typos...


  On Oct 30, 2014 11:14 AM, Andrew Beekhof and...@beekhof.net wrote:
 
  
On 29 Oct 2014, at 1:01 pm, Sihan Goi gois...@gmail.com wrote:
   
Hi,
   
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 -
  
 https://www.dropbox.com/s/suj9pttjp403msv/unexplained-apache-failure.tar.bz2?dl=0
   
Hope you can help figure out what I'm doing wrong. Thanks for the
 help!
  
   Oct 28 18:13:38 node02 Filesystem(WebFS)[29940]: INFO: Running start
 for
   /dev/drbd/by-res/wwwdata on /var/www/html
   Oct 28 18:13:39 node02 kernel: EXT4-fs (drbd1): mounted filesystem with
   ordered data mode. Opts:
   Oct 28 18:13:39 node02 crmd[9870]:   notice: process_lrm_event: LRM
   operation WebFS_start_0 (call=164, rc=0, cib-update=298,
 confirmed=true) ok
   Oct 28 18:13:39 node02 crmd[9870]:   notice: te_rsc_command: Initiating
   action 7: start WebSite_start_0 on node02 (local)
   Oct 28 18:13:39 node02 apache(WebSite)[30007]: ERROR: Syntax error on
 line
   292 of /etc/httpd/conf/httpd.conf: DocumentRoot must be a directory
  
   Is DocumentRoot still set to /var/www/html?
   If so, what happens if you run 'ls -al /var/www/html' in a shell?
  
   Oct 28 18:13:39 node02 apache(WebSite)[30007]: INFO: apache not running
   Oct 28 18:13:39 node02 apache(WebSite)[30007]: INFO: waiting for apache
   /etc/httpd/conf/httpd.conf to come up
  
   Did you enable the status url?
  
  
 http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/_enable_the_apache_status_url.html


 --
 : Lars Ellenberg
 : http://www.LINBIT.com | Your Way to High Availability
 : DRBD, Linux-HA  and  Pacemaker support and consulting

 DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.

 ___
 Pacemaker mailing list: 

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-11-11 Thread Vladislav Bogdanov
11.11.2014 07:27, Sihan Goi wrote:
 Hi,
 
 DocumentRoot is still set to /var/www/html
 ls -al /var/www/html shows different things on the 2 nodes
 node01:
 
 total 28
 drwxr-xr-x. 3 root root  4096 Nov 11 12:25 .
 drwxr-xr-x. 6 root root  4096 Jul 23 22:18 ..
 -rw-r--r--. 1 root root50 Oct 28 18:00 index.html
 drwx--. 2 root root 16384 Oct 28 17:59 lost+found
 
 node02 only has index.html, no lost+found, and it's a different version
 of the file.
 

It look like apache is unable to stat its document root.
Could you please show output of two commands:

getenforce
ls -dZ /var/www/html

on both nodes when fs is mounted on one of them?
If you see 'Enforcing', and the last part of the selinux context of a
mounted fs root is not httpd_sys_content_t, then run
'restorecon -R /var/www/html' on that node.

 Status URL is enabled in both nodes.
 
 
 On Oct 30, 2014 11:14 AM, Andrew Beekhof and...@beekhof.net
 mailto:and...@beekhof.net wrote:
 
 
  On 29 Oct 2014, at 1:01 pm, Sihan Goi gois...@gmail.com
 mailto:gois...@gmail.com wrote:
 
  Hi,
 
  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 -
 
 https://www.dropbox.com/s/suj9pttjp403msv/unexplained-apache-failure.tar.bz2?dl=0
 
  Hope you can help figure out what I'm doing wrong. Thanks for the
 help!
 
 Oct 28 18:13:38 node02 Filesystem(WebFS)[29940]: INFO: Running start
 for /dev/drbd/by-res/wwwdata on /var/www/html
 Oct 28 18:13:39 node02 kernel: EXT4-fs (drbd1): mounted filesystem
 with ordered data mode. Opts:
 Oct 28 18:13:39 node02 crmd[9870]:   notice: process_lrm_event: LRM
 operation WebFS_start_0 (call=164, rc=0, cib-update=298,
 confirmed=true) ok
 Oct 28 18:13:39 node02 crmd[9870]:   notice: te_rsc_command:
 Initiating action 7: start WebSite_start_0 on node02 (local)
 Oct 28 18:13:39 node02 apache(WebSite)[30007]: ERROR: Syntax error
 on line 292 of /etc/httpd/conf/httpd.conf: DocumentRoot must be a
 directory
 
 Is DocumentRoot still set to /var/www/html?
 If so, what happens if you run 'ls -al /var/www/html' in a shell?
 
 Oct 28 18:13:39 node02 apache(WebSite)[30007]: INFO: apache not running
 Oct 28 18:13:39 node02 apache(WebSite)[30007]: INFO: waiting for
 apache /etc/httpd/conf/httpd.conf to come up
 
 Did you enable the status url?
 
 http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/_enable_the_apache_status_url.html
 
 
 
 ___
 Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
 mailto:Pacemaker@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@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@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


Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-11-10 Thread Sihan Goi
Hi,

DocumentRoot is still set to /var/www/html
ls -al /var/www/html shows different things on the 2 nodes
node01:

total 28
drwxr-xr-x. 3 root root  4096 Nov 11 12:25 .
drwxr-xr-x. 6 root root  4096 Jul 23 22:18 ..
-rw-r--r--. 1 root root50 Oct 28 18:00 index.html
drwx--. 2 root root 16384 Oct 28 17:59 lost+found

node02 only has index.html, no lost+found, and it's a different version of
the file.

Status URL is enabled in both nodes.


On Oct 30, 2014 11:14 AM, Andrew Beekhof and...@beekhof.net wrote:


  On 29 Oct 2014, at 1:01 pm, Sihan Goi gois...@gmail.com wrote:
 
  Hi,
 
  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 -
 https://www.dropbox.com/s/suj9pttjp403msv/unexplained-apache-failure.tar.bz2?dl=0
 
  Hope you can help figure out what I'm doing wrong. Thanks for the help!

 Oct 28 18:13:38 node02 Filesystem(WebFS)[29940]: INFO: Running start for
 /dev/drbd/by-res/wwwdata on /var/www/html
 Oct 28 18:13:39 node02 kernel: EXT4-fs (drbd1): mounted filesystem with
 ordered data mode. Opts:
 Oct 28 18:13:39 node02 crmd[9870]:   notice: process_lrm_event: LRM
 operation WebFS_start_0 (call=164, rc=0, cib-update=298, confirmed=true) ok
 Oct 28 18:13:39 node02 crmd[9870]:   notice: te_rsc_command: Initiating
 action 7: start WebSite_start_0 on node02 (local)
 Oct 28 18:13:39 node02 apache(WebSite)[30007]: ERROR: Syntax error on line
 292 of /etc/httpd/conf/httpd.conf: DocumentRoot must be a directory

 Is DocumentRoot still set to /var/www/html?
 If so, what happens if you run 'ls -al /var/www/html' in a shell?

 Oct 28 18:13:39 node02 apache(WebSite)[30007]: INFO: apache not running
 Oct 28 18:13:39 node02 apache(WebSite)[30007]: INFO: waiting for apache
 /etc/httpd/conf/httpd.conf to come up

 Did you enable the status url?

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



 ___
 Pacemaker mailing list: Pacemaker@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@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


Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-29 Thread Andrew Beekhof

 On 29 Oct 2014, at 1:01 pm, Sihan Goi gois...@gmail.com wrote:
 
 Hi,
 
 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 - 
 https://www.dropbox.com/s/suj9pttjp403msv/unexplained-apache-failure.tar.bz2?dl=0
 
 Hope you can help figure out what I'm doing wrong. Thanks for the help!

Oct 28 18:13:38 node02 Filesystem(WebFS)[29940]: INFO: Running start for 
/dev/drbd/by-res/wwwdata on /var/www/html
Oct 28 18:13:39 node02 kernel: EXT4-fs (drbd1): mounted filesystem with ordered 
data mode. Opts: 
Oct 28 18:13:39 node02 crmd[9870]:   notice: process_lrm_event: LRM operation 
WebFS_start_0 (call=164, rc=0, cib-update=298, confirmed=true) ok
Oct 28 18:13:39 node02 crmd[9870]:   notice: te_rsc_command: Initiating action 
7: start WebSite_start_0 on node02 (local)
Oct 28 18:13:39 node02 apache(WebSite)[30007]: ERROR: Syntax error on line 292 
of /etc/httpd/conf/httpd.conf: DocumentRoot must be a directory

Is DocumentRoot still set to /var/www/html?
If so, what happens if you run 'ls -al /var/www/html' in a shell?

Oct 28 18:13:39 node02 apache(WebSite)[30007]: INFO: apache not running
Oct 28 18:13:39 node02 apache(WebSite)[30007]: INFO: waiting for apache 
/etc/httpd/conf/httpd.conf to come up

Did you enable the status url?
http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/_enable_the_apache_status_url.html



___
Pacemaker mailing list: Pacemaker@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


Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-28 Thread Sihan Goi
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.

On Tue, Oct 28, 2014 at 11:41 AM, Andrew Beekhof and...@beekhof.net wrote:


  On 27 Oct 2014, at 6:05 pm, Sihan Goi gois...@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 and...@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 gois...@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 and...@beekhof.net
 wrote:
   logs?
  
On 23 Oct 2014, at 1:08 pm, Sihan Goi gois...@gmail.com wrote:
   
Hi, can anyone help? Really stuck here...
   
On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi gois...@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=2ms, 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=2ms,
 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
gois...@gmail.com
   
   
   
--
- Goi Sihan
gois...@gmail.com
___
Pacemaker mailing list: Pacemaker@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@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
   gois...@gmail.com
   ___
   Pacemaker mailing list: Pacemaker@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
 
 
  

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-28 Thread Andrew Beekhof

 On 28 Oct 2014, at 6:26 pm, Sihan Goi gois...@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 and...@beekhof.net wrote:
 
  On 27 Oct 2014, at 6:05 pm, Sihan Goi gois...@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 and...@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 gois...@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 and...@beekhof.net 
   wrote:
   logs?
  
On 23 Oct 2014, at 1:08 pm, Sihan Goi gois...@gmail.com wrote:
   
Hi, can anyone help? Really stuck here...
   
On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi gois...@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=2ms, 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=2ms, 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
gois...@gmail.com
   
   
   
--
- Goi Sihan
gois...@gmail.com
___
Pacemaker mailing list: Pacemaker@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@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
   gois...@gmail.com
   

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-28 Thread Sihan Goi
Hi,

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:

node node01 \
attributes standby=off
node node02
primitive ClusterIP IPaddr2 \
params ip=192.168.1.110 cidr_netmask=24 \
op monitor interval=30s
primitive WebData ocf:linbit:drbd \
params drbd_resource=wwwdata \
op monitor interval=60s
primitive WebFS Filesystem \
params device=/dev/drbd/by-res/wwwdata directory=/var/www/html
fstype=ext4
primitive WebSite apache \
params configfile=/etc/httpd/conf/httpd.conf \
op monitor interval=1min
ms WebDataClone WebData \
meta master-max=1 master-node-max=1 clone-max=2 clone-node-max=1
notify=true
location prefer-node01 WebSite 50: node01
colocation WebSite-with-WebFS inf: WebSite WebFS
colocation fs_on_drbd inf: WebFS WebDataClone:Master
colocation website-with-ip inf: WebSite ClusterIP
order WebFS-after-WebData inf: WebDataClone:promote WebFS:start
order WebSite-after-WebFS inf: WebFS WebSite
order apache-after-ip Mandatory: ClusterIP WebSite
property cib-bootstrap-options: \
dc-version=1.1.10-14.el6_5.3-368c726 \
cluster-infrastructure=cman \
stonith-enabled=false \
no-quorum-policy=ignore
rsc_defaults rsc_defaults-options: \
migration-threshold=1

What am I doing wrong?

On Tue, Oct 28, 2014 at 5:11 PM, Andrew Beekhof and...@beekhof.net wrote:


  On 28 Oct 2014, at 6:26 pm, Sihan Goi gois...@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 and...@beekhof.net
 wrote:
 
   On 27 Oct 2014, at 6:05 pm, Sihan Goi gois...@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 and...@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 gois...@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 and...@beekhof.net
 wrote:
logs?
   
 On 23 Oct 2014, at 1:08 pm, Sihan Goi gois...@gmail.com wrote:

 Hi, can anyone help? Really stuck here...

 On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi gois...@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 

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-28 Thread Andrew Beekhof
Can you run crm_report so we can see the logs and PE files?

 On 28 Oct 2014, at 9:16 pm, Sihan Goi gois...@gmail.com wrote:
 
 Hi,
 
 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:
 
 node node01 \
 attributes standby=off
 node node02
 primitive ClusterIP IPaddr2 \
 params ip=192.168.1.110 cidr_netmask=24 \
 op monitor interval=30s
 primitive WebData ocf:linbit:drbd \
 params drbd_resource=wwwdata \
 op monitor interval=60s
 primitive WebFS Filesystem \
 params device=/dev/drbd/by-res/wwwdata directory=/var/www/html 
 fstype=ext4
 primitive WebSite apache \
 params configfile=/etc/httpd/conf/httpd.conf \
 op monitor interval=1min
 ms WebDataClone WebData \
 meta master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 
 notify=true
 location prefer-node01 WebSite 50: node01
 colocation WebSite-with-WebFS inf: WebSite WebFS
 colocation fs_on_drbd inf: WebFS WebDataClone:Master
 colocation website-with-ip inf: WebSite ClusterIP
 order WebFS-after-WebData inf: WebDataClone:promote WebFS:start
 order WebSite-after-WebFS inf: WebFS WebSite
 order apache-after-ip Mandatory: ClusterIP WebSite
 property cib-bootstrap-options: \
 dc-version=1.1.10-14.el6_5.3-368c726 \
 cluster-infrastructure=cman \
 stonith-enabled=false \
 no-quorum-policy=ignore
 rsc_defaults rsc_defaults-options: \
 migration-threshold=1
 
 What am I doing wrong?
 
 On Tue, Oct 28, 2014 at 5:11 PM, Andrew Beekhof and...@beekhof.net wrote:
 
  On 28 Oct 2014, at 6:26 pm, Sihan Goi gois...@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 and...@beekhof.net wrote:
 
   On 27 Oct 2014, at 6:05 pm, Sihan Goi gois...@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 and...@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 gois...@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 and...@beekhof.net 
wrote:
logs?
   
 On 23 Oct 2014, at 1:08 pm, Sihan Goi gois...@gmail.com wrote:

 Hi, can anyone help? Really stuck here...

 On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi gois...@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 

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-28 Thread Sihan Goi
Hi,

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 -
https://www.dropbox.com/s/suj9pttjp403msv/unexplained-apache-failure.tar.bz2?dl=0

Hope you can help figure out what I'm doing wrong. Thanks for the help!

On Wed, Oct 29, 2014 at 9:24 AM, Andrew Beekhof and...@beekhof.net wrote:

 Can you run crm_report so we can see the logs and PE files?

  On 28 Oct 2014, at 9:16 pm, Sihan Goi gois...@gmail.com wrote:
 
  Hi,
 
  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:
 
  node node01 \
  attributes standby=off
  node node02
  primitive ClusterIP IPaddr2 \
  params ip=192.168.1.110 cidr_netmask=24 \
  op monitor interval=30s
  primitive WebData ocf:linbit:drbd \
  params drbd_resource=wwwdata \
  op monitor interval=60s
  primitive WebFS Filesystem \
  params device=/dev/drbd/by-res/wwwdata
 directory=/var/www/html fstype=ext4
  primitive WebSite apache \
  params configfile=/etc/httpd/conf/httpd.conf \
  op monitor interval=1min
  ms WebDataClone WebData \
  meta master-max=1 master-node-max=1 clone-max=2 clone-node-max=1
 notify=true
  location prefer-node01 WebSite 50: node01
  colocation WebSite-with-WebFS inf: WebSite WebFS
  colocation fs_on_drbd inf: WebFS WebDataClone:Master
  colocation website-with-ip inf: WebSite ClusterIP
  order WebFS-after-WebData inf: WebDataClone:promote WebFS:start
  order WebSite-after-WebFS inf: WebFS WebSite
  order apache-after-ip Mandatory: ClusterIP WebSite
  property cib-bootstrap-options: \
  dc-version=1.1.10-14.el6_5.3-368c726 \
  cluster-infrastructure=cman \
  stonith-enabled=false \
  no-quorum-policy=ignore
  rsc_defaults rsc_defaults-options: \
  migration-threshold=1
 
  What am I doing wrong?
 
  On Tue, Oct 28, 2014 at 5:11 PM, Andrew Beekhof and...@beekhof.net
 wrote:
 
   On 28 Oct 2014, at 6:26 pm, Sihan Goi gois...@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 and...@beekhof.net
 wrote:
  
On 27 Oct 2014, at 6:05 pm, Sihan Goi gois...@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 and...@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 gois...@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 
 and...@beekhof.net wrote:
 logs?

  On 23 Oct 2014, at 1:08 pm, Sihan Goi gois...@gmail.com wrote:
 
  Hi, can anyone help? Really stuck here...
 
  On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi gois...@gmail.com
 wrote:
  Hi,
 
  I'm following the Clusters from Scratch guide for Fedora 13,
 and I've managed to 

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-27 Thread Sihan Goi
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?

Thanks.

On Mon, Oct 27, 2014 at 11:35 AM, Andrew Beekhof and...@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 gois...@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 and...@beekhof.net
 wrote:
  logs?
 
   On 23 Oct 2014, at 1:08 pm, Sihan Goi gois...@gmail.com wrote:
  
   Hi, can anyone help? Really stuck here...
  
   On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi gois...@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=2ms, 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=2ms,
 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
   gois...@gmail.com
  
  
  
   --
   - Goi Sihan
   gois...@gmail.com
   ___
   Pacemaker mailing list: Pacemaker@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@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
  gois...@gmail.com
  ___
  Pacemaker mailing list: Pacemaker@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@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
gois...@gmail.com
___
Pacemaker mailing list: Pacemaker@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


Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-27 Thread Andrew Beekhof

 On 27 Oct 2014, at 6:05 pm, Sihan Goi gois...@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 and...@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 gois...@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 and...@beekhof.net wrote:
  logs?
 
   On 23 Oct 2014, at 1:08 pm, Sihan Goi gois...@gmail.com wrote:
  
   Hi, can anyone help? Really stuck here...
  
   On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi gois...@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=2ms, 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=2ms, 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
   gois...@gmail.com
  
  
  
   --
   - Goi Sihan
   gois...@gmail.com
   ___
   Pacemaker mailing list: Pacemaker@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@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
  gois...@gmail.com
  ___
  Pacemaker mailing list: Pacemaker@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@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
 gois...@gmail.com
 ___
 Pacemaker mailing list: Pacemaker@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@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project 

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-26 Thread Sihan Goi
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 and...@beekhof.net wrote:

 logs?

  On 23 Oct 2014, at 1:08 pm, Sihan Goi gois...@gmail.com wrote:
 
  Hi, can anyone help? Really stuck here...
 
  On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi gois...@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=2ms, 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=2ms, 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
  gois...@gmail.com
 
 
 
  --
  - Goi Sihan
  gois...@gmail.com
  ___
  Pacemaker mailing list: Pacemaker@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@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
gois...@gmail.com
___
Pacemaker mailing list: Pacemaker@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


Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-26 Thread Andrew Beekhof
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 gois...@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 and...@beekhof.net wrote:
 logs?
 
  On 23 Oct 2014, at 1:08 pm, Sihan Goi gois...@gmail.com wrote:
 
  Hi, can anyone help? Really stuck here...
 
  On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi gois...@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=2ms, 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=2ms, 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
  gois...@gmail.com
 
 
 
  --
  - Goi Sihan
  gois...@gmail.com
  ___
  Pacemaker mailing list: Pacemaker@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@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
 gois...@gmail.com
 ___
 Pacemaker mailing list: Pacemaker@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@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


Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-23 Thread David Pendell
Try this. digimer is an expert at what you are trying to do.

https://alteeve.ca/w/AN!Cluster_Tutorial_2

On Thu, Oct 23, 2014 at 1:05 PM, David Pendell losto...@gmail.com wrote:

 Try this.

 https://alteeve.ca/w/AN!Cluster_Tutorial_2

 On Wed, Oct 22, 2014 at 8:08 PM, Sihan Goi gois...@gmail.com wrote:

 Hi, can anyone help? Really stuck here...

 On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi gois...@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=2ms, 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=2ms, 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
 gois...@gmail.com




 --
 - Goi Sihan
 gois...@gmail.com

 ___
 Pacemaker mailing list: Pacemaker@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@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


Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-23 Thread David Pendell
Try this.

https://alteeve.ca/w/AN!Cluster_Tutorial_2

On Wed, Oct 22, 2014 at 8:08 PM, Sihan Goi gois...@gmail.com wrote:

 Hi, can anyone help? Really stuck here...

 On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi gois...@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=2ms, 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=2ms, 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
 gois...@gmail.com




 --
 - Goi Sihan
 gois...@gmail.com

 ___
 Pacemaker mailing list: Pacemaker@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@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


Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-23 Thread David Pendell
By the way, you want to configure DRBD before you configure Apache. You
start from the bottom up. Get a fully working platform upon which to build.
Make sure that DRBD is working and that fencing is *in place and working*;
DON'T SKIP THIS! Then build Apache on top of that.

d.p.

On Thu, Oct 23, 2014 at 1:05 PM, David Pendell losto...@gmail.com wrote:

 Try this. digimer is an expert at what you are trying to do.

 https://alteeve.ca/w/AN!Cluster_Tutorial_2

 On Thu, Oct 23, 2014 at 1:05 PM, David Pendell losto...@gmail.com wrote:

 Try this.

 https://alteeve.ca/w/AN!Cluster_Tutorial_2

 On Wed, Oct 22, 2014 at 8:08 PM, Sihan Goi gois...@gmail.com wrote:

 Hi, can anyone help? Really stuck here...

 On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi gois...@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=2ms, 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=2ms, 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
 gois...@gmail.com




 --
 - Goi Sihan
 gois...@gmail.com

 ___
 Pacemaker mailing list: Pacemaker@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@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


Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-23 Thread Andrew Beekhof
logs?

 On 23 Oct 2014, at 1:08 pm, Sihan Goi gois...@gmail.com wrote:
 
 Hi, can anyone help? Really stuck here...
 
 On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi gois...@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=2ms, 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=2ms, 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
 gois...@gmail.com
 
 
 
 -- 
 - Goi Sihan
 gois...@gmail.com
 ___
 Pacemaker mailing list: Pacemaker@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@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


Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-22 Thread Sihan Goi
Hi, can anyone help? Really stuck here...

On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi gois...@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=2ms, 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=2ms, 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
 gois...@gmail.com




-- 
- Goi Sihan
gois...@gmail.com
___
Pacemaker mailing list: Pacemaker@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