[SOLVED] Files written to cache even though share set to "Cache = no"


Recommended Posts

I received a warning from Fix Common Problems that I have files on my cache drive for a share that's set to not use cache.

 

Here's the config for the "Sport" share:

629861106_2021-08-3014_38_28-NAS_ShareMozillaFirefox.png.22815c1785151964303a255d5a72d4c8.png

 

Browsing the cache pool shows that recent files are there for the Sport share:

image.png.972d91064a612ced29b7c42b9693a899.png

I copied the files from a temp directory (on Cache) to the Sport share using Krusader. Here's the path as reported by Krusader:

image.png.1a523e13be404577378da61d2898794b.png

And here is the mapping for /media from the Krusader config:

image.png.0785dcd8bc389231b093b6b6078a9502.png

 

Why is Krusader writing these files to the cache pool instead of waking up the drive (if necessary) and writing them directly to the array?

 

 

nas-diagnostics-20210830-1450.zip

 

Edited by FreeMan
Link to comment

Did you try copying the files or moving them?     I am asking because you can get strange results using move where the file remains on the same drive but in the new directory (this is a by-product of the way Linux implements move and the fact that Linux does not understand User Shares).  You have to do a copy followed by a delete of the original to avoid this effect.

Link to comment
13 minutes ago, itimpi said:

Did you try copying the files or moving them?

I moved them as I've been doing for ages. I've gone back and forth between using cache and not, but don't recall having run into this before.

 

Based on your question, I copied them from the array to the cache-based temp directory, deleted them from the array, copied them back from cache to the array and deleted them from Cache. Now there are no file on cache.

 

Thanks!

 

10 minutes ago, trurl said:

#2 in this post I often refer to:

Thanks. I have been very much aware of the "don't cross the streams" admonition for years. Since I'm using Krusader and both directory windows work from "/media" I assumed (with all inherent danger, obviously) that it would work properly since it's always worked that way in the past.

 

I guess I know better now, and will be sure to "copy/delete" instead of "move" from here on out.

Edited by FreeMan
Link to comment
  • FreeMan changed the title to [SOLVED] Files written to cache even though share set to "Cache = no"

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.