<div>I've seen examples of 2 node clusters but I want to be sure I'm setting up my 3 node cluster correctly.</div><div>I've set up my first node and when adding the 2nd and 3rd, I use the following</div><div><br>
</div><div>on server 2</div><div>./erl -name <a href="mailto:ejabberd@test02.server.com">ejabberd@test02.server.com</a> -mnesia extra_db_nodes "['<a href="mailto:ejabberd@test01.server.com">ejabberd@test01.server.com</a>']" -s mnesia -setcookie ../conf/.erlang.cookie</div>
<div><br></div><div>mnesia:change_table_copy_type(schema, node(), disc_copies).</div><div><br></div><div>on server 3</div><div>./erl -name <a href="mailto:ejabberd@test03.server.com">ejabberd@test03.server.com</a> -mnesia extra_db_nodes "['<a href="mailto:ejabberd@test01.server.com">ejabberd@test01.server.com</a>']" -s mnesia -setcookie ../conf/.erlang.cookie</div>
<div><br></div><div>mnesia:change_table_copy_type(schema, node(), disc_copies).</div><div><br></div><div>Is the above correct?</div><div><br></div><div>I'm getting erratic results when stopping and starting the nodes.</div>
<div>If 1 / 2 and 3 are up, I can stop and start nodes 2 and 3 and they rejoin the cluster.</div><div>If I restart 1, it doesn't get back in the cluster. I need to restart 1 and then restart 2 and 3.</div><div><br></div>
<div>Are the change_table_copy lines correct?</div><div><br></div><div>How can I wipe all entries to start from scratch?</div><div><br></div><div>I've succesfully removed on node, but when I try to remove the 3rd node, I'm entering the following from test02.</div>
<div><br></div><div><div>mnesia:del_table_copy(schema,'<a href="mailto:ejabberd@test03.server.com">ejabberd@test03.server.com</a>').</div></div><div><div>but I get the following error.</div><div>{aborted,{no_exists,mod_register_ip}}</div>
</div><div><br></div><div>Is there a way to force the removal of the node?</div><div><br></div>