[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

Re: [ClusterLabs] Multiple Corosync Instance on a Single Host

2016-01-07 Thread Jan Friesse

Steven,

> Hi list,

I have a situation where I would like to run multiple instances of Corosync, 
each 'group' on a number of hosts, with each instance providing HA for a 
dedicated service, thus allowing for benefits around change control, risk 
management, service/environment separation and the like. The hosts in question 
run nothing but Docker containers, with the Corosync (+Pacemaker) containers 
using host mode networking.
Whilst I can change the UDPU port used by Corosync, a second instance 
(container) fails with a socket error. Here's the relevant logs:
Jan 06 13:47:55 [19] rancher-one corosync info[QB] server name: cmapJan 
06 13:47:55 [19] rancher-one corosync error   [QB] Could not bind AF_UNIX 
(): Address already in use (98)Jan 06 13:47:55 [19] rancher-one corosync info   
 [QB] withdrawing server socketsJan 06 13:47:55 [19] rancher-one corosync 
error   [MAIN  ] Can't initialize IPCJan 06 13:47:55 [19] rancher-one corosync 
error   [SERV  ] Service engine 'corosync_cmap' failed to load for reason 
'qb_ipcs_run error'Jan 06 13:47:55 [19] rancher-one corosync error   [MAIN  ] 
Corosync Cluster Engine exiting with status 20 at service.c:356.
Can this be overcome? Is there a way to specify a different socket?


Corosync is not designed for running multiple instances. But using 
docker is different story (it's more or less VM, so there should be no 
problem).


You can try to look what socket is already in use (for example use 
strace) but I believe main problem is shared /dev/shm. Can you try to 
mount fresh tmpfs to /dev/shm in docker container?


Regards,
  Honza


Many thanks in advance.
Kind regards,
Steven ivesonst...@iveson.eu@sjivesonBlogs: 
https://packetpushers.net/author/siveson/Books: 
http://www.amazon.com/Steven-Iveson/e/B00BIR04XM/07734 778 184  




___
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] Multiple Corosync Instance on a Single Host

2016-01-07 Thread Steven Iveson
Hi list,
I have a situation where I would like to run multiple instances of Corosync, 
each 'group' on a number of hosts, with each instance providing HA for a 
dedicated service, thus allowing for benefits around change control, risk 
management, service/environment separation and the like. The hosts in question 
run nothing but Docker containers, with the Corosync (+Pacemaker) containers 
using host mode networking.
Whilst I can change the UDPU port used by Corosync, a second instance 
(container) fails with a socket error. Here's the relevant logs:
Jan 06 13:47:55 [19] rancher-one corosync info[QB] server name: cmapJan 
06 13:47:55 [19] rancher-one corosync error   [QB] Could not bind AF_UNIX 
(): Address already in use (98)Jan 06 13:47:55 [19] rancher-one corosync info   
 [QB] withdrawing server socketsJan 06 13:47:55 [19] rancher-one corosync 
error   [MAIN  ] Can't initialize IPCJan 06 13:47:55 [19] rancher-one corosync 
error   [SERV  ] Service engine 'corosync_cmap' failed to load for reason 
'qb_ipcs_run error'Jan 06 13:47:55 [19] rancher-one corosync error   [MAIN  ] 
Corosync Cluster Engine exiting with status 20 at service.c:356.
Can this be overcome? Is there a way to specify a different socket?
Many thanks in advance.
Kind regards,
Steven ivesonst...@iveson.eu@sjivesonBlogs: 
https://packetpushers.net/author/siveson/Books: 
http://www.amazon.com/Steven-Iveson/e/B00BIR04XM/07734 778 184  
  ___
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