[Pacemaker] HA setup of MySQL service using Pacemaker/DRBD

2014-11-16 Thread Sihan Goi
Hi, I have a working 2 node HA setup running on CentOS 6.5 with a very simple Apache webserver with replicated index.html using DRBD 8.4. The setup is configured based on the "Clusters from Scratch" Edition 5 with Fedora 13. I now with to replace Apache with a MySQL database, or just simply add i

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-11-13 Thread Sihan Goi
On Thu, Nov 13, 2014 at 9:42 AM, Sihan Goi wrote: > 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

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-11-12 Thread Sihan Goi
rote: > 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 . > > d

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-11-11 Thread Sihan Goi
a problem? On Tue, Nov 11, 2014 at 6:07 PM, Lars Ellenberg 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: >

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-11-10 Thread Sihan Goi
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" wrote: > > > On 29 Oct 2014, at 1:01 pm, Sihan Goi wrote: > > &

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-28 Thread Sihan Goi
figure out what I'm doing wrong. Thanks for the help! On Wed, Oct 29, 2014 at 9:24 AM, Andrew Beekhof 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 wrote: > > > > Hi, > > > > I followed tho

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-28 Thread Sihan Goi
tions: \ 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 wrote:

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-28 Thread Sihan Goi
nting that? I'm a little confused here. On Tue, Oct 28, 2014 at 11:41 AM, Andrew Beekhof wrote: > > > On 27 Oct 2014, at 6:05 pm, Sihan Goi wrote: > > > > Hi, > > > > That offending line is as follows: > > DocumentRoot "/var/www/html" &g

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-27 Thread Sihan Goi
n, Oct 27, 2014 at 11:35 AM, Andrew Beekhof 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 wrote: > > > > Hi And

Re: [Pacemaker] DRBD with Pacemaker on CentOs 6.5

2014-10-26 Thread Sihan Goi
configure DRBD. On Fri, Oct 24, 2014 at 8:29 AM, Andrew Beekhof wrote: > 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, > &g

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

[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

Re: [Pacemaker] Linux HA setup for CentOS 6.5

2014-10-16 Thread Sihan Goi
wrong? On Thu, Oct 16, 2014 at 1:49 PM, Digimer wrote: > On 16/10/14 12:14 AM, Sihan Goi wrote: > >> After following the guide, I've successfully managed to get Apache >> server up and running in the cluster as an active/passive setup, but >> with some differences.

Re: [Pacemaker] Linux HA setup for CentOS 6.5

2014-10-15 Thread Sihan Goi
Does this work with the guide? On Thu, Oct 16, 2014 at 9:35 AM, Sihan Goi wrote: > Hi, > > Thanks for the guide! I thought I had the same exact version...mine is > also named "Pacemaker 1.1 Clusters from Scratch Creating Active/Passive and > Active/Active Clusters on Fedora Ed

Re: [Pacemaker] Linux HA setup for CentOS 6.5

2014-10-15 Thread Sihan Goi
my approach handles > it in the main /etc/cluster/cluster.conf (cman's main config file). > > In any case, from then on, start pacemaker and let it handle everything > else. > > Cheers > > digimer > > On 15/10/14 04:27 AM, Sihan Goi wrote: > >> Hi, >

Re: [Pacemaker] Linux HA setup for CentOS 6.5

2014-10-15 Thread Sihan Goi
ide at http://geekpeek.net/linux-cluster-corosync-pacemaker service corosync start - success. service pacemaker start - I get a "Starting cman...corosync cluster engine is already running [FAILED]" What's up? :( On Oct 15, 2014 12:23 PM, "Sihan Goi" wrote: > No typo. > &g

Re: [Pacemaker] Linux HA setup for CentOS 6.5

2014-10-14 Thread Sihan Goi
en an EL6 install without the files there, 'network' or > NetworkManager aside. > > digimer > > On 14/10/14 11:32 PM, Sihan Goi wrote: > >> There aren't any config files in /etc/sysconfig/network-scripts. When I >> was using CentOS 7, the config files w

Re: [Pacemaker] Linux HA setup for CentOS 6.5

2014-10-14 Thread Sihan Goi
ago, but I believe you can change > NMCONTROLLER="no" and then start it up with /etc/sysconfig/network start. I > could be a bit wrong, but I am sure you can make wireless work without NM. > > Question; Servers with WLAN? I assume these won't be used for corosync? > >

[Pacemaker] Linux HA setup for CentOS 6.5

2014-10-14 Thread Sihan Goi
Hi, Is there a tutorial showing how to get a basic Linux HA setup with replicated storage (via DRBD) working on CentOS 6.5? I want to have mySQL as the HA resource with the database replicated across the nodes. I've scoured the web for one but it seems that I get stuck in each one somewhere. To e

Re: [Pacemaker] ERROR: Unable to find nic or netmask.

2014-09-16 Thread Sihan Goi
I mean things like firewall settings, as well as services like pcsd, pacemaker and corosync not starting up automatically sometimes. On Tue, Sep 16, 2014 at 5:10 PM, Nikita Michalko wrote: > On 16.09.2014 10:31, Sihan Goi wrote: > > Figured out the problem - the firewall rules are so

Re: [Pacemaker] ERROR: Unable to find nic or netmask.

2014-09-16 Thread Sihan Goi
p%3Ft%3D1636667&ei=QV0FVK2YBYHO0QXPxYHQDw&usg=AFQjCNHcs7alJ_RwBc4tWq2X7ew4ynEmzg&sig2=ra1qjZ8nly8opwawrACidw&bvm=bv.74115972,d.bGE > > > HTH > > Nikita > > > > On 02.09.2014 07:47, Sihan Goi wrote: > > Hi, > > After some investigation, it seems

[Pacemaker] Notification when a node is down

2014-09-11 Thread Sihan Goi
Hi, Is there any way for a Pacemaker/Corosync/PCS setup to send a notification when it detects that a node in a cluster is down? I read that Pacemaker and Corosync logs events to syslog, but where is the syslog file in CentOS? Do they log events such as a failover occurrence? Thanks. -- - Goi S

Re: [Pacemaker] pcs cluster auth shows "Error: Unable to communicate with node" message

2014-09-09 Thread Sihan Goi
Tried that, same problem. On Sep 9, 2014 3:44 PM, "emmanuel segura" wrote: > systemctl enable pcsd.service ? > > 2014-09-09 9:37 GMT+02:00 Sihan Goi : > > Hi, > > > > I had a basic HA setup working with 2 nodes previously running a simple > > Apache web

[Pacemaker] pcs cluster auth shows "Error: Unable to communicate with node" message

2014-09-09 Thread Sihan Goi
Hi, I had a basic HA setup working with 2 nodes previously running a simple Apache web server on a private local network. However, I'm having trouble getting it to work right now, and I haven't changed anything other than rebooting a few times. Firstly, I've noticed that I need to start the pcsd

Re: [Pacemaker] ERROR: Unable to find nic or netmask.

2014-09-01 Thread Sihan Goi
t the physical > interface's netmask be 24. > > On Tue, Sep 2, 2014 at 11:27 AM, Sihan Goi wrote: > > Got it. Changed the netmask for both PCs to 255.255.255.0 and changed > > cidr_netmask to 24 and it works...sort of. > > > > It was working for a whil

Re: [Pacemaker] ERROR: Unable to find nic or netmask.

2014-09-01 Thread Sihan Goi
ional. Assuming a proper netmask (not > 255.255.255.2555) is on 192.168.0.111 and 192.168.0.112 it should work > without specifying cidr_netmask. > > > -- > > *From: *"Sihan Goi" > *To: *pacemaker@oss.clusterlabs.org > *Sent: *Monday,

[Pacemaker] ERROR: Unable to find nic or netmask.

2014-09-01 Thread Sihan Goi
Hi, I'm trying to create a HA cluster with 2 CentOS 7 PCs connected to a wireless AP. The PCs have the static IP addresses 192.168.0.111 and 192.168.0.112 respectively and hostnames node01 and node02 respectively. I've tried to create a virtual IP address of 192.168.0.110 using the following comm