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

    Setup Synology Diskstation as main storage for Fog Sever

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    20
    6.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.
    • C
      chris.dees @Tom Elliott
      last edited by

      @Tom-Elliott I made some changes per your advise and I got past the mounting file system and now it is erroring out on the .mntcheck. I did the touch commands and I can see the files on the NAS but they are 0 bytes. should i copy the mntcheck files from the fog server or is there a different way of creating them?

      I get
      could not verify mount point, check if .mntcheck exists (/bin/fog.upload)

      1 Reply Last reply Reply Quote 0
      • C
        chris.dees @Tom Elliott
        last edited by

        @Tom-Elliott
        I got a little farther. I was able to get the .mntcheck fixed but I am getting a permission error:

        failed to set permissions (prepareUploadLocation)
        args Passd: /images/1866da47c92d

        I get a little further and then another error. any ideas on how to fix this one. The user account on the nas has read and write permission.

        george1421G 1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator @chris.dees
          last edited by

          @chris.dees While this doesn’t directly relate to the Synology NAS, I did write a proof of concept to turn a windows server into a FOG storage node. https://forums.fogproject.org/topic/6941/windows-server-as-fog-storage-node-proof-of-concept-blog

          What is worth noting is the directory structure and the specific nfs share permissions.

          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!

          C 1 Reply Last reply Reply Quote 0
          • C
            chris.dees @george1421
            last edited by

            @george1421 So to update, I actually tore down and reinstalled Ubuntu 14 server and reinstalled fog 1.3.3

            From there, I verified my Synology files
            0_1485977791330_upload-6d72146c-56d5-4ddb-9f52-b10385d5dcee

            from there I used ssh and putty to remote in to my synology and ran the touch /images/.mntcheck and touch /images/dev/.mntcheck
            still in the Synology terminal, I ran sudo chmod 777 -R /volume1/images

            Next, I logged in to my fresh clean fog server, setup the dnsmasq since we have our own DHCP,
            Here is my /etc/exports:
            0_1485977942760_upload-d7c67b17-4615-4f9a-8580-9e8e8dafce1b
            and here is my /etc/fstab
            0_1485979375326_upload-1f8a9793-b7e1-449f-bfe8-e19054a529c6
            So after doing pretty much nothing on the fog server, just setting up dnsmasq, I went to a windows machine I have on the network and logged into the fog/management website, created a new storage node:
            0_1485978701290_upload-36c329a6-4de8-4e44-9177-7841b11610a8

            I then took the username and password from fog settings -> tftp settings and I used this username and password for the new storage group and the user I created on the synology drive.

            I have registered and captured an image successfully and the image is being stored on our synology NAS (set to RAID 0 - ext4). I have not tested snapins yet but that is another day.

            I am going to call it solved. Thank you so much for your help, I was really turned around there on the storage node settings.

            george1421G 3 Replies Last reply Reply Quote 2
            • george1421G
              george1421 Moderator @chris.dees
              last edited by

              @chris.dees Sweet. I’m glad you got it worked out.

              Just for reference I started a tutorial on setting up the synology as a FOG storage node to get this documented once and for all. https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node I might “borrow” bits from your post to make a cohesive how to, if you don’t mind.

              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 @chris.dees
                last edited by

                @chris.dees Looking at your FOG configuration, be sure that there is only one master node in your storage group.

                In your case you are using the synology nas as a master node, and not storing anything on the FOG server itself. This is an interesting configuration, which I’m a bit surprised that it actually worked. Good job!!

                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!

                C 1 Reply Last reply Reply Quote 0
                • C
                  chris.dees @george1421
                  last edited by

                  @george1421 Thank you. It seems to be working for the moment. When I get to work tomorrow, I can document all the settings. The one thing that I don’t like is the NAS storage node does not show on the dashboard but I can capture and image and deploy an image and it seems to be working well.

                  Tom ElliottT 1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott @chris.dees
                    last edited by

                    @chris.dees The reason it doesn’t show on the main dashboard is because we don’t have “control” over the nas presentation.

                    If you could create an app that provides the requisite files, this “could” work, but I don’t know where to begin on such a thing (as I don’t have one of these bad-ass – yes i like them i just can’t afford them lol things anyway).

                    The main thing is that it works and does what you need in terms of imaging though.

                    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

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      chris.dees @Tom Elliott
                      last edited by

                      @Tom-Elliott I figured. We are using the Synology DS916+ on amazon for about $599.99. We are putting 4 4TB WD Red drives in it built on a RAID 0 (this is going to be our storage array so we are focusing on speed and not data redundancy since the images will be replicated from our main fog server)array on ext4. It also comes with 2 NICs so we teamed them together so we have a 2Gbps connection on the network.

                      1 Reply Last reply Reply Quote 0
                      • george1421G
                        george1421 Moderator @chris.dees
                        last edited by

                        @chris.dees Hey, I was just looking at your solution again, and I see something I’m not sure is working right.

                        You have mounted your NAS shares by NFS over /images, and yet on the FOG server you are exporting /images. AFAIK, you can’t reshare an NFS mounted directory.

                        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!

                        Tom ElliottT 2 Replies Last reply Reply Quote 0
                        • Tom ElliottT
                          Tom Elliott @george1421
                          last edited by

                          @george1421 I believe you can share NFS itself, you can’t share a NFS share.

                          Basically two separate hosts can mount the same share.

                          If one one host you are trying to share the mounted share, however, you would hit issues.

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

                            @george1421 this can be seen when imaging two hosts at the same time via unicast.

                            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

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

                              @Tom-Elliott said in Setup Synology Diskstation as main storage for Fog Sever:

                              @george1421 this can be seen when imaging two hosts at the same time via unicast.

                              I guess I’ll have to take your word on this because I looked at the config files again and it looks like he is mounting 172.31.161.246:/volume1/images over /images in the fstab on the FOG server and then sharing out /images on the fog server in the /etc/exports file. The last time I tried that showmount -e 127.0.0.1 showed no shares. But that was a while a go. I was trying to work on a way to create a skinny fog server VM with all files stored on an external NAS. That didn’t work so well.

                              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

                              178

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project