40 messages in com.mysql.lists.clusterRe: please help with config| From | Sent On | Attachments |
|---|---|---|
| Ricardo Kleemann | 31 Jul 2006 13:31 | |
| Jon Stephens | 31 Jul 2006 17:22 | |
| Brendan Bouffler | 31 Jul 2006 18:47 | |
| Ricardo Kleemann | 31 Jul 2006 20:14 | |
| Brendan Bouffler | 31 Jul 2006 21:13 | |
| Jon Stephens | 31 Jul 2006 22:43 | |
| Ricardo Kleemann | 01 Aug 2006 08:02 | |
| Ricardo Kleemann | 01 Aug 2006 08:09 | |
| Jon Stephens | 01 Aug 2006 10:10 | |
| Ricardo Kleemann | 01 Aug 2006 10:30 | |
| Ricardo Kleemann | 01 Aug 2006 17:38 | |
| Adam Dixon | 01 Aug 2006 17:54 | |
| Ricardo Kleemann | 01 Aug 2006 18:17 | |
| Adam Dixon | 01 Aug 2006 18:34 | |
| Ricardo Kleemann | 01 Aug 2006 18:46 | |
| Nathaniel Hall | 01 Aug 2006 18:52 | |
| Paul Querna | 01 Aug 2006 22:41 | |
| Adam Dixon | 01 Aug 2006 23:02 | |
| Mikael Ronström | 01 Aug 2006 23:06 | |
| Geert Vanderkelen | 02 Aug 2006 02:39 | |
| Ricardo Kleemann | 02 Aug 2006 08:03 | |
| Ricardo Kleemann | 02 Aug 2006 09:56 | |
| Geert Vanderkelen | 02 Aug 2006 10:25 | |
| Ricardo Kleemann | 02 Aug 2006 10:30 | |
| Geert Vanderkelen | 02 Aug 2006 10:57 | |
| Ricardo Kleemann | 02 Aug 2006 11:04 | |
| Geert Vanderkelen | 02 Aug 2006 11:19 | |
| Ricardo Kleemann | 02 Aug 2006 11:24 | |
| Mikael Ronström | 02 Aug 2006 14:02 | |
| Ricardo Kleemann | 02 Aug 2006 14:10 | |
| Mikael Ronström | 02 Aug 2006 14:29 | |
| Ricardo Kleemann | 02 Aug 2006 14:40 | |
| Jason Williams | 02 Aug 2006 15:14 | |
| Jon Stephens | 02 Aug 2006 15:43 | |
| Mikael Ronström | 02 Aug 2006 23:32 | |
| Mikael Ronström | 02 Aug 2006 23:35 | |
| Nick Hoffman | 02 Aug 2006 23:40 | |
| Mikael Ronström | 03 Aug 2006 01:53 | |
| Ricardo Kleemann | 03 Aug 2006 12:42 | |
| Stewart Smith | 09 Aug 2006 19:41 |
| Subject: | Re: please help with config![]() |
|---|---|
| From: | Jon Stephens (jo...@mysql.com) |
| Date: | 07/31/2006 05:22:42 PM |
| List: | com.mysql.lists.cluster |
Ricardo Kleemann wrote:
Hello,
I've been reading the various configuration examples, but I'm still not quite sure which settings need to go on which nodes. I understand that the config.ini should go in the management server, but the data nodes and mysql nodes, which settings should they have?
I'm trying to build a 6 server cluster. 1 for management, 2 data nodes and 3 mysql nodes. I'm on a Fedora 5 system, and I have these packages installed in the 6 servers:
MySQL-ndb-extra-5.0.22-0.glibc23 libdbi-dbd-mysql-0.8.1a-1.2.1 mysql-connector-odbc-3.51.12-1.2.1 MySQL-Max-5.0.22-0.glibc23 MySQL-ndb-tools-5.0.22-0.glibc23 mysql-5.0.22-1.FC5.1 MySQL-ndb-management-5.0.22-0.glibc23 mysql-server-5.0.22-1.FC5.1 MySQL-ndb-storage-5.0.22-0.glibc23
I'm using the following hostnames (defined in /etc/hosts)
db_mgr, ndb1, ndb2, mysql1, mysql2, mysql3
I have this in /etc/my.cnf in each of the ndb* and mysql* servers:
[MYSQLD] ndbcluster # run NDB engine ndb-connectstring=db_mgr # location of MGM node
# Options for ndbd process: [MYSQL_CLUSTER] ndb-connectstring=db_mgr # location of MGM node
In the db_mgr node I have the following config.ini:
[NDBD DEFAULT] NoOfReplicas= 2 DataDir= /var/lib/mysql-cluster
[NDB_MGMD] Hostname= db_mgr DataDir= /var/lib/mysql-cluster
[NDBD] HostName= ndb1
[NDBD] HostName= ndb2
[MYSQLD] HostName= mysql1 [MYSQLD] HostName= mysql2 [MYSQLD] HostName= mysql3
I have run ndb_mgmd on db_mgr, and ran ndbd on the ndb nodes.
But when I attempt to startup mysqld on the mysql nodes, I get the following:
# /etc/init.d/mysqld start Timeout error occurred trying to start MySQL Daemon. Starting MySQL: [FAILED]
The mysqld.log shows: 060731 13:23:55 mysqld started 060731 13:23:55 [ERROR] /usr/libexec/mysqld: unknown variable 'ndb-connectstring=db_mgr'
060731 13:23:55 mysqld ended
Even though I do have mysqld-max installed, I can only guess that the initscript is attempting to run mysqld and not mysqld-max.
If I run mysqld-max -u mysql & I get this:
# mysqld-max -u mysql & [1] 13643 [root@mysql3 ~]# 060731 13:25:43 InnoDB: Started; log sequence number 0 43655
[root@mysql3 ~]# 060731 13:25:54 [Note] mysqld-max: ready for connections. Version: '5.0.22-max' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Edition - Experimental (GPL)
which _seems_ to be running ok... but I don't see the mysql node as connected to the management node:
[mysqld(API)] 3 node(s) id=4 (not connected, accepting connect from mysql1) id=5 (not connected, accepting connect from mysql2) id=6 (not connected, accepting connect from mysql3)
The mysql console does show ndbcluster as a supported engine, do I need to do something else to get the mysql node to register with the management node?
Thanks Ricardo
Are you using hostnames or IP addresses? Try using IP addresses, or just use empty [MYSQLD] sections in the config.ini so the SQL nodes can connect from any address, and see what happens.
-- Jon Stephens - jo...@mysql.com Technical Writer - MySQL Documentation Team Brisbane, Australia (GMT +10.00) Office: +61 (7) 3209 1394 Mobile: +61 402 635 784 MySQL AB: www.mysql.com




