Today on of my Asterisk Servers got disconnected from power by mistake. When it came up again, the /var/lib/asterisk/astdb.sqlite3 was corrupted. Asterisk could not commit anything into the database which lead to a very unstable situation since it also could not save registration AORs an things like that.
I stopped asterisk, deleted the astdb and started it again and everything was fine again. Since I don’t use astdb for storing anything by myself I was thinking about adding a “rm -rf /var/lib/asterisk/astdb.sqlite3” to my boot sequence before asterisk starts. Just to be sure something like this won’t happen again.
Does anyone think that this could have any drawbacks?