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

    Synology NAS as master node for multicast?

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    10
    3.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.
    • S
      Systeembeheer
      last edited by

      Hello,

      We have set up a new virtual Fog server (Trunk 7128 / Ubuntu 14.04) with a Synology NAS as master storage node, all is working great, except multicast, the multicast log says “This is not the master node”.

      What can we do make multicast work with a Synology NAS as master storage node?

      Peter

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        You can’t. Unless you know of a way to ensure the GUI and fog service files to be installed on the NAS, this is not possible.

        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
        • S
          Systeembeheer
          last edited by Systeembeheer

          Hi Tom,

          Thanks for your fast reply. If we create a mount point to the NAS will that work?
          We want to keep the virtual Fog server disk space as small as possible.

          Peter

          Tom ElliottT 1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott @Systeembeheer
            last edited by

            @Systeembeheer Using the NAS mounted to the fog server is possible, but not necessarily straight forward. THis is because most NAS’ allow you to NFS or CIFS mount the share. I’m fairly sure there are other methods as well, but the most common, I would think, would be one of the types stated earlier. Most often, I think, people use NAS NFS mounted to their system. However, this setup doesn’t work in FOG’s typical scenario as FOG NFS share’s the images location as well. You cannot NFS share an NFS share. So the other option would be the CIFS/Samba/Windows Network share mounted as your /images location. This, though, I’m not sure, will allow NFS either. It “MAY” work in the case of deploy, but I’m pretty sure it would fail on an Upload tasking. That and it could be potentially slow as you’re networking sending data across two separate network points.

            On one hand, however, I think you could install the FOG GUI and Services on a NAS, though I wouldn’t know where to begin. Most NAS’s use a Linux backend, so if you can install udpcast and the FOG Services (either init.d scripts or systemctl scripts) and configure them to start up with the nas, you may have some preliminary success. Again, the feasibility of such a thing is unknown at least to me.

            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
              last edited by george1421

              In theory (I just haven’t had to do it yet), you can use a bind mount to do what’s needed here.

              The first step would be to create a mount point on your fog server and then connect to NAS either via nfs or iSCSI to the mount point on the fog server. You would do something in the order of

              mkdir /mnt/fognas
              mount -t nfs <nas_ip_addr>:/<nas_nfs_share> /mnt/fognas

              Then create a bind mount between the /mnt/fognas and /images
              mount -o bind /mnt/fognas /images

              (note: you may need to move the images directory before the bind mount will work.) Once its setup. touch a file in the /images directory and confirm it is created on this nas. When that is done, mv the contents of the old /images directory to /mnt/fognas folder. Then review /images on the fog server to confirm all of the files are where they should be.

              The last bit you need to update is the /etc/fstab so this mount and remount work every time.

              <nas_ip_addr>:/<nas_nfs_share> /mnt/fognas nfs rw,hard,intr,rsize=8192,wsize=8192
              /mnt/fognas /images bind bind 0 0
              

              Understand I have not tested this myself, but what you want to do is possible (in theory). There will be a performance penalty for doing this since the image will need to move from the nas to the fog server and then from the fog server to the target computer. I have no clue on what you can expect (in regards to performance) from this configuration. I’m going to suspect your NAS will be the slowest part of the deployment.

              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
              • Wayne WorkmanW
                Wayne Workman
                last edited by Wayne Workman

                Asking because I am just looking for clarification - with multicast, the /images directory is not mounted on the target hosts, because multicast instead uses udpsender right? So you could in theory mount a remote NAS to a fog server and multicast from it? Am I wrong or right here?

                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/

                Tom ElliottT 1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott @Wayne Workman
                  last edited by

                  @Wayne-Workman Sort of…

                  We still need to tell the drive to “do” preparative tasks so we actually still mount the NFS so we can apply the mbr and resizes per what the image has.

                  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

                  Wayne WorkmanW 2 Replies Last reply Reply Quote 0
                  • Wayne WorkmanW
                    Wayne Workman @Tom Elliott
                    last edited by

                    @Tom-Elliott Oh. Ok. Well if that’s the case then it isn’t possible because you can’t export a directory that is already exported.

                    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
                    • Wayne WorkmanW
                      Wayne Workman @Tom Elliott
                      last edited by Wayne Workman

                      @Tom-Elliott said in Synology NAS as master node for multicast?:

                      @Wayne-Workman Sort of…

                      We still need to tell the drive to “do” preparative tasks so we actually still mount the NFS so we can apply the mbr and resizes per what the image has.

                      I wonder if we could FTP those small files like mbr and partition info onto the target host into RAM instead of NFS mounting the images directory? Just for multicast.

                      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
                        Systeembeheer
                        last edited by

                        Thanks for all the suggestions, we tried all the mount scenarios, its like Tom said you cannot NFS share an NFS/CIFS share.

                        It would be awesome if Wayne’s idea can be implemented in Fog so everything can be stored on the NAS, so the virtual Fog server disk space will be as small as possible.

                        We think the whole community will be very happy with it… at least we will be 🙂

                        Peter

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

                        156

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.3k

                        Posts
                        Copyright © 2012-2024 FOG Project