List:Cluster« Previous MessageNext Message »
From:Tomas Ulin Date:October 8 2004 12:57pm
Subject:Re: ndbd opens socket on 0.0.0.0 and fails to connect to mgmd:2200
View as plain text  
-c host=192.168.1.199:2200
or
-c 192.168.1.199:2200

Olivier Kaloudoff wrote:

> Hi,
>
>
>     I have two hosts on the same lan, with the following
> configuration:
>
> mcl0 (DB Node): 192.168.1.100
> mgmd (MGM Node): 192.168.1.199
>
> (same subnet and mask, 255.255.0.0)
>
>     from mcl0, I'm able to telnet to mgmd 2200;
>
> mcl0:/var/lib/mysql-cluster# telnet mgmd 2200
> Trying 192.168.1.199...
> Connected to mgmd.
> Escape character is '^]'.
>
>
> but when I start (on mcl0)
>
> ./bin/ndbd --initial -c hostname=mgmd:2200 (or tried with direct IP, 
> and verified local resolution), it fails to connect, looping in retries.
>
>     stracing the ndbd process gives:
>
>
> mcl0:/var/lib/mysql-cluster# strace ./bin/ndbd -c 
> hostname=192.168.1.199:2200 2> /tmp/e
> WARNING: Failed to retrieve cluster configuration
> (Cause of failure: Unable to connect to hostname=192.168.1.199:2200)
> Attempt 1 of 12. Trying again in 5 seconds...
>
> socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
> connect(3, {sin_family=AF_INET, sin_port=htons(53), 
> sin_addr=inet_addr("0.0.0.0")}}, 28) = 0
> send(3, "\5\272\1\0\0\1\0\0\0\0\0\0\fhostname=192\003168\0011\3"..., 
> 40, 0) = 40
> gettimeofday({1097227263, 461594}, NULL) = 0
> poll([{fd=3, events=POLLIN, revents=POLLERR}], 1, 5000) = 1
> recvfrom(3, 0xbffff17c, 1024, 0, 0xbfffdf90, 0xbfffdf74) = -1 
> ECONNREFUSED (Connection refused)
> close(3)                                = 0
>
>
>     my localhost is setup like this, and I can connect to anywhere on 
> the internet, all my network setup is right.
>
>     Is the connect to 0.0.0.0 *required* to allow proper run of ndbd ?
>
>
> mcl0:/var/lib/mysql-cluster# grep local /etc/hosts
> 192.168.1.100           localhost
>
>
> mcl0:/var/lib/mysql-cluster# ifconfig | egrep "eth|lo" -A2
> eth0      Link encap:Ethernet  HWaddr 00:10:5A:A2:B5:65
>           inet6 addr: fe80::210:5aff:fea2:b565/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> -- 
> eth0:100  Link encap:Ethernet  HWaddr 00:10:5A:A2:B5:65
>           inet addr:192.168.1.100  Bcast:192.168.255.255  
> Mask:255.255.0.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> -- 
> lo        Link encap:Local Loopback
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>
>
>
> Regards,
>
>
> Olivier Kaloudoff
>
>

Thread
ndbd opens socket on 0.0.0.0 and fails to connect to mgmd:2200Olivier Kaloudoff8 Oct
  • Re: ndbd opens socket on 0.0.0.0 and fails to connect to mgmd:2200Tomas Ulin8 Oct
    • Re: ndbd opens socket on 0.0.0.0 and fails to connect to mgmd:2200Olivier Kaloudoff8 Oct