• User Share / Mover oddities


    tbone
    • Closed

    I noticed some stuff on my cache drive that was unexpected, and decided to track it down.

     

     

    First, if you have a file in a share that's cache-only, and move it to a share that's no-cache, it leaves the file on the cache directory.

    e.g.

    /mnt/user/Downloads == cache-only share

    /mnt/user/Books == no-cache share

    'move /mnt/user/Downloads/foo /mnt/user/Books/' will move

    /mnt/cache/Downloads/foo to

    /mnt/cache/Books/foo

     

    By itself that wouldn't be a big deal, but it looks like the mover is specifically written to look for files in shares that are cache:yes, so it never gets around to moving those files off of the cache drive.




    User Feedback

    Recommended Comments

    This is an inherent quirk of the underlying Linux system in that if it thinks the source and target are on the same mount point it implements move by first attempting a simple rename (for speed) and only if it fails does a copy/delete get run.   Since this is fundamental Linux behavior I am not sure that there is anything Unraid can do about it.   Mover is specifically written to leave files for a share with Use Cache = No alone even if they exist on the cache as there is a Use Case for that behaviour.   A possible solution might be to introduce yet another option for the Use Cache setting, but users already have problems with the number of options already allowed for.

     

    The ‘workaround’ is to either use a copy/delete operation yourself or to make the target folder have a Use Cache=Yes setting so that mover will later transfer the file to the array.

     

    You often see this behaviour when using a docker container to automate downloads.   If you set the drive mappings for the container to have different internal mount points then the version of Linux inside the container will implement its own ‘move’ as a copy/delete so the issue does not arise at the Unraid level.   However it is still often more convenient to simply set the target to a location set with Use Cache = Yes.
     

    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
    Add a comment...

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


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.