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.

UnRaid storing files in cache even though shares set to not use cache

Featured Replies

I have a large amount of files and folders that are either sitting on my cache drive, but they are not being moved over to the shares. The strange thing is that many of these shares are marked to NOT use the cache drive. However, the files are sitting there anyway.

 

When I SSH into the UnRaid box, I did a directory listing on /mnt/cache and saw three folders: Media, VMs, and downloads. When I check their settings in Shares, VMs is set to cache only, but the other two are set to Cache No. Yet, there are files in all of them.

 

When I run mover from the command line it says: skipping "Media, skipping "VMs", skipping "downloads". I understand why it skips VMs, but why isn't it handling the other two?

 

Thanks for any help.

  • Author

Update: I set the two shares, downloads and Media, to Cache Yes and ran the mover. Now it's moving the files over.

 

Why would it store files in the cache in the first place if I didn't want to use the cache drive for those shares?

  • Community Expert

Update: I set the two shares, downloads and Media, to Cache Yes and ran the mover. Now it's moving the files over.

A setting of Cache No is designed to leave any files on the Cache drive even if they logically belong to a share.  The files will show up under the share when you try and read from it but will not be moved to the array disks.  There are scenarios in which this is desired behaviour.

 

Why would it store files in the cache in the first place if I didn't want to use the cache drive for those shares?
This is almost certainly due to either manual action or an app you are running.  This would typically be because there is something like a docker that is using the cache drive and that at sometime issues a rename command to put the files into another folder.  The rename always leaves files on the same drive.  It is likely that in such a scenario you want the Cache Yes setting.

To be more direct, are you running any applications (plugin or docker) that are setup to use /mnt/cache/downloads(or Media)  instead of /mnt/user/downloads(or Media)?

  • Author

To be more direct, are you running any applications (plugin or docker) that are setup to use /mnt/cache/downloads(or Media)  instead of /mnt/user/downloads(or Media)?

 

This was exactly the issue. I was setting many dockers to use /mnt/cache/<whatever> and those directories were set to cache = no. It caused me all kinds of headaches with app configuration as the apps were looking in /mnt/user instead of /mnt/cache for plugins, scripts, etc. So, I switched all apps to use /mnt/user/<whatever> and set the cache drive to yes on the drives where I wanted it cached.

 

I think I misconfigured it initially since I thought when a file was on a cache drive it wouldn't be available until the mover script ran. I later learned that anything in the cache also shows up in the array immediately, but I never reconfigured anything.

 

Things are running great now!

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.