Home > DeveloperSection > Forums > How to remove node from node group in Erlang?
Ashish Pandey

Total Post:128

Posted on    March-21-2016 12:21 AM

 erlang erlang 

 1 Reply(s)
 488  View(s)
Rate this:

I am new in Erlang programming. My problem is how can I remove a particular node from the nodes group. The node I want to remove is replicating their data through Mnesia.
So please tell me how can I remove a node that still preserve the inserted data.
Thanks in advance.

Tarun Kumar

Total Post:214

Posted on    March-22-2016 1:21 AM

To remove paricular node from the node list. Follow the steps:
* First of all, login to the cluster that you want to remove.
* after that stop mnesia database:
  > mnesia: stop().
* after that login from another node on the cluster.
* now, you can delete the schema:
  > mnesia:del_table_copy(schema, nameOfNode@hostName.domainName).
That's it.
I hope above steps will be helpful for you.

Modified On Mar-22-2016 01:22:04 AM

Don't want to miss updates? Please click the below button!

Follow MindStick