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
10 minutes ago, bakes82 said:


Tower login: root
Linux 4.4.30-unRAID.
Last login: Wed Feb 22 17:56:32 -0500 2017 on /dev/pts/1 from 192.168.0.34.
root@Tower:~# /usr/local/emhttp/plugins/file.activity/scripts/inotify.file.activity
/usr/local/emhttp/plugins/file.activity/scripts/inotify.file.activity: line 41: /usr/bin/inotifywait: No such file or directory
 

 

What version of unRAID are you running?

  • 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

6.2.4.  Anything > throws a kernel panic.

  • Author
19 minutes ago, bakes82 said:

6.2.4.  Anything > throws a kernel panic.

 

I've just modified the plugin and the File Activity xml on CA.  File Activity needs at least 6.3.0.  The inotify package was installed in the released version starting with 6.3.0.

Try 6.3.2.  I believe the kernel panics were solved with the version of Linux in 6.3.2.

Like I said anything over 6.2.4 doesn't work.  I used another plugin to see what I wanted.

On 21/02/2017 at 9:09 PM, digitalfixer said:

The file  /tmp/file.activity/file.activity.disks is only picking up the first 9 disks.
I have 14 in my array.

Kevin

 

This file now shows 14 disks but the activity log only ever goes up to disk 9. Nothing is shown for anything higher.

 

Kevin

  • Author
1 hour ago, digitalfixer said:

 

This file now shows 14 disks but the activity log only ever goes up to disk 9. Nothing is shown for anything higher.

 

Kevin

 

Update and try again.  2017.02.23.  Had to make a change in another place.

All good now. Thank you.

 

Now if there was a way to figure out what was accessing the files listed.

 

Kevin.

  • 2 weeks later...

Minor issue:

 

On a fresh install, the max_user_watches entry is reflecting the system default value, not the value that it is currently set to.

  • Author
17 minutes ago, Squid said:

Minor issue:

 

On a fresh install, the max_user_watches entry is reflecting the system default value, not the value that it is currently set to.

With the issues I see with max user watches, I'm thinking this would be a setting that would go better in Tips and Tweaks so a person doesn't have to have the Files Activity plugin installed to set it.  Still thinking about it.

Just now, dlandon said:

With the issues I see with max user watches, I'm thinking this would be a setting that would go better in Tips and Tweaks so a person doesn't have to have the Files Activity plugin installed to set it.  Still thinking about it.

I do agree.  Only noticed this because I know that my watches are set to 720000 instead of 524288.  BTW, I did add in a test for watch exhaustion in FCP a week or so ago, but it can only tell if its currently exhausted (ie: if it can't create a single watch)

  • Author
11 minutes ago, Squid said:

I do agree.  Only noticed this because I know that my watches are set to 720000 instead of 524288.  BTW, I did add in a test for watch exhaustion in FCP a week or so ago, but it can only tell if its currently exhausted (ie: if it can't create a single watch)

I think I will go ahead and move it to Tips and Tweaks.  It is designed to show the current setting and allow changes.

  • Author

I have moved the max_user_watches setting to the Tips and Tweaks plugin because the issue of not enough inotify watches affects more that just this plugin and it doesn't make sense to install this plugin just for that setting.

I can't get this to work. Needed to increase my max_user_watches and that got rid of inotify watches reached error. Now its says running but shows nothing, looks the same as digitalfixer post here:

This line is in my processes:

root 12643 12638 10 15:32 ? 00:02:06 inotifywait -mrqs -e open,attrib,move,create,delete --excludei appdata/ --timefmt %b %d %H:%M:%S --format %T %e => %w%f --fromfile /tmp/file.activity/file.activity.disks

 

No errors in the syslog. Any ideas?

  • Author
14 hours ago, bnevets27 said:

I can't get this to work. Needed to increase my max_user_watches and that got rid of inotify watches reached error. Now its says running but shows nothing, looks the same as digitalfixer post here:

This line is in my processes:

root 12643 12638 10 15:32 ? 00:02:06 inotifywait -mrqs -e open,attrib,move,create,delete --excludei appdata/ --timefmt %b %d %H:%M:%S --format %T %e => %w%f --fromfile /tmp/file.activity/file.activity.disks

 

No errors in the syslog. Any ideas?

How about a diagnostics?

I also cannot get the plug in to work. I assume there is something wrong with my inotifywait.  When I ran the whereis inotifywait command I get /usr/bin/inotifywait  Attaching logs.  Any help appreciated. 

tower-diagnostics-20170317-1948.zip

  • Author
27 minutes ago, allischalmersman said:

I also cannot get the plug in to work. I assume there is something wrong with my inotifywait.  When I ran the whereis inotifywait command I get /usr/bin/inotifywait  Attaching logs.  Any help appreciated. 

tower-diagnostics-20170317-1948.zip

It looks like File Activity is assuming the Unassigned Devices plugin is installed and you are not using it.  I will have to make an update to fix this.

On 2017-03-17 at 6:28 AM, dlandon said:

How about a diagnostics?

Good idea, I'm off my game. Attached

 

Edited by bnevets27

  • Author
5 hours ago, bnevets27 said:

Good idea, I'm off my game. Attached

excelsior-diagnostics-20170318-0151.zip

File Activity is not starting and I can't see why.  Be sure you have the latest version of the plugin installed.

 

Go to a command line and run this command:

/usr/local/emhttp/plugins/file.activity/scripts/inotify.file.activity

See if you get any errors.  If it looks like the program is hanging, then it is running.  Ctrl-C to stop the program.  Let me know the results.

File Activity is not starting and I can't see why.  Be sure you have the latest version of the plugin installed.

 

Go to a command line and run this command:

/usr/local/emhttp/plugins/file.activity/scripts/inotify.file.activity

See if you get any errors.  If it looks like the program is hanging, then it is running.  Ctrl-C to stop the program.  Let me know the results.

Running the latest version 03.17. Running that command doesn't throw any errors, it shows running in the gui and is listed in processes but still doesn't show anything on the file activity page.

 

Processes:

root     27703 10365  0 14:42 pts/0    00:00:00 /bin/bash /usr/local/emhttp/plugins/file.activity/scripts/inotify.file.activityroot     27705 27703  1 14:42 pts/0    00:00:00 inotifywait -mrqs -e open,attrib,move,create,delete --excludei appdata/ --timefmt %b %d %H:%M:%S --format %T %e => %w%f --fromfile /tmp/file.activity/file.activity.disks

 

plugin is working well for me now.  Thank you fantastic.  I am pretty confident I found my disk spin up issue.

Edited by allischalmersman

  • Author
On 3/18/2017 at 2:55 PM, bnevets27 said:

Running the latest version 03.17. Running that command doesn't throw any errors, it shows running in the gui and is listed in processes but still doesn't show anything on the file activity page.

 

Processes:

 


root     27703 10365  0 14:42 pts/0    00:00:00 /bin/bash /usr/local/emhttp/plugins/file.activity/scripts/inotify.file.activityroot     27705 27703  1 14:42 pts/0    00:00:00 inotifywait -mrqs -e open,attrib,move,create,delete --excludei appdata/ --timefmt %b %d %H:%M:%S --format %T %e => %w%f --fromfile /tmp/file.activity/file.activity.disks
 

 

 

Please post your diagnostics and the /tmp/file.activity/file.activity.disks file.

On 2017-03-22 at 5:57 AM, dlandon said:

Please post your diagnostics and the /tmp/file.activity/file.activity.disks file.

Attached

 

 

Edited by bnevets27

4 hours ago, dlandon said:

File Activity is not including all of your disks.  Please post the result of this command 'ls /mnt/'.

cache/  disk10/  disk11/  disk12/  disk13/  disk14/  disk15/  disk16/  disk22/  disk23/  disk24/  disk3/  disk4/  disk9/  disks/  user/  user0/

 

  • Author
2 hours ago, bnevets27 said:

cache/  disk10/  disk11/  disk12/  disk13/  disk14/  disk15/  disk16/  disk22/  disk23/  disk24/  disk3/  disk4/  disk9/  disks/  user/  user0/

 

You have a problem not related to File Activity.  Your diagnostics shows 24 disks, but they are not all mounted.  Sort that out and File Activity should work.

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.