Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  05 Nov 2026, Konstantin Olchanski, Bug Fix, ODB repair by rm -rf / 
    Reply  05 Nov 2026, Konstantin Olchanski, Bug Fix, ODB repair by rm -rf / 
Message ID: 3289     Entry time: 05 Nov 2026     Reply to this: 3290
Author: Konstantin Olchanski 
Topic: Bug Fix 
Subject: ODB repair by rm -rf / 
after midas crash and odb corruption, midas and odbedit now automatically repair 
all (yea, right!) structural corruption - fix the free list, fix/remove invalid 
subdirectories and data entries, etc.

after this automatic repair, midas user should be able to reload odb from a 
backup json or xml file without having to delete and recreate .ODB.SHM and 
/dev/shm files, etc.

but sometimes odb corruption is too confusing or too corrupted and a backup file 
will not load cleanly.

in this case, delete previous odb contents using the "rm" command (then say "y" 
to delete all keys, this is the equivalent of unix "rm -rf /").

this will delete all odb contents except some for some entries in /system, 
/experiment, /alarms, /logger and /runinfo. some of these entries are delete-
protected, some are watched and some are auto-re-created by al_check() and 
others.

an odb backup file should load cleanly after this.

K.O.
ELOG V3.1.6-083448f7