Deleting mnesia tables
Hakan Mattsson
<
>
Fri Sep 6 14:48:43 CEST 2002
On Fri, 6 Sep 2002, Sean Hinde wrote:
Sean> Anyone know an easy way to delete a table which one node thinks exists both
Sean> on itself and on another node, while the other node is down (please don't
Sean> ask!)?
You need to remove the other node from the schema before you can delete the table:
(
)8> mnesia:create_table(t, [{disc_copies, [
,
]}]).
{atomic,ok}
(
)9> rpc:call(
, mnesia, stop, []).
stopped
(
)10> mnesia:delete_table(t).
{aborted,{not_active,"All replicas on diskfull nodes are not active yet",
t,
[
]}}
(
)11> mnesia:del_table_copy(schema,
).
{atomic,ok}
(
)12> mnesia:delete_table(t).
{atomic,ok}
(
)13>
/Håkan
More information about the erlang-questions
mailing list