<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3429" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=421245411-17112008></SPAN><FONT
face=Arial><FONT color=#0000ff><FONT size=2>O<SPAN class=421245411-17112008>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
class=421245411-17112008></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#ff00ff size=2><SPAN
class=421245411-17112008>-module(test).</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#ff00ff size=2>-record(test, {id,
name}).</FONT></DIV>
<DIV><FONT face=Arial color=#ff00ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#ff00ff size=2>test() -><BR>
mnesia:create_table(test, [{attributes, record_info(fields, test)},
{disc_copies, ['dan@<SPAN
class=421245411-17112008>localhost</SPAN>']}]).</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=421245411-17112008><FONT face=Arial color=#0000ff size=2>I then
create two local nodes on the same machine and start up Mnesia on
each.</FONT></SPAN></DIV>
<DIV><SPAN class=421245411-17112008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=421245411-17112008><FONT face=Arial color=#0000ff 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 class=421245411-17112008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=421245411-17112008><FONT face=Arial color=#0000ff 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 class=421245411-17112008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=421245411-17112008><FONT face=Arial color=#ff00ff
size=2>{aborted,{not_active,test,dan@localhost}}</FONT></SPAN></DIV>
<DIV><SPAN class=421245411-17112008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=421245411-17112008><FONT face=Arial color=#0000ff size=2>Have I
missed a step here perhaps?</FONT></SPAN></DIV>
<DIV><SPAN class=421245411-17112008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=421245411-17112008><FONT face=Arial color=#0000ff
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=421245411-17112008><FONT face=Arial color=#0000ff
size=2>Dan</FONT></SPAN></DIV><!--eMS5.0.5.D17M.11Y.2008-->
<DIV> </DIV><FONT face=Arial color=#0000ff size=2></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Chandru
[mailto:chandrashekhar.mullaparthi@gmail.com] <BR><B>Sent:</B> 17 November 2008
11:13<BR><B>To:</B> RUBINO, Dana, GBM<BR><B>Cc:</B>
erlang-questions@erlang.org<BR><B>Subject:</B> Re: [erlang-questions] Mnesia
table replication<BR></FONT><BR></DIV>
<DIV></DIV>Hi Dan,<BR><BR>
<DIV class=gmail_quote>2008/11/17 <SPAN dir=ltr><<A
href="mailto:Dana.RUBINO@rbs.com">Dana.RUBINO@rbs.com</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV><SPAN><FONT face=Arial size=2>Hi all,</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Arial size=2>Is it possible to have two nodes with each
node containing a RAM copy AND and DISK copy?</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Arial size=2>I am thinking a command such
as:</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Arial size=2>mnesia:create_table(xyz, [Attrs,
</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial
size=2>
{disc_copies, [nodeA, nodeB]},</FONT></SPAN></DIV>
<DIV><SPAN>
<FONT face=Arial size=2>{ram_copies, [nodeA, nodeB]}</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial
size=2>
]).</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN><FONT face=Arial size=2>Would this
work?</FONT></SPAN></DIV></DIV></BLOCKQUOTE>
<DIV><BR>There is no need to do that. A copy of disc_copies table is also stored
in RAM.<BR> <BR></DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV><SPAN><FONT face=Arial size=2></FONT></SPAN></DIV>
<DIV><SPAN></SPAN></DIV>
<DIV><SPAN><FONT face=Arial size=2>Also, is there a way to verify which tables
are being accessed i.e. through tv?</FONT></SPAN></DIV></DIV></BLOCKQUOTE>
<DIV><BR>I don't think so. Out of curiosity, why would you want to do that?
<BR></DIV></DIV><BR>cheers<BR>Chandru<BR><pre>
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorised and regulated by the Financial Services Authority
This e-mail message is confidential and for use by the
addressee only. If the message is received by anyone other
than the addressee, please return the message to the sender
by replying to it and then delete the message from your
computer. Internet e-mails are not necessarily secure. The
Royal Bank of Scotland plc does not accept responsibility for
changes made to this message after it was sent.
Whilst all reasonable care has been taken to avoid the
transmission of viruses, it is the responsibility of the recipient to
ensure that the onward transmission, opening or use of this
message and any attachments will not adversely affect its
systems or data. No responsibility is accepted by The
Royal Bank of Scotland plc in this regard and the recipient should carry
out such virus and other checks as it considers appropriate.
Visit our websites at:
www.rbs.com
www.rbs.com/gbm
www.rbsgc.com
***********************************************************************************
</pre></BODY></HTML>