Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
557 views
in Technique[技术] by (71.8m points)

erlang - Remove not_exist_already node from mnesia cluster(scheme)

I have a bad node (it doesn't exist) in the mnesia cluster data when I get:

> mnesia:system_info(db_nodes)
[bad@node, ...]

How do I remove it from the cluster?

I tried:

> mnesia:del_table_copy(scheme, bad@node).
{aborted,{not_active,"All replicas on diskfull nodes are not active yet"...

What does this mean? How can I fix it?

Update. Before remove node from schema we need to stop mnesia on it

question from:https://stackoverflow.com/questions/3702201/remove-not-exist-already-node-from-mnesia-clusterscheme

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I had a similar problem years ago. What you are trying to do is remove an offline node, which as far as I am aware was impossible in earlier versions of mnesia.

You can however connect to the cluster using a dummy node named bad@node, and started with a tweaked system.config of the original clustered node. Once its online remove from the cluster.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...