¾È³çÇϼ¼¿ä. Ŭ·¯½ºÅ͸¦ ¼³Á¤ ÇÑ ÈÄ¿¡ °ü¸®³ëµå¿¡¼ 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)
ÀÌ·¸°Ô¿ä.