Page 1 of 1
¿Problem with purge filter?
Posted: Fri Jul 25, 2008 7:24 am
by raul_denia
Hi.
I have a problem with the purge filter. I configured it to purge all events when disk percent is greater that 50%.
The problem is that the filter start to delete events but it delete more events than necessary.
i.e. I configured the filter for when the disk is to 50% start delete events limit to 1 event, when the disk is 50% the filter start to delete events and it finally deleting events when the disk is to 42%.
Is it normally?
Thanks.
Posted: Fri Jul 25, 2008 7:57 am
by cordel
Depends on how you have ZM_OPT_FAST_DELETE, ZM_FILTER_EXECUTE_INTERVAL, ZM_AUDIT_CHECK_INTERVAL, and ZM_RUN_AUDIT configured
If you use fast delete, then you're depending on zmaudit to clean the hard drive. If the filter runs every 120 seconds and zmaudit runs every 600, that means that zmfilter will have run 5 times with the drive at or over the drive percentage you specified meaning that 5 events will be marked for deletion before the deletion actually occurs.
If you uncheck ZM_OPT_FAST_DELETE then the event(s) as you specified to be selected will be removed each time the filter runs until it is under the percentage you have put for the filter.
So depending on your settings, yes this might be expected.
Posted: Fri Jul 25, 2008 8:03 am
by raul_denia
Thanks.
I have ZM_OPT_FAT_DELETE disable and ZM_RUN_AUDIT enable.
Any suggestion for that problem?
Thanks
Posted: Fri Jul 25, 2008 8:06 am
by cordel
How big is your drive, and how much space does one of your events take?
Posted: Fri Jul 25, 2008 8:13 am
by raul_denia
Hi.
My disk is 8gb, its a virtual machine run over VMWARE.
One event takes a 3MB of space.
Any suggestion?
Posted: Fri Jul 25, 2008 8:23 am
by cordel
What do your logs say is happening?
should show how often each service is running and what they are doing.
Posted: Fri Jul 25, 2008 8:31 am
by jameswilson
if you are limiting the filter to 1 event every run then i cant see why its deleting more, are you sure you have this limit set?
Also try disabling fast delete this will make the purge flter do the deleting, its possible that purge is getting way ahead of zmaudit.
Posted: Fri Jul 25, 2008 9:08 am
by cordel
Have you restarted ZM since making those settings?
Posted: Fri Jul 25, 2008 10:56 am
by raul_denia
Hi.
Yes, I restart zoneminder.
But now it works fine, i create a filter that purge when disk is equal o greater than 37% and it seems that works fine, the disk always stay around 37%.
Thanks
Posted: Fri Jul 25, 2008 5:29 pm
by coke
This doesn't solve your purge-when-full filter issue, but 8gb? You can find an external esata, firewire, usb 2 drive, etc. A quick glance at newegg.com shows an external 500 gig for $108, and a tererabyte for $179.99 (after $30 rebate).
Even at low frame rates, low resolution, you're not going to get a lot out of 8 gigs.
raul_denia wrote:Hi.
My disk is 8gb, its a virtual machine run over VMWARE.
One event takes a 3MB of space.
Any suggestion?