purgewhenfull removes all events
Posted: Sat Nov 21, 2015 6:04 pm
I'm very new to ZM, as in a couple weeks. So far I've been able to work through all issues with searching the forums and the wiki and I have all of my cameras working and in modetect mode. However, I've hit an issue I've been unable to resolve.
I have modified the purgewhenfull filter to kick in when the disk gets to 90% full or higher, which it does just fine. I've also set it to limit to the first 10 events ordered with ascending id order as this should get the 10 oldest events. The goal is to keep as many events on disk as possible while not eating up the entire disk. I'd like to see it hover between 85%-90% at all times. I would expect 10 events per run would keep disk usage near 90% at all times.
With no recorded events, my hard disk is at 49% full (it's a small disk, I'm going to add more after I get ZM running how I'd like). When it gets to 90% and the filter kicks in it wipes them all out back down to 49% full. There are usually a couple hundred events when it gets to that point. I would expect the filter to stop running after the disk usage gets to 89% or lower. I have been completely unable to get it to not do that. Looking at the zmfilter log it does in fact delete all of them during the same second.
Is there something I'm not doing correctly? I'm running ZM on CentOS 6.7 with the 1.28.1 version that comes from the ZM yum repository. I have not built it on my own this go round.
I have modified the purgewhenfull filter to kick in when the disk gets to 90% full or higher, which it does just fine. I've also set it to limit to the first 10 events ordered with ascending id order as this should get the 10 oldest events. The goal is to keep as many events on disk as possible while not eating up the entire disk. I'd like to see it hover between 85%-90% at all times. I would expect 10 events per run would keep disk usage near 90% at all times.
With no recorded events, my hard disk is at 49% full (it's a small disk, I'm going to add more after I get ZM running how I'd like). When it gets to 90% and the filter kicks in it wipes them all out back down to 49% full. There are usually a couple hundred events when it gets to that point. I would expect the filter to stop running after the disk usage gets to 89% or lower. I have been completely unable to get it to not do that. Looking at the zmfilter log it does in fact delete all of them during the same second.
Is there something I'm not doing correctly? I'm running ZM on CentOS 6.7 with the 1.28.1 version that comes from the ZM yum repository. I have not built it on my own this go round.