Dear all:
My cluster's config.ini is using localhost for the parameter hostname.
And now, I want to add a new data node.then the NDBN part looks like as below.
[ndbd]
hostname=localhost
NodeId=3
[ndbd]
hostname=localhost
NodeId=4
[ndbd]
hostname=192.168.39.157
NodeId=5
[ndbd]
hostname=192.168.39.157
NodeId=6
the problem is,mgmd can't startup,and report an error:
2012-10-11 14:57:59 [MgmtSrvr] INFO -- Loaded config from '/usr/local/mysql/mysql-cluster/ndb_1_config.bin.3'
2012-10-11 14:57:59 [MgmtSrvr] ERROR -- at line 32: Mixing of localhost (default for [NDBD]HostName) with other hostname(compute-48-16.local) is illegal
2012-10-11 14:57:59 [MgmtSrvr] ERROR -- at line 32: Could not store previous section of configuration file.
2012-10-11 14:57:59 [MgmtSrvr] ERROR -- Could not load configuration from '/home/mysqlCluster/my_cluster/conf/config.ini'
I tried to change localhost to real ip addr,and the data node 3 can't startup either.
MySQL Cluster Management Server mysql-5.5.20 ndb-7.2.5
2012-10-11 14:30:10 [MgmtSrvr] WARNING -- at line 45: Cluster configuration warning:
Node group 0,
db node with id 3 and id 4 on same host 192.168.39.158.
Host failure will cause complete cluster shutdown. Node group 1,
db node with id 5 and id 6 on same host 192.168.39.157.
Host failure will cause complete cluster shutdown.
2012-10-11 14:30:10 [MgmtSrvr] WARNING -- at line 45: Cluster configuration warning:
arbitrator with id 1 and db node with id 3 on same host 192.168.39.158
Running arbitrator on the same host as a database node may
cause complete cluster shutdown in case of host failure.
2012-10-11 14:30:11 [MgmtSrvr] WARNING -- at line 45: Cluster configuration warning:
Node group 0,
db node with id 3 and id 4 on same host 192.168.39.158.
Host failure will cause complete cluster shutdown. Node group 1,
db node with id 5 and id 6 on same host 192.168.39.157.
Host failure will cause complete cluster shutdown.
2012-10-11 14:30:11 [MgmtSrvr] WARNING -- at line 45: Cluster configuration warning:
arbitrator with id 1 and db node with id 3 on same host 192.168.39.158
Running arbitrator on the same host as a database node may
cause complete cluster shutdown in case of host failure.
[root@compute-48-17 bin]# /home/mysqlCluster/mysqlc/bin/ndbd -c 192.168.39.158:1186
2012-10-11 14:35:05 [ndbd] INFO -- Angel connected to '192.168.39.158:1186'
2012-10-11 14:35:35 [ndbd] ERROR -- Failed to allocate nodeid, error: 'Error: Could not alloc node id at 192.168.39.158 port 1186: No free node id found for ndbd(NDB).'
My cluster's config.ini is using localhost for the parameter hostname.
And now, I want to add a new data node.then the NDBN part looks like as below.
[ndbd]
hostname=localhost
NodeId=3
[ndbd]
hostname=localhost
NodeId=4
[ndbd]
hostname=192.168.39.157
NodeId=5
[ndbd]
hostname=192.168.39.157
NodeId=6
the problem is,mgmd can't startup,and report an error:
2012-10-11 14:57:59 [MgmtSrvr] INFO -- Loaded config from '/usr/local/mysql/mysql-cluster/ndb_1_config.bin.3'
2012-10-11 14:57:59 [MgmtSrvr] ERROR -- at line 32: Mixing of localhost (default for [NDBD]HostName) with other hostname(compute-48-16.local) is illegal
2012-10-11 14:57:59 [MgmtSrvr] ERROR -- at line 32: Could not store previous section of configuration file.
2012-10-11 14:57:59 [MgmtSrvr] ERROR -- Could not load configuration from '/home/mysqlCluster/my_cluster/conf/config.ini'
I tried to change localhost to real ip addr,and the data node 3 can't startup either.
MySQL Cluster Management Server mysql-5.5.20 ndb-7.2.5
2012-10-11 14:30:10 [MgmtSrvr] WARNING -- at line 45: Cluster configuration warning:
Node group 0,
db node with id 3 and id 4 on same host 192.168.39.158.
Host failure will cause complete cluster shutdown. Node group 1,
db node with id 5 and id 6 on same host 192.168.39.157.
Host failure will cause complete cluster shutdown.
2012-10-11 14:30:10 [MgmtSrvr] WARNING -- at line 45: Cluster configuration warning:
arbitrator with id 1 and db node with id 3 on same host 192.168.39.158
Running arbitrator on the same host as a database node may
cause complete cluster shutdown in case of host failure.
2012-10-11 14:30:11 [MgmtSrvr] WARNING -- at line 45: Cluster configuration warning:
Node group 0,
db node with id 3 and id 4 on same host 192.168.39.158.
Host failure will cause complete cluster shutdown. Node group 1,
db node with id 5 and id 6 on same host 192.168.39.157.
Host failure will cause complete cluster shutdown.
2012-10-11 14:30:11 [MgmtSrvr] WARNING -- at line 45: Cluster configuration warning:
arbitrator with id 1 and db node with id 3 on same host 192.168.39.158
Running arbitrator on the same host as a database node may
cause complete cluster shutdown in case of host failure.
[root@compute-48-17 bin]# /home/mysqlCluster/mysqlc/bin/ndbd -c 192.168.39.158:1186
2012-10-11 14:35:05 [ndbd] INFO -- Angel connected to '192.168.39.158:1186'
2012-10-11 14:35:35 [ndbd] ERROR -- Failed to allocate nodeid, error: 'Error: Could not alloc node id at 192.168.39.158 port 1186: No free node id found for ndbd(NDB).'