Re: Cluster Configuration 2 MGMD nodes
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......
Subject
Views
Written By
Posted
6553
November 30, 2004 11:14PM
2617
December 04, 2004 04:11PM
2497
March 15, 2005 12:05PM
2290
November 11, 2005 06:42AM
2358
November 13, 2005 05:49PM
2439
November 14, 2005 07:23AM
2342
November 14, 2005 05:02PM
2268
November 21, 2005 02:15AM
5465
November 21, 2005 05:29AM
4991
January 13, 2006 06:23PM
2345
January 13, 2006 06:27PM
2227
November 24, 2005 02:35AM
2381
November 24, 2005 03:01AM
2221
November 24, 2005 11:31AM
2193
November 28, 2005 02:37AM
3915
November 29, 2005 02:39AM
2426
November 29, 2005 02:49AM
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.