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


dlandon

Recommended Posts

1 hour ago, dlandon said:

What is your disk hardware?

parity is a 10 tb seagate ironwolf, the 2 data disks are 10 tb wd red. all connected via the hp p840 raid controller in hba mode.

 

something about the raid controller is already fishy, as for smart data i had to manually set all drives to smart controller type = sat to show temperatures on the main tab, although with default smart also worked but would only show * in main tab as temperature.

Link to comment
27 minutes ago, Michael H said:

or can i just google pictures from connectors to find out what kind of connector that is and buy a card that has 2 of the same?

Googling the p840 looks like it uses double wide SFF-8087, which is uncommon, first time I've seen those, but if you get for example one of the recommended LSI HBAs you just need to need to get a cable that matches the LSI on one end, regular SFF-8087 (SAS2 models) or SFF-8643 (SAS3 models) and whatever you have on your backplane.

Link to comment

i think the double wide is because one of the cables actually goes to 2 connections on the backplane (the other one has half as many connections):

 

https://www.houseofsystems.de/778559-001

 

the backplane i have is here:

 

https://www.serverschmiede.com/de/hp-dl380-gen9-g9-12x-35-lff-hdd-12g-sas-sata-backplane-742794-001-777284-001

 

maybe from that port you can tell me what hba and cables to get? with my limited knowledge i would say i need s card that has 4 ssf-8087 ports and 3 ssf-8087 to ssf-8087 cables?

 

sorry to bother you, but server hardware is not my strong side and 250 euros+ is not something i want to blindly try...

 

and back to the topic: as you are the disk controller wizard: have you seen this "no spindown" behaviour with other cards and is it common that they only spin up the data and not the parity drive?

Edited by Michael H
Link to comment
  • 5 weeks later...
21 hours ago, dlandon said:

Normally the syslog server is on the cache or a pool device.  Cache and Pool devices can be set to not be monitored.  The syslog server doesn't have to be on a array device.

 

Understood, but what I needed File Activity for was to monitor what was happening on one of my pools.  The same pool the syslog is on.  At 19:30pm every day I had something deleting/archiving some files in a particular share and for the life of me I couldn't find what was doing it.

 

But all good now.  Was just wondering if there was an option somewhere that I wasn't aware of.  Scrolling past the syslog entries won't kill me.

Link to comment
  • 3 weeks later...

I cant get this to log any information. The process seemingly starts, but now rows are listed in the file activity section


I have checked the syslog and cant see any errors about inotifywatches.

 

Mar  6 23:13:43 Unraid ool www[4853]: /usr/local/emhttp/plugins/file.activity/scripts/rc.file.activity 'start'
Mar  6 23:13:43 Unraid file.activity: Starting File Activity
 

I can see the process running

root@Unraid:~# ps aux | grep inotify
root      5371  0.0  0.0   2588   780 ?        S    21:46   0:00 inotifywait -q /boot/changes.txt -e move_self,delete_self,modify
root      8363  1.6  0.0   3044  2216 ?        D    23:13   0:00 inotifywait -mrqs -e open,attrib,move,create,delete,modify --excludei (appdata|syslogs) --timefmt %b %d %H:%M:%S --format %T %e => %w%f --fromfile /tmp/file.activity/file.activity.disks
root      9147  0.0  0.0   3904  1944 pts/2    S+   23:14   0:00 grep inotify
 

Diags attached

unraid-diagnostics-20220306-2312.zip

Link to comment
17 minutes ago, dlandon said:

I don't see anything in your diagnostics that would be an issue,  You are creating file activity that would be logged?  Try creating a file on one of your shares and then save it.  Does it log that file activity?

I was opening files from my general share and nothing was being logged 

Link to comment
23 minutes ago, dlandon said:

What's a general share, and how were you opening them?  Did you try my test to see if it would log that?

Sorry, just a regular SMB share called "General" which stores photos, documents etc.

 

I havae also tried creating a new file in there. Nothing logged

 

as a side note, I also have the openfiles plugin, and opening files shows records in there

but not in the file activity plugin

Edited by tris203
Link to comment
  • 3 weeks later...

Plugin will not start in my box. no any error in cli or syslog.  Please help check this.

 

root@Bovin-lab:~# /usr/local/emhttp/plugins/file.activity/scripts/rc.file.activity 'start'
Starting File Activity...
root@Bovin-lab:~# /usr/local/emhttp/plugins/file.activity/scripts/rc.file.activity 'start'
Starting File Activity...


root@Bovin-lab:~# ps aux | grep inotif
root     12345  0.0  0.0   3984  2352 pts/0    S+   18:09   0:00 grep inotif

bovin-lab-diagnostics-20220404-1812.zip

Link to comment
34 minutes ago, Bovin said:

Plugin will not start in my box. no any error in cli or syslog.  Please help check this.

 

root@Bovin-lab:~# /usr/local/emhttp/plugins/file.activity/scripts/rc.file.activity 'start'
Starting File Activity...
root@Bovin-lab:~# /usr/local/emhttp/plugins/file.activity/scripts/rc.file.activity 'start'
Starting File Activity...


root@Bovin-lab:~# ps aux | grep inotif
root     12345  0.0  0.0   3984  2352 pts/0    S+   18:09   0:00 grep inotif

bovin-lab-diagnostics-20220404-1812.zip 76.69 kB · 0 downloads

This normally happens when there aren't enough notify watches, but there is generally a log entry saying there aren't enough.  Try using the 'Tips and Tweaks' plugin and increase the "Max Watches 'fs.inotify.max_user_watches':" value and then starting file activity.

Link to comment
1 hour ago, dlandon said:

This normally happens when there aren't enough notify watches, but there is generally a log entry saying there aren't enough.  Try using the 'Tips and Tweaks' plugin and increase the "Max Watches 'fs.inotify.max_user_watches':" value and then starting file activity.

thanks for your quick response.

 

I use the default value 524288. Now I tried 1524288. The problem is persisted.

 

By the way, I am run on 6.10.0-rc4. Any known compatible issues?

 

 

Link to comment

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.