Jump to content
  • [7.0.0-beta.2] Directories created inside ZFS Pool's root are also created in Array


    Espressomatic
    • Minor

     

    This issue was originally found when setting up the LXC plugin, whereby its "lxc" storage directory was exhibiting this issue when stored inside the only pool on the system.

     

    Description

    From terminal (or a script or a plugin), creating a directory under a pool will cause that directory to show up as a share, but listed as stored on Array instead of the Pool.

     

    This happens even if you do not have an Array.

     

    In the case where you have no array, the directory is created in the pool, but the system thinks that this directory/share has 0 bytes free.
    *You may or may not be able to copy anything to it from terminal for example - I've had it work and I've had it report that the target was full.

     

    In the case where you have an array and a pool, the directory will be created in both the pool and in the Array's FUSE FS (not on the actual disks that make up the array). The system will show the directory/share as having the free space of the Array. You can copy as much data as this reported free space.

     

    Steps to Reproduce

     

    On a system with a single NVME drive formatted as ZFS - No Array

     

    image.thumb.png.a07ec42c9cabb8794d96d869c6f185e3.png

     

    From terminal, create a directory on the pool volume

     

    image.png.c63c944bd8db01fb579f2496c0338614.png

    It gets created (shown as TestfolderZ in this image)

     

    image.png.ec1f9a9f29361895030080540a5bdf8c.png

     

    Open the Shares tab in the WebUI to see the directory/share listed as belonging to "Array" (which doesn't exist)

     

    image.thumb.png.7d7ad493de9ee9f63cf7e89b7144ec7e.png

     

    If you check the /mnt/user/ fuse path, you can see the directory appears there as well, but not as a link like all the other shares
     

    image.png.3412ef02b8299a1b43f5516e233e9253.png.25a348e424f45c1769f407f92923ca17.png

     

    The directory/share's settings correctly show that it really belongs under the pool

     

    image.thumb.png.61ad666f6699b5b5ac67afcca786dbb5.png

     

    Making an edit to the settings, such as adding a Comment, and then applying, corrects the issue:

     

    image.thumb.png.381a1771ce53b87893508dd90d5505a5.png

     


    Continued in next post...

     




    User Feedback

    Recommended Comments

    Steps to Reproduce - Continued

    On a system with a ZFS Pool AND an Array

     

    image.png.80f01f35a2d171ff13e4f575c1d7edd3.png

     

    From terminal, create a directory on the pool volume

     

    image.png.e48a1f7524b4c0d5aa5c54ee46f10b30.png

     

    Open the Shares tab in the WebUI to see the directory/share listed as belonging to "Array"

     

    image.thumb.png.03067ce5127428aba23c4af8a65c6adc.png

     

    If you check the /mnt/user/ fuse path, you can see the directory appears there as well, but not as a link like all the other shares

     

    image.png.bbc68314d05b2d368426a9e1452c26d3.png

     

    And there's an extra User0 folder now under /mnt

     

    image.png.b521b0963dc6282b0b7f38e85a34bdee.png

     

     

    The directory/share's settings INCORRECTLY show that it belongs to the Array

     

    image.thumb.png.ac14a75e3384fa906c5c103852572fd4.png

     

     

    To fix the issue as in the previous example, you can edit the share settings, but the Primary Storage needs to be set to the correct pool volume, otherwise it stays as Array.

     

     

    Edited by Espressomatic
    Link to comment

    The folder is not created on the array, but the share has the wrong settings since it was created in the CLI, you are supposed to create the shares (top level folder or datasets) using the GUI, you can still create them manually if you prefer, but will then need to correct the share settings.

    • Like 1
    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.

×
×
  • Create New...