[Pacemaker] Reg. Current DC in crm status

2013-06-11 Thread ESWAR RAO
Hi All, I have a 3 node setup with heartbeat+pacemaker. After some time I observed that "Current DC:" keeps on changing between the 3 nodes. I also observed that the monitoring of resources is not happening correctly once the DC changes are observed. Any help on this issue. Thanks Eswar Rao ___

Re: [Pacemaker] configuring postgresql streaming replication cluster

2013-06-11 Thread Takatoshi MATSUO
Hi Gregg Can you show me the output of "crm_mon -Afr" ? And please see pacemaker log. Pgsql RA may output some reasons why slave cann't be promoted. Thanks, Takatoshi MATSUO 2013/6/12 Andrew Beekhof : > > On 11/06/2013, at 10:05 PM, Gregg Jaskiewicz wrote: > >> Hi guys, >> >> I'm trying to wra

Re: [Pacemaker] Announce: Making Resource Utilization Dynamic

2013-06-11 Thread Michael Schwartzkopff
Am Mittwoch, 12. Juni 2013, 08:06:43 schrieb Andrew Beekhof: > On 08/06/2013, at 6:49 PM, Michael Schwartzkopff wrote: > > Am Donnerstag, 6. Juni 2013, 14:08:26 schrieb Andrew Beekhof: > > > On 06/06/2013, at 4:44 AM, Michael Schwartzkopff wrote: > > > > Hi, > > > > > > > > I was not satisfied

Re: [Pacemaker] uname eq node-name

2013-06-11 Thread Andreas Mock
Hi Andrew, thank you for that information. You know, often one answer is followed by many other questions. The same here: Is there a tool, where a script is able to determine the node name based on the uname? For a script it is easy to find the nodename (uname -n) it is running on. But what has

Re: [Pacemaker] Is there any character which must not be used for an attribute name?

2013-06-11 Thread Andrew Beekhof
What version of libqb is installed? It doesn't appear to have been installed with yum/rpm. On 05/06/2013, at 7:56 PM, yusuke iida wrote: > Hi, Andrew > > crmd took out core in the environment which I am using, and the > phenomenon of stopping occurred. > > Pacemaker currently used is the follo

Re: [Pacemaker] uname eq node-name

2013-06-11 Thread Andrew Beekhof
On 12/06/2013, at 2:40 PM, "Andreas Mock" wrote: > Hi Andrew, > > thank you for that information. You know, often one answer > is followed by many other questions. The same here: > > Is there a tool, where a script is able to determine the > node name based on the uname? > For a script it is

Re: [Pacemaker] [PATCH] Low: tools: provide UUID-like string to digest generation

2013-06-11 Thread Vladislav Bogdanov
12.06.2013 01:59, Andrew Beekhof wrote: > > On 11/06/2013, at 8:57 PM, Vladislav Bogdanov wrote: > >> 11.06.2013 13:26, Andrew Beekhof wrote: >>> This shouldn't be needed because of: >>> >>>https://github.com/beekhof/pacemaker/commit/d13dc296 >> >> Still have that with 8807e990c7caec633eaf24

Re: [Pacemaker] Weired resource-stickiness behavior

2013-06-11 Thread Andrew Beekhof
On 09/06/2013, at 12:19 PM, Xiaomin Zhang wrote: > Hello, Pacemaker Gurus: > My HA (2 active/slave nodes and 1 standby node) setup contains 1 DRBD > master/slave resource group, and 1 simple lsb resource. I configure some > location constraints to prefer the active node, and I also want > resour

Re: [Pacemaker] reg. clone/master-slave

2013-06-11 Thread Andrew Beekhof
On 06/06/2013, at 4:03 PM, ESWAR RAO wrote: > Hi All, > > Can someone please help me in below scenario: > > I want my daemon running on 2 nodes to be monitored using HB+pacemaker. > The daemon is already running before the RA is configured using crm, > > #crm configure primitive my_daemon lsb

Re: [Pacemaker] configuring postgresql streaming replication cluster

2013-06-11 Thread Andrew Beekhof
On 11/06/2013, at 10:05 PM, Gregg Jaskiewicz wrote: > Hi guys, > > I'm trying to wrap my head around the pacemaker, and setting up postgresql > cluster using pcs on centos 6.4. > > I used so far following commands to set it up. And this seems to work, but > all nodes are running as slaves

Re: [Pacemaker] Two resource nodes + one quorum node

2013-06-11 Thread Andrew Beekhof
On 12/06/2013, at 4:48 AM, Michael Schwartzkopff wrote: > Am Dienstag, 11. Juni 2013, 22:33:32 schrieb Andrey Groshev: > > Hi, > > I want to make Postgres cluster. > > As far as I understand, for the proper functioning of the cluster must use a > > quorum (ie, at least three nodes). > > No. Tw

Re: [Pacemaker] failed actions after resource creation

2013-06-11 Thread Andrew Beekhof
On 11/06/2013, at 9:28 PM, andreas graeper wrote: > hi, > i think this is a question related to recent one discussed in this thread: > i use ocf:heartbeat:symlink > now i use > crm < primitive > order > colocation > EOL > to avoid the primitive is started on wrong node before constraints g

Re: [Pacemaker] strange error message after vanilla pacemaker / heartbeat install

2013-06-11 Thread Andrew Beekhof
On 11/06/2013, at 7:54 AM, Jeffrey Lewis wrote: > Hi folks, > > After installing heartbeat & pacemaker on Ubuntu 12.04 LTS, I see the > following in the /var/log/syslog. Any ideas? I have no resources > configured at this point, so I'm not sure where to start. Looks like you may have configu

Re: [Pacemaker] [PATCH] Low: tools: provide UUID-like string to digest generation

2013-06-11 Thread Andrew Beekhof
On 11/06/2013, at 8:57 PM, Vladislav Bogdanov wrote: > 11.06.2013 13:26, Andrew Beekhof wrote: >> This shouldn't be needed because of: >> >>https://github.com/beekhof/pacemaker/commit/d13dc296 > > Still have that with 8807e990c7caec633eaf2480d963365225100d66, so that > doesn't work. Inter

Re: [Pacemaker] How to add ClusterIP in Pacemaker 1.1.8?

2013-06-11 Thread Andrew Beekhof
On 11/06/2013, at 10:33 PM, Michael Schwartzkopff wrote: > Am Dienstag, 11. Juni 2013, 14:58:30 schrieb Michael Furman: > > Hi all! > > We are trying to configure HA in Pacemaker 1.1.8 using > > http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html-single/Clusters_ > > from_Scratch/index.ht

Re: [Pacemaker] uname eq node-name

2013-06-11 Thread Andrew Beekhof
On 11/06/2013, at 2:33 AM, Andreas Mock wrote: > Hi all, > > I couldn't find a definitive source stating that > a corosync/pacemaker/cman cluster must follow the > rule: uname -n == node-name (== DNS-name of communication-IP) In older versions this is true (an artefact of our heartbeat heritag

Re: [Pacemaker] What kind of cluster stack at opensuse-repositories

2013-06-11 Thread Andrew Beekhof
On 11/06/2013, at 3:25 AM, Andreas Mock wrote: > Hi all, > > I want to get sure that I do understand it right: > > What do I find at > http://download.opensuse.org/repositories/network:/ha-clustering/RedHat_RHEL > -6/x86_64/ > > Am I right that I can't use this repository as source for a > m

Re: [Pacemaker] corosync does not start

2013-06-11 Thread Andrew Beekhof
On 11/06/2013, at 1:32 AM, andreas graeper wrote: > hi, > i found that uid.gid is hacluster.haclient but /var/log/cluster was owned by > root.root. > corosync refused to start, cause of missing write permission to log file ! > > another question: > i read in logs, that pacemaker plugin is no

Re: [Pacemaker] start of pacemaker fails

2013-06-11 Thread Andrew Beekhof
On 10/06/2013, at 4:56 PM, Kazunori INOUE wrote: > Hi, > I'm using pacemaker-1.1 (8807e990c7. the latest devel) with corosync-2.3.0. > > After this commit, start of pacemaker fails. > https://github.com/ClusterLabs/pacemaker/commit/17237616a12e37e2c073b3bff7dded3d66bc8201 > > I have not set no

Re: [Pacemaker] running same resource on both nodes through clone

2013-06-11 Thread Andrew Beekhof
On 08/06/2013, at 1:17 AM, ESWAR RAO wrote: > Hi Dejan, > > Thanks for the response. > > In our setup, we want the resources to start on the 2 nodes (active/active) > so that the downtime would be less. > > All clients connect to the VIP. If the resource on any one node goes down, I > expec

Re: [Pacemaker] Announce: Making Resource Utilization Dynamic

2013-06-11 Thread Andrew Beekhof
On 08/06/2013, at 6:49 PM, Michael Schwartzkopff wrote: > Am Donnerstag, 6. Juni 2013, 14:08:26 schrieb Andrew Beekhof: > > On 06/06/2013, at 4:44 AM, Michael Schwartzkopff > > wrote: > > > Hi, > > > > > > I was not satisfied with the situation that the utilization of resources > > > is stati

Re: [Pacemaker] Can I use Pacemaker release 1.1.8 for production clusters?

2013-06-11 Thread Andrew Beekhof
On 12/06/2013, at 12:08 AM, Andrew Martin wrote: > - Original Message - >> From: "Michael Furman" >> To: pacemaker@oss.clusterlabs.org >> Sent: Tuesday, June 11, 2013 3:19:52 AM >> Subject: Re: [Pacemaker] Can I use Pacemaker release 1.1.8 for production >> clusters? >> >> >> >> Tha

Re: [Pacemaker] Two resource nodes + one quorum node

2013-06-11 Thread Michael Schwartzkopff
Am Dienstag, 11. Juni 2013, 22:33:32 schrieb Andrey Groshev: > Hi, > I want to make Postgres cluster. > As far as I understand, for the proper functioning of the cluster must use a > quorum (ie, at least three nodes). No. Two nodes are enough. See: no-quorum-policy="ignore". > But if the database

[Pacemaker] Two resource nodes + one quorum node

2013-06-11 Thread Andrey Groshev
Hi, I want to make Postgres cluster. As far as I understand, for the proper functioning of the cluster must use a quorum (ie, at least three nodes). But if the databases are large - it is too expensive. One master, two slave, and in addition backup. So I'm trying to make the schema with one master

Re: [Pacemaker] Can I use Pacemaker release 1.1.8 for production clusters?

2013-06-11 Thread Andrew Martin
- Original Message - > From: "Michael Furman" > To: pacemaker@oss.clusterlabs.org > Sent: Tuesday, June 11, 2013 3:19:52 AM > Subject: Re: [Pacemaker] Can I use Pacemaker release 1.1.8 for production > clusters? > > > > Thank you for the reply! > What problem you encounter in a product

Re: [Pacemaker] Full API description for Fence Agent

2013-06-11 Thread Digimer
Hi Andreas, The metadata section of the document has not been added yet, but we are aware of it missing and are working to add it. The rest of the document is accurate though. If you build an agent to follow that API, it will work with red hat's cluster and pacemaker. In the meantime, it

Re: [Pacemaker] How to view location and order constraints in a cluster

2013-06-11 Thread Michael Schwartzkopff
Am Dienstag, 11. Juni 2013, 18:11:39 schrieb vinod prabhu: > I can see that that there is option to define loaction and order > constraints under "crm configure". > But how do I view a particular existing location constraint using crm shell > which I am able to see in crm configure show. crm conf

[Pacemaker] How to view location and order constraints in a cluster

2013-06-11 Thread vinod prabhu
I can see that that there is option to define loaction and order constraints under "crm configure". But how do I view a particular existing location constraint using crm shell which I am able to see in crm configure show. ___ Pacemaker mailing list: Pace

Re: [Pacemaker] how do i remove a resource correct ?

2013-06-11 Thread andreas graeper
danke ! danke ! 2013/6/11 Michael Schwartzkopff > ** > > Am Dienstag, 11. Juni 2013, 13:39:42 schrieb andreas graeper: > > > hi, > > > what i do this moment: > > > > > > # installing > > > crm < > > configure primitive xxx > > > configure order .. > > > configure colocation .. > > > EOL > > > >

Re: [Pacemaker] how do i remove a resource correct ?

2013-06-11 Thread Michael Schwartzkopff
Am Dienstag, 11. Juni 2013, 13:39:42 schrieb andreas graeper: > hi, > what i do this moment: > > # installing > crm < configure primitive xxx > configure order .. > configure colocation .. > EOL > > and > > # removing > cibadmin --delete --xml-text '' > cibadmin --delete --xml-text '' > > i

Re: [Pacemaker] How to add ClusterIP in Pacemaker 1.1.8?

2013-06-11 Thread Michael Schwartzkopff
Am Dienstag, 11. Juni 2013, 14:58:30 schrieb Michael Furman: > Hi all! > We are trying to configure HA in Pacemaker 1.1.8 using > http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html-single/Clusters_ > from_Scratch/index.html#_adding_a_resource > According to the documentation we need to ru

Re: [Pacemaker] how do i remove a resource correct ?

2013-06-11 Thread Lars Marowsky-Bree
On 2013-06-11T14:21:52, andreas graeper wrote: > hi and thanks. > > this is what i found : > crm_resource --name p_xxx --set-parameter target-role --meta > --parameter-value Stopped You can also use "crm resource stop p_xxx" here. > crm configure delete o_xxx## order > crm configure delete

[Pacemaker] /var/lib/pacemaker/cores/root does not exist

2013-06-11 Thread andreas graeper
hi, when crm node online|standby i get this error message : Cannot change active directory to /var/lib/pacemaker/cores/root: No such file or directory (2) ??? thanks andreas ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterl

Re: [Pacemaker] how do i remove a resource correct ?

2013-06-11 Thread andreas graeper
hi and thanks. this is what i found : crm_resource --name p_xxx --set-parameter target-role --meta --parameter-value Stopped crm configure delete o_xxx## order crm configure delete c_xxx## colocation crm configure delete p_xxx## primitive crm_resource --name p_xxx --cleanup ok? 201

[Pacemaker] configuring postgresql streaming replication cluster

2013-06-11 Thread Gregg Jaskiewicz
Hi guys, I'm trying to wrap my head around the pacemaker, and setting up postgresql cluster using pcs on centos 6.4. I used so far following commands to set it up. And this seems to work, but all nodes are running as slaves (postgresql wise). The 'master' node (IP address wise) even connects

[Pacemaker] How to add ClusterIP in Pacemaker 1.1.8?

2013-06-11 Thread Michael Furman
Hi all! We are trying to configure HA in Pacemaker 1.1.8 using http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html-single/Clusters_from_Scratch/index.html#_adding_a_resource According to the documentation we need to run the following command: crm configure primitive ClusterIP ocf:heartbeat

Re: [Pacemaker] how do i remove a resource correct ?

2013-06-11 Thread Lars Marowsky-Bree
On 2013-06-11T13:39:42, andreas graeper wrote: > # removing > cibadmin --delete --xml-text '' > cibadmin --delete --xml-text '' Why not crm configure delete? > i.e. ocf:heartbeat:symlink > (after installing 'failed actions: .. not installed' on passive node) > when i remove the symlink-resourc

[Pacemaker] how do i remove a resource correct ?

2013-06-11 Thread andreas graeper
hi, what i do this moment: # installing crm <' cibadmin --delete --xml-text '' i.e. ocf:heartbeat:symlink (after installing 'failed actions: .. not installed' on passive node) when i remove the symlink-resource crm_mon tells about an orphaned child on active node ? thanks andreas __

Re: [Pacemaker] failed actions after resource creation

2013-06-11 Thread andreas graeper
hi, i think this is a question related to recent one discussed in this thread: i use ocf:heartbeat:symlink now i use crm < /mnt/mirror/var/mail the link is created / removed as expected on master-node ( drbd:master ) but crm_mon shows : Failed actions: p_lnsmail_monitor_0 (node=n2, call=417,

[Pacemaker] Full API description for Fence Agent

2013-06-11 Thread Andreas Mock
Hi all, we need to implement a fence_agent (stonith agent) for cman/corosync/pacemaker (RHEL 6.x). I found the following documentation https://fedorahosted.org/cluster/wiki/FenceAgentAPI But in this document the required metadata action is not described. Can anybody point me to a documentation wh

Re: [Pacemaker] [PATCH] Low: tools: provide UUID-like string to digest generation

2013-06-11 Thread Vladislav Bogdanov
11.06.2013 13:26, Andrew Beekhof wrote: > This shouldn't be needed because of: > > https://github.com/beekhof/pacemaker/commit/d13dc296 Still have that with 8807e990c7caec633eaf2480d963365225100d66, so that doesn't work. Probably "%-*s" should be replaced with "%*s"? "-" is a left adjustment.

Re: [Pacemaker] [PATCH] Low: tools: provide UUID-like string to digest generation

2013-06-11 Thread Andrew Beekhof
This shouldn't be needed because of: https://github.com/beekhof/pacemaker/commit/d13dc296 On 10/06/2013, at 9:46 PM, Vladislav Bogdanov wrote: > This should make "warning: decode_transition_key: Bad UUID (crm_resource.c) > in sscanf result (4) for 31980:0:0:crm_resource.c" > go away. > >

Re: [Pacemaker] Differences in man pages

2013-06-11 Thread Andrew Beekhof
On 11/06/2013, at 2:38 AM, Andreas Mock wrote: > Hi all, hi Andrew, > > while having your package (pacemaker et. al.) set installed from > http://clusterlabs.org/rpm-test-next/rhel-6/x86_64/ > to (hopefully) help debugging and testing, I mentioned > the following. > > The man page of 'crm_res

Re: [Pacemaker] drbd resource slave stopped

2013-06-11 Thread Arvydas
hello guys, Master/Slave Set: ms-monkey-drbd [monkey-drbd] Masters: [ two.server ] Stopped: [ monkey-drbd:1 ] how can i start a slave? since drbd output shows everything is fine: 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r- ns:13404 nr:0 dw:22053084 dr:4440645

Re: [Pacemaker] Can I use Pacemaker release 1.1.8 for production clusters?

2013-06-11 Thread Michael Furman
Thank you for the reply! What problem you encounter in a production environment? What repository you added to download stable release 1.0.12 of Pacemaker? Do you have any conflicts with the dependencies of Pacemaker 1.0.12? Best regards, Michael > Date: Mon, 10 Jun 2013 18:36:34 -0500 > From:

Re: [Pacemaker] The main road of the cluster stack evolution

2013-06-11 Thread Andrew Beekhof
On 11/06/2013, at 1:26 AM, Халезов Иван wrote: > Hello everyone! > > I would like to ask a few questions about the main road of the cluster stack > evolution. > > 1) The RedHat company is planning to drop corosync support and wants to > switch to CMAN. > ( http://www.gossamer-threads.com/lis