Jump to content

Issue with cache and share


Go to solution Solved by trurl,

Recommended Posts

Hello,

 

My cache has some empty folders in that won't move/go away. It seems like, as a result, the share that contains those folders says it is unprotected. 

 

All of the folders and files related to the empty ones in the cache fully exist in the array. For some reason it just never fully deleted those folders out of the cache.

 

Please help, this share contains over 20 years of recording studio client archives - I sure would like for that share to say it is fully protected.

 

I was able to test deleting some of that stuff out of the cache, and it did not delete anything out of the share. I did this using the rm -rv command. But is this safe? Can I delete that whole share out of the cache without actually deleting the contents of the share? Will doing so make the share say that is it fully protected?

 

This is relating to the "WSSARCHIVE" share shown in the attached images. 

 

Thank you.

 

 

Screen Shot 2024-02-21 at 12.01.26 PM.png

Screen Shot 2024-02-21 at 12.01.50 PM.png

wssserver-diagnostics-20240221-1235.zip

Edited by Western Sound
Link to comment
  • Solution

You can delete empty folders on cache. What you don't want to do is delete any files on cache that is not duplicated on the array.

 

User shares are pretty simple. Here is how they work.

 

User shares are just the combined top level folders on array and pools.

 

If you create a user share, Unraid creates a top level folder, named for the share, on array or pools, as needed, in accordance with settings you make for that user share.

 

Conversely, any top level folder on array or pools is part of a user share named for that folder. Other top level folders with that same name on other disks or pools are part of that same user share.

 

So, it is possible to create a user share just by creating a top level folder. Any user share you haven't made settings for has default settings.

Link to comment

The way you have configured the share in question, with nothing as Secondary storage, means that Mover will ignore it. If you want Mover to move its files to the array, you will have to configure it as Primary:cache, Secondary:array, Mover:cache->array.

 

Nothing can move open files. And Mover won't replace files, so if something exists on cache and array, you will have to decide which to keep.

 

After you get things Moved to the array, you can change it to Primary:array, Secondary:none and new files won't go to cache.

 

Or, you could just take care of all this yourself and leave Mover out of it.

 

I suggest you don't do this from the command line. You should never mix disks or pools with user shares when moving or copying files or you could lose data. Install Dynamix File Manager plugin to manage folders and files directly on the server. It will prevent you from making this mistake.

 

More about the "mixing" here, which discussion led up to creation of Dynamix File Manager:

 

 

Link to comment

Thanks for all of this.

 

So I did have the Cache set to primary and the Array set to secondary with the mover set to move things from the Cache to the array. This issue occurred while it was set like that, but for some reason, those folders were never removed from the cache after being moved to the array. 

 

I had a large set of files to move, more than the size of my cache, so I went to change it to not use the cache, which is when I noticed this issue.

 

While the cache was set to primary etc, I tried to manually invoke the mover, and it would say complete in the system log, but the empty folders remained in the cache.

 

I have deleted the folders out of the cache and the share now says it is protected. So problem partially solved. I guess the question now, is why this happened. However, I think I will generally just not use the cache since many of my transfer are larger than the cache.

 

Thanks for all of the help!

 

-Paul

 

 

Link to comment

Mover runs on schedule, set in Scheduler Settings. Default is daily in the middle of the night, when the server is probably idle. Mover is intended for idle time.

 

Even if you schedule it more frequently, or run it manually, it is impossible to move from fast cache to slow array as fast as you can write to cache, and continuing to write to cache while mover runs only makes this worse.

 

If you need to write more than cache can hold, don't cache.

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.

×
×
  • Create New...