Quantcast
Channel: MySQL Forums - NDB clusters
Viewing all articles
Browse latest Browse all 1560

mysql cluster- fails to create Data node (no replies)

$
0
0
Hi all,
I am using MySQL Cluster 7, Linux Red Hat 5 platform and VMware.
I have 6 virtual machines with the following IP's:
-Managment node 1 IP: 192.168.4.36 node ID:1
-Managment node 2 IP: 192.168.4.41 node ID:2

-Data node 1 IP: 192.168.4.50 Node ID:10
-Data node 2 IP: 192.168.4.40 Node ID:6

-SQL node 1 IP: 192.168.4.37 Node ID:3
-SQL node 2 IP: 192.168.4.42 Node ID:4

for Data node 1 & 2 and SQL node 1 & 2 I applied the following my.cnf file:

[mysqld]

datadir=/var/lib/mysql-cluster
NodeId= "number" //I applies a uniqe number for each node


ndbcluster
ndb_connectstring = 192.168.4.41
ndb_connectstring = 192.168.4.36


[ndb_mgm]

Connect-string=192.168.4.41

[ndb_mgm]

Connect-string=192.168.4.36

[ndb_mgmd]

Config-file=/var/lib/mysql-cluster/config.ini
connect-string=192.168.4.41

[ndb_mgmd]

Config-file=/var/lib/mysql-cluster/config.ini
connect-string=192.168.4.36

[mysql_cluster]

ndb-connectstring=192.168.4.41
ndb-connectstring=192.168.4.36


For the management nodes I applied this config.ini file

[ndbd DEFAULT]
NoOfReplicas = 2
DataMemory = 80M
IndexMemory = 18M
Datadir=/usr/local/mysql/data

LockPagesInMainMemory = 1



[NDB_MGMD]
HostName = 192.168.4.41

Datadir=/var/lib/mysql-cluster

NodeId= 2

[NDB_MGMD]
HostName = 192.168.4.36

Datadir=/var/lib/mysql-cluster

NodeId= 1


[ndbd]
HostName = 192.168.4.40

NodeId= 6

[ndbd]
HostName = 192.168.4.50

NodeId= 10


[MYSQLD]
HostName = 192.168.4.42
NodeId= 4


[MYSQLD]
HostName = 192.168.4.37
NodeId= 3


Then on each Management machine I started the Managment nodes and they started correctly.

then I typed "shell> ndbd" command on the data nodes machines, the "Data node 2" was created successfully, but "Data node 1" showed this error:

ERROR --Failed to allocate nodeid, error:'Failed to alloc node id at 192.168.4.36 port 1186: connection done form the wrong host ip 192.168.4.50.'

Althogh I always make sure that the nodeid in the "my.cnf" file always match the nodeid in the "config.ini"

The second problem is when I run the SHOW command on the Management nodes I recive this outputs:

Management node 1:-

Cluster Configuration
---------------------
[ndbd(NDB)] 1 node(s)
id=2 (not connected, accepting connect from 192.168.4.38)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.4.36 (mysql-5.5.27 ndb-7.2.8)

[mysqld(API)] 2 node(s)
id=3 (not connected, accepting connect from any host)
id=4 (not connected, accepting connect from any host)
-----------------------------------------------------------------------
So the problems are:-
- it is not showing two Managment node it is only showing one only.
-the datanode it is showing is not present in the configurations at all, BTW, the Data node it is showing is the old IP, 192.168.4.38, for the Data node 1, the new IP is 192.168.4.50

Management Node 2:-

Cluster Configuration
---------------------
[ndbd(NDB)] 1 node(s)
id=3 (not connected, accepting connect from 192.168.4.40)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.4.41 (mysql-5.5.27 ndb-7.2.8)

[mysqld(API)] 1 node(s)
id=2 (not connected, accepting connect from 192.168.4.42)
-------------------------------------------------------------------

The Problems are:
-It is only showing one management node
-It is only accepting connection form one SQL node (SQL node 2)

summarizing my questions:-
1- how to solve the issue with the Data node 1?
2- how to reconfigure the Managment nodes to connect to each other?
3- how to reconfigure Management node 2 to connect to 2 SQL nodes not only one?

Best Regards,
Omar Elbakary

Viewing all articles
Browse latest Browse all 1560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>