Bercovici Adrian
Bercovici Adrian

Reputation: 9360

How to add mnesia node to existing cluster

I have mnesia installed on a node a. I have already defined a schema and a table. Now i do not know how can i add another node b so that mnesia now can run distributed.

By distributed i mean :

What i have tried:

Then

I just want any operation i do upon mnesia of a given node to be reflected on the others

Upvotes: 2

Views: 176

Answers (1)

legoscia
legoscia

Reputation: 41528

nodes() already returns a list, so there is no need to wrap the return value in a list. Try this:

mnesia:change_config(extra_db_nodes,nodes()).

Upvotes: 2

Related Questions