mgutt Posted July 26, 2020 Posted July 26, 2020 I installed the unifi-controller docker a few days ago and I did not change the cache mode of the "appdata" share. Its still set to "prefer". This means new files should be written directly to the cache drive and should stay there, but there are files on my disk array. How is that possible? P.S. Some of my plex docker files are on the disk array, too (same appdata folder), so its not only related to this specific docker container. Quote
JonathanM Posted July 26, 2020 Posted July 26, 2020 45 minutes ago, mgutt said: Its still set to "prefer". This means new files should be written directly to the cache drive and should stay there, but there are files on my disk array. How is that possible? Prefer allows files that are written to the user share to go to the array if the specified cache pool is below minimum space. IF the files on the array aren't open AND there is space, the mover will put them back on the cache pool. So, if a file is written to the array and it is open while the mover runs, it will stay on the array even if there is now enough space. Quote
mgutt Posted July 26, 2020 Author Posted July 26, 2020 48 minutes ago, jonathanm said: if the specified cache pool is below minimum space Ah yes. How could I solve this? Because the files will never be moved to the cache as they are in use. Quote
JonathanM Posted July 26, 2020 Posted July 26, 2020 Stop whatever process has the files open, run mover, restart what you stopped. Quote
mgutt Posted July 26, 2020 Author Posted July 26, 2020 (edited) 9 minutes ago, jonathanm said: Stop whatever process has the files open Sorry, I meant a resistent solution. What happens if I choose the "Only" cache mode and there is still free space because of the "Min. free space" setting, will this cause an out of space error or does it write to the free space? Edited July 26, 2020 by mgutt Quote
JonathanM Posted July 26, 2020 Posted July 26, 2020 Min free space determines the threshold to write new files. If the space is below that, it will give out of space error. The min free is to ensure that files already on the volume have room to expand. Quote
mgutt Posted July 26, 2020 Author Posted July 26, 2020 Hmm.. ok. Then the only solution is to buy a bigger SSD ^^ Quote
mgutt Posted September 29, 2020 Author Posted September 29, 2020 (edited) On 7/26/2020 at 11:55 PM, jonathanm said: Min free space determines the threshold to write new files. If the space is below that, it will give out of space error. The min free is to ensure that files already on the volume have room to expand. Does this also happen if the target path is "/mnt/cache/sharename" (so directly writing to the disk)? The idea would be to set Plex config path to "/mnt/cache/appdata/Plex-Media-Server" and configure a minimum free cache of "100GB" so Plex never starts writing to the array, no matter how full the cache disk is. Edited September 29, 2020 by mgutt Quote
JonathanM Posted September 29, 2020 Posted September 29, 2020 3 hours ago, mgutt said: The idea would be to set Plex config path to "/mnt/user/cache/Plex-Media-Server" That path is wrong, it consists of all root folders named cache on any disk in the array. Don't create user shares with the same name as disk shares, it will be very confusing to you. Quote
mgutt Posted September 29, 2020 Author Posted September 29, 2020 (edited) @jonathanm Sorry, this was a typo. I meant "/mnt/cache/appdata/Plex-Media-Server". So direct access to cache disk. This should reduce CPU load as well as Unraid's SHFS process is bypassed. Edited September 29, 2020 by mgutt Quote
JonathanM Posted September 29, 2020 Posted September 29, 2020 4 hours ago, mgutt said: Does this also happen if the target path is "/mnt/cache/sharename" (so directly writing to the disk)? I am unsure where the min free space setting is checked, but I suspect it's at the network share level, so direct disk writes by a local (docker container) source probably will not trigger the out of space error until the disk is actually filled. I've never actually checked, so I'm speculating. Quote
mgutt Posted September 30, 2020 Author Posted September 30, 2020 On 9/29/2020 at 1:15 PM, jonathanm said: probably will not trigger the out of space error You are right. I've tested it. And changing the config path to direct cache disk access, resulted in a tremendous speed gain for Plex! Quote
Recommended Posts
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.