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

    Connect NAS storage to FOG

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    15
    1.3k
    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.
    • J
      joanmarzo
      last edited by joanmarzo

      Hi, I want to connect de NAS storage to fog, I don’t know to do that, I try to add a new storage and put the IP of my NAS Server but doesn’t work,

      501cd2c6-08db-4bfa-9dde-aedc68c149c7-image.png

      In my fog I mount the NAS server and it’s work

      98ddc86d-0f9e-4659-8548-3e582dfe9017-image.png

      Can you help me? Thanks alot!!!

      1 Reply Last reply Reply Quote 0
      • T
        Tywyn
        last edited by Tywyn

        As far as I know, you cannot mount a nfs storage from a nas and reexport it, which is required by fog.

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

          @Tywyn said in Connect NAS storage to FOG:

          As far as I know, you cannot mount a nfs storage from a nas and reexport it, which is required by fog.

          This is 100% correct in most situations. I will not discuss the exception because its a fringe use.

          This is roughly equivalent in MS Windows of mapping a share (drive) to computer A on computer B then trying to shared that mapped drive on computer B to computer C. i.e. You can not reshare a mapped share.

          @joanmarzo FOG doesn’t support using a NAS device as a storage node, but with that said there are certain configurations you can make to get it to work.

          First lets start with what manufacturer is your NAS?

          Do you want to store all of your images on the NAS or do you want some stored on the FOG server and some on the NAS?

          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
          • J
            joanmarzo
            last edited by

            @george1421 said in Connect NAS storage to FOG:

            This is 100% correct in most situations. I will not discuss the exception because its a fringe use.
            This is roughly equivalent of mapping a drive to computer A on computer B then trying to shared that mapped drive on computer B to computer C. You can not reshare a mapped share.
            @joanmarzo FOG doesn’t support using a NAS device as a storage node, but with that said there are certain configurations you can make to get it to work.
            First lets start with what manufacturer is your NAS?
            Do you want to store all of your images on the NAS or do you want some stored on the FOG server and some on the NAS?

            Hi @george1421 , thx for u reply.

            My NAS is Synology RS2416+ and I want to storage all images there if is possible.

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

              @joanmarzo Ok since you have a synology nas you have a few options.

              The cleanest in its design and implementation is to create an iSCSI LUN on the synology nas and connect it to your FOG much like you did with the NFS mount, but using iSCSI instead. An iSCSI mounted disk looks just like a physical disk in the server to NFS.

              The second option is to use NFS and configure your nas as a FOG storage node. I created a proof of concept tutorial here: https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node

              In this configuration you will configure the synology NAS to appear as a FOG storage node to the target computer (no worries because the configuration is an extension of how your nas works, not changing how it works). Then in the FOG UI you will make the synology NAS the master node for the storage group and not your 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!

              J 1 Reply Last reply Reply Quote 0
              • J
                joanmarzo @george1421
                last edited by joanmarzo

                @george1421 said in Connect NAS storage to FOG:

                @joanmarzo Ok since you have a synology nas you have a few options.
                The cleanest in its design and implementation is to create an iSCSI LUN on the synology nas and connect it to your FOG much like you did with the NFS mount, but using iSCSI instead. An iSCSI mounted disk looks just like a physical disk in the server to NFS.
                The second option is to use NFS and configure your nas as a FOG storage node. I created a proof of concept tutorial here: https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node
                In this configuration you will configure the synology NAS to appear as a FOG storage node to the target computer (no worries because the configuration is an extension of how your nas works, not changing how it works). Then in the FOG UI you will make the synology NAS the master node for the storage group and not your fog server.

                Hi George, I do that but i can’t see the Storage in my fog, this is the configuration:

                5623cdda-fd1b-41ed-ac81-f9003cba052e-image.png

                bf738736-b9e0-4725-aff1-592c7b0bbec4-image.png

                I mount the directories in my FOG:

                63cfba07-2650-4654-82d6-77bba398162d-image.png

                How do I proceed?

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

                  @joanmarzo I guess I have a few comments here.

                  1. Are you using iscsi or the tutorial to make a synology nas appear as a fog storage node.
                  2. If you are using the nas as a storage node part there are a few drawbacks in that since the synology nas isn’t a fog server it doesn’t have the reporting web pages installed. So it will not appear on your dashboard. Also for the file store and ftp paths, what you have in the picture are correct for a fog server, the paths will change to reflect the actual location on your nas. From what I remember you would have something like the volume name then the path like /volume1/images. The tutorial I had gave actual screen shots of the settings.

                  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!

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    joanmarzo @george1421
                    last edited by

                    @george1421 said in Connect NAS storage to FOG:

                    Are you using iscsi or the tutorial to make a synology nas appear as a fog storage node.
                    If you are using the nas as a storage node part there are a few drawbacks in that since the synology nas isn’t a fog server it doesn’t have the reporting web pages installed. So it will not appear on your dashboard. Also for the file store and ftp paths, what you have in the picture are correct for a fog server, the paths will change to reflect the actual location on your nas. From what I remember you would have something like the volume name then the path like /volume1/images. The tutorial I had gave actual screen shots of the settings.

                    Hi again!

                    I do this, I try to capture a Image and the FOG show me the next error:

                    fe0fa387-6cbe-4580-ac9e-6c634882890d-image.png

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

                      @joanmarzo The permission denied is probably because you didn’t disable squash root. The FOS Linux images using the root user account. Most NFS implementations disable root nfs access as a security measure.

                      In my tutorial make sure you follow the very top post in that thread: https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node Specifically pay attention to the squash and security settings.

                      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!

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        joanmarzo @george1421
                        last edited by

                        @george1421 This is my configuration:

                        d212fdff-25ea-4776-a6e5-580514b75fbf-image.png

                        2a48a2f0-91b6-404d-adad-7151e6048f1a-image.png

                        I put the permission in the directory and doesn’t work 😞

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

                          @joanmarzo Ah I see it. you have a host IP address defined. That says that only 192.168.25.92 can connect to this nfs share. The issue/problem is the target computer’s connect to this NFS share so you need to allow all or the subnet where the target computers will image from in that restriction.

                          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!

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            joanmarzo @george1421
                            last edited by

                            @george1421 said in Connect NAS storage to FOG:

                            Ah I see it. you have a host IP address defined. That says that only 192.168.25.92 can connect to this nfs share. The issue/problem is the target computer’s connect to this NFS share so you need to allow all or the subnet where the target computers will image from in that restriction.

                            I do the configuration,

                            135f43a8-ce2d-4283-bffa-92ddc3d6ec99-image.png

                            And the FOG change the error:

                            575a0b1a-f88e-479a-8127-4e68ce9ca4a8-image.png

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

                              @joanmarzo OK good, you are past the mounting issue.

                              I feel that you missed some steps with this problem. The way the form works is a bit crazy because it puts new posts at the top of the forum. You need to make sure you follow the rest of the steps at the bottom of the thread: https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node/28

                              You are missing the files that fog checks to make sure things are setup correctly. You are almost at the finish line, just a few more steps to go.

                              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!

                              J 1 Reply Last reply Reply Quote 0
                              • J
                                joanmarzo @george1421
                                last edited by

                                @george1421 Hi George,

                                I do this step:

                                8c5b0e2d-45dd-410c-ae5e-cfd71ba04a24-image.png

                                But when I put the command in my server fog this command show me this:

                                11fca73d-0210-4ef8-a3f2-07221d708771-image.png

                                Any idea?

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

                                  @joanmarzo Only a real FOG Server can run the fog replicator service. Marking the nas as a master node allows it to capture and deploy images. If you want image replications to other servers you will need to setup something outside FOG to move the images. Remember I said this configuration is NOT supported by FOG but can kind of work.

                                  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 / 1
                                  • First post
                                    Last post

                                  159

                                  Online

                                  12.0k

                                  Users

                                  17.3k

                                  Topics

                                  155.2k

                                  Posts
                                  Copyright © 2012-2024 FOG Project