PurgeWhenFull not working
PurgeWhenFull not working
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
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.
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
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.
Andy
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
Re: PurgeWhenFull not working
Try 85%
Re: PurgeWhenFull not working
It returns 0 until I Set it to 9 then it returns all.
Andy
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
Re: PurgeWhenFull not working
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.
Re: PurgeWhenFull not working
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
I should have mentioned there are only 2 cameras.
Thank you
Andy
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
Re: PurgeWhenFull not working
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?
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 (24.79 KiB) Viewed 11546 times
-
- ZM3.JPG (62.65 KiB) Viewed 11546 times
Andy
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
Re: PurgeWhenFull not working
Re: PurgeWhenFull not working
Excellent suggestion, but unfortunately not the answer.
Thank you,
Screenshot with the typo.
Thank you,
Screenshot with the typo.
- Attachments
-
- ZM5.jpg (216.92 KiB) Viewed 11516 times
Andy
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
Re: PurgeWhenFull not working
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...
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.
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
Re: PurgeWhenFull not working
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,
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
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
Re: PurgeWhenFull not working
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.
Andy
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
o||||o
Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
Re: PurgeWhenFull not working
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!
-
- Posts: 1
- Joined: Wed Nov 06, 2019 2:58 pm
Re: PurgeWhenFull not working
By mounting the drive as you suggested I managed to solve my issue. Thanks!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...
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.Code: Select all
mount --bind /zmvideo /var/lib/zoneminder