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

    Fog storage node on mounted NAS

    Scheduled Pinned Locked Moved
    General Problems
    3
    20
    1.9k
    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.
    • ?
      A Former User @Tom Elliott
      last edited by

      @tom-elliott

      //192.168.5.3/IT-Files/Images /mnt/images cifs defaults,user=,password=

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @A Former User
        last edited by

        you can make the nas a storage node. Just ensure ftp is setup and the nas share is setup for nfs.

        It still seems a share cannot be reshared.

        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

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @Tom Elliott
          last edited by

          @tom-elliott 0_1522091118949_da294296-c43e-47cd-a2ec-37b516582a18-image.png

          The NAS is a readynas and I have NFS and FTP enabled. Not sure if I have to make any tweaks to make it work.

          Tom ElliottT 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator
            last edited by

            You can not reshare an nfs mounted share. This will not work. FOS connects to the FOG server over NFS, so you can’t mount an nfs share on your fog server and then reshare it via nfs.

            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
            • ?
              A Former User @george1421
              last edited by

              @george1421 So I don’t need to mount it on the server then? So where to I tell the server where to connect to the NAS?

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @A Former User
                last edited by

                @shad0wguy ok let me turn the question around. Why are you using a nas with FOG? And what NAS manufacturer do you have?

                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 @A Former User
                  last edited by

                  @shad0wguy I’d recommend making the nas have a user and password for ftp write access, for uploads. Then create your storage node.

                  IP address would be the ip of your nas. Management user/pass would be whatever you setup.

                  Image path would likely be: /IT-Files/Images
                  FTP path would be the same I’d imagine.

                  Snapin and ssl can probably be left default as they wouldn’t be used in this layout.

                  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

                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @george1421
                    last edited by

                    @george1421
                    I don’t have enough available storage on my vmware host to house the images on it. The nas is a Netgear ReadyNAS.

                    george1421G 1 Reply Last reply Reply Quote 0
                    • george1421G
                      george1421 Moderator @A Former User
                      last edited by

                      @shad0wguy Ok that explains why. So what you can do is turn your readynas into a FOG storage node. Would that work for you?

                      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
                      • ?
                        A Former User @george1421
                        last edited by

                        @george1421 I could give that a shot. I had tried running the entirety of Fog on the nas directly, but the web interface overwrote the NAS’s web interface, which is why I am going this route.

                        Does the FOG storage node create a web interface as well?

                        Tom ElliottT george1421G 2 Replies Last reply Reply Quote 0
                        • Tom ElliottT
                          Tom Elliott @A Former User
                          last edited by

                          @shad0wguy if you install yes it would, though going to the web page would tell you to go to the main.

                          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

                          1 Reply Last reply Reply Quote 0
                          • george1421G
                            george1421 Moderator @A Former User
                            last edited by

                            @shad0wguy Well what I’m proposing is to only create the services that FOG uses on your NAS and not install it using the fog installer.

                            I thought we had a tutorial for the readnas, but all I can find is the qnap and the synology. I can get you started but you will have to carry the configuration home (and hopefully document it for the next guy).

                            Here is the tutorial I created for the synology NAS: https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node

                            Here is the tutorial @Iarwayn created for the QNAP: https://forums.fogproject.org/topic/10973/add-a-nas-qnap-ts-231-as-a-storage-node-fog-v1-4

                            Basically to turn a nas into a FOG storage node you need 4 services.

                            1. FTP
                            2. NFS
                            3. TFTP
                            4. The ability to create a fog user.

                            I also wrote a PoC on turning a windows server into a fog storage node. https://forums.fogproject.org/topic/10097/setting-up-a-windows-2012-server-as-a-fog-storage-node

                            The purpose of providing all of these documents is you can see what is in common with each variant.

                            The only thing that you won’t be able to do is install the fog storage node management code, because of course it will take over the management interface on your fog server. The nas will work well as a storage node.

                            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
                            • ?
                              A Former User @Tom Elliott
                              last edited by

                              @tom-elliott said in Fog storage node on mounted NAS:

                              @shad0wguy I’d recommend making the nas have a user and password for ftp write access, for uploads. Then create your storage node.

                              IP address would be the ip of your nas. Management user/pass would be whatever you setup.

                              Image path would likely be: /IT-Files/Images
                              FTP path would be the same I’d imagine.

                              Snapin and ssl can probably be left default as they wouldn’t be used in this layout.

                              I tried this method, and confirmed I could log into the NAS via ftp using filezilla and create/edit/delete files but when I tried to upload the image I got permission denied again. Do I need to create specific folders inside the share? It looks like it was looking for a Dev folder. The images folder created by the fog installer has a dev and postdownloadscripts folder. Do they need to be copied?

                              Tom ElliottT george1421G 2 Replies Last reply Reply Quote 0
                              • Tom ElliottT
                                Tom Elliott @A Former User
                                last edited by

                                Yes it needs to exist, and postdownload wouldn’t hurt either.

                                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

                                1 Reply Last reply Reply Quote 0
                                • george1421G
                                  george1421 Moderator @A Former User
                                  last edited by george1421

                                  @shad0wguy If you scroll all the way to the bottom of my synology tutorial the post titled Part 2: testing the nfs share. There is a process of populating the /images and /images/dev directories from the master FOG server.

                                  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 1
                                  • ?
                                    A Former User @george1421
                                    last edited by

                                    @george1421 said in Fog storage node on mounted NAS:

                                    @shad0wguy If you scroll all the way to the bottom of my synology tutorial the post titled Part 2: testing the nfs share. There is a process of populating the /images and /images/dev directories from the master FOG server.

                                    I’m going through your steps and am getting stuck at the first step. NFS is returning permission denied when trying to mount the nas. Any ideas why this could be happening? Here are my NFS settings.

                                    0_1522155168235_d3ec56db-10c9-4de9-8ace-534f670cb352-image.png

                                    0_1522155183065_8b3c13c1-2d4b-4d19-a49d-793ccce3cc59-image.png

                                    george1421G 1 Reply Last reply Reply Quote 0
                                    • george1421G
                                      george1421 Moderator @A Former User
                                      last edited by george1421

                                      @shad0wguy I can tell you setting up nfs was the hardest bit of getting the nas to work as a storage node. I need to look back at my post to find what was the key to make it work. It was simple once I learned what was needed.

                                      For testing I can give you some tips.

                                      Login to your fog server. Then run this command.
                                      sudo su -
                                      Then find out who you are
                                      whoami
                                      If you are root then good. You can test your nfs mounting by
                                      mount -t nfs <nas_ip>:/IT-Files/Images /mnt
                                      When that mount command works then you know you have the nas nfs setup correctly. Also watch your case, you are dealing with linux which is case aware.

                                      On the nas you need to have nfs v3 enabled. FOG doesn’t support nfs v4 yet.

                                      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
                                      • ?
                                        A Former User @george1421
                                        last edited by

                                        @george1421 said in Fog storage node on mounted NAS:

                                        @shad0wguy I can tell you setting up nfs was the hardest bit of getting the nas to work as a storage node. I need to look back at my post to find what was the key to make it work. It was simple once I learned what was needed.

                                        For testing I can give you some tips.

                                        Login to your fog server. Then run this command.
                                        sudo su -
                                        Then find out who you are
                                        whoami
                                        If you are root then good. You can test your nfs mounting by
                                        mount -t nfs <nas_ip>:/IT-Files/Images /mnt
                                        When that mount command works then you know you have the nas nfs setup correctly. Also watch your case, you are dealing with linux which is case aware.

                                        On the nas you need to have nfs v3 enabled. FOG doesn’t support nfs v4 yet.

                                        I found the issue. I needed the full path of the nfs location from root rather than just the root of the share.

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

                                        150

                                        Online

                                        12.0k

                                        Users

                                        17.3k

                                        Topics

                                        155.2k

                                        Posts
                                        Copyright © 2012-2024 FOG Project