Re: [Pacemaker] Monitor process, migrate only ip resources

2013-02-20 Thread Grant Bagdasarian
Hello, I've configured it in a lab and the outcome is as following: 1) When I restart/stop the heartbeat process the IP and kamailio process are started on the secondary node. Which is good. 2) When I reboot/shutdown the whole server the IP and kamailio process are started on the

Re: [Pacemaker] Listing all resources of a specific type

2013-02-20 Thread Dan Frincu
Hi, On Tue, Feb 19, 2013 at 10:42 PM, Donald Stahl d...@blacksun.org wrote: Is there some way of listing all resources that use a specific resource agent using crm shell? For example: # crm resource list stonith-sbd(stonith:external/sbd) Started IP1 (ocf::heartbeat:IPaddr2) Started

Re: [Pacemaker] [Booth] Howto grant ticket to other site, if resource fails

2013-02-20 Thread yusuke iida
Hi, Michael 2013/2/15 Michael Wagner michael.wag...@gmx.at: Hi, I am currently working on a geo-redundant setup with two sites and one arbitrator, using booth as ticket manager. In case of network-outages, or a whole site is down, booth correctly grants the ticket to the other site

Re: [Pacemaker] Monitor process, migrate only ip resources

2013-02-20 Thread Andrew Beekhof
On Wed, Feb 20, 2013 at 7:46 PM, Florian Crouzat gen...@floriancrouzat.net wrote: Le 20/02/2013 09:07, Grant Bagdasarian a écrit : 3)When I only stop the kamailio process on the primary node, the process is restarted again. Which is also good, but I thought it would migrate everything to the

Re: [Pacemaker] Monitor process, migrate only ip resources

2013-02-20 Thread Grant Bagdasarian
Yes, you are correct. I manually stopped kamailio and messed with its config script so it would not start again. The resources were migrated to the secondary node =). Awesome piece of software! So in theory I now have a broken primary server which I should fix. Once fixed, how will the

Re: [Pacemaker] Monitor process, migrate only ip resources

2013-02-20 Thread Andrew Beekhof
On Wed, Feb 20, 2013 at 8:07 PM, Grant Bagdasarian g...@cm.nl wrote: Yes, you are correct. I manually stopped kamailio and messed with its config script so it would not start again. The resources were migrated to the secondary node =). Awesome piece of software! So in theory I now have a

Re: [Pacemaker] Monitor process, migrate only ip resources

2013-02-20 Thread Grant Bagdasarian
I'll go for the automatic solution. Thanks for the help. -Original Message- From: Andrew Beekhof [mailto:and...@beekhof.net] Sent: Wednesday, February 20, 2013 10:50 AM To: The Pacemaker cluster resource manager Subject: Re: [Pacemaker] Monitor process, migrate only ip resources On

[Pacemaker] worl-writeable files in /var/lib/heartbeat/crm

2013-02-20 Thread Mario Penners
Hello, during a security audit, our customer was wondering about the files in directory /var/lib/heartbeat/crm, for example: -rw-rw-rw- 1 hacluster root 32 Feb 13 18:59 cib-40.raw.sig -rw--- 1 hacluster root 6716 Feb 13 18:59 cib-41.raw -rw-rw-rw- 1 hacluster root 32 Feb 13 18:59

Re: [Pacemaker] Problems with corosync while forking processes during node startup.

2013-02-20 Thread Lars Marowsky-Bree
On 2013-02-19T16:23:12, Dan Frincu df.clus...@gmail.com wrote: service { # Load the Pacemaker Cluster Resource Manager ver:0 Change this to ver: 1, have pacemaker start from the init script. For more details on why you should use ver:1 read

Re: [Pacemaker] Listing all resources of a specific type

2013-02-20 Thread Lars Marowsky-Bree
On 2013-02-19T15:42:21, Donald Stahl d...@blacksun.org wrote: Is there some way of listing all resources that use a specific resource agent using crm shell? Not using the crm shell, but cibadmin can do this via an xpath query. For example: # cibadmin -Ql -A //primitive[@type='o2cb'] Modify

Re: [Pacemaker] Fencing configuration with pcmk_host_map argument

2013-02-20 Thread Lars Marowsky-Bree
On 2013-02-20T10:43:57, Andrew Beekhof and...@beekhof.net wrote: Some fence agents can have 'reboot' implemented without OFF/ON procedure (direct usage of command 'reboot') for these multiple plug should be forbidden. Could we not fall back to off off on on ? Some of those devices however

[Pacemaker] Putting a node to standby stops resources on the other node

2013-02-20 Thread Thomas Lorenzen
Hi' My setup is a simple two cluster solution intended for a master backup framework, where I would like to assign floating ip addresses on two network interfaces for both the master and the backup. The most cricial part of the config is as follows. group backup backup_ip_intern

Re: [Pacemaker] Putting a node to standby stops resources on the other node

2013-02-20 Thread Michael Schwartzkopff
Am Mittwoch, 20. Februar 2013, 17:54:49 schrieb Thomas Lorenzen: Hi' My setup is a simple two cluster solution intended for a master backup framework, where I would like to assign floating ip addresses on two network interfaces for both the master and the backup. The most cricial part of

Re: [Pacemaker] Putting a node to standby stops resources on the other node

2013-02-20 Thread Thomas Lorenzen
Hi' Sorry, I do have that setting active. Properties are as follows. property $id=cib-bootstrap-options \     dc-version=1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c \     cluster-infrastructure=Heartbeat \     expected-quorum-votes=2 \     stonith-enabled=false \     no-quorum-policy=ignore

Re: [Pacemaker] Putting a node to standby stops resources on the other node

2013-02-20 Thread Thomas Lorenzen
Hi' Bingo, that seems to work. Still, I find it somewhat unexpected, that the order matters in such a colocation rule. Anyway, things now seems to work as expected. Thanks a very lot. Best regards. Thomas. Fra: Michael Schwartzkopff m...@sys4.de Til:

Re: [Pacemaker] Putting a node to standby stops resources on the other node

2013-02-20 Thread Jake Smith
- Original Message - From: Thomas Lorenzen ki11er_...@yahoo.dk To: m...@sys4.de, The Pacemaker cluster resource manager pacemaker@oss.clusterlabs.org Sent: Wednesday, February 20, 2013 2:39:15 PM Subject: Re: [Pacemaker] Putting a node to standby stops resources on the other node

Re: [Pacemaker] Putting a node to standby stops resources on the other node

2013-02-20 Thread Thomas Lorenzen
Hi' I got that explanation offline of the mailing list as well :-) :-). Still thanks a very lot for the explanation. Best regards. Thomas. Fra: Jake Smith jsm...@argotec.com Til: Thomas Lorenzen ki11er_...@yahoo.dk; The Pacemaker cluster resource manager

Re: [Pacemaker] Listing all resources of a specific type

2013-02-20 Thread Donald Stahl
Not using the crm shell, but cibadmin can do this via an xpath query. For example: # cibadmin -Ql -A //primitive[@type='o2cb'] Modify to taste. I was hoping to avoid having to parse XML but if that's the only option then that's what I'll use. Thanks, -Don

[Pacemaker] Dependency Trees

2013-02-20 Thread Donald Stahl
SUSE 11-SP2 with pacemaker-1.1.6-1.27.26 I apologize if this is obvious or has been answered before but my foogle-fu is failing me. I'm trying to create a resource dependency tree similar to this one from VCS: // resource dependency tree group oracle01 { Oracle OraInstance1 { Mount

Re: [Pacemaker] Problems with corosync while forking processes during node startup.

2013-02-20 Thread Andrew Beekhof
On Thu, Feb 21, 2013 at 3:12 AM, Lars Marowsky-Bree l...@suse.com wrote: On 2013-02-19T16:23:12, Dan Frincu df.clus...@gmail.com wrote: service { # Load the Pacemaker Cluster Resource Manager ver:0 Change this to ver: 1, have pacemaker start from the init

Re: [Pacemaker] worl-writeable files in /var/lib/heartbeat/crm

2013-02-20 Thread Andrew Beekhof
On Wed, Feb 20, 2013 at 10:17 PM, Mario Penners mario.penn...@gmail.com wrote: Hello, during a security audit, our customer was wondering about the files in directory /var/lib/heartbeat/crm, for example: -rw-rw-rw- 1 hacluster root 32 Feb 13 18:59 cib-40.raw.sig -rw--- 1 hacluster

[Pacemaker] Patrik Rapposch is out of the office

2013-02-20 Thread Patrik . Rapposch
Ich werde ab 21.02.2013 nicht im Büro sein. Ich kehre zurück am 22.02.2013. Please note, that I am not available. Please always use ksi.netw...@knapp.com, which ensures that one of our network adminsitrators takes care of your interest. If you need operating system support please contact

Re: [Pacemaker] Dependency Trees

2013-02-20 Thread Andrew Beekhof
On Thu, Feb 21, 2013 at 7:49 AM, Donald Stahl d...@blacksun.org wrote: SUSE 11-SP2 with pacemaker-1.1.6-1.27.26 I apologize if this is obvious or has been answered before but my foogle-fu is failing me. I'm trying to create a resource dependency tree similar to this one from VCS: //

Re: [Pacemaker] Dependency Trees

2013-02-20 Thread Donald Stahl
shouldn't be too hard Whenever you make something idiot proof, the universe invents a bigger idiot. I'm that idiot I guess. use colocation constraints for the things that need to run on the same node Except colocation resources also include order unless you specifically tell it that the items

Re: [Pacemaker] Dependency Trees

2013-02-20 Thread Andrew Beekhof
On Thu, Feb 21, 2013 at 1:51 PM, Donald Stahl d...@blacksun.org wrote: shouldn't be too hard Whenever you make something idiot proof, the universe invents a bigger idiot. :) I'm that idiot I guess. Have you seen clusters from scratch? Its a pretty good starting point. use colocation

Re: [Pacemaker] Dependency Trees

2013-02-20 Thread Donald Stahl
On the one hand, you say OraListener1 and OraInstance1 need to be on the same node, but on the other you say they can start/stop individually. There are maintenance reasons for some of these requirements- for example the listener can only ever be on the same box as the database, but I might

Re: [Pacemaker] Dependency Trees

2013-02-20 Thread Andrew Beekhof
On Thu, Feb 21, 2013 at 3:06 PM, Donald Stahl d...@blacksun.org wrote: On the one hand, you say OraListener1 and OraInstance1 need to be on the same node, but on the other you say they can start/stop individually. There are maintenance reasons for some of these requirements- for example the