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.

Cache Yes not working in VMs

Featured Replies

Hello everyone !

 

So, I just built my first server with spare parts and a 10To shucked hard drive.

 

My main use is data backup, Plex streaming and site scrapping.

basically I have a 10To drive, a 1To drive and a 3To drive with no parity (I backup online and don't have the cash for another 10To parity drive) and a 500Go SSD that I use for cache.

 

Now, my Plex runs perfectly ok in a docker container and I have a few other docker containers that I spin up when I need to like a MC server and stuff... But, since I needed to be able to run my scraping scripts (python and golang), I installed a Ubuntu server VM and mounted my /mnt/user in the Ubuntu server. I set all my shares to use the cache (use cache : yes) that way if I copy paste a large amount of data, it will benefit from the SSD high write speed. But when I run scraping scripts, or simply some rclone copy to download data from a remote server, the cache disk fills up and the VM stops until I manually launch the mover even though the "use cache" options says that if the cache drive is full, the data should be written in the array.

 

Did I miss something? Or did something wrong?

Edited by Hermod

Not sure what you did is what you think it should do.

The title says cache Yes and in the text you say that you want the data to be moved from cache to the array only when the cache is full. This is not what Yes does.

I know it can be counterintuitive at first, for more details, use the help within the Unraid interface or ask for specifics.

 

A short resume:

Yes = cache, then array at according to the Mover schedule

No = direct to the array

Prefer = stays on cache as long as there is enough space

Only = Only stays on cache, never goes to the array.

 

Might be good to share your diagnostics in your next post (Tools / Diagnostics).

  • Author

Thank you for your answer!

 

Maybe I didn't understand correctly but when I read the cache description, there is this line : "If there is insufficient space on the Cache disk/pool, then new files and directories are created on the array." So I thought that when I download a lot of files, it will fill up the cache first, and if the cache is filled, then write directly on the array until the mover is invoked to empty the cache. But every time the cache is full, it just shuts down my VMs and stop all downloads.

 

Am I misinterpreting the description?

  • Community Expert

In order for cache-yes to overflow to the array, Unraid must decide that cache doesn't have enough space. Since it has no way to know how large a file will become, it decides to use another disk based on the setting for Cache minimum free in Global Share Settings. While cache has more than minimum, it will always choose cache for new files for cache-yes shares.

 

Each user share has a similar setting for Minimum. When a disk has less than minimum, Unraid will choose another.

  • Author

Thank you for your answer!

 

Makes sense! Didn't think of setting a cache minimum free!

 

Thanks for the help everyone!

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.