Problem with cluster

Hi
I have a problem setting up a cluster of 2 nodes, I've installed the 2 nodes from Binary and folowed the cluster configuration for the database.

I have 2 nodes linux5 and linux6
if i run on linux6 the command:
erl -sname ejabberd -mnesia extra_db_nodes "['ejabberd@linux5']"
in the webadmin of linux5 i can see the second node
but when i try to start linux6 with the regular ./start script
i can't see the second node anymore

what am i'm missing do i need to change something in the startup scripts ?

Did you follow steps 3 and 4

Did you follow steps 3 and 4 to duplicate Mnesia tables on both nodes? Once Mnesia is aware of that, I think ejabberd will automatically setup the cluster when you start each node, so no need to edit start scripts.

Cluster

Yes
I found the problem it looks like the clusterd database was created under the /bin/ejabberd@linux6 folder
how do i tell it to be created under /database/ folder ?

-mnesia dir

Gonen wrote:

how do i tell it to be created under /database/ folder ?

Use the option 'mnesia dir'. Something like this:

erl
 ...
 -mnesia dir "\"/path/to/database\""
Syndicate content