2
我在啓動ndb_mgmd時遇到問題。這裏有一些信息。mysql ndb_mgmd --no-nodeid-checks - 啓動錯誤
OS: Ubuntu 12.04LTS
MySQL -V: Ver 5.5.25a-ndb-7.2.7 for Linux on x86_64 (Source distribution)
Base Dir = /usr/local/mysql
Default MySQL Conf = /xconf/mysql/my.cnf
Default MySQL Data = /xdata/mysql
/xconf/mysql/my.cnf
[mysqld]
ndbcluster
socket=/xdata/mysql/mysql.sock
[mysqld_safe]
err-log=/xlog/mysqld.log
pid-file=/xdata/runtime/mysqld/mysqld.pid
[ndb_mgmd]
configdir=/xdata/mysql-cluster
config-file=/xdata/mysql-cluster/config.ini
/xdata/mysql-cluster/config.ini
[NDBD DEFAULT]
NoOfReplicas=2
DataDir=/xdata/mysql-cluster
# Management Node
[ndb_mgmd]
NodeId=1
HostName=192.168.2.100
DataDir=/xdata/mysql-cluster
# Storage Nodes
[ndbd]
NodeId=2
HostName=192.168.2.101
[ndbd]
NodeId=3
HostName=182.168.2.102
# SQL Nodes
[mysqld]
HostName=192.168.2.100
[mysqld]
HostName=192.168.2.101
[mysqld]
HostName=192.168.2.102
當我執行:
@xuser:/xdata/mysql-cluster$ ndb_mgmd
MySQL Cluster Management Server mysql-5.5.25 ndb-7.2.7
[MgmtSrvr] ERROR -- Could not determine which nodeid to use for this node. Specify it with --ndb-nodeid=<nodeid> on command line
有關爲什麼會發生這種情況的任何想法?
您是在192.168.2.100上啓動管理器的主機嗎?這聽起來像經理正在嘗試啓動,閱讀config.ini,並看到唯一的管理員插槽的IP,並認爲它不匹配。如果您最近更改了IP,它也可能是緩存的配置問題。使用ndb_mgmd --initial清除二進制配置並強制它從config.ini文件重新加載。 – Kadaan 2012-08-12 05:45:29