2nd Step – Setting up a storage server (NDBD) node 1 and node 2
First install the following packages via yum:
# yum install perl-HTML*
# yum install perl-DBD-MySQL
Install packages:
# rpm -ivh MySQL-shared-5.0.90-1.glibc23
# rpm -ivh MySQL-client-5.0.90-1.glibc23
# rpm -ivh MySQL-ndb-tools-5.0.90-1.glibc23
# rpm -ivh MySQL-server-5.0.90-1.glibc23
# rpm -ivh MySQL-ndb-storage-5.0.90-1.glibc23
Each node of the storage servers requires a my.cnf file:
# vi /etc/my.cnf
[client]
socket=/var/lib/mysql/mysql.sock
[mysqld]
ndbcluster
#IP of the management server(MGM)
ndb-connectstring=172.16.3.241
default-storage-engine=NDBCLUSTER
[mysql_cluster]
#IP of the management server(MGM)
ndb-connectstring=172.16.3.241
Now start the process “ndbd” on each node “DB2″and “D3B”
# ndbd –initial
or
# ndbd
Note: You must use “initial” if there is any change in the configuration of config.ini on the management server.
Then start the MySQL server:
# service mysqld start