[erlang-questions] Mnesia table replication
Chandru
chandrashekhar.mullaparthi@REDACTED
Mon Nov 17 13:07:22 CET 2008
2008/11/17 <Dana.RUBINO@REDACTED>
> Ok I have given it a go with a test table as such:
>
> -module(test).
> -record(test, {id, name}).
>
> test() ->
> mnesia:create_table(test, [{attributes, record_info(fields, test)},
> {disc_copies, ['dan@REDACTED']}]).
>
>
> I then create two local nodes on the same machine and start up Mnesia on
> each.
>
> When looking at each node via the appmon I can see Mnesia has started - I
> can also ping one node from another.
>
> When however I run the test method on one node expecting it to create a
> replica on the other I get the following error:
>
> {aborted,{not_active,test,dan@REDACTED}}
>
> Have I missed a step here perhaps?
>
>
Is the schema shared across both the nodes? What does
mnesia:system_info(db_nodes) return?
Chandru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081117/a02282e8/attachment.htm>
More information about the erlang-questions
mailing list