Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-11-13 Thread Sihan Goi
Hi, So it seems that my setup was not working because SELinux was not disabled. Once I disabled it, my web server displays the correct index.html. In my master node's /var/www/html, I see the correct index.html, but in the slave's /var/www/html I still see the old index.html. Once I do a failover

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 wrote: > 11.11.2014 07:27, Sihan

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 root5

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 Lars Ellenberg
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-

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

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 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/unex

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 w

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 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 \ > att

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 moni

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 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

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, afte

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 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

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--d

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 wrote: > > Hi Andrew, > > Logs in /var/log/httpd/ are empty, but here's a snippet of /var/log/messages > rig

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 F

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 wrote: > > Hi, can anyone help? Really stuck here... > > On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi 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. Ho

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, 20

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 wrote: > Hi, can anyone help? Really stuck here... > > On Mon, Oct 20, 2014 at 9:46 AM, Sihan Goi wrote: > >> Hi, >> >> I'm following the "Clusters from Scratch" guide for Fedora 13, and I've >> man

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 wrote: > Try this. > > https://alteeve.ca/w/AN!Cluster_Tutorial_2 > > On Wed, Oct 22, 2014 at 8:08 PM, Sihan Goi wrote: > >> Hi, can anyone hel

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 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 work

[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 b