[erlang-questions] Simple question about nodes distribution

Alexander Lamb alexander.lamb@REDACTED
Thu May 22 09:51:47 CEST 2008


Hello list,

Starting to experiment with multiple nodes (and Mnesia) and already  
stumbling on something:

If I start a node like this:

erl -mnesia -setcookie rodanotech -name alex@REDACTED

then a second node like this:

erl -mnesia -setcookie rodanotech -name alex2@REDACTED

Why, when I ask for nodes() on either system, does it answer with an  
empty list.

I experimented further with mnesia. I have a schema on node alex. I  
start mnesia.
Then, on node alex2 I create a mnesia schema and start mnesia.
Then from the node where Mnesia is running with existing tables I try:

mnesia:add_table_copy(schema,'alex2@REDACTED',disc_copies).

but it fails with: {aborted,{badarg,schema,disc_copies}}

so I try:

mnesia:add_table_copy(profiles,'alex2@REDACTED',disc_copies).

But it also fails this time with: {aborted, 
{not_active,schema,alex2@REDACTED}}

I must be getting something wrong initially...

Thanks for any hints,

Alex




More information about the erlang-questions mailing list