MySQL-Cluster NDB설정 시 잘못된점? 서로의 ndbd데몬에 못붙음
아래처럼 두대의 머쉰을 구성하고(IP만 다름) 서비스 상태를 체크하니까. 아래처럼 나옵니다.
ndbd 서버를 서로 접속을 못하는군요.
다른 서비스는 모두 정상적인데..유독 ndbd만 상대방서버에 접속을 못합니다.
많은 옵션을 바꾸어가면서 또는 MySQL자체 접근 권한도 확인하면서 했는데, 다른 서버에 NDB가 붙질 못하는군요.
무엇이 틀렸는지 모르겠군요. 에러도 없는데 말입니다.
도와주셔요~~
====================== config.ini 내용 =========================
# /var/lib/mysql-cluster/config.ini
[NDBD DEFAULT]
NoOfReplicas=2
[MYSQLD DEFAULT]
[NDB_MGMD DEFAULT]
[TCP DEFAULT]
portnumber=2202
# Managment Server
[NDB_MGMD]
HostName=192.168.0.1 # the IP of THIS SERVER
DataDir=/var/lib/mysql-cluster
# Storage Engines
[NDBD]
HostName=192.168.0.1 # the IP of the FIRST SERVER
DataDir=/usr/local/mysql/data
[NDBD]
HostName=192.168.0.2 # the IP of the SECOND SERVER
DataDir=/usr/local/mysql/data
[MYSQLD]
HostName=192.168.0.1 # the IP of the SECOND SERVER
[MYSQLD]
HostName=192.168.0.2 # the IP of the SECOND SERVER
========================== my.cnf 내용 ======================
# /etc/my.cnf
[MYSQLD] # Options for mysqld process:
ndbcluster # run NDB engine
ndb-connectstring=192.168.0.1 # location of MGM node
[MYSQL_CLUSTER] # Options for ndbd process:
ndb-connectstring=192.168.0.1 # location of MGM node
[ndbd]
connect-string=192.168.0.1
# provide connectstring for management server host (default port: 1186)
[ndb_mgm]
connect-string=192.168.0.1
# provide location of cluster configuration file
[ndb_mgmd]
config-file=/var/lib/mysql-cluster/config.ini
======================== 상태 확인 ===========================
ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 @192.168.0.1 (Version: 5.0.27, starting, Nodegroup: 0)
id=3 (not connected, accepting connect from 192.168.0.2)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.0.1 (Version: 5.0.27)
[mysqld(API)] 2 node(s)
id=4 @192.168.0.1 (Version: 5.0.27, starting, Nodegroup: 0)
id=5 @192.168.0.2 (Version: 5.0.27, starting, Nodegroup: 0)
ndb_mgm>
댓글 달기