• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

How to create subfolders in a storage node

Scheduled Pinned Locked Moved Solved
General
5
36
9.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    sdm42doc
    last edited by May 24, 2017, 6:00 PM

    Has anyone had any luck with directories under /images.

    I mounted another volume (for more storage) under /images to try to force it and no luck.

    I thought you could have multiple storage nodes on the same server with additional hard drives at one point. I have been a “fog user” since the beginning, and thought for sure i had this setup before.

    I am on Ubuntu 16.04.02 with current version of FOG 1.4.0.

    G 1 Reply Last reply May 24, 2017, 6:23 PM Reply Quote 0
    • G
      george1421 Moderator @sdm42doc
      last edited by May 24, 2017, 6:23 PM

      @sdm42doc No joy for you, subfolders are still not supported.

      Now you do have some options.

      1. If your server uses LVM, just add the additional space to the LVM volume where the /images are.
      2. Temp mount the new volume over another directory, move the contents of /images to the new volume via the mount point, disconnect the mount point and mount it over /images

      There are some other ways to extend it but it then gets a bit messy.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      1 Reply Last reply Reply Quote 0
      • G
        george1421 Moderator
        last edited by george1421 May 24, 2017, 1:21 PM May 24, 2017, 7:19 PM

        Just circling back on this after I talked with the developers. That sub directory functionality WAS added to FOG 1.4.0. I was wrong before. You can create subfolders in the /images directory something (as seen below). Once you set your image name you can alter the image path field. Understand there is ONE caveat here, as in my example the /images/myfolder directory MUST exist before you create this image definition. If not your capture will fail.

        In your case the /images/myfolder (or what ever you call it) will be a mount point for your new disk volume.

        0_1495653475052_fog_subfolders.png

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        S 1 Reply Last reply May 24, 2017, 7:35 PM Reply Quote 0
        • S
          sdm42doc @george1421
          last edited by May 24, 2017, 7:35 PM

          @george1421 Thank you. I actually got the subfolders to work. I had to manually create the folder, set rights, and it works inside /images. However, my latest thoughts, I want to add hard drive space outside of LVM to /images. So I set a mount point with the proper rights to /images/vol1, vol1 being the new mount point of a hard drive. The image looks like it goes up no issues, until the end, the system won’t copy the images from /dev over to /vol1. I tried creating this as a storage group /images/vol1, and a fake directory if you will concept and I have no luck. In the past, couldn’t you have more HD in the server for storage nodes, or am I dreaming about this. I have spent two days, trying to figure this out, its now a challenge to see if it works. Take care, thank you for the response.

          G 1 Reply Last reply May 24, 2017, 9:14 PM Reply Quote 0
          • G
            george1421 Moderator @sdm42doc
            last edited by May 24, 2017, 9:14 PM

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

            If not can you provide the output of these commands

            1. df -h
            2. 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.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            S 1 Reply Last reply May 24, 2017, 10:31 PM Reply Quote 0
            • S
              sdm42doc @george1421
              last edited by May 24, 2017, 10:31 PM

              @george1421 attached is the screen shot from the fog box.

              0_1495664599577_Screen Shot 2017-05-24 at 6.21.05 PM.png

              I also replicated all of the interiors of the files as outlined, copying the /dev/ files to the vol1/ ect.

              On upload, it looks like all is well, the image is going to /images/dev/(mac address of machine) then on the final write, it fails, as attached.

              I am going to try to recreate this issue in my home lab tonight.

              0_1495665048302_IMG_1599.JPG

              0_1495665060371_IMG_1600.JPG

              G 1 Reply Last reply May 24, 2017, 10:42 PM Reply Quote 0
              • G
                george1421 Moderator @sdm42doc
                last edited by May 24, 2017, 10:42 PM

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

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                1 Reply Last reply Reply Quote 0
                • W
                  Wayne Workman
                  last edited by May 24, 2017, 11:25 PM

                  I didn’t read the whole thread, just the title. Another guy tried doing this but it ended up not working, I told him to undo it.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                  Daily Clean Installation Results:
                  https://fogtesting.fogproject.us/
                  FOG Reporting:
                  https://fog-external-reporting-results.fogproject.us/

                  1 Reply Last reply Reply Quote 0
                  • S
                    sdm42doc
                    last edited by May 25, 2017, 12:09 AM

                    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.

                    0_1495670861881_Screen Shot 2017-05-24 at 7.46.37 PM.png

                    0_1495670944373_Screen Shot 2017-05-24 at 8.08.46 PM.png

                    G 1 Reply Last reply May 25, 2017, 12:18 AM Reply Quote 0
                    • G
                      george1421 Moderator @sdm42doc
                      last edited by george1421 May 24, 2017, 6:19 PM May 25, 2017, 12:18 AM

                      @sdm42doc

                      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.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                      G 1 Reply Last reply May 25, 2017, 12:37 AM Reply Quote 0
                      • G
                        george1421 Moderator @george1421
                        last edited by May 25, 2017, 12:37 AM

                        @george1421 Well I have sad news, it worked for me.

                        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.

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                        S 1 Reply Last reply May 25, 2017, 12:43 AM Reply Quote 0
                        • S
                          sdm42doc @george1421
                          last edited by May 25, 2017, 12:43 AM

                          @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

                          G 2 Replies Last reply May 25, 2017, 12:56 AM Reply Quote 0
                          • G
                            george1421 Moderator @sdm42doc
                            last edited by May 25, 2017, 12:56 AM

                            @sdm42doc Yes it was a directory, but that should work the same as the mount point for a hard drive.

                            Are the permissions set correctly on that mount point after its mounted?

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                            1 Reply Last reply Reply Quote 0
                            • G
                              george1421 Moderator @sdm42doc
                              last edited by george1421 May 24, 2017, 7:02 PM May 25, 2017, 1:01 AM

                              @sdm42doc We can test without imaging easy

                              Mount up that new drive to the vol1 mount point under /images

                              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>

                              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                              S 2 Replies Last reply May 25, 2017, 1:04 AM Reply Quote 0
                              • S
                                sdm42doc @george1421
                                last edited by May 25, 2017, 1:04 AM

                                @george1421 I believe I have the rights correct, as attached, maybe you will see something I missed. I appreciate all your help!

                                0_1495674153010_Screen Shot 2017-05-24 at 9.01.58 PM.png

                                G 1 Reply Last reply May 25, 2017, 1:14 AM Reply Quote 0
                                • G
                                  george1421 Moderator @sdm42doc
                                  last edited by george1421 May 24, 2017, 7:14 PM May 25, 2017, 1:14 AM

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

                                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    sdm42doc @george1421
                                    last edited by May 25, 2017, 1:14 AM

                                    @george1421 I can walk around and upload files from my desktop, create directories, ect all through that HD marked vol1 logged in as fog through ftp.

                                    G 1 Reply Last reply May 25, 2017, 1:17 AM Reply Quote 0
                                    • G
                                      george1421 Moderator @sdm42doc
                                      last edited by george1421 May 24, 2017, 7:19 PM May 25, 2017, 1:17 AM

                                      @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
                                      …

                                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                      S 1 Reply Last reply May 25, 2017, 1:24 AM Reply Quote 0
                                      • S
                                        sdm42doc @george1421
                                        last edited by May 25, 2017, 1:24 AM

                                        @george1421 this is one of those weeks, my testing was as follows

                                        1> physical hardware rack fog server with raid controller mirror raid with volumes / and /vol1 ubuntu 16.04.02 fog 1.4.0
                                        2> esxi hosted fog server with two volumes / and /vol1 ubuntu 16.04.02 fog 1.4.0

                                        tomorrow, I am going to do a fresh install on esxi, and test it accordingly and try to triplicate it and I will report back.

                                        G 2 Replies Last reply May 25, 2017, 1:27 AM Reply Quote 0
                                        • G
                                          george1421 Moderator @sdm42doc
                                          last edited by george1421 May 24, 2017, 7:28 PM May 25, 2017, 1:27 AM

                                          @sdm42doc Are you getting the same error as in this post with your home kit where you didn’t try to setup the storage node bits?
                                          https://forums.fogproject.org/topic/9456/how-to-create-subfolders-in-a-storage-node/19

                                          I can/will also duplicate with our dev lab at the office tomorrow. I can more closely emulate what you have with that environment.

                                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 2 / 2
                                          2 / 2
                                          • First post
                                            23/36
                                            Last post

                                          174

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project