On a DMS with quite some spectrum elements and monitors that are set up to store spectrum traces when alarms occur, we see that spectrum alarm recordings are only kept for less than 24 hours, we would like to keep them at least for 4 days, so some investigations can be done.
The max dir size is set to 20000, while the C:\Skyline DataMiner\Spectrum Alarm Recordings folder is only 30MB, with 1750 files.
Are there any other settings available that might trigger cleanup of the alarm spectrum recordings?
From what I can tell, there might be problems with interpreting maxDirSize values larger than 2000, causing the cleanup logic to clean out more than it should.
Changing the maxDirSize to be 2000 or less should help here.
Cleanup logic works by executing a number of iterations while the folder size is over the configured maximum. First deleting items older than 2 weeks and eventually also deleting items older than 1 day. The cleanup gets executed whenever alarm recordings get updated. There's some logging on DEBUG|5 when cleanup is executed.
"Max. Alarm Recording Dir Size" will report as configured in XML indeed.
Things likely go wrong when applying this value and multiplying it by 1024 * 1024 causing a signed int overflow.
ok, I'll change it to 2000, and a DM restart will probably be needed?
Correct
The configured value is reported as:
SLSpectrum.exe 10.5.2443.22810|13608|15780|CConfig::QueuedInit|INF|-1|Max. Alarm Recording Dir Size = 20000 MB
I increased the log level to 5, but the log will overflow quite fast like that, I'll try to capture the cleanup process.