Ash3000k Posted May 26 Posted May 26 (edited) Hi all, Im struggling to get my unraid server to use the cache, its stays at 22% regardless of where I copy files from/to I have set the shares to use the cache for primary storage and the hard drive array as the secondary I have attached images of the settings ive used, any help would be very much appreciated Edited May 26 by Ash3000k Quote
Frank1940 Posted May 26 Posted May 26 First thing. The cache drive is only used to store new files being written to the share. (Files that are being updated are written directly to the array.) Second thing. Reading a file from the array will not move it to the cache. With your settings, once the file is on the array, it will always be there unless you delete the file. Does this clarify the situation? 1 Quote
Ash3000k Posted May 26 Author Posted May 26 Hi, thank you i understand, however if I understand how it should operate, when I copy a new file to the PLEXMEDIA share it should use the cache but it doesn't, it just sits at 22% Im doing a little research and someone mentioned that it may be a setting that needs to be changed in the 'global shares page'? however I cant see an option to enable cache in it or am I looking at the wrong page? thanks in advance! Quote
itimpi Posted May 26 Posted May 26 You might want to check that the pool to be used for caching has “Enable User Share Assignment” set to Yes. You are likely to get better informed feedback if you attach your system’s diagnostics zip file to your next post in this thread. It is always a good idea when asking questions to supply your diagnostics so we can see details of your system, how you have things configured, and the current syslog. Quote
Ash3000k Posted May 26 Author Posted May 26 11 minutes ago, itimpi said: You might want to check that the pool to be used for caching has “Enable User Share Assignment” set to Yes. You are likely to get better informed feedback if you attach your system’s diagnostics zip file to your next post in this thread. It is always a good idea when asking questions to supply your diagnostics so we can see details of your system, how you have things configured, and the current syslog. Hi. thank you, I have checked the pool device like you suggested and seems to be on already: + I have attached the diagnostic, and thanks! bignas-diagnostics-20240526-1759.zip Quote
Solution itimpi Posted May 26 Solution Posted May 26 According to the diagnostics you currently have 24GB on the cache: /dev/nvme0n1p1 466G 110G 356G 24% /mnt/cache and several shares have files on the cache appdata shareUseCache="prefer" # Share exists on cache domains shareUseCache="prefer" # Share exists on cache isos shareUseCache="prefer" # Share exists on cache P-------A shareUseCache="yes" # Share exists on cache, disk1, disk2, disk3, disk4 system shareUseCache="prefer" # Share exists on cache, disk1 t--t shareUseCache="yes" # Share exists on cache, disk2 t-------e shareUseCache="only" # Share exists on cache need to give more detail as it looks from that as it looks as if cache is actually working. in practice you want to get all of the ‘system’ share onto the cache to maximise performance. To do so you would need to temporarily disable the docker service and then run mover manually. After doing that you can re-enable docker service. Quote
Ash3000k Posted May 26 Author Posted May 26 15 minutes ago, itimpi said: According to the diagnostics you currently have 24GB on the cache: /dev/nvme0n1p1 466G 110G 356G 24% /mnt/cache and several shares have files on the cache appdata shareUseCache="prefer" # Share exists on cache domains shareUseCache="prefer" # Share exists on cache isos shareUseCache="prefer" # Share exists on cache P-------A shareUseCache="yes" # Share exists on cache, disk1, disk2, disk3, disk4 system shareUseCache="prefer" # Share exists on cache, disk1 t--t shareUseCache="yes" # Share exists on cache, disk2 t-------e shareUseCache="only" # Share exists on cache need to give more detail as it looks from that as it looks as if cache is actually working. in practice you want to get all of the ‘system’ share onto the cache to maximise performance. To do so you would need to temporarily disable the docker service and then run mover manually. After doing that you can re-enable docker service. YES ive figured it out, It was my error as when I was using the app 'unassigned devices' to copy new files over I accidentally was selecting "disk 4/ PLEXMEDIA" rather than "Cache/PLEXMEDIA" !! its now consuming the cache as its transferring!! thank you so much for your help kind sir/mam! 😄 + I will look into moving that over thank you 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.