Try the -eval
argument for erl:
erl -name NODE1 -mnesia extra_db_nodes "['MASTER']" -eval 'mnesia:start(), mnesia:change_table_copy_type(schema, node(), disc_copies), init:stop()'
That might need an mnesia:wait_for_tables
in there somewhere to ensure that it has time to join the cluster before doing the change_table_copy_type
.
archaelus
2009-09-19 01:43:29