Re: [Pacemaker] Show all resource properties with crmsh

2014-10-14 Thread Dejan Muhamedagic
On Mon, Oct 06, 2014 at 10:21:35AM +0400, Andrei Borzenkov wrote:
 On Thu, Oct 2, 2014 at 6:31 PM, Dejan Muhamedagic deja...@fastmail.fm wrote:
  Hi,
 
  On Thu, Oct 02, 2014 at 12:22:35PM +0400, Andrei Borzenkov wrote:
  Is it possible to display values for all resource properties,
  including those set to default values?
 
  What do you consider a property? Instance attributes or meta
  attributes? Or both?
 
 I was referring mostly to meta attributes, but having both would be
 quite useful.

Do you have any specific meta attributes in mind? Taking a
cursory look doesn't reveal anything very interesting.

The defaults for the former live in the RA
  meta-data and are used only by crmsh (probably some other tools
  too) to display in brackets when showing the RA info. Note also
  that the default in the meta-data may not actually match the
  default used by the RA (it should, but there's no mechanism to
  make sure).
 
 
 Yes, I understand that.
 
 
  But why would you want to have this?
 
 
 Because otherwise I must somehow find what defaults are and this may
 change from release to release and from vendor to vendor. I simply
 want to make sure I have all necessary information that may influence
 cluster behavior.

We try hard to keep the defaults the same between releases, even
when they're in retrospective considered to be less than optimal.
Otherwise, the existing cluster configurations may fail. But
there's no guarantee.

It would be possible to implement a small utility which would
compare defaults of two RA meta-data. There are also meta-data in
crmd, pengine, cib, and stonithd, representing various global
cluster properties.

As for the resource meta attributes, I'm afraid that one would
need to look them up in pacemaker's include files. I was once
about to have their descriptions available in a more convenient
manner, but got distracted at the time.

Thanks,

Dejan

 ___
 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] Pacemaker Corosync Issue

2014-10-14 Thread Andrew Beekhof

On 15 Oct 2014, at 4:23 am, Sahil Aggarwal sahilaggarw...@gmail.com wrote:

 
 Hello Team Pacemaker, 
 
 I am facing a constant issue with Pacemaker, it does not restart the Service 
 even when he knows that the Service is down. It generates a message saying 
 Ignoring Expired Failure for the service.

What is the failure timeout set to?

 Pacemaker and Corosync version are given below. OS CentOS 6.2
 
 corosync-1.4.1-4.el6_2.2.x86_64 pacemaker-1.1.9-2.el6.x86_64
 
 Log which pengine provide is:
 
  pengine[45232]:   notice: unpack_rsc_op: Ignoring expired failure 
 (calculated) Server_last_failure_0 (rc=7, 
 magic=0:7;14:5699:0:459093cc-f3a1-483b-b853-53a1d9791361)
 
 Some more info is:
 
 1.This is a two node cluster. There is time difference of 10 min b/w the two 
 nodes.
 
 
 -- 
 Regards,
 Sahil
 Mobile - 09467607999
 fbAddress-www.facebook.com/SahilAggarwalg



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] 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 elaborate, I have 2 CentOS 6.5 nodes configured with distinct hostnames
and static IPs. They are connected to a wireless AP, and can ping each
other.

I tried following this guide - http://clusterlabs.org/quickstart-redhat.html
However, cman will not start when NetworkManager is running, and my nodes
cannot connect to the wireless AP without NetworkManager running. Am I
missing something or is that the stupidest dependency ever? How is a
cluster supposed to work when the nodes aren't connected to one another?

I also tried following the clusters from scratch guide but that seems to
rely on systemctl calls which aren't available on CentOS 6.5.

Any help?

-- 
- 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] Linux HA setup for CentOS 6.5

2014-10-14 Thread Digimer
You can manually configure the wireless LAN without NetworkManager. If 
you take a look, there should be existing config files in 
/etc/sysconfig/network-scripts/ for the wireless connection. I've not 
done it myself since many Fedora's 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?

digimer

On 14/10/14 11:17 PM, Sihan Goi wrote:

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 elaborate, I have 2 CentOS 6.5 nodes configured with distinct
hostnames and static IPs. They are connected to a wireless AP, and can
ping each other.

I tried following this guide - http://clusterlabs.org/quickstart-redhat.html
However, cman will not start when NetworkManager is running, and my
nodes cannot connect to the wireless AP without NetworkManager running.
Am I missing something or is that the stupidest dependency ever? How is
a cluster supposed to work when the nodes aren't connected to one another?

I also tried following the clusters from scratch guide but that seems
to rely on systemctl calls which aren't available on CentOS 6.5.

Any help?

--
- Goi Sihan
gois...@gmail.com mailto: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




--
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without 
access to education?


___
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] Linux HA setup for CentOS 6.5

2014-10-14 Thread Digimer

Sure there isn't a typo there?

an-c05n01:~# ls -lah /etc/sysconfig/network-scripts/ifcfg-*
-rw-r--r--. 1 root root 225 Jan 16  2013 
/etc/sysconfig/network-scripts/ifcfg-bond0
-rw-r--r--. 1 root root 220 Jan 16  2013 
/etc/sysconfig/network-scripts/ifcfg-bond1
-rw-r--r--. 1 root root 198 Jan 16  2013 
/etc/sysconfig/network-scripts/ifcfg-bond2
-rw-r--r--. 1 root root 149 Jan 16  2013 
/etc/sysconfig/network-scripts/ifcfg-eth0
-rw-r--r--. 1 root root 144 Jan 16  2013 
/etc/sysconfig/network-scripts/ifcfg-eth1
-rw-r--r--. 1 root root 152 Mar 14  2013 
/etc/sysconfig/network-scripts/ifcfg-eth2
-rw-r--r--. 1 root root 149 Jan 16  2013 
/etc/sysconfig/network-scripts/ifcfg-eth3
-rw-r--r--. 1 root root 144 Jan 16  2013 
/etc/sysconfig/network-scripts/ifcfg-eth4
-rw-r--r--. 1 root root 152 Mar 14  2013 
/etc/sysconfig/network-scripts/ifcfg-eth5
-rw-r--r--. 1 root root 254 Jul 22 09:56 
/etc/sysconfig/network-scripts/ifcfg-lo
-rw-r--r--. 1 root root 213 Mar 13  2013 
/etc/sysconfig/network-scripts/ifcfg-vbr2


I've never seen 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 were there (ifcfg-something) but in
this CentOS 6.5 installation, they are missing.

If is possible to not use cman, and just use corosync and pacemaker? If
so, how?

On Wed, Oct 15, 2014 at 11:22 AM, Digimer li...@alteeve.ca
mailto:li...@alteeve.ca wrote:

You can manually configure the wireless LAN without NetworkManager.
If you take a look, there should be existing config files in
/etc/sysconfig/network-__scripts/ for the wireless connection. I've
not done it myself since many Fedora's 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?

digimer


On 14/10/14 11:17 PM, Sihan Goi wrote:

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 elaborate, I have 2 CentOS 6.5 nodes configured with distinct
hostnames and static IPs. They are connected to a wireless AP,
and can
ping each other.

I tried following this guide -
http://clusterlabs.org/__quickstart-redhat.html
http://clusterlabs.org/quickstart-redhat.html
However, cman will not start when NetworkManager is running, and my
nodes cannot connect to the wireless AP without NetworkManager
running.
Am I missing something or is that the stupidest dependency ever?
How is
a cluster supposed to work when the nodes aren't connected to
one another?

I also tried following the clusters from scratch guide but
that seems
to rely on systemctl calls which aren't available on CentOS 6.5.

Any help?

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


_
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
mailto:Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/__mailman/listinfo/pacemaker
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started:
http://www.clusterlabs.org/__doc/Cluster_from_Scratch.pdf
http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org



--
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person
without access to education?

_
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
mailto:Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/__mailman/listinfo/pacemaker
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started:
http://www.clusterlabs.org/__doc/Cluster_from_Scratch.pdf
http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org




--
- Goi Sihan
gois...@gmail.com mailto: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: 

Re: [Pacemaker] Linux HA setup for CentOS 6.5

2014-10-14 Thread Sihan Goi
No typo.

[root@node02 network-scripts]# ls -lah
/etc/sysconfig/network-scripts/ifcfg-*
-rw-r--r--. 1 root root 254 Oct 10  2013
/etc/sysconfig/network-scripts/ifcfg-lo

I installed CentOS 6.5 with the LiveDVD. I found it weird as well that
these files were missing.

On Wed, Oct 15, 2014 at 11:54 AM, Digimer li...@alteeve.ca wrote:

 Sure there isn't a typo there?

 an-c05n01:~# ls -lah /etc/sysconfig/network-scripts/ifcfg-*
 -rw-r--r--. 1 root root 225 Jan 16  2013 /etc/sysconfig/network-
 scripts/ifcfg-bond0
 -rw-r--r--. 1 root root 220 Jan 16  2013 /etc/sysconfig/network-
 scripts/ifcfg-bond1
 -rw-r--r--. 1 root root 198 Jan 16  2013 /etc/sysconfig/network-
 scripts/ifcfg-bond2
 -rw-r--r--. 1 root root 149 Jan 16  2013 /etc/sysconfig/network-
 scripts/ifcfg-eth0
 -rw-r--r--. 1 root root 144 Jan 16  2013 /etc/sysconfig/network-
 scripts/ifcfg-eth1
 -rw-r--r--. 1 root root 152 Mar 14  2013 /etc/sysconfig/network-
 scripts/ifcfg-eth2
 -rw-r--r--. 1 root root 149 Jan 16  2013 /etc/sysconfig/network-
 scripts/ifcfg-eth3
 -rw-r--r--. 1 root root 144 Jan 16  2013 /etc/sysconfig/network-
 scripts/ifcfg-eth4
 -rw-r--r--. 1 root root 152 Mar 14  2013 /etc/sysconfig/network-
 scripts/ifcfg-eth5
 -rw-r--r--. 1 root root 254 Jul 22 09:56 /etc/sysconfig/network-
 scripts/ifcfg-lo
 -rw-r--r--. 1 root root 213 Mar 13  2013 /etc/sysconfig/network-
 scripts/ifcfg-vbr2

 I've never seen 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 were there (ifcfg-something) but in
 this CentOS 6.5 installation, they are missing.

 If is possible to not use cman, and just use corosync and pacemaker? If
 so, how?

 On Wed, Oct 15, 2014 at 11:22 AM, Digimer li...@alteeve.ca
 mailto:li...@alteeve.ca wrote:

 You can manually configure the wireless LAN without NetworkManager.
 If you take a look, there should be existing config files in
 /etc/sysconfig/network-__scripts/ for the wireless connection. I've
 not done it myself since many Fedora's 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?

 digimer


 On 14/10/14 11:17 PM, Sihan Goi wrote:

 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 elaborate, I have 2 CentOS 6.5 nodes configured with distinct
 hostnames and static IPs. They are connected to a wireless AP,
 and can
 ping each other.

 I tried following this guide -
 http://clusterlabs.org/__quickstart-redhat.html
 http://clusterlabs.org/quickstart-redhat.html
 However, cman will not start when NetworkManager is running, and
 my
 nodes cannot connect to the wireless AP without NetworkManager
 running.
 Am I missing something or is that the stupidest dependency ever?
 How is
 a cluster supposed to work when the nodes aren't connected to
 one another?

 I also tried following the clusters from scratch guide but
 that seems
 to rely on systemctl calls which aren't available on CentOS 6.5.

 Any help?

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


 _
 Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
 mailto:Pacemaker@oss.clusterlabs.org
 http://oss.clusterlabs.org/__mailman/listinfo/pacemaker
 http://oss.clusterlabs.org/mailman/listinfo/pacemaker

 Project Home: http://www.clusterlabs.org
 Getting started:
 http://www.clusterlabs.org/__doc/Cluster_from_Scratch.pdf
 http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
 Bugs: http://bugs.clusterlabs.org



 --
 Digimer
 Papers and Projects: https://alteeve.ca/w/
 What if the cure for cancer is trapped in the mind of a person
 without access to education?

 _
 Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
 mailto:Pacemaker@oss.clusterlabs.org
 http://oss.clusterlabs.org/__mailman/listinfo/pacemaker
 http://oss.clusterlabs.org/mailman/listinfo/pacemaker

 Project Home: http://www.clusterlabs.org
 Getting started: