Q: Adding nodes to an Mnesia db - the best way?

Sean Hinde <>
Fri Jul 13 19:13:57 CEST 2001


> Hello!
> 
> You do not mention that you start the new node (the one you 
> intend to add)
> using extra_db_nodes:
> 
> shell> erl -mnesia extra_db_nodes NodeList -name/-sname XX

This can also be done with:

1. Start mnesia on new node with mnesia:start(). Thus creating a ram schema.

2. On the same new node do 

mnesia:change_config(extra_db_nodes, []).

This should return {ok, []} if successful.

3. Again on the new node do 

mnesia:change_table_copy_type(schema, node(), disc_copies).

Rgds,
Sean



NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.




More information about the erlang-questions mailing list