2008/11/17 <span dir="ltr"><<a href="mailto:Dana.RUBINO@rbs.com">Dana.RUBINO@rbs.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span></span><font face="Arial"><font color="#0000ff"><font size="2">O<span>k I
have given it a go with a test table as such:</span></font></font></font></div>
<div><font face="Arial"><font color="#0000ff"><font size="2"><span></span></font></font></font> </div>
<div><font face="Arial"><font color="#ff00ff" size="2"><span>-module(test).</span></font></font></div>
<div><font color="#ff00ff" face="Arial" size="2">-record(test, {id,
name}).</font></div>
<div><font color="#ff00ff" face="Arial" size="2"></font> </div>
<div><font color="#ff00ff" face="Arial" size="2">test() -><br>
mnesia:create_table(test, [{attributes, record_info(fields, test)},
{disc_copies, ['dan@<span>localhost</span>']}]).</font></div>
<div><font color="#0000ff" face="Arial" size="2"></font> </div>
<div><font color="#0000ff" face="Arial" size="2"></font> </div>
<div><span><font color="#0000ff" face="Arial" size="2">I then
create two local nodes on the same machine and start up Mnesia on
each.</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">When
looking at each node via the appmon I can see Mnesia has started - I can also
ping one node from another.</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">When
however I run the test method on one node expecting it to create a replica on
the other I get the following error:</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#ff00ff" face="Arial" size="2">{aborted,{not_active,test,dan@localhost}}</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">Have I
missed a step here perhaps?</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div></div></blockquote></div><br>Is the schema shared across both the nodes? What does mnesia:system_info(db_nodes) return?<br><br>Chandru<br><br>