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:

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

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

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

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 -

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,

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

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

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 \

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

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?

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

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

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

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

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

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,

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

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

[Pacemaker] DRBD with Pacemaker on CentOs 6.5

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