Hi,
the first time you start up the cluster you should perform an initial
system start by using the -i switch to ndbd.
> ndbd -i
This will create the system files etc. on both nodes. Kind of lika a
bootstrap for NDB.
NOTE: Only do this the first time, since it erases all your data in the
database.
Best regards
Magnus
On Thu, 2004-08-12 at 02:54, Nick Gerakines wrote:
> After a lot of reading I've got a basic configuration with 2 nodes. One
> mgmt/api and one DBN. When trying to add a second dbn I get an odd
> message when trying to start up the actual node. Anyone see what I'm
> doing wrong?
> ~ Nick
>
> --- config.ini ---
> [COMPUTER]
> Id:1
> HostName: 64.220.154.40
>
> [COMPUTER]
> Id:2
> HostName: 64.220.154.43
>
> [COMPUTER]
> Id:3
> HostName: 64.220.154.44
>
> [MGM]
> Id:1
> ExecuteOnComputer: 1
>
> [DB]
> Id: 2
> NoOfReplicas: 1
> ExecuteOnComputer: 2
> FileSystemPath: /root/ndb_data
>
> [DB]
> Id: 3
> NoOfReplicas: 1
> ExecuteOnComputer: 3
> FileSystemPath: /root/ndb_data
>
> [API]
> Id: 4
> ExecuteOnComputer: 1
>
> [TCP DEFAULT]
> PortNumber: 10002
>
> [TCP]
> NodeId1: 1
> NodeId2: 2
>
> [TCP]
> NodeId1: 2
> NodeId2: 4
>
> [TCP]
> NodeId1: 1
> NodeId2: 3
>
> [TCP]
> NodeId1: 3
> NodeId2: 4
> --- end config.ini ---
>
> Node 2 starts up with this and works fine.
> /usr/local/mysql/libexec/ndbd -c "nodeid=2;host=64.220.154.40:2200"
>
> Node 3 starts with this:
> /usr/local/mysql/libexec/ndbd -c "nodeid=3;host=64.220.154.40:2200"
> but outputs this:
> 2004-08-11 20:47:32 [NDB] INFO -- Angel pid: 20480 ndb pid: 20481
> 2004-08-11 20:47:32 [NDB] INFO -- NDB Cluster -- DB node 3
> 2004-08-11 20:47:32 [NDB] INFO -- Version 3.5.0 (beta) --
> 2004-08-11 20:47:32 [NDB] INFO -- Start initiated (version 3.5.0)
> Error handler shutting down system
> Error handler shutdown completed - exiting
>
> In the directory I get the follow files:
> ndb_3_error.log ndb_3_trace.log.1 ndb_3_trace.log.next
>
> The error in .log is:
> ----
> Date/Time: Wednesday 11 August 2004 - 06:50:33
> Type of error: error
> Message: Internal program error (failed ndbrequire)
> Fault ID: 2341
> Problem data: DbdihMain.cpp
> Object of reference: DBDIH (Line: 1523) 0x00000002
> ProgramName: NDB Kernel
> ProcessID: 11088
> TraceFile: ndb_3_trace.log.1
> ***EOM***
> ----
--
Magnus Svensson, Software Engineer
MySQL AB, www.mysql.com
Office: +46 709 164 491