[erlang-questions] dumping schema on a ram node (was: Re: `mnesia:dump_tables/1' and the schema table)
Dan Gudmundsson
dangud@REDACTED
Thu May 10 13:49:52 CEST 2012
If the schema is not on disc, mnesia never reads the disc at all.
Thus dump_tables will not have any effect either.
Create a backup and restore is your only option.
/Dan
On Thu, May 10, 2012 at 1:09 PM, Francesco Mazzoli
<francesco@REDACTED> wrote:
> OK, I think I have misunderstood the condition for dump_tables to work: "To
> dump the tables to disc all replicas must have the storage type
> ram_copies.". In this case then the check for schema makes sense since there
> must be one disc copy of the schema.
>
> Then my question changes to: is it possible to dump the schema of a ram node
> somewhere so that it will be recovered my mnesia when the node gets
> restarted?
>
> Francesco.
>
> On 10/05/12 11:57, Francesco Mazzoli wrote:
>>
>> Hi,
>>
>> For some reason, `mnesia:dump_tables/1' refuses to dump the schema
>> table:
>>
>> https://github.com/erlang/otp/blob/maint/lib/mnesia/src/mnesia_schema.erl#L2797
>> .
>>
>> 1) Why is this the case?
>> 2) This is not documented, see
>> http://www.erlang.org/doc/man/mnesia.html#dump_tables-1 and
>> http://www.erlang.org/doc/apps/mnesia/Mnesia_chap7.html#id77600
>>
>> Francesco.
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list