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.

[SOLVED] XBMC always spins up one drive (using cache dirs)

Featured Replies

Hey guys,

My unraid experience has been going very smoothly for a long time now but there is one thing bugging me everytime i scan my library in xbmc and that is it spinning up a disk (for no apparent reason to me). I have 4 disks, all with media - 2 for TV and 2 for movies. I am using cache dirs which I think is a great process for unraid but no matter if there is no new content for disk 2 (the drive that is always spun up), no content at all etc. it will be on after the scan.

I believe I follow the standard directory structure for storing my Tv. On the disk there is a single folder "TV" and in that there are subfolders with TV shows and in those subfolders for seasons. There is a .gif for the logo in each folder and a single .jpeg in one folder for the fanart of one show.

Incidentally I have TV shows on another drive (in the tv share) that is never spun up. No disks should be spun up in my mind as they are all on the cache.

Does anyone have an idea on what could be the cause of this drive spinning up?

Thanks alot for your time.

Hey guys,

My unraid experience has been going very smoothly for a long time now but there is one thing bugging me everytime i scan my library in xbmc and that is it spinning up a disk (for no apparent reason to me). I have 4 disks, all with media - 2 for TV and 2 for movies. I am using cache dirs which I think is a great process for unraid but no matter if there is no new content for disk 2 (the drive that is always spun up), no content at all etc. it will be on after the scan.

I believe I follow the standard directory structure for storing my Tv. On the disk there is a single folder "TV" and in that there are subfolders with TV shows and in those subfolders for seasons. There is a .gif for the logo in each folder and a single .jpeg in one folder for the fanart of one show.

Incidentally I have TV shows on another drive (in the tv share) that is never spun up. No disks should be spun up in my mind as they are all on the cache.

Does anyone have an idea on what could be the cause of this drive spinning up?

Thanks alot for your time.

cache_dirs DOES NOT read into cache anything except the directory entries and file names.  The file contents are NOT in the buffer cache.  The .jpg and .gif and .nfo files must still be read from the physical disk to show them in the interface.

 

To see the exact files involved, install the inotifywatch package and use inotifywait to see the specific files involved.

  • Author

Hey Joe L. Thanks alot for the reply. Yes, I am aware that cache dirs only hold a list of the files and directories in memory but I just added that in case xbmc has to read the logos or something (which im sure it probably doesn't). I guess I just wanted to say that there is nothing out of the ordinary on the disk that maybe xbmc would try to 'access' while it is scanning..

 

What I forgot to add is I had my music also on disk 2 and added to cache dirs which i moved to the cache drive in the meantime. I still had the cache dirs script running while I did that. I deleted the share in unraid UI and remade it cache only. Only now have I edited the cache dir command to only scan movies and tv shares. I dont think this will make a difference though as I didnt have my music share accessed in xbmc.

 

I will keep updating here until I get to the bottom of this :)

 

edit: oh great I was not aware of that package, thanks again Joe L. I think I should just make that my signature ;)

 

I am going to use the following command when the xbmc machine is free

inotifywatch -vr -e access /mnt/disk2

 

I have a feeling for some reason those images for whatever show(s) it is are not getting copied to the local XBMC library on your HTPC and it's trying to do so on every scan. If you can figure out which show(s) it is with inotifywait, remove it from XBMC and then do a scan so it gets readded.

  • Author

Thanks alot mrow. I will check tomorrow when i do the scan. Looking forward to seeing what is causing it now  :D

  • Author

great, I think the problem was 2 zipped files with subs in them so i deleted them.

thanks alot guys for pointing me to the solution

 

Linux 3.4.36-unRAID.
root@Tower:~# inotifywatch -vr -e access /mnt/disk2
Establishing watches...
Setting up watch(es) on /mnt/disk2
OK, /mnt/disk2 is now being watched.
Total of 392 watches.
Finished establishing watches, now collecting statistics.
^Ctotal  access  filename
11     11      /mnt/disk2/TV/Curb Your Enthusiasm/Season 06/
1      1       /mnt/disk2/TV/Planet Earth/subs/
root@Tower:~#

Archived

This topic is now archived and is closed to further replies.

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.