this function can be used to restart one or more Cluster
data nodes. However,
provides additional restart options, including initial
restart, waiting start, and immediate (forced) restart.
int ndb_mgm_restart2 ( NdbMgmHandle
number, const int*
ndb_mgm_restart2() takes 6 parameters:
number of nodes to be
0 to stop all of the data
nodes in the cluster.
list of the node IDs of the
nodes to be stopped.
initial is true
1), then each node undergoes an
initial restart—that is, its file system is removed.
nostart is true, then the nodes are
not actually started, but instead are left ready for a
abort is true, then the
nodes are restarted immediately, bypassing any graceful
The number of nodes actually restarted;
-1 on failure.