How to avoid zm Frames table crashes

Support and queries relating to all previous versions of ZoneMinder
Locked
foreverg
Posts: 25
Joined: Fri Jul 04, 2008 4:16 pm

How to avoid zm Frames table crashes

Post by foreverg »

I have some ZM installation with almost 6 camers each, and several time I noticed that table Frames had a crash and recording was blocked.

This is not a good thing, more if you have attention on this after some weeks.. Is there any workaround for this iusse?
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

Don't reboot during database writes...
foreverg
Posts: 25
Joined: Fri Jul 04, 2008 4:16 pm

Post by foreverg »

sure that's a good thing.. what if is there any unwanted restart?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Then you have to repair the database. I suggest getting a good ups. :wink:
pcb1962
Posts: 1
Joined: Mon Feb 02, 2009 5:24 pm

Post by pcb1962 »

cordel wrote:Then you have to repair the database.
And if you need to repair the database, what is the correct procedure?
I used this command which I found somewhere, is this the best way?

Code: Select all

myisamchk --force --fast --update-state -O key_buffer=64M -O read_buffer=1M -O write_buffer=1M /var/lib/mysql/zm/*.MYI
foreverg
Posts: 25
Joined: Fri Jul 04, 2008 4:16 pm

Post by foreverg »

cordel wrote:Then you have to repair the database. I suggest getting a good ups. :wink:
the strange thing is that all the servers are under UPS :?
Locked