title: Failed to allocate nodeid, error: 'Error: Could not alloc node id
body: <p><code>ndb_mgmd</code> does not seem to correctly read the config file</p>
  
  <p>this is part of my config file </p>
  
  <pre><code>[ndbd]
  # Options for data node "A":
                                  # (one [ndbd] section per data node)
  hostname=abhyas.db01            # Hostname or IP address
  datadir=/usr/local/mysql/data   # Directory for this data node's data files
  
  [ndbd]
  # Options for data node "B":
  hostname=abhyas.db02            # Hostname or IP address
  datadir=/usr/local/mysql/data   # Directory for this data node's data files
  
  [mysqld]
  # SQL node options:
  hostname=abhyas.dbmgr           # Hostname or IP address
                                  # (additional mysqld connections can be
                                  # specified for this node for various
                                  # purposes such as running ndb_restore)
  </code></pre>
  
  <p>but</p>
  
  <p><code>ndb_mgm</code></p>
  
  <p>shows something different </p>
  
  <pre><code>[root@abhyas abhyas_mgr]# ndb_mgm
  -- NDB Cluster -- Management Client --
  ndb_mgm&gt; SHOW
  Connected to Management Server at: abhyas.dbmgr:1186
  Cluster Configuration
  ---------------------
  [ndbd(NDB)] 2 node(s)
  id=2 (not connected, accepting connect from abhyas.db01)
  id=3 (not connected, accepting connect from abhyas.db01)
  
  [ndb_mgmd(MGM)] 1 node(s)
  id=1    @192.168.102.134  (mysql-5.6.25 ndb-7.4.7)
  
  [mysqld(API)]   1 node(s)
  id=4 (not connected, accepting connect from abhyas.dbmgr)
  
  ndb_mgm&gt; EXIT
  </code></pre>
  
  <p>As you can see, in my config file I have <code>abhyas.db01</code> and <code>abhyas.db02</code> as the hosts. </p>
  
  <p>But the cluster config shows NDB nodes as two nodes, both from <code>abhyas.db01</code>. (This is not what I want, not right now atleast).</p>
  
  <pre><code>[ndbd(NDB)] 2 node(s)
  id=2 (not connected, accepting connect from abhyas.db01)
  id=3 (not connected, accepting connect from abhyas.db01)
  </code></pre>
  
  <p>Now, I made a mistake to start the <code>ndb_mgmd</code> with the config.ini file had <code>[ndbd]</code> entries both pointing to <code>abhyas.db01</code>, but I promptly shut down the <code>ndb_mgm</code> and changed the entry in the config file to show as I have pasted above.</p>
  
  <p>But for some reason, <code>ndb_mgmd</code> still takes the old configuration ?</p>
  
  <p>How do I fix this ?</p>
  
  <p>Thanks.</p>
  
  <p>PS - No, this is not a firewall issue. <code>iptables</code> is off. Besides, ndbd from <code>abhyas.db01</code> is able to connect successfully anyway. </p>