How to create subfolders in a storage node

  • In the old version, I can create new storage nodes by creating a subfolder in /images folder, so I can separate my FOG images for different computer labs. But ever since I upgraded FOG to the latest 1.3.4 version, it no longer works with the subfolder setting, I can only upload the images to the root /images folder.

    Here is my /etc/exports file:
    /images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
    /images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)
    /images/CLAB *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
    /images/CLAB/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)

    And I have .mntcheck file under /images/CLAB/dev folder, but at the end of the upload process, it will say it couldn’t find the uploaded file, and I noticed that the uploaded file is actually saved under /images/dev instead of /images/CLAB/dev

    I hope this problem can be resolved since I have 60+ image files, it will be more organized if I can put them in different subfolders. And this used to work with the old version…

  • @george1421 Thanks! I just upgraded FOG, and it works perfectly :)

  • Moderator

    @Hongyun There is no harm in doing this now or waiting for the stable release. The choice is yours.

  • @george1421 Thanks! I will wait for the stable release then, it’s not super urgent :)

  • Moderator

    @Hongyun FWIW: 1.3.5 has not been released just yet.

    If you would like to update to the latest release candidate 1.3.5-RC7 (that will most likely become 1.3.5 stable) you can follow these steps:

    git clone
    cd fogproject
    git checkout dev-branch
    cd bin
    ./ -y

    Understand that will tell git to only look at the dev-branch. So once 1.3.5 stable is released you will want to run these commands to reset git back to the main feed:

    cd fogproject
    git checkout master
    cd bin
    ./ -y

  • @Tom-Elliott Can you let me know where to download 1.3.5? I got a version by using git clone command, but the version I downloaded still have the same problem.

    git clone

  • Senior Developer

    @Hongyun Yes, update please. I fixed the stripping of forward slashes, and I think backslashes too.

  • @Tom-Elliott Any update on this?

  • But whenever I add CLAB/ in front of the image name, it will automatically remove /, for example, if my image name is ubuntu16, if I enter CLAB/ubuntu16 in the image name, it will automatically changed to CLABubuntu16.

  • Senior Developer

    @Hongyun I don’t think you need the NFS mount to handle “sub” directories.

    It would mean updating your images to use the proper path.

    For example, you have CLAB directory right? It’s already created.

    In the image path field, you would set it to:
    CLAB/<rest of path as you’d like it>

    No need to add the CLAB to the NFS mounts.

  • The old version I mean 1.2.0.
    The server OS is Red Hat Enterprise 6.8, kernel 2.6.32

    CLAB is just a sub folder of /images, I used to create multiple mount points so when I upload images, it will be saved in the sub folders instead of the /images folder.

    If you have better solution instead of using multiple storage nodes, it should be fine for me too. Otherwise, I guess I will have to live with it.

  • Senior Developer

    When you are giving us information, please give us as much as possible.

    In particular, “old version” is not very useful as old is relative. To me, 1.3.3 is “old” since 1.3.4 was released.

    Please also provide OS you’re running on and version of the OS if/as/where/when possible.

    From the sounds of things, you have two “storage” nodes on your setup?

    Is there a reason you’re using CLAB? Is this a mount from somewhere else.

  • Moderator

    While I don’t have an answer for you, could you also include what version is considered the “old version” of fog?

Log in to reply

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.