I have seen similar topics here to my problem but none of them seem to have fixed my problem so I am posting this. I am sorry if it's a repeat of another one.
I am testing out mysql cluster so I decided I will have 1 management server and 2 mysql servers and data nodes. As I only have 2 machines to test with 1 server will run the management server as well. The setup is like this
192.168.1.10 - management server / sql node / data node
192.168.1.11 - sql node / data node
As these are locally connected I have disabled the firewall to get rid of any problems there but if someone could tell me what ports I need to open when/if it goes into production that would be good.
Now the config for the management:
[NDBD DEFAULT]
NoOfReplicas=2
[MYSQLD DEFAULT]
[NDB_MGMD DEFAULT]
[TCP DEFAULT]
# Section for the cluster management node
[NDB_MGMD]
# IP address of the management node (this system)
HostName=192.168.1.10
DataDir= /var/lib/mysql-cluster
# Section for the storage nodes
[NDBD]
# IP address of the first storage node
HostName=192.168.1.10
DataDir= /var/lib/mysql-cluster
[NDBD]
# IP address of the second storage node
HostName=192.168.1.11
DataDir=/var/lib/mysql-cluster
# one [MYSQLD] per storage node
[MYSQLD]
HostName=192.168.1.10
[MYSQLD]
HostName=192.168.1.11
and the config file for mysql:
[mysqld]
ndbcluster
# IP address of the cluster management node
ndb-connectstring="4,192.168.1.10:1186"
server-id=4
#Option for ndbd process
[ndbd]
connect-string=192.168.1.10
[ndb_mgm]
connect-string=192.168.1.10
[mysql_cluster]
# IP address of the cluster management node
ndb-connectstring=192.168.1.10
and the results from ndb_mgm
Connected to Management Server at: 192.168.1.10:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 @192.168.1.10 (mysql-5.1.47 ndb-7.1.5, Nodegroup: 0, Master)
id=3 @192.168.1.11 (mysql-5.1.47 ndb-7.1.5, Nodegroup: 0)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.1.10 (mysql-5.1.47 ndb-7.1.5)
[mysqld(API)] 2 node(s)
id=4 (not connected, accepting connect from any host)
id=5 (not connected, accepting connect from any host)
Finally the error log from mysql
101007 09:55:09 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
101007 9:55:09 [Note] Plugin 'FEDERATED' is disabled.
101007 9:55:09 InnoDB: Started; log sequence number 0 44253
101007 9:55:09 [Note] NDB: NodeID is 4, management server '192.168.1.10:1186'
101007 9:55:10 [Note] NDB[0]: NodeID: 4, no storage nodes connected (timed out)
101007 9:55:10 [Note] Starting Cluster Binlog Thread
101007 9:55:10 [Note] Event Scheduler: Loaded 0 events
101007 9:55:25 [Warning] NDB : Tables not available after 15 seconds. Consider increasing --ndb-wait-setup value
101007 9:55:25 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.1.47-ndb-7.1.5-cluster-gpl' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Cluster Server (GPL)
I have run out of ideas so any help is really appreciated.
I am testing out mysql cluster so I decided I will have 1 management server and 2 mysql servers and data nodes. As I only have 2 machines to test with 1 server will run the management server as well. The setup is like this
192.168.1.10 - management server / sql node / data node
192.168.1.11 - sql node / data node
As these are locally connected I have disabled the firewall to get rid of any problems there but if someone could tell me what ports I need to open when/if it goes into production that would be good.
Now the config for the management:
[NDBD DEFAULT]
NoOfReplicas=2
[MYSQLD DEFAULT]
[NDB_MGMD DEFAULT]
[TCP DEFAULT]
# Section for the cluster management node
[NDB_MGMD]
# IP address of the management node (this system)
HostName=192.168.1.10
DataDir= /var/lib/mysql-cluster
# Section for the storage nodes
[NDBD]
# IP address of the first storage node
HostName=192.168.1.10
DataDir= /var/lib/mysql-cluster
[NDBD]
# IP address of the second storage node
HostName=192.168.1.11
DataDir=/var/lib/mysql-cluster
# one [MYSQLD] per storage node
[MYSQLD]
HostName=192.168.1.10
[MYSQLD]
HostName=192.168.1.11
and the config file for mysql:
[mysqld]
ndbcluster
# IP address of the cluster management node
ndb-connectstring="4,192.168.1.10:1186"
server-id=4
#Option for ndbd process
[ndbd]
connect-string=192.168.1.10
[ndb_mgm]
connect-string=192.168.1.10
[mysql_cluster]
# IP address of the cluster management node
ndb-connectstring=192.168.1.10
and the results from ndb_mgm
Connected to Management Server at: 192.168.1.10:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 @192.168.1.10 (mysql-5.1.47 ndb-7.1.5, Nodegroup: 0, Master)
id=3 @192.168.1.11 (mysql-5.1.47 ndb-7.1.5, Nodegroup: 0)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.1.10 (mysql-5.1.47 ndb-7.1.5)
[mysqld(API)] 2 node(s)
id=4 (not connected, accepting connect from any host)
id=5 (not connected, accepting connect from any host)
Finally the error log from mysql
101007 09:55:09 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
101007 9:55:09 [Note] Plugin 'FEDERATED' is disabled.
101007 9:55:09 InnoDB: Started; log sequence number 0 44253
101007 9:55:09 [Note] NDB: NodeID is 4, management server '192.168.1.10:1186'
101007 9:55:10 [Note] NDB[0]: NodeID: 4, no storage nodes connected (timed out)
101007 9:55:10 [Note] Starting Cluster Binlog Thread
101007 9:55:10 [Note] Event Scheduler: Loaded 0 events
101007 9:55:25 [Warning] NDB : Tables not available after 15 seconds. Consider increasing --ndb-wait-setup value
101007 9:55:25 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.1.47-ndb-7.1.5-cluster-gpl' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Cluster Server (GPL)
I have run out of ideas so any help is really appreciated.