• 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
12.1k
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.
  • G
    george1421 Moderator @george1421
    last edited by george1421 Dec 10, 2019, 11:59 AM Dec 10, 2019, 5:57 PM

    @george1421 After having a chat session with @jeremyvdv which we had to cut short I discovered somethings.

    I asked him to post the output of the kernel parameters from a debug session.

    cat /proc/cmdline
    loglevel=4 initrd=init.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.16.3.129/fog/ consoleblank=0 rootfstype=ext4 mac=00:00:00:00:00:00 ftp=10.1.5.8 storage=10.1.5.8:/volume1/images2/dev/ storageip=10.1.5.8 osid=5 irqpoll hostname=LP0045 chkdsk=0 img=test10 imgType=n imgPartitionType=all imgid=5 imgFormat=5 PIGZ_COMP=-10 hostearly=1 pct=5 ignorepg=1 isdebug=yes type=up
    

    Where we can see the storage path for NFS is 10.1.5.8:/volume1/images2/dev but looking on the nas via FTP there is no reference to /volume1/images2 its just /images2, yet there is data in /images2/dev/<mac_address> directory. So NFS is working and FTP is not.

    store_path2.png

    If we looked at what he posted as a screen shot of the nas storage node
    store_path1.png

    We can see that he is clearly calling out /volume1/images2

    When he connected via ftp to the nas the path was /images2/dev/<mac_address> like we see from the top picture here.

    So what I’m thinking is that we leave storage path at /volume1/images2 and set the FTP path to /images2 then it should work. I think NFS is looking at it form the filesystem view where ftp is looking at the path from a logical view. They technically point to the same location, just how they get there is via two different paths.

    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!

    G 1 Reply Last reply Dec 10, 2019, 11:01 PM Reply Quote 1
    • G
      george1421 Moderator @george1421
      last edited by Dec 10, 2019, 11:01 PM

      @george1421 After thinking about this I looked at my tutorial on setting up a synology nas as a storage node and my guess in the previous post was correct, the FTP path should just be /images as seen in this post: https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node/28

      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 Dec 11, 2019, 1:30 PM

        Hello George

        Actually it was the path in ftp Path.
        My image capture works. and I thank you very much.
        now I meet the problem attached when downloading the image : - /

        b637d4bb-44f2-4773-9fb9-f758091c0b77-image.png

        G 1 Reply Last reply Dec 11, 2019, 1:35 PM Reply Quote 0
        • G
          george1421 Moderator @jeremyvdv
          last edited by george1421 Dec 11, 2019, 8:14 AM Dec 11, 2019, 1:35 PM

          @jeremyvdv But this part worked before. This is the NFS side. The image was getting to the NAS but it was failing to move to the /images2 directory. That was/is an FTP issue. Now its failing to upload the image, which is an nfs issue.

          Ah, I see it. From my notes I have your nas at IP 10.1.5.8 your storeIP is 10.16.3.129 your fog server. Did you change the storage node configuration? Your nas server needs to be the master in the storage group. Here is the kernel line you collected from the debug session I saved.

          cat /proc/cmdline
          loglevel=4 initrd=init.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://10.16.3.129/fog/ consoleblank=0 rootfstype=ext4 mac=30:8d:99:14:a4:e6 
          ftp=10.1.5.8 storage=10.1.5.8:/volume1/images2/dev/ storageip=10.1.5.8 osid=5 irqpoll hostname=LP0045 chkdsk=0 
          img=test10 imgType=n imgPartitionType=all imgid=5 imgFormat=5 PIGZ_COMP=-10 hostearly=1 pct=5 
          ignorepg=1 isdebug=yes type=up
          

          See how it differs from the picture you posted?

          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 Dec 11, 2019, 2:25 PM

            I did not change anything at the storage level …

            And I have never tested the download of an image since I have never been able to create until now 🙂

            G 1 Reply Last reply Dec 11, 2019, 2:45 PM Reply Quote 0
            • G
              george1421 Moderator @jeremyvdv
              last edited by Dec 11, 2019, 2:45 PM

              @jeremyvdv Ah, OK I missed in the screen shot the type=down.

              Then what its doing is picking the FOG server as the download node. If you go into the storage configuration and pick the default storage node (the fog server) change the max clients field to 0. Make sure the max clients field on the NAS is set to something higher than 0 (10 is default).

              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 Dec 11, 2019, 3:07 PM

                ok I try max client on fog a 0 and on the nas a 10 … I keep you informed.
                Thank you

                1 Reply Last reply Reply Quote 0
                • J
                  jeremyvdv
                  last edited by Dec 13, 2019, 9:21 AM

                  Hello
                  so I check the parameters but I still have the same problem.

                  1 Reply Last reply Reply Quote 0
                  • J
                    jeremyvdv
                    last edited by Dec 16, 2019, 9:01 AM

                    Hello

                    Do you have an idea @george1421 Georges for my problem?

                    Thank you

                    G 1 Reply Last reply Dec 16, 2019, 4:28 PM Reply Quote 0
                    • G
                      george1421 Moderator @jeremyvdv
                      last edited by Dec 16, 2019, 4:28 PM

                      @jeremyvdv I’m sorry I don’t have a good answer for you. With the fog server max clients at 0 and other nodes greater than 0, the code should use the available storage nodes and not the FOG server for image delivery.

                      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
                      • L
                        loadedmind @Alex78
                        last edited by Dec 3, 2024, 4:02 PM

                        @Alex78 What do we need to do to gain access to the images? When clicking any of the links, I get “Not Found”.

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 3 / 3
                        • First post
                          Last post

                        220

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project