Re: [ClusterLabs] Does CMAN Still Not Support Multipe CoroSync Rings?
Eric, Well, I finally got around to trying out the tag and I managed to get two rings running, but the first ring is not obeying my address and port directives. Here's my cluster.conf The rings are up... [root@ha10b ~]# corosync-cfgtool -s Printing ring status. Local node ID 2 RING ID 0 id = 192.168.10.61 status = ring 0 active with no faults RING ID 1 id = 198.51.100.61 status = ring 1 active with no faults HOWEVER, when I run tcpdump, I can see that ring2 running on the appropriate multicast address and port, but ring1 is running on the default address and port... [root@ha10b ~]# tcpdump -nn -i bond0 net 239.192.0.0/16 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on bond0, link-type EN10MB (Ethernet), capture size 65535 bytes 22:54:36.738395 IP 192.168.10.60.5404 > 239.192.170.111.5405: UDP, length 119 22:54:40.547048 IP 192.168.10.60.5404 > 239.192.170.111.5405: UDP, length 119 How do I get ring1 running on my desired address and port of 239.255.5.1, port 4000 I'm not sure "mcast" for every node is really needed. Try last example of: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/cluster_administration/s1-config-rrp-cli-ca Honza --Eric ___ Users mailing list: Users@clusterlabs.org https://lists.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 https://lists.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] Does CMAN Still Not Support Multipe CoroSync Rings?
Well, I finally got around to trying out the tag and I managed to get two rings running, but the first ring is not obeying my address and port directives. Here's my cluster.conf The rings are up... [root@ha10b ~]# corosync-cfgtool -s Printing ring status. Local node ID 2 RING ID 0 id = 192.168.10.61 status = ring 0 active with no faults RING ID 1 id = 198.51.100.61 status = ring 1 active with no faults HOWEVER, when I run tcpdump, I can see that ring2 running on the appropriate multicast address and port, but ring1 is running on the default address and port... [root@ha10b ~]# tcpdump -nn -i bond0 net 239.192.0.0/16 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on bond0, link-type EN10MB (Ethernet), capture size 65535 bytes 22:54:36.738395 IP 192.168.10.60.5404 > 239.192.170.111.5405: UDP, length 119 22:54:40.547048 IP 192.168.10.60.5404 > 239.192.170.111.5405: UDP, length 119 How do I get ring1 running on my desired address and port of 239.255.5.1, port 4000 --Eric ___ Users mailing list: Users@clusterlabs.org https://lists.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] Does CMAN Still Not Support Multipe CoroSync Rings?
On Wed, 14 Feb 2018 23:11:49 + Eric Robinson wrote: > > > Thanks for the suggestion everyone. I'll give that a try. > > > > Sorry, I'm late on this, but I wrote a quick start doc describing this > > (amongs other things) some time ago. See the following chapter: > > > > https://clusterlabs.github.io/PAF/Quick_Start-CentOS-6.html#cluster- > > creation > > > > I scanned through that page but I did not see where it talks about setting up > multiple corosync rings. Quoting the page: « If you have an alternative network available (this is highly recommended), you can use the following syntax: pcs cluster setup --name cluster_pgsql srv1,srv1-alt srv2,srv2-alt srv3,srv3-alt If your version of pcs does not support it (ie. CentOS 6.6 and bellow), you can fallback on the old but useful ccs command: pcs cluster setup --name cluster_pgsql srv1 srv2 srv3 ccs -f /etc/cluster/cluster.conf --addalt srv1 srv1-alt ccs -f /etc/cluster/cluster.conf --addalt srv2 srv2-alt ccs -f /etc/cluster/cluster.conf --addalt srv3 srv3-alt pcs cluster sync » ___ Users mailing list: Users@clusterlabs.org http://lists.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] Does CMAN Still Not Support Multipe CoroSync Rings?
> > Thanks for the suggestion everyone. I'll give that a try. > > Sorry, I'm late on this, but I wrote a quick start doc describing this (amongs > other things) some time ago. See the following chapter: > > https://clusterlabs.github.io/PAF/Quick_Start-CentOS-6.html#cluster- > creation > I scanned through that page but I did not see where it talks about setting up multiple corosync rings. --Eric ___ Users mailing list: Users@clusterlabs.org http://lists.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] Does CMAN Still Not Support Multipe CoroSync Rings?
On Tue, 13 Feb 2018 21:38:06 + Eric Robinson wrote: > Thanks for the suggestion everyone. I'll give that a try. Sorry, I'm late on this, but I wrote a quick start doc describing this (amongs other things) some time ago. See the following chapter: https://clusterlabs.github.io/PAF/Quick_Start-CentOS-6.html#cluster-creation Other chapter might not be useful to you. Do not hesitate to give feedback if something changed or doesn't work anymore. This was based on CentOS 6.7. Cheers, -- Jehan-Guillaume de Rorthais Dalibo ___ Users mailing list: Users@clusterlabs.org http://lists.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] Does CMAN Still Not Support Multipe CoroSync Rings?
Thanks for the suggestion everyone. I'll give that a try. > -Original Message- > From: Jan Friesse [mailto:jfrie...@redhat.com] > Sent: Monday, February 12, 2018 8:49 AM > To: Cluster Labs - All topics related to open-source clustering welcomed > ; Eric Robinson > Subject: Re: [ClusterLabs] Does CMAN Still Not Support Multipe CoroSync > Rings? > > Eric, > > > General question. I tried to set up a cman + corosync + pacemaker > > cluster using two corosync rings. When I start the cluster, everything > > works fine, except when I do a 'corosync-cfgtool -s' it only shows one > > ring. I tried manually editing the /etc/cluster/cluster.conf file > > adding two > > AFAIK cluster.conf should be edited so altname is used. So something like in > this example: > https://access.redhat.com/documentation/en- > us/red_hat_enterprise_linux/6/html/cluster_administration/s1-config-rrp- > cli-ca > > I don't think you have to add altmulticast. > > Honza > > sections, but then cman complained that I didn't have a multicast address > specified, even though I did. I tried editing the /etc/corosdync/corosync.conf > file, and then I could get two rings, but the nodes would not both join the > cluster. Bah! I did some reading and saw that cman didn't support multiple > rings years ago. Did it never get updated? > > > > [sig] > > > > > > > > > > ___ > > Users mailing list: Users@clusterlabs.org > > http://lists.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://lists.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] Does CMAN Still Not Support Multipe CoroSync Rings?
Eric, General question. I tried to set up a cman + corosync + pacemaker cluster using two corosync rings. When I start the cluster, everything works fine, except when I do a 'corosync-cfgtool -s' it only shows one ring. I tried manually editing the /etc/cluster/cluster.conf file adding two AFAIK cluster.conf should be edited so altname is used. So something like in this example: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/cluster_administration/s1-config-rrp-cli-ca I don't think you have to add altmulticast. Honza sections, but then cman complained that I didn't have a multicast address specified, even though I did. I tried editing the /etc/corosdync/corosync.conf file, and then I could get two rings, but the nodes would not both join the cluster. Bah! I did some reading and saw that cman didn't support multiple rings years ago. Did it never get updated? [sig] ___ Users mailing list: Users@clusterlabs.org http://lists.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://lists.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] Does CMAN Still Not Support Multipe CoroSync Rings?
On 2018-02-12 07:10 AM, Eric Robinson wrote: > General question. I tried to set up a cman + corosync + pacemaker > cluster using two corosync rings. When I start the cluster, everything > works fine, except when I do a ‘corosync-cfgtool -s’ it only shows one > ring. I tried manually editing the /etc/cluster/cluster.conf file adding > two sections, but then cman complained that I didn’t have a > multicast address specified, even though I did. I tried editing the > /etc/corosdync/corosync.conf file, and then I could get two rings, but > the nodes would not both join the cluster. Bah! I did some reading and > saw that cman didn’t support multiple rings years ago. Did it never get > updated? > > > > sig It's been a while since I tested it (couldn't use it because of issues with GFS2), but yes it worked. Don't edit corosync.conf, all corosync config is handled in cman's cluster.conf. I believe you need to specify the '' element for the second ring. If you still have trouble, let me know and I'll see if I can find my old notes. -- Digimer Papers and Projects: https://alteeve.com/w/ "I am, somehow, less interested in the weight and convolutions of Einstein’s brain than in the near certainty that people of equal talent have lived and died in cotton fields and sweatshops." - Stephen Jay Gould ___ Users mailing list: Users@clusterlabs.org http://lists.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