Page 1 of 1

(solved)Purge when full not working

Posted: Mon Sep 12, 2016 12:36 pm
by velthuizen
When the script purged when full is executed the events are gone but the disk space is still the same, seems only database entry are gone but not the images.

Zoneminder is running on Lubuntu 16.04.1

Re: Purge when full not working

Posted: Mon Sep 12, 2016 3:35 pm
by knight-of-ni
Look for OPT_FAST_DELETE under Options then read the help text associated with it.

HINT: You probably want to turn it off.

Re: Purge when full not working

Posted: Mon Sep 12, 2016 4:58 pm
by mikb
Or just have patience and the problem will have "fixed itself" by tomorrow.

This is such a smart efficiency feature, but it definitely trips up the impatient/eager/didn't read the manual people :)

Re: Purge when full not working

Posted: Mon Sep 12, 2016 5:16 pm
by knight-of-ni
I actually have this set to off for all the ZoneMinder rpms in zmrepo.

We have found the problem with slow deletes is the system can fill the hard drive before the time it takes zmaudit to find the orhpans and delete them from the disk. This tends to happen with modern HD cameras running on a system with relatively small storage space.

Re: Purge when full not working

Posted: Sat Sep 17, 2016 10:56 pm
by racelife
I think this happened with me. I went to make sure that it purged and it won't bring anything up but a blank white page with "Unable to connect to ZM db.SQLSTATE[HY000] [2002] No such file or directory" across the top. any tips on how I can fix that? Like go in the command line and delete some files and it will work fine again, or do I need to start from scratch?

Re: (solved)Purge when full not working

Posted: Sun Sep 18, 2016 6:22 pm
by velthuizen
The problem was a slow computer with a small storage it took awhile before the disk was cleared.

Re: (solved)Purge when full not working

Posted: Wed Sep 28, 2016 8:11 pm
by rockandroller
I have an 8-core 3GHz xeon machine, 18GB RAM, drives are SATA RAID configured for 2 TB total. Running Centos7.
Currently monitor 4 cams, 1920x1080 color @ 4FPS. Between all the cameras together, averaging about 24 events an hour.

Do you think the machine is fast enough for default purging? Or should I back it down from 90% to say, 70% ?
Something of a moot point now, since its up to 88% disk use currently

And if I see an * after the filter, that means it's already active? (I'm having some trouble parsing the docs about that...)

Re: (solved)Purge when full not working

Posted: Wed Sep 28, 2016 8:19 pm
by knight-of-ni
If you are using the zoneminder rpm from zmrepo, then Options -> OPT_FAST_DELETE should be off already. Verify it is off.
For a 2TB volume, you could get a little more usable storage by increasing the threshold to 95%.

Once the disk reaches the threshold, watch the volume over a period of days to make sure the free space stays approximately 5% free. It will vary slightly over time. If it becomes apparent that the filter is not keeping up, then increase the number of results in the filter so it deletes more events at any given time. We can't tell you what this number should be because it depends entirely on the quantity of cameras you have and how they are configured to record.

Re: (solved)Purge when full not working

Posted: Wed Sep 28, 2016 10:09 pm
by rockandroller
Thanks!! I am using zmrepo, but my OPT_FAST_DELETE was set to on. Perhaps it was set that way before the upgrade, I cannot recall offhand.

I have it un-ticked now, though...

Re: (solved)Purge when full not working

Posted: Wed Oct 12, 2016 4:01 pm
by rockandroller
It's been a couple of weeks now, and the free space is still at 89% percent (purge limit set at 90).
I'm guessing that means it's working as designed :-)