Description
There are some reports that after setting up Global At Most Rules the data is not removing older content off the drives. For example if recording has been taking place for a year and Global At Most Rule is set up after a year of recording some of the older content is not being removed from the data drives.
Product
- Server 23.09.9.0
- Linux 18.04
Steps to Reproduce
Oldest content on the storage drive will show content past the current Global At Most Rule that are configured. This was seen on units that had been recording for a long amount of time. Then at some point a Global At Most Rule was created. After the 30 days the data was not being removed from the system.
Expected Results
We should purge older data. However if there is a year worth of data we may need to give it a hand to clear out in special cases where customer need to see a certain amount of Oldest content on the Storage page.
Actual Results
If data is on the unit for 365 days, then it can take time for that data to be purged. It will keep showing Oldest content of 365 days until it successfully purges the data.
Solution
A work around is to delete some of the older content outside their current Global At Most Rule.
1. Stop the server and check the data folders on the drives.
2. NOTE: ALWAYS HOLD SHIFT and then hit the Delete Key. If you do not do this it can fill up the OS drive’s recycling bin.
Remove Years, Months as needed from the data folder.
3. Start the exacqVision Server Service and allow up to 5 minutes for the Sweeper to run. We delay the Sweeper service from starting right away on purpose.
4. Monitor the logs on the server around the 5 minutes, and search for a sweeper event, and then look for a fscleanup event in the logs. If this is seen you can validate on the Storage page if the Oldest Content numbers change within the next several minutes down to the size of the At Most Rule 30 Days.
In the following example we stopped the service and removed data off the drives down to 62 days and 9 hours.
After removing the data we started the service and waited 5 minutes.
After 5 minutes you should see the following in the logs.
PSFPI Verbose Sweeper - expiring all files older than Tue Apr 2 10:20:58 2024.
This indicates that the Sweeper is looking at the older content on the drive and preparing it to be removed.
After a few more minutes the oldest content was reduced down to the target Global At Most Rule of 30 days.
Current Ticket opened is AES-847.
<br>