Cache Mirror


Recommended Posts

Hi, so I was wondering about how you go about achieving redundancy in the write cache for the period between being written to the cache and the cache being flushed to the parity array. Do I need to configure two SSDs as a raid in the bios using Intel Rapid Storage, or do you just supply two disks and it takes care of it at software level in UNRAID?

 

Also I want to have a good amount of SSD space for VMs, plex transcoder cache and plex library. Do I need to buy a third SSD for that or can I use part of the mirror I either create in the first part of this question?

 

Finally, when I'm loading up the array with my content, it's pretty obvious that I'm going to run out of cache before it's flushed to disk at night, what happens in that instance?

Link to comment

The default configuration for the cache pool is btrfs raid1 so you get a mirror. It can be used as write cache, VMs, dockers, whatever you want. Other configurations are possible for the cache pool, and some people also use unassigned disks for VMs and dockers.

 

User shares set to cache-yes will overflow to the array. You need to be sure to set Minimum Free for cache (in Global Share Settings) to larger than the largest file you expect to write to cache. Unraid doesn't know how large a file will become when it begins to write it. If a disk has less than Minimum Free it will choose another disk to begin the write.

 

For the initial load, people often don't cache anything. Some even wait until the initial load is done before building parity so there is no write performance penalty for parity updates. There is also the Turbo Write setting to get better write speed with parity.

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.