|
User
Joined: 24 Dec 2009
Posts: 10
Location: New Jersey, U.S.A.
|
I can't get mnesia:change_config to work across my network. Nodes a & b in the example below are on the same computer (T110), and things work as expected. But if I try the change_config call from a node on a different computer (WS420), I get an error. Does anyone know how I can get this to work across the network?
pm@T110:~/test/mnesia2$ erl -sname a
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.8.4 (abort with ^G)
(a@T110)1> mnesia:create_schema ([node()]).
ok
(a@T110)2> mnesia:start().
ok
(a@T110)3>
pm@T110:~$ erl -sname b
Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.8.4 (abort with ^G)
(b@T110)1> mnesia:start().
ok
(b@T110)2> mnesia:change_config (extra_db_nodes, [a@T110]).
{ok,[a@T110]}
(b@T110)3>
pm@WS420:~$ erl -sname c
Erlang R14B02 (erts-5.8.3) [source] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]
Eshell V5.8.3 (abort with ^G)
(c@WS420)1> net_adm:ping (a@T110).
pong
(c@WS420)2> mnesia:start().
ok
(c@WS420)3> mnesia:change_config (extra_db_nodes, [a@T110]).
{error,
{aborted,
{function_clause,
[{mnesia_schema,cs2list,
[{cstruct,schema,set,
[b@T110],
[a@T110],
[],0,read_write,false,[],[],false,schema,
[table,cstruct],
[],[],
{{...},...},
{...}}]},
{mnesia_schema,do_merge_schema,1},
{mnesia_tm,apply_fun,3},
{mnesia_tm,execute_transaction,5},
{mnesia_schema,schema_coordinator,3}]}}}
(c@WS420)4> |
|
|