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.

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…

@sdm42doc (thinking out loud) Yet imaging fails with the error screens you posted…

FTP works, can navigate to, can create directories
permissions are set correctly
captured images going to /images/dev/<mac_name> but not being moved to /images/vol1/<image_name>
Using Ubuntu 16.04.02 with current version of FOG 1.4.0
Works with /images/vol1 as a directory not as mounted volume
== should be working
…

@sdm42doc you have them correct. Did you try with the external ftp client yet?

I’d like to duplicate this with my home lab, but my esxi server is down with a failed power supply (one is on its way from amazon). All I have right now is my FOG-Pi server so I can’t really add a second drive to that to duplicate what you are seeing.

Then from an external computer ftp to the fog server using the user ID and password that is defined in the /opt/fog/.fogsettings file.

Navigate to the /images/vol1 directory and make a directory using the ftp client (like from a ms windows box). If you can make the directory then imaging should work. That is what the FOS engine does. It captures the image to /images/dev/<mac_address> then when done it moves the files using FTP to /images/<image_name>

@george1421 is your vol1 a directory in the /images or a separate hard drive. Mine is a separate hard drive /dev/sdb mounted to /images/vol1 when i made a directory, your right it did work fine. just not a directory mounted

All I did was create a directory under /images (called vol1). The path was /images/vol1 I did change the owner to fog.root Then I setup a new image and set the path to vol1/WIn7Test and then assigned that image to a virtual box VM I have. It captured the image correctly and moved it to the /images/vol1/Win7Test directory correctly.

So I tried it on my home lab, and have no good results. I don’t think it is going to work.

If we can trap the error we can get it fixed, so don’t give up hope on this.

Just for clarity you created the vol1 in images before you imaged the computer? (this is was a sticking point during my discussion with the devs). I’ve got 1.4.0 setup in my home lab, let me see if I can duplicate your results.

So I tried it on my home lab, and have no good results. I don’t think it is going to work.

The uploads go up to /images/dev then only move the image name with 0MB to the /images/vol1/ folder, the other files stay in /images/dev/0050569fb7e7 d1p1.img, ect. but it looks like the image completed with no errors.

@sdm42doc This looks like you might have a storage node configuration still in place. If you look at your last image its using the /image as the root, but the error messages in the next from the bottom its trying to move the file from /images/vol1/dev (but the image is in /images/dev).

The first picture shows that you have the right shares in place for the secondary nodes.

@sdm42doc Just for clarity what I posted below didn’t work for your setup?

If not can you provide the output of these commands

df -h

showmount -e 127.0.0.1

I talked with the developers for quite a while and they were positive it would work as I outlined.

If you setup a storage node route, you need to duplicate the /images base structure below on the new volume. I won’t probably have time tonight to test this in my dev environment but I will get to it tomorrow night.