title: how to set up ejabberd cluster?
body: <p>I am using 2 ec2 instances on which ejabberd 13.12 is installed . I am following  <a href="http://www.process-one.net/docs/ejabberd/guide_en.html" rel="nofollow">this guide</a> for setting up cluster. On Second node when i run the command -</p>
  
  <pre><code> erl -sname ejabberd \
  
  -mnesia dir '"/var/lib/ejabberd/"' \
  
  -mnesia extra_db_nodes "['ejabberd@first']" \
  
  -s mnesia
  </code></pre>
  
  <p>On First Node error occurs -</p>
  
  <pre><code>Application ejabberd started on node ejabberd@ejabberdn1
  dets: file "/var/lib/ejabberd/schema.DAT" not properly closed, repairing ...
  
  =SUPERVISOR REPORT==== 27-May-2014::07:11:59 ===
   Supervisor: {local,mnesia_kernel_sup}
   Context:    child_terminated
   Reason:     killed
   Offender:   [{pid,&lt;0.152.0&gt;},
                {name,mnesia_locker},
                {mfargs,{mnesia_locker,start,[]}},
                {restart_type,permanent},
                {shutdown,3000},
                {child_type,worker}]
  
  
  =SUPERVISOR REPORT==== 27-May-2014::07:11:59 ===
   Supervisor: {local,mnesia_kernel_sup}
   Context:    shutdown
   Reason:     reached_max_restart_intensity
   Offender:   [{pid,&lt;0.152.0&gt;},
                {name,mnesia_locker},
                {mfargs,{mnesia_locker,start,[]}},
                {restart_type,permanent},
                {shutdown,3000},
                {child_type,worker}]
  </code></pre>
  
  <p>It gives error of mnesia network partitioning on second node. How to resolve this problem?</p>