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

FOG: 1.5.4 -> How to setup NAS - Synology DiskStation as Master Node

Scheduled Pinned Locked Moved
Tutorials
7
50
13.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.
  • Q
    Quazz Moderator @Tom Elliott
    last edited by Jul 2, 2018, 2:53 PM

    @tom-elliott Fair enough, but he doesn’t appear to be exporting the mounted share.

    I don’t know why exactly he’s mounting it on his FOG server, it doesn’t seem important to making this process work.

    1 Reply Last reply Reply Quote 0
    • A
      Alex78 @Tom Elliott
      last edited by Alex78 Jul 3, 2018, 12:33 AM Jul 2, 2018, 3:01 PM

      @tom-elliott Quite right, but then we can put the 3 folders in one and the same shared folder. For the tutorial I did like that but we could also make a central shared folder for example name “FOG” with the 3 folders in, “images”, “snapins” and “tftpboot” except that the path would be /volume1/FOG/images, /volume1/FOG/snapins…

      1 Reply Last reply Reply Quote 0
      • J
        jeremyvdv
        last edited by Nov 26, 2019, 2:33 PM

        Hello

        I followed your tutorial and thank you for doing this.

        I have my storage which is well added but when I want to capture I have access denied …

        mount 10.1.5.8:/volume1/images on / images permission denied

        If I try to connect to the share on the nas with my FOG user it works.

        Can you help me ?

        Thank you

        G 1 Reply Last reply Nov 26, 2019, 2:42 PM Reply Quote 0
        • G
          george1421 Moderator @jeremyvdv
          last edited by Nov 26, 2019, 2:42 PM

          @jeremyvdv said in FOG: 1.5.4 -> How to setup NAS - Synology DiskStation as Master Node:

          mount 10.1.5.8:/volume1/images on / images permission denied

          Where are you seeing this message?

          If I try to connect to the share on the nas with my FOG user it works.

          From what device does it work? FOG server?

          The target computer connects to the NFS share using the credentials of root if the nfs share has squash root parameter. root will not be able to connect to the nfs share, yet a normal user can mount it. If you pxe boot the target computer in debug mode (tick the debug checkbox before scheduling the task) you can run the commands interactively on the target computer for testing.

          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
            jeremyvdv
            last edited by Nov 26, 2019, 2:45 PM

            if I start in debug mode. what action do I have to do manually?

            Thank you

            G 1 Reply Last reply Nov 26, 2019, 5:21 PM Reply Quote 0
            • G
              george1421 Moderator @jeremyvdv
              last edited by Nov 26, 2019, 5:21 PM

              @jeremyvdv said in FOG: 1.5.4 -> How to setup NAS - Synology DiskStation as Master Node:

              if I start in debug mode. what action do I have to do manually?

              At the FOS Linux command prompt you would key in
              mount -o nolock,proto=tcp,rsize=32768,intr,noatime "$storage" /images where $storage would be the nas server IP address and the file path. For example 10.1.5.8:/volume1/imageswould go there. Don't forget the colon after the IP address and before the path. Also make sure that10.1.5.8` is the IP address of your NAS. If that mounts correctly then the problem is elsewhere.

              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
                jeremyvdv
                last edited by Nov 27, 2019, 7:55 AM

                Hello
                I corrected: my problem by indicating the network of my clients rather than the server on the NFS configuration of synology.

                now i’m experiencing this problem at capture:

                dcbccbb8-5583-41ec-8eb3-dce364636ac1-image.png

                1 Reply Last reply Reply Quote 0
                • J
                  jeremyvdv
                  last edited by Nov 27, 2019, 7:59 AM

                  for information, I have this message at the end of my capture … it happens to create the files on my NAS … but on the end I have this message

                  1 Reply Last reply Reply Quote 0
                  • J
                    jeremyvdv
                    last edited by Nov 27, 2019, 10:42 AM

                    If I have to change the password in fogftp.class.php
                    Thank you for telling me which line exactly because I can not find

                    G 1 Reply Last reply Nov 27, 2019, 1:05 PM Reply Quote 0
                    • G
                      george1421 Moderator @jeremyvdv
                      last edited by george1421 Nov 27, 2019, 7:09 AM Nov 27, 2019, 1:05 PM

                      @jeremyvdv said in FOG: 1.5.4 -> How to setup NAS - Synology DiskStation as Master Node:

                      If I have to change the password in fogftp.class.php

                      You do not edit the code in this case. On your NAS you need to setup the FTP service so that the FOS Linux engine can connect to it. You will need to create a user ID and password on your NAS device. Then on the FOG serve web gui, for the storage definition of the NAS, under the management user and password.

                      You should test using the ftp client on a windows computer to ensure you can connect to the nas using the managment user ID and PASSWORD and navigate to the /volume1/images2 path and to create and delete a directory in that path. If you can then you have the permissions set correctly on the images2 directory.

                      I do have a tutorial that I created for the synology nas too: https://forums.fogproject.org/topic/9430/synology-nas-as-fog-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
                      • J
                        jeremyvdv
                        last edited by Nov 27, 2019, 3:20 PM

                        Hello

                        and thank you for your help.
                        I advanced on the subject by chnging the login in fogsetting.php
                        but now I have the message: maximum number of tries exceeded ftp.

                        On the nas I have no restriction.

                        1 Reply Last reply Reply Quote 0
                        • J
                          jeremyvdv
                          last edited by Nov 27, 2019, 3:49 PM

                          here is where I am.
                          Not easy to set up this storage

                          105d8085-149f-4e8a-831b-33cbf89fa59b-image.png

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by Nov 27, 2019, 4:17 PM

                            @jeremyvdv Probably the account is locked for too many login attempts using the wrong credentials? Can you manually connect to that via a FTP client like FileZilla (host: 10.1.5.8 …)?

                            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
                            • J
                              jeremyvdv
                              last edited by Nov 27, 2019, 4:19 PM

                              yes i tried and since winscp i have no problem

                              1 Reply Last reply Reply Quote 0
                              • J
                                jeremyvdv
                                last edited by Nov 27, 2019, 4:28 PM

                                I see on the error that it uses the root account.
                                out of synology i can not create a root account.
                                that may be the problem.
                                But what if that’s it?

                                Thank you

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by Nov 27, 2019, 4:31 PM

                                  @jeremyvdv Well then change to a different username: FOG web UI -> Storage -> edit the Storage node settings, scroll down to the bottom and edit username and password.

                                  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
                                  • J
                                    jeremyvdv
                                    last edited by Nov 28, 2019, 3:29 PM

                                    actually in my configuration storage web interface of fog it was of course root.

                                    But change that I always have the same error message with my new user

                                    an idea?

                                    Q 1 Reply Last reply Nov 28, 2019, 4:15 PM Reply Quote 0
                                    • Q
                                      Quazz Moderator @jeremyvdv
                                      last edited by Quazz Nov 28, 2019, 10:16 AM Nov 28, 2019, 4:15 PM

                                      @jeremyvdv The IP of the client (that it receives when imaging) is possibly in the NAS FTP blocklist due to too many incorrect login attempts.

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        jeremyvdv
                                        last edited by Nov 29, 2019, 9:06 AM

                                        No, it’s not that … and it uploads the files during the creation of the image.

                                        ba93849c-acb4-4250-bb8d-8f7e22458cbf-image.png

                                        It’s really at the end of the upload that plente.

                                        And the task does not stop on the web interface

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by Nov 29, 2019, 6:53 PM

                                          @jeremyvdv said in FOG: 1.5.4 -> How to setup NAS - Synology DiskStation as Master Node:

                                          No, it’s not that … and it uploads the files during the creation of the image

                                          The upload of the image doesn’t happen via FTP but using NFS. So those are two different things. FTP is only used at the very end to move/rename the image.

                                          From what I see in the last picture it looks like you are using a Synology NAS. In a German forum I just read about someone having the same “Maximum number of tries exceeded” error message and it turned out that his Synology had added a block for his IP address.

                                          You should be able to find the client IP address in the block list of you Synology NAS. See instructions here: https://mariushosting.com/ip-block-list/

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

                                          150

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.3k

                                          Posts
                                          Copyright © 2012-2024 FOG Project