How does PurgeWhenFull work?

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
pennyzm
Posts: 27
Joined: Wed Oct 10, 2018 7:59 pm

How does PurgeWhenFull work?

Post by pennyzm »

Hello,

I need some help to understand filter PurgeWhenFull.
- We are currently running Zoneminder 1.34.2 on Ubuntu 18.04.4 LTS.
- We have a storage space called storage1 where all the events are recorded to.
- The storage1 space is currently sitting at 90%.

Does PurgeWhenFull remove events starting from oldest events?
Do we need to explicitly tell it which storage area to remove events from?
Our goal is to purge anything older than 3 months.

Kind regards,
pennyzm
pennyzm
Posts: 27
Joined: Wed Oct 10, 2018 7:59 pm

Re: How does PurgeWhenFull work?

Post by pennyzm »

I'm still trying to find answers to the storage question, but I've found that PurgeWhenFull deletes starting with oldest.
The filter is set to "Sort by Id Asc".
pennyzm
Posts: 27
Joined: Wed Oct 10, 2018 7:59 pm

Re: How does PurgeWhenFull work?

Post by pennyzm »

I think I know how to do the purge for events older than 30 days.
"Archive status equal to Unarchived Only"
"Start Date/Time greater than 90"

Does the 90 automatically default to days?
What is the difference between say that and "Start Date/Time less than -90"?
When I run the filter just to see what is listed I get the same thing whether I use less than -90 or greater than 90.
User avatar
Andyrh
Posts: 302
Joined: Sat Oct 28, 2017 3:55 am

Re: How does PurgeWhenFull work?

Post by Andyrh »

The purge when full filter defines what is deleted and from where.

I think this thread will help.
viewtopic.php?f=40&t=30516
Andy
o||||o

Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
pennyzm
Posts: 27
Joined: Wed Oct 10, 2018 7:59 pm

Re: How does PurgeWhenFull work?

Post by pennyzm »

Thank you very much @Andyrh, that was a helpful link.
I've edited the purgewhenfull filter to include the location of the storage area, but when I click "List Matches" it gives me 0 events.

I tested this by setting the disk percent to 90 since the storage area is at 91% now.
I'll keep researching to figure this out, but if you have any more suggestions please help if you can.

Thank you
pennyzm
Posts: 27
Joined: Wed Oct 10, 2018 7:59 pm

Re: How does PurgeWhenFull work?

Post by pennyzm »

@Andyrh,

Thank you again for the link. It's now working. I just had to adjust the order of how things were listed such as:
storage area equal to storage1
archive status equal to unarchived only
disk percent greater than or equal to 95
sort by id asc limit to first 1000

The issue I had before was when I would select storage area 3rd on the list it would not give me a drop down to select it and it would not take a manual entry.
I've created a separate purgewhenfull for the storage1 and tested it by setting the disk percent to 90 and clicking "list matches" and I get the first 1000 events.

Again, thank you
Post Reply