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

On 9/18/2023 at 6:38 PM, kfb said:

Got the fix and was able to figure out what was stopping that disk from spinning down. Thanks for the help!

can you tell what? maybe it's helping others... like me ;-) 

  • Replies 512
  • Views 127.6k
  • 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

  • Author
3 hours ago, Holle88 said:

since i can not install inotify i wonder how i can use this plugin...

Inotify is built in to Unraid.  What are you having trouble with?

6 hours ago, dlandon said:

Inotify is built in to Unraid.  What are you having trouble with?

ok inotify is running, i tried this:

root@Tower:~# inotifywait -m -r -q -e open,attrib,move,create,delete --excludei appdata/...
No files specified to watch!

 

but you're plugin still not working (see attachments):

no logging1.JPG

no logging2.JPG

  • Author

What do you mean it's not working?  Because you don't have any logged events?  File Activity does not log all file events.

 

Do you have the cache_dirs plugin installed?

  • 4 weeks later...

it is possible for file activity plugin to be shown in the dashboard

  • Author
5 hours ago, Corodeanu N said:

it is possible for file activity plugin to be shown in the dashboard

What is it that you think should "show" on the Dashboard?

On 10/31/2023 at 3:40 PM, dlandon said:

The syslog server works with the syslog.  I don't know any way to add the file activity log to that.

Agreed, Basically what I did is more of a kludge, and I'm sure this is a bad way to address this, but here's what I did:

create shell to

cp "/var/log/file.activity.log" to my log dest  "/mnt/user/logs/fileactivity$(date +%Y%m%d%H%M%S).log"  then rm "/var/log/file.activity.log"

then - created job in user scripts and scheduled

 

its not going into the syslog itself, just using the same location.

[Yeah, its a mess,  lots of issues with my approach, not recommending it, was a stop gap for me]

Edited by schreibman
oops

11 minutes ago, schreibman said:

Agreed, Basically what I did is more of a kludge, and I'm sure this is a bad way to address this, but here's what I did:

create shell to

cp "/var/log/file.activity.log" to my log dest  "/mnt/user/logs/fileactivity$(date +%Y%m%d%H%M%S).log"  then rm "/var/log/file.activity.log"

then - created job in user scripts and scheduled

 

its not going into the syslog itself, just using the same location.

[Yeah, its a mess,  lots of issues with my approach, not recommending it, was a stop gap for me]

there is a (worse?) way to do this and have it in syslog: but I can only image this is an even more horrible solution as your unraid syslog now will have all file activity:

  logger -n ${SYSLOG_SERVER} -P 514 -t unraid-file-activity < "/var/log/file.activity.log"

  • 2 weeks later...

Is there a way to reduce the time scale for each disk that is listed in the plugin?  When I go to the disk listing to see what's causing a disk to spin up, i have to scroll through disk activity from up to 24h ago.  I only want to see activity in the last hour or so.  Can I specify this?  Thanks!

  • Author
1 hour ago, Andiroo2 said:

Is there a way to reduce the time scale for each disk that is listed in the plugin?  When I go to the disk listing to see what's causing a disk to spin up, i have to scroll through disk activity from up to 24h ago.  I only want to see activity in the last hour or so.  Can I specify this?  Thanks!

You can't specify how much is displayed in the log, but I have a few ideas.  Let me see what I can come up with.

  • Author
On 11/11/2023 at 7:02 PM, Andiroo2 said:

Is there a way to reduce the time scale for each disk that is listed in the plugin?  When I go to the disk listing to see what's causing a disk to spin up, i have to scroll through disk activity from up to 24h ago.  I only want to see activity in the last hour or so.  Can I specify this?  Thanks!

I've added a parameter in the settings that controls the number of events displayed so you don't have to scroll through so much data to find what you want.  It displays the last 'X' number of file events for each disk or share.  Update to the latest version to try it out.

Think the update today of 'file activity plugin' caused my server to stop working. The web GUI would lock up after 2mins of boot. You can login and then it freezes up. Deleted plugin from usb stick and now all working..

Edited by dopeytree

  • Author
2 minutes ago, dopeytree said:

Think the update today of 'file activity plugin' caused my server to stop working. The web GUI would lock up after 2mins of boot. You can login and then it freezes up. Deleted plugin from usb stick and now all working..

Post diagnostics.

  • Author
42 minutes ago, dopeytree said:

Don't think they'll be much use as couldn't run diagnostics during crashing.

This is post delete.

 

If no one else comments though maybe it is something else.

moulin-rouge-diagnostics-20231113-1722.zip 209.12 kB · 0 downloads

Nothing in File Activity was done to cause what you are describing.  The latest reease just changed the way the file events are displayed.  Install the file activity plugin again and leave it disabled and see what happens.

 

You have issues in your log that may be contributint to your issue:

Nov 13 15:40:02 Moulin-rouge nginx: 2023/11/13 15:40:02 [error] 15484#15484: *11 limiting requests, excess: 20.907 by zone "authlimit", client: 192.168.22.105, server: , request: "GET /login HTTP/1.1", host: "192.168.22.2"
Nov 13 15:40:02 Moulin-rouge nginx: 2023/11/13 15:40:02 [error] 15484#15484: *9 limiting requests, excess: 20.904 by zone "authlimit", client: 192.168.22.105, server: , request: "GET /login HTTP/1.1", host: "192.168.22.2"
Nov 13 15:40:03 Moulin-rouge nginx: 2023/11/13 15:40:03 [error] 15484#15484: *9 limiting requests, excess: 20.327 by zone "authlimit", client: 192.168.22.105, server: , request: "GET /login HTTP/1.1", host: "192.168.22.2"
Nov 13 15:40:03 Moulin-rouge nginx: 2023/11/13 15:40:03 [error] 15484#15484: *12 limiting requests, excess: 20.326 by zone "authlimit", client: 192.168.22.105, server: , request: "GET /login HTTP/1.1", host: "192.168.22.2"
Nov 13 15:40:03 Moulin-rouge nginx: 2023/11/13 15:40:03 [error] 15484#15484: *9 limiting requests, excess: 20.323 by zone "authlimit", client: 192.168.22.105, server: , request: "GET /login HTTP/1.1", host: "192.168.22.2"

This is happening about 2 minutes after a boot.  Close any open browser sessions to your Unraid server.

11 hours ago, dlandon said:

I've added a parameter in the settings that controls the number of events displayed so you don't have to scroll through so much data to find what you want.  It displays the last 'X' number of file events for each disk or share.  Update to the latest version to try it out.

 

This is so great.  Thank you!!

  • 2 weeks later...

Thank you for adding that event limiter!

Definitely makes it so much easier.

 

I was checking my file activity and it kept telling me Disk 1 was opening a file (an icon used by FolderView I set). 

 

However, when I check the Dashboard, Disk 1 was asleep/spundown.

It definitely was spun down because when I checked the disk itself, sure enough that's where the file is stored.

 

When I loaded previews for all images in the same folder using Krusader, sure enough all of them showed up in File Activity > Disk Activity > Disk 1.

 

So long story short, File Activity showed the image was being opened, but the drive wasn't actually being spun up.

 

Oh by the way, the thing that triggered its entry in File Activity was me going to the Docker tab (which has FolderView folders set up), waiting a few seconds for it to load, and then going back to File Activity and refreshing.

 

 

Just thought you should know!

10 hours ago, DevanteWeary said:

I was checking my file activity and it kept telling me Disk 1 was opening a file (an icon used by FolderView I set). 

 

However, when I check the Dashboard, Disk 1 was asleep/spundown.

I think that this can happen if Linux has the information it needs cached in RAM so it does not need to access the physical drive.

  • 3 months later...

Thanks for the plugin, it is great :)

 

1. Is it possible to show current files activity on the dashboard?

2. I have checked "Enable for Cache and Pool Disks?" but still can't see my cache drive in the tabs (I have appdata docker there so in theory it should be always in activitiy list when docker is running but it is not, only my array disks)

  • Author
12 hours ago, maTTi said:

Thanks for the plugin, it is great :)

 

1. Is it possible to show current files activity on the dashboard?

2. I have checked "Enable for Cache and Pool Disks?" but still can't see my cache drive in the tabs (I have appdata docker there so in theory it should be always in activitiy list when docker is running but it is not, only my array disks)

1. Probably not because I don'rt think there is enough room to fit it in.

2. The appdata, syslog, and system shares are excluded from file activity and won't show any activity.

  • 2 weeks later...

There's a possible duplication under 'Share activity' tab:

** /mnt/user/backup **
Mar 25 05:19:00 OPEN => /mnt/disk1/backup/repo/config
Mar 25 05:19:00 OPEN => /mnt/disk1/backup/repo/data/6/62605
Mar 25 05:19:00 OPEN => /mnt/disk1/backup/repo/data/6/62606
Mar 25 05:19:00 DELETE => /mnt/disk1/backup/repo/data/6/62605

** /mnt/user/data **
Mar 25 05:18:56 OPEN => /mnt/disk1/backup/repo/data/6/62660
Mar 25 05:19:00 OPEN => /mnt/disk1/backup/repo/data/6/62605
Mar 25 05:19:00 OPEN => /mnt/disk1/backup/repo/data/6/62606
Mar 25 05:19:00 DELETE => /mnt/disk1/backup/repo/data/6/62605

 

Listing said shares:
 

# ls -lt /mnt/user/data
total 4.0K
drwxrwxrwx 1 tuxbass   users  92 Jul 24  2023 win-10-user-setting-backups
drwxr-xr-x 1 tuxbass   users  28 Aug 25  2022 media
drwxr-xr-x 1 nobody    users 158 Aug  5  2021 Documents
drwxrwxrwx 1 root      root    0 Mar  4  2021 vm_backups
drwxrwxrwx 1 tuxbass   users 194 Aug 23  2020 win10-bt-drivers

# ls -lt /mnt/user/backup/
total 0
drwx------ 1 root root 92 Mar 25 05:19 repo
drwx------ 1 root root 32 Jul 12  2023 vms

 

Note data share doesn't show any modifications as of late. The activity above is expected to be under the backup share alone.

Any idea as to why above activity is listed also for /mnt/user/data share?

Edited by tuxbass

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.