안녕하세요. 클러스터를 설정 한 후에 관리노드에서 show를 하니
[root@localhost bin]# ndb_mgm -e show
Connected to Management Server at: localhost:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 @192.168.192.230 (mysql-5.1.35 ndb-7.0.7, starting, Nodegroup: 0)
id=3 @192.168.192.240 (mysql-5.1.35 ndb-7.0.7, starting, Nodegroup: 0)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.192.210 (mysql-5.1.35 ndb-7.0.7)
[mysqld(API)] 1 node(s)
id=4 (not connected, accepting connect from 192.168.192.220)
이렇게 not connected로 떨어집니다.
설정은 my-sql 5.1 h/a 매뉴얼에 있는설정을 참고로 했습니다.
총4대 ( 1대 관리, 1대 sql, 2대 데이터 노드)로 구성했습니다. 그리고
실서버가 아니 vmware에서 설정을 했습니다.
my.cnf 파일은
[MYSQLD]
ndbcluster
ndb-connectstring=192.168.192.210
[MYSQL_CLUSTER]
ndb-connectstring=192.168.192.210
이렇게 했습니다.
그리고 config.ini 파일은
[NDBD DEFAULT]
NoOfReplicas=2
DataMemory=80M
IndexMemory=18M
[TCP DEFAULT]
portnumber=2202
[NDB_MGMD]
Id=1
hostname=192.168.192.210
datadir=/var/lib/mysql-cluster
[NDBD]
Id=2
hostname=192.168.192.230
datadir=/usr/local/mysql/data
[NDBD]
Id=3
hostname=192.168.192.240
datadir=/usr/local/mysql/data
[MYSQLD]
Id=4
hostname=192.168.192.220
이렇게 했습니다.
무엇이 문제일까요? 일주일 내내 계속 지웠다가 다시 해보고 했는데도 마찮가지이네요
거의 미치기 일보 직전입니다.
도와주세요
P.S 참고로 SQL 노드에서 실행하면 에러로그의 경고가 보입니다.
091012 18:55:24 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
091012 18:55:30 InnoDB: Started; log sequence number 0 46409
091012 18:55:30 [Note] NDB: NodeID is 4, management server '192.168.192.210:1186'
091012 18:55:31 [Note] NDB[0]: NodeID: 4, no storage nodes connected (timed out)
091012 18:55:31 [Warning] NDB: server id set to zero will cause any other mysqld with bin log to log with wrong server id
091012 18:55:31 [Note] Starting Cluster Binlog Thread
091012 18:55:32 [Note] Event Scheduler: Loaded 0 events
091012 18:55:32 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.1.35-ndb-7.0.7-cluster-gpl' socket: '/tmp/mysql.sock' port: 3306 MySQL Cluster Server (GPL)
이렇게요. |