Re: [ClusterLabs] Pacemaker license

2016-01-11 Thread Andrew Beekhof

> On 6 Oct 2015, at 9:39 AM, santosh_bidara...@dell.com wrote:
> 
> Dell - Internal Use - Confidential 
> 
> Hello Pacemaker Admins,
>  
> We have a query regarding licensing for pacemaker header files
>  
> As per the given link http://clusterlabs.org/wiki/License, it is mentioned 
> that “Pacemaker programs are licensed under the GPLv2+ (version 2 or later of 
> the GPL) and its headers and libraries are under the less restrictive LGPLv2+ 
> (version 2 or later of the LGPL) .”
>  
> However, website link 
> http://clusterlabs.org/doxygen/pacemaker/2927a0f9f25610c331b6a137c846fec27032c9ea/cib_8h.html,
>  states otherwise. 
> Cib.h header file needed to be included in order to configure pacemaker using 
> C API. But the header file for cib.h states that the header file is under GPL 
> license
> This seems to be conflicting the statement regarding header file license.
>  
> In addition, which similar issue has been discussed in the past 
> http://www.gossamer-threads.com/lists/linuxha/pacemaker/75967, no additional 
> details on the resolution.

I thought that was a pretty clear statement, but you’re correct that the 
licences were not changed.

Does this satisfy?

   https://github.com/beekhof/pacemaker/commit/6de9fde

>  
> Need your inputs on licensing to proceed further.
>  
> Thanks & Regards
> Santosh Bidaralli
>  
>  
> ___
> Users mailing list: Users@clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org


___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

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


Re: [ClusterLabs] Cluster resources -restart automatically

2016-01-11 Thread emmanuel segura
you can use on-fail in the stop operation and for your other questions
you can use colocation + order or better if you use a group: for
example group mygroup resource1 resource2

When resource1 monitor fails the resource2 restarts

2016-01-11 17:09 GMT+01:00 John Gogu :
> Dear all,
>  I have following situation and I need an advice from you:
>
> 2 resources which run on 2 cluster nodes (Centos6.7 pacemaker + pcs)
> Node_ANode_B
> Resource1Resource2
>
> 1. is possible to configure an restart of Resource2 when Resource1 fail, or
> is moved to Node_B due to a failure of Node_A?
> 2. when pacemaker cannot stop a resource, default action on stop_fail is
> fence, can I configure to ignore?
>
>
> Thank you,
> John Gogu
>
>
> ___
> Users mailing list: Users@clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>



-- 
  .~.
  /V\
 //  \\
/(   )\
^`~'^

___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

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


Re: [ClusterLabs] Parallel adding of resources

2016-01-11 Thread Michal Koutný


On 01/08/2016 04:35 PM, Ken Gaillot wrote:
> While pacemaker will of course initiate the moves one by one, it
> shouldn't wait for one to be completed before initiating the next one,
> unless you have ordering constraints between them or they are in a group
> together.
Or execution of actions may be subject to throttling of parallel actions
running (see node-action-limit cluster property).

Michal

___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

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


[ClusterLabs] Antw: DLM hanging when corosync is OK causes cluster to hang

2016-01-11 Thread Ulrich Windl
>>> Digimer  schrieb am 11.01.2016 um 17:59 in Nachricht
<5693df77.7000...@alteeve.ca>:
> Hi all,
> 
>   We hit a strange problem where a RAID controller on a node failed,
> causing DLM (gfs2/clvmd) to hang, but the node was never fenced. I
> assume this was because corosync was still working.

I would guess that when I/O hangs, DLM is still happy, thus there should be no 
fencing. Something has to time out to let the cluster become active. From your 
description it's not obvious which disks were affected. I can imagine that if 
every local disk came to a stop, even fencing won't succeed (if triggered 
locally).

> 
>   Is there a way in rhel6/cman/rgmanager to have a node suicide or get
> fenced in a condition like this?

I guess you would need a monitor for disk I/O. I wonder what would happen if 
you use sbd on a local (not shared disk). Maybe it will detect if that disk is 
not responding and reset via watchdog (if available).

Regards,
Ulrich

> 
> -- 
> 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?
> 
> ___
> Users mailing list: Users@clusterlabs.org 
> http://clusterlabs.org/mailman/listinfo/users 
> 
> Project Home: http://www.clusterlabs.org 
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf 
> Bugs: http://bugs.clusterlabs.org 





___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

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


[ClusterLabs] DLM hanging when corosync is OK causes cluster to hang

2016-01-11 Thread Digimer
Hi all,

  We hit a strange problem where a RAID controller on a node failed,
causing DLM (gfs2/clvmd) to hang, but the node was never fenced. I
assume this was because corosync was still working.

  Is there a way in rhel6/cman/rgmanager to have a node suicide or get
fenced in a condition like this?

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

___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

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


[ClusterLabs] Cluster resources -restart automatically

2016-01-11 Thread John Gogu
Dear all,
 I have following situation and I need an advice from you:

2 resources which run on 2 cluster nodes (Centos6.7 pacemaker + pcs)
Node_ANode_B
Resource1Resource2

1. is possible to configure an restart of Resource2 when Resource1 fail, or
is moved to Node_B due to a failure of Node_A?
2. when pacemaker cannot stop a resource, default action on stop_fail is
fence, can I configure to ignore?


Thank you,
John Gogu
___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

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


[ClusterLabs] Multiple Corosync Instance on a Single Host

2016-01-11 Thread Steven Iveson
Thank you Honza, I will give that a go and report back.

Kind regards,
Steven Iveson

> From: users-requ...@clusterlabs.org
> Subject: Users Digest, Vol 12, Issue 11
> To: users@clusterlabs.org
> Date: Fri, 8 Jan 2016 08:54:17 +0100
> 
> Send Users mailing list submissions to
>   users@clusterlabs.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   http://clusterlabs.org/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
>   users-requ...@clusterlabs.org
> 
> You can reach the person managing the list at
>   users-ow...@clusterlabs.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
> 
> 
> Today's Topics:
> 
>1. Re: Passing and binding to virtual IP in my service
>   (Andrei Borzenkov)
>2. Re: Passing and binding to virtual IP in my service
>   (Andrei Borzenkov)
>3. Multiple Corosync Instance on a Single Host (Steven Iveson)
>4. Re: Passing and binding to virtual IP in my service
>   (Dejan Muhamedagic)
>5. Pacemaker 1.1.14 - Release Candidate 5 (Ken Gaillot)
>6. Parallel adding of resources (Arjun Pandey)
>7. Re: Multiple Corosync Instance on a Single Host (Jan Friesse)
>8. Help required for N+1 redundancy setup (Rishin Gangadharan)
> 
> 
> --
> 
> Message: 1
> Date: Thu, 7 Jan 2016 14:14:17 +0300
> From: Andrei Borzenkov 
> To: Cluster Labs - All topics related to open-source clustering
>   welcomed, Nikhil Utane
>   
> Subject: Re: [ClusterLabs] Passing and binding to virtual IP in my
>   service
> Message-ID: <568e4889.7000...@gmail.com>
> Content-Type: text/plain; charset=utf-8
> 
> 07.01.2016 13:09, Kristoffer Gr?nlund ?:
> > Nikhil Utane  writes:
> > 
> >> Of course, one way is to pass the same virtual IP configuration to my
> >> resource agent:
> >> " >> value="10.206.1.253"/>"
> >> But this will be duplicate information and error-prone.
> >> There ought to be a better way. :)
> >>
> > 
> > Hi,
> > 
> > You can use attribute references to avoid having to configure the same
> > value twice. It is documented here for the crmsh syntax:
> > 
> > http://crmsh.github.io/man/#topics_Features_AttributeReferences
> > 
> 
> 
> Is it crmsh-script only or it is also stored in CIB? How would it look
> like in CIB then?
> 
> 
> 
> --
> 
> Message: 2
> Date: Thu, 7 Jan 2016 14:19:35 +0300
> From: Andrei Borzenkov 
> To: Cluster Labs - All topics related to open-source clustering
>   welcomed
> Subject: Re: [ClusterLabs] Passing and binding to virtual IP in my
>   service
> Message-ID: <568e49c7.7090...@gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
> 07.01.2016 13:42, Jorge F?bregas ?:
> > On 01/07/2016 05:28 AM, Nikhil Utane wrote:
> >> So my question is, how to pass the virtual IP to my UDPSend OCF agent so
> >> that it can then bind to the vip? This will ensure that all messages
> >> initiated by my UDPSend goes from vip.
> > 
> > Hi,
> > 
> > I don't know how ping -I does it (what system call it uses) but I think
> > you'll have to implement that if you want your program to source
> > connection from a particular virtual IP.
> > 
> > As far as I know, the way this is usually done these days is by creating
> > routes.  Something like:
> > 
> > ip route change 192.168.14.0/24 dev eth0 src 192.168.14.4
> > 
> > 
> >> Out of curiosity, where is this virtual IP stored in the kernel?
> >> I expected to see a secondary interface ( for e.g. eth0:1) with the vip
> >> but it isn't there.
> > 
> > Well, in the old days we used to have a "virtual interface" (eth0:1,
> > eth0:2 etc) but the proper modern way is to use "virtual addresses"
> > within a single interface.  The caveat is that you need to use the ip
> > command to show these virtual addresses (ifconfig is not aware of them):
> 
> You can assign label to address which will then be visible in ifconfig; i.e.
> 
> ip addr add 1.2.3.4/24 label eth0:foo dev eth0
> 
> will actually make new address appear in ifconfig output as "eth0:foo"
> interface.
> 
> > 
> > ip addr show
> > 
> > You'll see there the notion of a primary IP and secondaries.  The system
> > will initiate connection from the primary by default (unless you specify
> > a route like the one above).
> > 
> > HTH,
> > Jorge
> > 
> > ___
> > Users mailing list: Users@clusterlabs.org
> > http://clusterlabs.org/mailman/listinfo/users
> > 
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs: http://bugs.clusterlabs.org
> > 
> 
> 
> 
> 
> --
> 
> Message: 3
> Date: Thu, 7 Jan 2016 11:00:18 

[ClusterLabs] Temporarily corosync.org unavailability

2016-01-11 Thread Jan Friesse
I would like to inform all corosync.org user about temporarily 
corosync.org unavailability. We are working on fixing this issue.


For now just use http://corosync.github.io/corosync/ (and 
http://build.clusterlabs.org/corosync/releases/) for downloading releases.


We are planing to restore corosync.org discuss mailing list, but only in 
Read only mode. For new questions, suggestions, ... just use 
users@clusterlabs.org (what most of the users are already doing anyway).


If you like to send patches, use GitHub pull request as documented on 
Corosync wiki https://github.com/corosync/corosync/wiki/Submitting-patches.


We are very sorry for the inconvenience.

Regards,
  Honza


___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

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