Posted July 30, 20213 yr I have shared folders I want to access over SMB. A couple of those I have set to cache with my single nvme cache drive, for speedy updates. Now, to access the share, write to it over SMB, etc., while benefiting from the cache, do I share the cache drive over SMB and use that path from windows, or is this accomplished transparently and I only need to map the shares on the array themselves? Thanks for clarifying. Edited July 30, 20213 yr by Freedomfries
July 30, 20213 yr Community Expert 13 minutes ago, Freedomfries said: only need to map the shares on the array themselves This^ In fact, I never even bother to map, just browse the network to access the shares. Best if you don't even share disks. And even when working directly on the server, don't mix disks and user shares when moving or copying. Since the user shares are just another view of the disks, it is possible to accidentally try to copy a file onto itself, with the result that it gets wiped.
July 31, 20213 yr Community Expert 3 minutes ago, trurl said: accidentally try to copy a file onto itself There are a couple of ways user shares can produce unexpected results. Not really a problem if you are aware of them. If you mix user shares and disks when moving/copying files, you can actually lose data, because Linux doesn't realize that the source path and the destination path might actually be the same file, and so tries to overwrite what it is trying to read. This is often referred to as the User Share Copy Bug. The Linux command for Move and Rename are the same, mv. So when you try to move files from one user share to another, Linux will often simply rename the files so they have a different path on the same disk, in violation of any user share settings such as included disks. The workaround for this is to copy from source to destination, so that new files get created following the user share settings, then deleting from the source.
July 31, 20213 yr Author Thanks for clarifying! Unraid is its own beast, I'm a newb to it. Edited July 31, 20213 yr by Freedomfries
July 31, 20213 yr Author One more question regarding cacheing. I have a single 500gb nvme cache drive. I'm unclear about the way cacheing works with respect to the folders on the array assigned to be cached. Does the cache function transfer the entire share onto the cache disk, or only progressively as items are read/written to disk? I have 2TB worth of movies in a share. This obviously raises a question of whether I should cache it. My inclination is not to. Edited July 31, 20213 yr by Freedomfries
July 31, 20213 yr Community Expert Caching only applies to new files (assuming the caching is enabled for the share in question). If you have Use CACHE=yes set then the mover function later moves the files to the array.
July 31, 20213 yr Community Expert mover is intended for idle time and runs on schedule, default daily in the middle of the night.
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.