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 drive + array spin up

Featured Replies

I wonder how exactly the strategy of unraid (6.3.2) regarding creating files on the cache drive works and if it is spinning up the array drives for creating files on cached user shares. My overarching theme is to minimize array spin-up. First, here is my understanding of some of the pitfalls of the process - and please correct me if i am wrong.

 

1) if a file get's copied to a user share (over the network) that is set to "use cache disk = yes". It gets created on the cache drive. Does at this point the array need to spin up? For example it could be the case that the file already exists. And the copy is in fact an overwrite operation.How does unraid handle this, does it check the array first before creating the file? And if it is an overwrite, is the file still created on the cache drive or does it write to the array directly.

 

2) A Solution with minimal array spin up would be to let the file be copied to the cache file, no matter if it exists on the array and let the mover overwrite the previous version during the scheduled move. Am I correct to assume that this is NOT how unraid works and that it checks the array first (as in 1 above)? Many programs explicitly check for a file exists before writing, and i cannot imagine a way to prevent array spin up in this case - but is this really true?

 

3) Imagine the same case as above but the file is not copied through the network but localy to "mnt/user/cachedshare", does it work in the same way or does it differ from the above behavior.

 

4) Would the cache-dir app help to minimize spin-ups if unraid checks (see 1) the array first.

 

Any thoughts on this?

 

 

 

 

 

Would like to know if the cache also keeps the entire filelist of the server, that would keep the drives from spinning up.....

  • Community Expert

Yes it checks if the file exists and if it already exists on the array it overwrites it there. Cache_dirs plugin might help with this since it will try to keep directory entries in RAM so it won't have to look at the disks.

On 3/16/2017 at 4:26 AM, Videodr0me said:

1) if a file get's copied to a user share (over the network) that is set to "use cache disk = yes". It gets created on the cache drive. Does at this point the array need to spin up? For example it could be the case that the file already exists. And the copy is in fact an overwrite operation.How does unraid handle this, does it check the array first before creating the file? And if it is an overwrite, is the file still created on the cache drive or does it write to the array directly.

An overwrite will still send the file to the cache drive.  A modification of the file will write the modification directly to the array.

 

On 3/16/2017 at 4:26 AM, Videodr0me said:

2) A Solution with minimal array spin up would be to let the file be copied to the cache file, no matter if it exists on the array and let the mover overwrite the previous version during the scheduled move.

This situation results in "duplicate" files being present, since the file exists on 2 disks included in the array.  There are rules in place to dictate which version of the file is read when this takes place, but you're best to avoid it altogether.

 

On 3/16/2017 at 4:26 AM, Videodr0me said:

3) Imagine the same case as above but the file is not copied through the network but localy to "mnt/user/cachedshare", does it work in the same way or does it differ from the above behavior.

Writes to user shares via the network or locally do not change anything.  They respond the same way

6 minutes ago, tr0lll said:

Would like to know if the cache also keeps the entire filelist of the server, that would keep the drives from spinning up.....

Install Dynamix Cache Dirs plugin to try and accomplish this.

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.