Jump to content

PLEASE HELP, struggling to get chaching to work !


Go to solution Solved by itimpi,

Recommended Posts

Posted (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 

 

2.thumb.PNG.4507ac984c50d78df1440988c6cfeaa8.PNG

 

 

1.PNG

2.PNG

Edited by Ash3000k
Posted

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.)  

image.thumb.png.103a690e0e35cd37ebbb0cb060601584.png

 

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?

  • Like 1
Posted

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!

3.thumb.PNG.7f2430142be1b421aaf4171fe6fa2034.PNG

Posted

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.

Posted
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!

 

1.thumb.JPG.272a2b5119d40a26838154ad3bfd685a.JPG

 

bignas-diagnostics-20240526-1759.zip

  • Solution
Posted

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.

Posted
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

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.

×
×
  • Create New...