File Activity Plugin - How can I figure out what keeps spinning up my disks?


dlandon

206 posts in this topic Last Reply

Recommended Posts

4 hours ago, dlandon said:

It's an unassigned slot in the array.  I've made an update that will ignore a non-existent disk.

Well that's a quick turnaround!  Thanks!  I can confirm that it now skips over the missing disk2 and works fine unless I try to enable cache drives, in which case I'm getting the same error for `/mnt/cache2` now.  I do have two cache disks, but they're in a pool so there isn't a second mount point (assuming I haven't set this up weird (see screenshot below)).  I guess I should have looked more thoroughly at disks.ini and I might have seen that coming too.

Screenshot 2020-12-26 230446.png

Link to post
  • Replies 205
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

This is a plugin that shows the file and directory activity on the array by disk.  This includes read and write activity on the array.  Read activity can cause disk spin ups.  It is recommended that y

Ok, i was going through my syslog, and found it by accident.   So if anyone else wants to write this to share for any reason, you can use this very basic script: (via custom scripts daily or

There is no correct value.  Just set it to whatever works.  Try to double it to start.

Posted Images

4 hours ago, Sammy1Am said:

Well that's a quick turnaround!  Thanks!  I can confirm that it now skips over the missing disk2 and works fine unless I try to enable cache drives, in which case I'm getting the same error for `/mnt/cache2` now.  I do have two cache disks, but they're in a pool so there isn't a second mount point (assuming I haven't set this up weird (see screenshot below)).  I guess I should have looked more thoroughly at disks.ini and I might have seen that coming too.

Screenshot 2020-12-26 230446.png

Update and try again.

Link to post
  • 4 weeks later...

I think I am having a similar problem... 

Jan 19 15:29:17 Tower file.activity: Starting File Activity
Jan 19 15:29:17 Tower inotifywait[30498]: Couldn't watch /mnt/disk4: No such file or directory

I don't have a disk4. What info do you need?

Link to post
  • 2 months later...

Hello,

I'm trying to know why my disks are spin up without reason. I installed this plugin to help me determinate why, but unfortunately no clues.

 

All my shares are set to "Cache Prefer".

 

image.thumb.png.6823864718d812d4a76c7d4dbe032d46.png

 

image.png.43c5c343d4238ced9e322259fb18e9b7.png

Link to post
6 hours ago, Alex.b said:

All my shares are set to "Cache Prefer".

@Alex.b

Very bad idea. That is going to make it try to put all your data on cache and move all your data to cache.

 

Go to Tools - Diagnostics and attach the complete Diagnostics ZIP file to your NEXT post in this thread.

Link to post

All data are on cache except "Plex" shares set to "Yes".

 

I think Plex is the guilty. I don't know why but it's open files often (nothing played on plex for days !).

 

Example :

 

Yesterday, he opened 300-400 files in few sec at 17h13. Then the night (but I think it's for schedule maintenance / scanning) .

 

For this morning, I don't know why.

 

Apr 07 03:51:12 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 09/MythBusters S09 Special 1 - Planes, Trains and Automobiles HDTV.XviD - Ukisuz.avi
Apr 07 03:51:12 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 09/MythBusters S09 Special 2 - Location Location Location HDTV.XviD - Ukisuz.avi
Apr 07 03:51:12 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 09/MythBusters S09 Special 3 - Wet & Wild HDTV.XviD - Ukisuz.avi
Apr 07 03:51:12 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 09/Mythbusters S09E10.avi
Apr 07 03:51:12 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 09/MythBusters.S09E02.Glace.bleue.FRENCH.TVrip.XviD.avi
Apr 07 03:51:12 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 09/MythBusters.S09E03.De bulle en bulle.FRENCH.TVrip.XviD.avi
Apr 07 03:51:12 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 09/MythBusters.S09E04.Sons factices.FRENCH.TVrip.XviD.avi
Apr 07 03:51:12 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 09/Mythbusters.S09E05.FRENCH.TVrip.XviD.avi
Apr 07 03:51:12 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 09/Mythbusters.S09E06.FRENCH.TVrip.XviD.avi
Apr 07 03:51:12 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 09/Mythbusters.S09E07.FRENCH.TVrip.XviD.avi
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 09/Mythbusters.S09E08.FRENCH.TVrip.XviD.avi
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 09/Mythbusters.S09E09.FRENCH.TVrip.XviD.avi
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 09/MythBusters.S09E13 - Marcher sur l'eau VQ.avi
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 09/mythusters 9x14.avi
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10 - Spécial requins.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/Mythbusters - S10 Episode Spécial 1 Courrier de fans.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/Mythbusters - S10 Episode Spécial 3 Explosions de A à Z.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E01 - L'île du ruban adhésif.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E02 - Le feu contre la glace.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E03 - Roues carrées.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E04 - Des pirates qui balancent.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E05 - Guerre des sexes.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E06 - Conduite en talons.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E07 - La vengeance du mythe.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E08 - Ricochet de balle.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E09 - Courrier de fans.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E10 - Plongeon dans du film à bulles.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E11 - Dilemme de duel.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E12 - Bandits d'Hollywood.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E13 - Épisode 13.mp4
Apr 07 03:51:13 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E14 - Survivre au Titanic.mp4
Apr 07 03:51:14 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E15 - Explosion dans une tranchée.mp4
Apr 07 03:51:14 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E16 - Tempête de grêle.mp4
Apr 07 03:51:14 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E17 - Le son de la peur.mp4
Apr 07 03:51:14 OPEN => /mnt/disk1/Medias/SériesTV/MythBusters/Saison 10/MythBusters - S10E18 - Medley de mini-mythes.mp4
Apr 07 08:22:04 OPEN => /mnt/disk1/Medias/SériesTV/For All Mankind/Saison 2/For All Mankind - 2x05 - The Weight.mkv

 

Edited by Alex.b
Link to post
  • 3 weeks later...
12 minutes ago, Marc_G2 said:

So I was hoping this plugin could help me determine what was pinging my Cache SSD every 30 minutes (almost on the dot) which was preventing my system from going to sleep.  But sadly the plugin doesn't detect anything.  Do you have any advice?   I already posted on the Dynamix thread.  

 

 

nas-ng-diagnostics-20210428-1559.zip 102 kB · 0 downloads

I suspect its because you have the following set for smart polling.  poll_attributes="1800" which will be 30mins. What is the time for your sleep? Try changing poll to 3600 to see if that fixes issue.

 

 

Edited by SimonF
Link to post
1 hour ago, SimonF said:

I suspect its because you have the following set for smart polling.  poll_attributes="1800" which will be 30mins. What is the time for your sleep? Try changing poll to 3600 to see if that fixes issue.

That's a good theory, but it looks like changing that setting didn't make a difference.  I did recently change my default spin down time from 60 to 30 mins.  But increasing it to 45 min didn't fix it either.  For now I'll try a reboot to see if a setting isn't properly getting applied immediately or something.   This was never a problem when prior to updating to 6.9.2.  I only made a handful of small changes since that update.  But I can't think of anything else that would cause this.

Edited by Marc_G2
Link to post
10 minutes ago, Marc_G2 said:

That's a good theory, but it looks like changing that setting didn't make a difference.  I did recently change my default spin down time from 60 to 30 mins.  But increasing it to 45 min didn't fix it either.  For now I'll try a reboot to see if a setting isn't properly getting applied immediately or something.   This was never a problem when prior to updating to 6.9.2.  I only made a handful of small changes since that update.  But I can't think of anything else that would cause this.

What is your sleep timer, may be best to raise a separate thread for this? I believe there have been some issues with S3 Sleep plugin on 6.9

Link to post
14 minutes ago, SimonF said:

What is your sleep timer, may be best to raise a separate thread for this? I believe there have been some issues with S3 Sleep plugin on 6.9

At the moment it's set to 35 min after disks are spun down.  I'll create a new thread if I can't figure it out in the next day or so.

Link to post

probably a noob question... is there any way to see what process actually opened files captured by this plugin?

 

just now I saw that something opened a bunch of music videos. i assume it was either plex or radarr, i just don't know why.

Link to post
8 hours ago, acosmichippo said:

probably a noob question... is there any way to see what process actually opened files captured by this plugin?

 

just now I saw that something opened a bunch of music videos. i assume it was either plex or radarr, i just don't know why.

No, only the file activity.  Not who created the activity.

Link to post
  • 4 weeks later...
On 5/7/2021 at 12:14 PM, dlandon said:

No, only the file activity.  Not who created the activity.

Would it be possible to implement that? It would be infinitely more helpful to know the actual process responsible for the activity.

Link to post
1 hour ago, KnifeFed said:

Would it be possible to implement that? It would be infinitely more helpful to know the actual process responsible for the activity.

File activity uses inotify to monitor file activity.  There is no way to know which process accesses the file with inotify.

 

I am changing the inotify events to (file access, file open, file create, file delete, and file modify) for more activities to help in identifying which files are changing.  The downside is this will generate a lot of log activity, but might give more information on what is changing.  I've been reluctant to monitor too much, because working through a large log can be overwhelming.  I'm researching ways to be able to better manage finding what is relevant in the log.

 

It won't log directory access events because the log will be unmanageable.  The best way to handle this is to install the Cache Dirs plugin and only specify shares to be cached.  Don't use the Cache Dirs default settings.  It has a nasty habit of caching everything, which in many cases is way too much.  If it is set up correctly, directory accesses should not spin up disks.

Link to post

I've update the plugin with the following changes:

  • Add modify file activity.
  • Don't show directory access in the log.  The log becomes unmanageable with all the directory entries and doesn't provide any additional information.
  • Settable option to log events by disk or share.  The share logging should help identify who is accessing files based on the share being used.
Link to post
  • 4 weeks later...

I installed the File Activity plugin, but when I go to start it, it acts like it is about to start, but never does.  After about 5 secs of it loading, it refreshes the screen and says it is stopped and never shows anything.  Thanks for any help!

Link to post
  • 3 weeks later...
On 6/27/2021 at 9:08 AM, cycodrama said:

it is stopped and never shows anything.

1 hour ago, Emanuel87 said:

same problem

 

Are all your plugins up-to-date? Do you have Nerd Tools installed?

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.