Clustering ejabberd with mnesia db on solaris fails

I want to create a cluster of 2 ejabberd instances with mnesia db's. Both instances run on OpenSolaris

I have followed the guide of the official ejabberd-site (http://www.process-one.net/en/ejabberd/guide_en#htoc79) without success.
I always get the first node as stopped db node.

This is the last thing i tried:

I'm in my db-directory of on node2 (var/lib/ejabberd), I copied ".erlang.cookie" from node1 (from var/lib/ejabberd) into this directory.
then I execute:

erl -sname ejabberd@node2 -mnesia extra_db_nodes "['ejabberd@node1']" -s mnesia

Then I get this message when issuing the command mnesia:info().

opt_disc. Directory "/opt/ejabberd-2.0.5/var/lib/ejabberd/Mnesia.ejabberd@node2" is NOT used.
use fallback at restart = false
running db nodes   = [ejabberd@node2]
stopped db nodes   = [ejabberd@node1]
ok

Can somebody help me out with this issue

Via erl net_adm:ping(nodename) I have connection between the nodes!

resolved

I finally managed to get it working, apparently there was sth wrong with the location of the cookie.
But since I found that there's too much information on the net which is not accurate enough, I decided to blog about clustering ejabberd nodes.

I've added a link to your

I've added a link to your blog post in the Tutorials page.

Syndicate content