<div dir="ltr"><div>Hello all,</div><div><br></div>I have a requirement to remove a running node from an mnesia cluster. This is a legitimate node that needs to have some maintenance performed. However, we want to keep this node running and servicing requests. I found this post. Which helps remove it from the additional nodes. However, once you re-start mnesia on the orphan node, it returns to the other nodes in the cluster.<br>
<br>From each of the non-orphan nodes, I run a script that does the following:<br><br>    rpc:call('node_to_be_orphaned', mnesia, stop, []),<br>    mnesia:del_table_copy(schema, 'node_to_be_orphaned'),<br>
<br>^^ At this point mnesia:system_info(db_nodes) shows that the node has indeed been removed.    <br><br>    rpc:call('node_to_be_orphaned', mnesia, start, []),<br><br>Now it's back. Ugh!<br><br>So, I then tried to flip it and remove the other nodes from the orphan first adding the following.<br>
<br>    rpc:call(ThisNode, mnesia, stop, []),<br>    rpc:call('node_to_be_orphaned', mnesia, del_table_copy, [schema, node()]),<br>    rpc:call(ThisNode, mnesia, start, []),<br><br>This just creates a loop with no difference.<br>
<br>Is there a way to take a node out of mnesia clustering while leaving it up-and-running?<br><br>Any and all guidance is greatly appreciated.<div><br></div><div>Best.</div></div>