PurgeWhenFull with External Storage

Forum for questions and support relating to the 1.29.x releases only.
Locked
janw
Posts: 9
Joined: Thu Mar 24, 2016 12:30 pm

PurgeWhenFull with External Storage

Post 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!
janw
Posts: 9
Joined: Thu Mar 24, 2016 12:30 pm

Re: PurgeWhenFull with External Storage

Post 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?
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: PurgeWhenFull with External Storage

Post by iconnor »

Yeah the purgewhenfull uses df to find out if the fs is full. It does not look at quotas.
Locked