MySQL Forums
Forum List  »  NDB clusters

Re: Cluster Configuration 2 MGMD nodes
Posted by: Danie Van der Walt
Date: December 01, 2005 08:30AM

Hey Guys thanks for the feedback but I still seem to be having problems......

I now have 3 pc's

192.168.1.111 - just mgm
192.168.1.3 - ndb and mysql
192.168.1.36 - ndb and mysql

on 192.168.1.111 i have my config file....
# Options affecting ndbd processes on all data nodes:
[NDBD DEFAULT]
NoOfReplicas=2
DataMemory=80M
IndexMemory=18M
Diskless= Y


# Management process 1
[NDB_MGMD]
Id=1
Hostname=192.168.1.111
#ArbitrationRank= 1
#PortNumber=10001
Datadir=/var/lib/mysql-cluster

# Options for Data node process 1
[NDBD]
Id= 3
Hostname=192.168.1.3
Datadir=/var/lib/mysql-cluster

# Options for data node process 2
[NDBD]
Id= 4
Hostname=192.168.1.36
Datadir=/var/lib/mysql-cluster

# SQL node process 1
[MYSQLD]
Id= 5
Hostname=192.168.1.3
ArbitrationRank= 0

# SQL node process 2
[MYSQLD]
Id= 6
Hostname=192.168.1.36
ArbitrationRank= 0


I then run:
ndb_mgmd -f /var/lib/mysql-cluster/config.ini
ndbd (--initial for the first time)

I then go into ndb_mgm and type show:
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=3 (not connected, accepting connect from 192.168.1.3)
id=4 (not connected, accepting connect from 192.168.1.36)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.1.111 (Version: 5.0.15)

[mysqld(API)] 2 node(s)
id=5 (not connected, accepting connect from 192.168.1.3)
id=6 (not connected, accepting connect from 192.168.1.36)


Then on the other two pc's I have the following my.cnf file:
# Options for mysqld process:
[MYSQLD]
ndbcluster # run NDB engine
ndb-connectstring="nodeid=6;192.168.1.111" # location of MGM nodes

[NDBD]
ndb-connectstring="nodeid=4;192.168.1.111" # location of MGM nodes

I then start the mysql:
safe_mysqld --user=root &

on both pc's.

When I go back to the management server and type show.
It gives me the same information.


Any ideas.....
Or am I just doing something wrong......

Options: Reply• Quote


Subject
Views
Written By
Posted
6553
November 30, 2004 11:14PM
2617
December 04, 2004 04:11PM
2358
November 13, 2005 05:49PM
2342
November 14, 2005 05:02PM
5465
November 21, 2005 05:29AM
4991
January 13, 2006 06:23PM
2345
January 13, 2006 06:27PM
2381
November 24, 2005 03:01AM
2221
November 24, 2005 11:31AM
2262
November 29, 2005 04:59AM
Re: Cluster Configuration 2 MGMD nodes
2811
December 01, 2005 08:30AM
2246
December 01, 2005 06:05PM
2540
February 18, 2006 10:20PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.