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

simple cluster not initiating (no replies)

$
0
0
Hey there… I have a problem that I can’t somehow find a solution after
hours and hours and this seems to be my last resort. Any help would be
greatly appreciated!

I have node01 and node02 as data nodes and node03 as the management node
BTW: either ip addresses or node0x work as they are configured in /etc/hosts...

These are my my.cnf in node01 and node02
----------------------
node01 ~: more /etc/my.cnf
[client]
port = 3306
socket = /tmp/mysql.sock

[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-external-locking
ndbcluster # run NDB storage engine
ndb-cluster-connection-pool=4
ndb-connectstring=192.168.56.103 # management server

[mysql_cluster]
ndb-connectstring=192.168.56.103 # management server
----------------------

and this is my configuration file and the management node (node03)
----------------------
node03 ~: more /var/lib/mysql-cluster/config.ini
[ndbd default]
NoOfReplicas=2
DataMemory=80M
IndexMemory=18M

[tcp default]

[ndb_mgmd]
hostname=node03 # MGM node == node03
datadir=/var/lib/mysql-cluster # Directory for MGM node log files

[ndbd]
hostname=node01 # node01
datadir=/usr/local/mysql/data # data files

[ndbd]
hostname=node02 # node02
datadir=/usr/local/mysql/data # data files

[mysqld]
hostname=node01 # node01

[mysqld]
hostname=node02 # node02
----------------------

I am able to connect to node03 easily and initiate mysql on the data nodes
this is my management node’s output showing just the fist node
(perfectly working and I'm just testing node01)
----------------------
ndb_mgm> show
Cluster Configuration

[ndbd(NDB)] 2 node(s)
id=2 @192.168.56.101 (mysql-5.5.20 ndb-7.2.5, starting, Nodegroup: 0)
id=3 (not connected, accepting connect from node02)
----------------------

but if I go to node01 and I try to create a cluster table, I get this error:
——————
mysql> use test;
Database changed
mysql> CREATE TABLE cluster_test (i INT) ENGINE=NDBCLUSTER;
ERROR 157 (HY000): Could not connect to storage engine
mysql>
----------------------


This is my error log:
----------------------
120416 22:54:33 [Note] Starting Cluster Binlog Thread
120416 22:54:33 InnoDB: The InnoDB memory heap is disabled
120416 22:54:33 InnoDB: Mutexes and rw_locks use InnoDB’s own implementation
120416 22:54:33 InnoDB: Compressed tables use zlib 1.2.3
120416 22:54:33 InnoDB: Using Linux native AIO
120416 22:54:33 InnoDB: Initializing buffer pool, size = 128.0M
120416 22:54:34 InnoDB: Completed initialization of buffer pool
120416 22:54:34 InnoDB: highest supported file format is Barracuda.
120416 22:54:34 InnoDB: Waiting for the background threads to start
120416 22:54:35 InnoDB: 1.1.8 started; log sequence number 1595675
120416 22:54:36 [Note] Event Scheduler: Loaded 0 events
120416 22:54:36 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: ’5.5.20-ndb-7.2.5-gpl’ socket: ‘/tmp/mysql.sock’ port: 3306
MySQL Cluster Community Server (GPL)
120416 22:55:06 [Warning] NDB : Tables not available after 30 seconds.
Consider increasing –ndb-wait-setup value
120416 22:55:33 [Warning] NDB: Could not acquire global schema lock
(4009)Cluster Failure
120416 22:55:35 [Warning] NDB: Could not acquire global schema lock
(4009)Cluster Failure
----------------------

and what is worse, is that there are no firewalls and I can access the
mgmnt node perfectly from node01…
look:
----------------------
node01 ~: telnet 192.168.56.103 1186
Trying 192.168.56.103…
Connected to 192.168.56.103.
Escape character is ‘^]’.
^]
telnet> Connection closed.
----------------------

This are my node01′s show warnings
----------------------
mysql> show warnings;
+———+——+———————————————————————————+
| Level | Code | Message |
+———+——+———————————————————————————+
| Warning | 1296 | Got error 4009 ‘Cluster Failure’ from NDB. Could
not acquire global schema lock |
| Warning | 1296 | Got error 4009 ‘Cluster Failure’ from NDB |
| Error | 157 | Could not connect to storage engine |
| Error | 1499 | Too many partitions (including subpartitions) were defined |
+———+——+———————————————————————————+
4 rows in set (0.00 sec)
----------------------

and these are the management node's logs everytime I start mysqld at node01
----------------------

2012-04-17 00:04:21 [MgmtSrvr] WARNING -- Failed to allocate nodeid
for API at 192.168.56.101. Returned eror: 'No free node id found for
mysqld(API).'
----------------------


Any ideas? I’m about to go crazy with this!!
Thanks!

Viewing all articles
Browse latest Browse all 1562

Trending Articles



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