¿Problem with purge filter?

Support and queries relating to all previous versions of ZoneMinder
Locked
raul_denia
Posts: 24
Joined: Thu Jul 17, 2008 9:49 am

¿Problem with purge filter?

Post 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.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
raul_denia
Posts: 24
Joined: Thu Jul 17, 2008 9:49 am

Post by raul_denia »

Thanks.

I have ZM_OPT_FAT_DELETE disable and ZM_RUN_AUDIT enable.

Any suggestion for that problem?

Thanks

Image
Last edited by raul_denia on Fri Jul 25, 2008 8:10 am, edited 1 time in total.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

How big is your drive, and how much space does one of your events take?
raul_denia
Posts: 24
Joined: Thu Jul 17, 2008 9:49 am

Post by raul_denia »

Hi.

My disk is 8gb, its a virtual machine run over VMWARE.

One event takes a 3MB of space.

Any suggestion?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What do your logs say is happening?
should show how often each service is running and what they are doing.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post 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.
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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Have you restarted ZM since making those settings?
raul_denia
Posts: 24
Joined: Thu Jul 17, 2008 9:49 am

Post 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
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post 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?
Locked