• 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
    10.2k
    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.
    • george1421G
      george1421 Moderator @sdm42doc
      last edited by george1421

      @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 Reply Quote 0
      • S
        sdm42doc @george1421
        last edited by

        @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

        george1421G 1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator @sdm42doc
          last edited by george1421

          @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

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

            george1421G 1 Reply Last reply Reply Quote 0
            • george1421G
              george1421 Moderator @sdm42doc
              last edited by george1421

              @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 Reply Quote 0
              • S
                sdm42doc @george1421
                last edited by

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

                george1421G 2 Replies Last reply Reply Quote 0
                • george1421G
                  george1421 Moderator @sdm42doc
                  last edited by george1421

                  @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
                  • george1421G
                    george1421 Moderator @sdm42doc
                    last edited by george1421

                    @sdm42doc selinux is disabled on these servers, right? or at least set to permissive. I would think you would have had other issues if selinux was stepping on things.

                    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
                    • Tom ElliottT
                      Tom Elliott
                      last edited by

                      I need to rethink things.
                      That said, however, you shouldn’t need to export the new mount point.

                      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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sdm42doc @Tom Elliott
                        last edited by

                        @Tom-Elliott @george1421 - Here is the latest news.

                        I removed the mount points on the server in /etc/exports
                        so they only show

                        0_1495714432985_Screen Shot 2017-05-25 at 8.13.42 AM.png

                        I uploaded an image to /images/vol1/… (and it looks successful

                        0_1495714471319_IMG_1604.JPG

                        However, after looking into the restart on the server, the image file copies the name only with 0 kb.

                        0_1495714500576_IMG_1605.JPG

                        Then after the temp files remain in /images/dev/macaddress, ect. and don’t move.

                        0_1495714539402_Screen Shot 2017-05-25 at 8.09.29 AM.png

                        Now, I am confirming that a “directory” outside of a directory volume in /images/sample do work properly. Where as /images/sample is the directory with the proper rights.

                        0_1495714617956_Screen Shot 2017-05-25 at 8.16.33 AM.png

                        Image is complete and computer restarts

                        0_1495714756696_IMG_1606.JPG

                        Then the image is moved correctly into the directory /images/sample

                        0_1495714811668_Screen Shot 2017-05-25 at 8.19.55 AM.png

                        My other thoughts are that I may try. Is it an ext4 thing or should I go back to ext3, and try it.

                        Let me know know what you think. I am willing to work with you guys for the success of this project as always! Thank you

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

                        244

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project