List Info

Thread: problems with cluster start up




problems with cluster start up
user name
2006-05-17 13:20:55
Hi,

Looking through the list archive I have seen that many
people have had a 
similar problem but none ot the threads seem to help me.

I am trying to set up a test cluster with two machines.  On
machine A, I 
have ndb_mgmd, ndbd, and mysql running.  Machine B has ndbd
and mysql.

Machine A config.ini:
[NDBD DEFAULT]
NoOfReplicas=2
DataDir=/var/lib/mysql-cluster

[MYSQLD DEFAULT]
[NDB_MGMD DEFAULT]
[TCP DEFAULT]

[NDB_MGMD]
HostName=141.142.234.57
DataDir=/var/lib/mysql-cluster
LogDestination=FILE:filename=/usr/local/mysql-max-4.1.18-pc-
linux-gnu-i686-glibc23/data/cluster.log,maxsize=1000000,maxf
iles=6

[NDBD]
HostName=141.142.234.57
DataDir=/var/lib/mysql-cluster

[NDBD]
HostName=141.142.234.28
DataDir=/var/lib/mysql-cluster

[MYSQLD]


[MYSQLD]

Machine A my.cnf:
[mysqld]
ndbcluster
ndb-connectstring=141.142.234.57
log=/usr/local/mysql-max-4.1.18-pc-linux-gnu-i686-glibc23/da
ta/logfile
log_error=/usr/local/mysql-max-4.1.18-pc-linux-gnu-i686-glib
c23/data/err.log
log_slow_queries=/usr/local/mysql-max-4.1.18-pc-linux-gnu-i6
86-glibc23/data/slow.log
max_connections=200
innodb
innodb_lock_wait_timeout=120

# Options for ndbd process:
[MYSQL_CLUSTER]
ndb-connectstring=141.142.234.57  # location of MGM node


Machine B my.cnf:
[mysqld]
ndbcluster
ndb-connectstring=141.142.234.57
max_connections=200
log-error=/usr/local/mysql-max-4.1.18-pc-linux-gnu-i686-glib
c23/data/err.log
log-slow-queries=/usr/local/mysql-max-4.1.18-pc-linux-gnu-i6
86-glibc23/data/slow.log
log=/usr/local/mysql-max-4.1.18-pc-linux-gnu-i686-glibc23/da
ta/logfile.log
innodb
innodb_lock_wait_timeout=120

# Options for ndbd process:
[MYSQL_CLUSTER]
ndb-connectstring=141.142.234.57  # location of MGM node

I start ndb_mgmd like this:
/usr/local/mysql-max-4.1.18-pc-linux-gnu-i686-glibc23/bin/nd
b_mgmd -f 
/var/lib/mysql-cluster/config.ini

I then start the two ndbd nodes.

I start mysql.

When I do a 
/usr/local/mysql-max-4.1.18-pc-linux-gnu-i686-glibc23/bin/nd
b_mgm -e show, 
I see:
Connected to Management Server at: localhost:1186
Cluster Configuration
---------------------
[ndbd(NDB)]     2 node(s)
id=2    127.0.0.1  (Version: 4.1.18, starting, Nodegroup: 0,
Master)
id=3 (not connected, accepting connect from 141.142.234.28)

[ndb_mgmd(MGM)] 1 node(s)
id=1    141.142.234.57  (Version: 4.1.18)

[mysqld(API)]   2 node(s)
id=4 (not connected, accepting connect from any host)
id=5 (not connected, accepting connect from any host)

The log file for mgmd shows:
2006-05-17 07:34:27 [MgmSrvr] INFO     -- NDB Cluster
Management Server. 
Version 4.1.18
2006-05-17 07:34:27 [MgmSrvr] INFO     -- Id: 1, Command
port: 1186
2006-05-17 07:34:42 [MgmSrvr] INFO     -- Mgmt server state:
nodeid 2 
reserved for ip 127.0.0.1, m_reserved_nodes
0000000000000006.
2006-05-17 07:34:43 [MgmSrvr] INFO     -- Node 1: Node 2
Connected
2006-05-17 07:35:16 [MgmSrvr] INFO     -- Node 2: Start
phase 1 completed
2006-05-17 07:35:21 [MgmSrvr] INFO     -- Mgmt server state:
nodeid 4 
reserved for ip 141.142.234.57, m_reserved_nodes
0000000000000016.
2006-05-17 07:49:46 [MgmSrvr] INFO     -- Mgmt server state:
nodeid 4 
freed, m_reserved_nodes 0000000000000006.
2006-05-17 07:52:37 [MgmSrvr] INFO     -- Mgmt server state:
nodeid 3 
reserved for ip 141.142.234.28, m_reserved_nodes
000000000000000e.
2006-05-17 08:10:39 [MgmSrvr] INFO     -- Mgmt server state:
nodeid 4 
reserved for ip 141.142.234.57, m_reserved_nodes
000000000000001e.

Machine A's ndbd log file is:
2006-05-17 07:34:42 [ndbd] INFO     -- Angel pid: 20008 ndb
pid: 20009
2006-05-17 07:34:42 [ndbd] INFO     -- NDB Cluster -- DB
node 2
2006-05-17 07:34:42 [ndbd] INFO     -- Version 4.1.18 --
2006-05-17 07:34:42 [ndbd] INFO     -- Configuration fetched
at localhost 
port 1186

Machine B's log file is:
2006-05-17 07:52:37 [ndbd] INFO     -- Angel pid: 20993 ndb
pid: 20994
2006-05-17 07:52:37 [ndbd] INFO     -- NDB Cluster -- DB
node 3
2006-05-17 07:52:37 [ndbd] INFO     -- Version 4.1.18 --
2006-05-17 07:52:37 [ndbd] INFO     -- Configuration fetched
at 
141.142.234.57 port 1186

 From everything I have read these configurations should be
right.

Why is machine B's ndbd not connecting to the ndb_mgm?

Why are neither of the mysql's connecting?

I am totally at a loss at this point.  I have looked at the
list archive 
and several different web pages referenced in past threads. 
So far nothing 
has helped.

I could use some guidance.

Thanks


-- 
MySQL Cluster Mailing List
For list archives: http://lists.mysql.com
/cluster
To unsubscribe:    http://list
s.mysql.com/cluster?unsub=bondyahoo.com

problems with cluster start up
user name
2006-06-16 13:33:22
On Wed, 2006-05-17 at 08:20 -0500, Patrick Duda wrote:
> When I do a 
>
/usr/local/mysql-max-4.1.18-pc-linux-gnu-i686-glibc23/bin/nd
b_mgm -e show, 
> I see:
> Connected to Management Server at: localhost:1186
> Cluster Configuration
> ---------------------
> [ndbd(NDB)]     2 node(s)
> id=2    127.0.0.1  (Version: 4.1.18, starting,
Nodegroup: 0, Master)
> id=3 (not connected, accepting connect from
141.142.234.28)
> 
> [ndb_mgmd(MGM)] 1 node(s)
> id=1    141.142.234.57  (Version: 4.1.18)
> 
> [mysqld(API)]   2 node(s)
> id=4 (not connected, accepting connect from any host)
> id=5 (not connected, accepting connect from any host)

looks like your cluster hasn't started yet.


> Machine A's ndbd log file is:
> 2006-05-17 07:34:42 [ndbd] INFO     -- Angel pid: 20008
ndb pid: 20009
> 2006-05-17 07:34:42 [ndbd] INFO     -- NDB Cluster --
DB node 2
> 2006-05-17 07:34:42 [ndbd] INFO     -- Version 4.1.18
--
> 2006-05-17 07:34:42 [ndbd] INFO     -- Configuration
fetched at localhost 
> port 1186
> 
> Machine B's log file is:
> 2006-05-17 07:52:37 [ndbd] INFO     -- Angel pid: 20993
ndb pid: 20994
> 2006-05-17 07:52:37 [ndbd] INFO     -- NDB Cluster --
DB node 3
> 2006-05-17 07:52:37 [ndbd] INFO     -- Version 4.1.18
--
> 2006-05-17 07:52:37 [ndbd] INFO     -- Configuration
fetched at 
> 141.142.234.57 port 1186
> 
>  From everything I have read these configurations
should be right.
> 
> Why is machine B's ndbd not connecting to the ndb_mgm?

Probably a firewall in the way. Perhaps you have a firewall
on machine
b?

we use more than just port 1186 for communication

> Why are neither of the mysql's connecting?

they won't until the DB nodes decide they're a cluster and
finish
starting.
-- 
Stewart Smith, Software Engineer
MySQL AB, www.mysql.com
Office: +14082136540 Ext: 6616
VoIP: 6616sip.us.mysql.com
Mobile: +61 4 3 8844 332

Jumpstart your cluster:
http://www.mysql.com/consulting/packaged/cluster.html
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )