[ClusterLabs] corosync just listening on 127.0.0.1

Lentes, Bernd bernd.lentes at helmholtz-muenchen.de
Fri Jul 1 17:31:18 UTC 2016


Hi,

i'm currently establishing a two-node cluster and i'm playing around with it.
I have two nodes, both have a bond-device. It is intended for DRBD, MySQL replication and the inter-cluster-communication.
Each bond has a private IP-address (192.168.100.xxx).

This is my setup:

sunhb58820-2:/etc/corosync # ifconfig
bond1     Link encap:Ethernet  HWaddr 28:80:23:A3:F0:23
          inet addr:192.168.100.20  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: fe80::2a80:23ff:fea3:f023/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:56053 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53217 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4589704 (4.3 Mb)  TX bytes:4219706 (4.0 Mb)

eth0      Link encap:Ethernet  HWaddr 68:B5:99:C2:4A:37
          inet addr:146.107.235.161  Bcast:146.107.235.255  Mask:255.255.255.0
          inet6 addr: fe80::6ab5:99ff:fec2:4a37/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5433800 errors:0 dropped:723509 overruns:0 frame:0
          TX packets:26076 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:509817106 (486.1 Mb)  TX bytes:6132823 (5.8 Mb)
          Interrupt:17


sunhb58820-2:/etc/corosync # route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         146.107.235.1   0.0.0.0         UG    0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
146.107.235.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
192.168.100.0   0.0.0.0         255.255.255.0   U     0      0        0 bond1


The bond-devices from the two nodes are directly connected to each other.
Replication and DRBD is working fine already.

This is my corosync.conf:

...
        interface {

                ringnumber: 0
                bindnetaddr: 192.168.1.0
                mcastport: 5406
                # mcastaddr: 239.255.1.1

                member {
                        memberaddr: 192.168.100.10
                }
                member {
                        memberaddr: 192.168.100.20
                }
        }
        transport: udpu

        # interface {
        #       bindnetaddr: 192.168.100.0
        #       # mcastaddr: 225.94.1.1
        #       broadcast: yes
        #       mcastport: 5406
        #       ringnumber: 0
        # }
...


sunhb58820-2:/etc/corosync # netstat -anp|grep 540
udp        0      0 127.0.0.1:5406          0.0.0.0:*                           9023/corosync
unix  3      [ ]         STREAM     CONNECTED     16540  6465/master


Corosync is just listening on the localhost device, not on the bond.
Same with the other node. Ports in firewall are open:

sunhb58820-2:/etc/corosync # iptables -nvL|grep 540
    0     0 LOG        tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 5 tcp dpt:5404 flags:0x17/0x02 LOG flags 6 level 4 prefix "SFW2-INext-ACC-TCP "
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:5404
    0     0 LOG        tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 5 tcp dpt:5405 flags:0x17/0x02 LOG flags 6 level 4 prefix "SFW2-INext-ACC-TCP "
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:5405
    0     0 LOG        tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 5 tcp dpt:5406 flags:0x17/0x02 LOG flags 6 level 4 prefix "SFW2-INext-ACC-TCP "
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:5406


sunhb58820-2:/etc/corosync # corosync-cfgtool -s
Printing ring status.
Local node ID 2130706433
Could not get the ring status, the error is: 6




Any ideas ?

Thanks.


Bernd



-- 
Bernd Lentes 

Systemadministration 
institute of developmental genetics 
Gebäude 35.34 - Raum 208 
HelmholtzZentrum München 
bernd.lentes at helmholtz-muenchen.de 
phone: +49 (0)89 3187 1241 
fax: +49 (0)89 3187 2294 

Wer glaubt das Projektleiter Projekte leiten 
der glaubt auch das Zitronenfalter 
Zitronen falten
 

Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Dr. Alfons Enhsen, Renate Schlusen (komm.)
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671





More information about the Users mailing list