PurgeWhenFull not working

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
Andyrh
Posts: 10
Joined: Sat Oct 28, 2017 3:55 am

PurgeWhenFull not working

Post by Andyrh » Fri Mar 29, 2019 3:04 am

After a clean Ubuntu 18.04 install and ZM 1.32.3 install I have filled my data disk. The Purge when full filter returns no results.
I have 2 HDs, 1 OS and programs and 1 Video only. The console page show 3TB (video drive) at 99% and Default at 9%. Testing tends to indicate that those numbers are put together for the purge filter. If I set the filter to 10% it returns results.
Default is not defined and I do not know how to remove it.

Where should I look to either make the Purge work per storage area or to remove Default?

Thank you
ZM2.JPG
ZM2.JPG (52.75 KiB) Viewed 4151 times
Edit:
PurgeWhenFull only returns results when set to 9. It then returns all. There must be a setting somewhere that I missed on the setup.
Capture.JPG
Capture.JPG (62.53 KiB) Viewed 4136 times
Andy
o||||o

bbunge
Posts: 2698
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: PurgeWhenFull not working

Post by bbunge » Fri Mar 29, 2019 9:40 pm

Try 85%

Andyrh
Posts: 10
Joined: Sat Oct 28, 2017 3:55 am

Re: PurgeWhenFull not working

Post by Andyrh » Fri Mar 29, 2019 10:18 pm

It returns 0 until I Set it to 9 then it returns all.
Andy
o||||o

bbunge
Posts: 2698
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: PurgeWhenFull not working

Post by bbunge » Sat Mar 30, 2019 1:06 am

In the past when the disk got too full the system would hang. I had to manually delete a bunch of events to get it working again. I've also found that 95% to start the purge is too much. 85% for a single drive system gives a bit of a cushion to let the system work.

Andyrh
Posts: 10
Joined: Sat Oct 28, 2017 3:55 am

Re: PurgeWhenFull not working

Post by Andyrh » Sat Mar 30, 2019 1:33 am

I wish it was a simple performance problem. The system has an OS drive and a video only drive. My previous install worked well with previous ZM version at 97%. This one does not return any events to delete until I set the percent to 9. For now I am running a purge by date which is just to get by until the fix is found.
I should have mentioned there are only 2 cameras.

Thank you
Andy
o||||o

Andyrh
Posts: 10
Joined: Sat Oct 28, 2017 3:55 am

Re: PurgeWhenFull not working

Post by Andyrh » Sat Mar 30, 2019 7:38 pm

Further information:
Using the "Disk Blocks" filter "Greater than or equal" I have confirmed that it is retrieving only the usage of "/" not of "/zmvideo" When I use the Used block number the filter returns events. If I change the number to less blocks it returns no events.

What did I set wrong?
Is there any other information I need to share?
Attachments
ZM4.JPG
ZM4.JPG (24.79 KiB) Viewed 4102 times
ZM3.JPG
ZM3.JPG (62.65 KiB) Viewed 4102 times
Andy
o||||o

kitkat
Posts: 88
Joined: Sun Jan 27, 2019 5:17 pm

Re: PurgeWhenFull not working

Post by kitkat » Sun Mar 31, 2019 3:05 pm

Andyrh wrote:
Sat Mar 30, 2019 7:38 pm
I have confirmed that it is retrieving only the usage of "/" not of "/zmvideo"

What did I set wrong?
Permissions?

Try

Code: Select all

chmod 755 /zmvideo

Andyrh
Posts: 10
Joined: Sat Oct 28, 2017 3:55 am

Re: PurgeWhenFull not working

Post by Andyrh » Sun Mar 31, 2019 4:15 pm

Excellent suggestion, but unfortunately not the answer.

Thank you,

Screenshot with the typo.
Attachments
ZM5.jpg
ZM5.jpg (216.92 KiB) Viewed 4072 times
Andy
o||||o

kitkat
Posts: 88
Joined: Sun Jan 27, 2019 5:17 pm

Re: PurgeWhenFull not working

Post by kitkat » Tue Apr 02, 2019 10:05 am

Shame - But it was probably worth a try.

I wouldn't expect to see the permissions of the files and folders under /zoneminder change after the chmod though, just the directory itself, but maybe chmod-ing the entire tree would work?

I, too, use a separate drive for ZM, but I didn't do it according to any of the HowTos or by altering storage paths within ZM - I mounted the drive elsewhere and then used 'mount --bind' to make it appear as ZM's default storage, something like this...

Code: Select all

mount --bind /zmvideo /var/lib/zoneminder
If you want to retain access to any existing files in /var/lib/zoneminder then you'll need to copy them to the mounted drive first.

Andyrh
Posts: 10
Joined: Sat Oct 28, 2017 3:55 am

Re: PurgeWhenFull not working

Post by Andyrh » Tue Apr 02, 2019 3:27 pm

My previous install had the 2nd drive mounted strategically in the tree also.
I wanted to use the storage option to be able to place different cameras on different drives.

With no apparent solution and no ability to Purge specific locations I will be moving the mount point and resetting some defaults.

Perhaps a future enhancement will add location to the purge when full filter.

Thank you,
Andy
o||||o

Andyrh
Posts: 10
Joined: Sat Oct 28, 2017 3:55 am

Re: PurgeWhenFull not working

Post by Andyrh » Fri Apr 19, 2019 12:30 am

I solved the problem. The PurgeWhenFull default rule does not account for Storage Areas. I added a condition and it now returns what it should.

:D
ZM6.JPG
ZM6.JPG (77.65 KiB) Viewed 3739 times
Andy
o||||o

mr.goose
Posts: 3
Joined: Tue Feb 19, 2019 1:32 pm

Re: PurgeWhenFull not working

Post by mr.goose » Wed May 01, 2019 8:37 pm

Thank you @Andyrh - that was a very useful post and has fixed my problem too. I have been agonising over this for almost a week! :-)

Kennethhuber1
Posts: 1
Joined: Wed Nov 06, 2019 2:58 pm

Re: PurgeWhenFull not working

Post by Kennethhuber1 » Wed Nov 06, 2019 3:05 pm

term papers wrote:

Shame - But it was probably worth a try.

I wouldn't expect to see the permissions of the files and folders under /zoneminder change after the chmod though, just the directory itself, but maybe chmod-ing the entire tree would work?
I, too, use a separate drive for ZM, but I didn't do it according to any of the HowTos or by altering storage paths within ZM - I mounted the drive elsewhere and then used 'mount --bind' to make it appear as ZM's default storage, something like this...

Code: Select all

mount --bind /zmvideo /var/lib/zoneminder
If you want to retain access to any existing files in /var/lib/zoneminder then you'll need to copy them to the mounted drive first.
By mounting the drive as you suggested I managed to solve my issue. Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests