help zma has deleted all the db
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
help zma has deleted all the db
I have a system with purge when full set to 70%
it has deleted everything but the images are still on the drive but no db entries. I have looked through the db hoping there was a dleted flag i could just invert but it apears that they have gone completly, obviously zm is tring to remove these images from the drive si have stopped zm for the moment. Can i get the db entries back or are they gone? There has been an incident and the guy is (understandably) hoping mad at the moemnt
James
it has deleted everything but the images are still on the drive but no db entries. I have looked through the db hoping there was a dleted flag i could just invert but it apears that they have gone completly, obviously zm is tring to remove these images from the drive si have stopped zm for the moment. Can i get the db entries back or are they gone? There has been an incident and the guy is (understandably) hoping mad at the moemnt
James
Last edited by jameswilson on Wed Jan 04, 2006 2:22 pm, edited 1 time in total.
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
it appears as thugh the filter funs faster than zm audit can remove the files and as such removes everything until zmaudit catches up or the disk % falls below the filter threshold. Can anything be done to stop this
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
If you have FAST_DELETE set on then the database entries are the only things that are explicitly deleted. The disk images are then tidied up by zmaudit. If you have it switched off then everything gets deleted at the same time.
It sounds like you had fast deletes on but for some reason zmaudit has not cleaned up the images (though this at least might mean that you can get the images back). Is there anything zmaudit.log to suggest why?
Phil
It sounds like you had fast deletes on but for some reason zmaudit has not cleaned up the images (though this at least might mean that you can get the images back). Is there anything zmaudit.log to suggest why?
Phil
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
this is the system that is sersly slow. i will have a look at the log and turn fast delete of sharpish. can i turn it of now while the two things are out of step or will zmaudit still do its thing in the background.
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
there will be its about 800 gig behind now the db has gone its only got footage of this morning left on it now. Is it posible that its generating to much info for zmaudit to clear? because it seems to delete stuff very slowly. It will take 3 or 4 days to catch up now, i know this because this is how long it took last time this happened
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
It's possible. I would advise putting slow query logging on mysql for your next try to check how long some of the DB queries are taking. 800Gb of disk files is a lot and as zmaudit has to scan them to see what there is then it might take a while. If you have fast deletes on then you shouldn't need to run zmaudit more than once or twice a day really if that.
Phil
Phil
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
how do i control zmaudit then
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
sample from zmaudit log and its all like that apart from entries about found monitor x and xxxx events01/04/06 19:04:55.681602 zmaudit_d900_y[13125].INF [deleting]
01/04/06 19:05:31.124716 zmaudit_d900_y[13125].INF [Filesystem event '18/206677' does not exist in database]
01/04/06 19:05:31.124916 zmaudit_d900_y[13125].INF [deleting]
01/04/06 19:05:47.577996 zmaudit_d900_y[13125].INF [Filesystem event '18/187907' does not exist in database]
01/04/06 19:05:50.131437 zmaudit_d900_y[13125].INF [deleting]
01/04/06 19:06:32.128802 zmaudit_d900_y[13125].INF [Filesystem event '18/205923' does not exist in database]
01/04/06 19:06:32.129034 zmaudit_d900_y[13125].INF [deleting]
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
oh ok.
Ill do that myadmin thing and report back
cheers phil (again lol)
James
Ill do that myadmin thing and report back
cheers phil (again lol)
James
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
This slightly worrying thing about this log is that it's taking up to 40 seconds to delete an event from disk. This means that either (a) the events is very big or (b) the disk is very slow, maybe due to other activity . On my box here it can get through several a second, though they may be nowhere near as long as the ones you have.jameswilson wrote:sample from zmaudit log and its all like that apart from entries about found monitor x and xxxx events01/04/06 19:04:55.681602 zmaudit_d900_y[13125].INF [deleting]
01/04/06 19:05:31.124716 zmaudit_d900_y[13125].INF [Filesystem event '18/206677' does not exist in database]
01/04/06 19:05:31.124916 zmaudit_d900_y[13125].INF [deleting]
01/04/06 19:05:47.577996 zmaudit_d900_y[13125].INF [Filesystem event '18/187907' does not exist in database]
01/04/06 19:05:50.131437 zmaudit_d900_y[13125].INF [deleting]
01/04/06 19:06:32.128802 zmaudit_d900_y[13125].INF [Filesystem event '18/205923' does not exist in database]
01/04/06 19:06:32.129034 zmaudit_d900_y[13125].INF [deleting]
Phil
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
well events are 15 mins with approx 700-1000 images per event. 640x480 approx 70k an image. The disk throughput using a benchmark tool someone suggested on here said the array was shifting 800 meg in about 12 seconds. But it could be. Its a software raid array with 4 250 gig drives 2 pata and 2 sata if that makes any odds
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
might be the same system (its the only serious problem i have ever had) and they are on mocord. I need them on mocord really as its on frameskip and id be throwing more images at the disks if i removed the skip and went to record.
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk