Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

  • Author
1 hour ago, J05u said:

Hello,

Any idea why I can't start file activity?

Check the log for a message about not enough inotify watches.  if you see that use the tips and tweeks plugin to add more.

  • Replies 512
  • Views 127.7k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • EDACerton
    EDACerton

    I have republished both this and open files.

  • Right now, I've decided that I'm not going to fork and republish the plugins.  At this time I do have far too much on my plate to take on any additional plugins.   I do not know why the author chose t

  • Due to some personal circumstances, I am unable to keep the pace I was working with Unraid. I would not resubmit the plugin if I could not maintain it. I said I would not be able to provide a lot of s

Posted Images

Iam doing something wrong?

 

 

Screenshot 2022-11-21 143538.png

  • Author
29 minutes ago, PlanetDyna said:

Iam doing something wrong?

 

 

Screenshot 2022-11-21 143538.png

Post thediagnostics zip file.

Its working. Sorry - it just got a while to display used files.

  • 2 months later...

Thanks for this great plugin!

 

I have a VM that does a lot of modifications to it's disk (homeassistant VM). Would it be possible to have an option to exclude domains also?
 

Thanks again for this great plugin!

  • Author

The file activity plugin was designed to help with array spin ups.  You can exclude Cache and Pool devices that are normally SSD devices and where appdata should reside.  Your Home Assistant appdata should be on a Cache or Pool device if it is not.  This plugin is meant to work at the device level, not the share level.

On 11/21/2022 at 10:06 PM, dlandon said:

Post thediagnostics zip file.

I got the same issue, can you help me to check?

It's working after a few minutes.

 

Edited by Lilarcor

  • 2 weeks later...

Installed the plugin.  Set it to monitor everything but cache...and to display activity by disk.  Saved settings.  Tell it to start monitoring...shows that its running.

After about 10 secs, I do a refresh, and it shows as Stopped.  If I start it again, same thing happens - after about 10 secs, it stops.

 

Any ideas?

  • Author
37 minutes ago, JasonK said:

Installed the plugin.  Set it to monitor everything but cache...and to display activity by disk.  Saved settings.  Tell it to start monitoring...shows that its running.

After about 10 secs, I do a refresh, and it shows as Stopped.  If I start it again, same thing happens - after about 10 secs, it stops.

 

Any ideas?

That's generally because there aren't enough inotify watches.  Look at the syslog and there should be a message saying that.

 

If that is the case, install the Tips and Tweaks plugin and set the inotify watches so you have enough.  A little trial and error will get you there.

6 hours ago, dlandon said:

That's generally because there aren't enough inotify watches.  Look at the syslog and there should be a message saying that.

 

If that is the case, install the Tips and Tweaks plugin and set the inotify watches so you have enough.  A little trial and error will get you there.

Hmm - Is it the "Max User Watches" setting?  If so, this is what I have currently: image.thumb.png.03d9323d9c33242020c4662319900c4a.png

  • Author
6 minutes ago, JasonK said:

Hmm - Is it the "Max User Watches" setting?  If so, this is what I have currently: 

Yes, make it a large number and then start file activity.   Keep increasing until file activity starts.  Watch to the right side and be sure the "Available User Watches" is a positive number.

Yup - that is the setting.  Changed it to 1024000 and after a bit FIle Activity was seeing files.  Thanks!

  • Author
Just now, JasonK said:

Yup - that is the setting.  Changed it to 1024000 and after a bit FIle Activity was seeing files.  Thanks!

It does use consume memory, so you might want to back it off a bit.

There seems to be a problem for File Activity to see any, well, activity.

 

Clearly, I'm reading 260MB/s off of my main array. I even know which file it is. I'm just testing to see what FA makes of it. And the answer is nothing. Nothing is added in the log. Either on disk or share mode. All three checkboxes ticked.

 

I'm on Unraid 6.11.5.

unraid-diagnostics-20230226-2252.zip

Edited by thany

  • Author

Several things to note:

  • File activity does not monitor appdata, syslogs, or system shares.
  • Only file open, file attribute changes, file move, file create, file delete, and file modify operations are logged in file activity.  You'll not see file activity with constant reading of one file.
3 hours ago, dlandon said:

You'll not see file activity with constant reading of one file

that probably explains why I cannot troubleshoot my lack of spindown. I see my parity drives spindown, but data drives don't, so it must be read activity. Is there a good way to look for reads only? 

Also, would help if there was a way to only track a specific disk in array, sometimes it's easier to just focus on one disk where you dont expect activity and not be buried by logs from another disk where you do expect action

  • 2 weeks later...

Hi I'm unable to get file activity to start. 

Syslogs look like this. 
Mar 12 00:38:50 NewNas file.activity: Starting File Activity
Mar 12 00:38:50 NewNas file.activity: File Activity inotify starting
Mar 12 00:38:50 NewNas file.activity: File Activity inotify exiting

It never starts and just goes back to a stopped state when I attempt to start it. 

I have a very high iNotify watch number but still no joy?

Any idea

  • Author
4 hours ago, zoro25 said:

Hi I'm unable to get file activity to start. 

Syslogs look like this. 
Mar 12 00:38:50 NewNas file.activity: Starting File Activity
Mar 12 00:38:50 NewNas file.activity: File Activity inotify starting
Mar 12 00:38:50 NewNas file.activity: File Activity inotify exiting

It never starts and just goes back to a stopped state when I attempt to start it. 

I have a very high iNotify watch number but still no joy?

Any idea

Post diagnostics.

6 hours ago, dlandon said:

Show a screen shot of your File Activiy setup.  Also show a screen shot of the Tips and Tweaks plugin showing the inotify watches.

image.thumb.png.2373a3f5ddc044df8848bd4eb6a9a7a4.png

image.png.bde6f758ceca25a3ce310ca0ce612c5b.png

Edited by zoro25
.

  • Author

Some suggestions:

  • Turn off monitoring of Unassigned Devices.
  • Turn off monitoring of Cache and Pool devices.

The 'appdata' folder on a cache or pool device can have a large amount of files to monitor and normally a cache or pool device is an SSD.

17 hours ago, dlandon said:

Some suggestions:

  • Turn off monitoring of Unassigned Devices.
  • Turn off monitoring of Cache and Pool devices.

The 'appdata' folder on a cache or pool device can have a large amount of files to monitor and normally a cache or pool device is an SSD.

It's running now thanks. 
image.thumb.png.0e27a4a4e97e2fa1655fdacba52939ec.png

Thanks for your help. 

  • 2 weeks later...
On 2/6/2023 at 7:45 PM, dlandon said:

The file activity plugin was designed to help with array spin ups.

Question: does FA show me write operations of zfs Pools consistin of multiple harddisks (not SSD) in Raid0 mode in unraid 6.12.0 rc2?

I have FA installed.

I habe a pool/cache of 2 Harddrives, that I access only one every day or less. But everytime I look in the unraid main tab those disks seen to be spinning (green indicator).

In Syslog: i can not see what is waking them up.

In FA: Actvity is empty, even when I just wrote several files to the share, that is exclusively on that zfs pool.

 

(FA config, see screenshot below).

 

FA-POOL-zfs-2023-04-01 22_44_34-102 Tessa Main (TESSA-MAIN1064) – VNC Viewer.png

  • Author
51 minutes ago, DataCollector said:

Question: does FA show me write operations of zfs Pools consistin of multiple harddisks (not SSD) in Raid0 mode in unraid 6.12.0 rc2?

I have FA installed.

I habe a pool/cache of 2 Harddrives, that I access only one every day or less. But everytime I look in the unraid main tab those disks seen to be spinning (green indicator).

In Syslog: i can not see what is waking them up.

In FA: Actvity is empty, even when I just wrote several files to the share, that is exclusively on that zfs pool.

 

(FA config, see screenshot below).

 

FA-POOL-zfs-2023-04-01 22_44_34-102 Tessa Main (TESSA-MAIN1064) – VNC Viewer.png

Post diagnostics.  Also look at the output of this command:

cat /tmp/file.activity/file.activity.disks

and see if the share in queston is in that output.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.