Control DiskScanService

sonarr seems to scan through my entire library periodically. The logs refer to the DiskScanService when it does this.

I have a massive library of over 500 series using 40TB sitting on a 100TB storage target running ReFS. This is a windows 2012 r2 storage spaces double parity volume, which if you’ve played with storage spaces and parity doesn’t perform terribly well. I will say however that its proven to be very reliable.

When the DiskScanService AND ReFS scrubbing is doing its thing I can have issues with reliable streaming from multiple sources. If just ReFS scrubbing is running, or only sonarr is scanning the library, there are no issues.

While this problem is easily solved by using a faster storage technology, it could also be solved by having some control over these processes. I almost never copy files directly into my library, and when I do I always go into sonarr and rescan the show manually. However, if meta-data is also updated during these scans I can see their value.

Is it documented anywhere what is done during this scanning and Is any way to control this background process in sonarr. The ideal would be to set runtime windows… only have it run late at night when the array is not being used.

Thanks!

It runs every 12 hours (you can see the scheduled tasks that Sonarr runs in System -> Tasks), it is run as part of the Series Refresh task.

Series refresh will get updated data from trakt, rescan the disk (for media and metadata files) and update metadata files (if the contents would be changed, based on a hash).

Thanks Markus.

Any thoughts on making this schedule configurable? :smile:

The ability to set run windows (M-S / 00h-23h) would be really cool.

Although for some of these tasks I can see the potential for some users to break things…

No, altering the schedule isn’t something we’re looking at right now. It tasks don’t run at a set time of day, they run X minutes after completing the last time.