Page 1 of 1

PurgeWhenFull with External Storage

Posted: Wed Apr 06, 2016 6:18 am
by janw
Hello,

I am having trouble with the PurgeWhenFull filter. Is the filter working with Network Shares? I have a CIFS share mounted to /media/zm and the events and images directories mounted to it like so:

Code: Select all

/media/zm/images /var/cache/zoneminder/images none defaults,bind 0 2
/media/zm/events /var/cache/zoneminder/events none defaults,bind 0 2
The CIFS share is on my NAS and the space is limited to 100GB via quota. This seems to work, because when the quota limit is reached, ZoneMinder log says
Can't mkdir events/6/16/04/05/19/40: No space left on device
My problem is that the PurgeWhenFull does not seem to work. Does it only check the local (unix system) disk? Can anyone help figure out why my events are not being purged?

Thanks in advance!

Re: PurgeWhenFull with External Storage

Posted: Wed Apr 06, 2016 7:33 am
by janw
I think this may be a problem with the way I mounted it. I gave the CIFS share a quota of 100GB, but when I execute df-h, the Ubuntu vm sees the whole NAS device capacity:

Filesystem Size Used Avail Use% Mounted on
//IP/sec/zm 2.7T 1.8T 954G 66% /media/zm

Any ideas?

Re: PurgeWhenFull with External Storage

Posted: Thu Apr 07, 2016 12:35 am
by iconnor
Yeah the purgewhenfull uses df to find out if the fs is full. It does not look at quotas.