[erlang-questions] mnesia crashing in mnesia_log:add_recs

Dan Gudmundsson dgud@REDACTED
Wed Dec 21 16:12:27 CET 2011


Sounds like a good time to restart from the backup?

If you have another node running with an active copy of the table, you
can just delete the file schedule.dcl
and restart, mnesia will pick up the data anyway from the running node.

/Dan

On Wed, Dec 21, 2011 at 4:00 PM, Anders Nygren <anders.nygren@REDACTED> wrote:
> Hi
> We have a system that crashed because it ran out of diskspace. After
> after removing some
> files we are not able to start it again. Mnesia keeps crashing with
> the errors shown below.
>
> Any advice on how to get out of this?
>
> /Anders
>
> Red Hat Enterprise Linux Server release 6.1 (Santiago)
>
> Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:8:8] [rq:8]
> [async-threads:0] [hipe] [kernel-poll:false]
> mnesia 4.4.19
>
> Mnesia(lnp@REDACTED): {load_dcl,schedule} repaired, lost 82 bad bytes
>
> =ERROR REPORT==== 21-Dec-2011::09:51:19 ===
> Error in process <0.179.0> on node 'lnp@REDACTED' with exit value:
> {function_clause,[{mnesia_log
> ,add_recs,[[{{schedule,{{2011,12,21},{11,11,0}}},{schedule,{{2011,12,21},{11,11,0}}},'\000\000
> \000PbW'},{{schedule,{{2011,12,21},{11,12,0}}},{schedule,{{2011,12,21},{11,12,0}},undefined},w
> rite},{{schedule,{{2011,12,21},{11,12,0}}},{schedule,{{2011,12,21},{11,12,0}}},delete},{{sched
> ule,{...
>
>
> =ERROR REPORT==== 21-Dec-2011::09:51:23 ===
> Mnesia(lnp@REDACTED): ** ERROR ** (core dumped to file:
> "/opt/lnp/bin/MnesiaCore.lnp@REDACTED
> _479083_327855")
>  ** FATAL ** Loader crashed: {function_clause,
>                              [{mnesia_log,add_recs,
>                                [[{{schedule,{{2011,12,21},{11,11,0}}},
>                                   {schedule,{{2011,12,21},{11,11,0}}},
>                                   '\000\000\000PbW'},
>                                  {{schedule,{{2011,12,21},{11,12,0}}},
>                                   {schedule,
>                                    {{2011,12,21},{11,12,0}},
>                                    undefined},
>                                   write},
>                                  {{schedule,{{2011,12,21},{11,12,0}}},
>                                   {schedule,{{2011,12,21},{11,12,0}}},
>                                   delete},
>                                  {{schedule,{{2011,12,21},{11,13,0}}},
>                                   {schedule,
>                                    {{2011,12,21},{11,13,0}},
>                                    undefined},
>                                   write}],
>                                 42]},
>                               {mnesia_log,insert_logchunk,3},
>                               {mnesia_log,load_dcl,2},
>                               {mnesia_loader,do_get_disc_copy2,4},
>                               {mnesia_controller,disc_load_table,3},
>                               {mnesia_controller,'-load_and_reply/2-fun-0-',
>                                2}]}
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list