After clustering Ejabber not work?

hi guys
i am new to ejabber.I have clusterd my ejabber nodes.But it won't Work ?
pls help me.i Wrote below about my installation.

node1
************
1)change the ejabberdctl file in bin directory

HOST=chd1test1.xyz.com(12th line)

here
chd1test1 --------machine name
xyz-----------domain name

2)change the ejabberdctl.cfg file in conf directory

ERLANG_NODE=ejabberd@chd1test1.xyz.com(Last line)

these are the changes in the node1

node2
*************

1)change the ejabberdctl file in bin directory

HOST=chd1test2.xyz.com

here
chd1test2 --------machine name
xyz-----------domain name

2)change the ejabberdctl.cfg file in conf directory

ERLANG_NODE=ejabberd@chd1test2.xyz.com

3)then execute the following command in command line:

C:\Program Files\ejabberd-2.1.3\bin>erl -name ejabberd -mnesia extra_db_nodes "[
'ejabberd@chd1test1.xyz.com']" -s mnesia
Eshell V5.6.4 (abort with ^G)
(ejabberd@chd1test2.xyz.com)1> mnesia:change_table_copy_type(schema, no
de(), disc_copies).
{atomic,ok}
(ejabberd@chd1test2.xyz.com)2>mnesia:info().

4)then i execute the mnesia:info(). It run all the table and create Mnesia.ejabberd@chd1test2.xyz.com directory in BIN folder.

5)After i renamed that directory as ejabberd@chd1test2.xyz.com then move to the C:\Program Files\ejabberd-2.1.3\database Directory.
Then start the ejabber.It work properly.Also i am able to view the first machine node in the second machine admin-web page

But The cluster will not work properly.pls tell any change i will do to in that to work cluster.

bablop pls help

Any one help me really appriciate

regards,
alagar.

Syndicate content