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

    FOG new NFS Storage without node

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    4
    1.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.
    • S
      symrex
      last edited by symrex

      Hello,

      Short story:
      Could someone please explain to me why does NFS daisy chain mount does not work?


      1. FOG Host settings

      Long story:

      1. vim /etc/fstab
      10.1.1.1:/myimages /nfsmount nfs defaults 0 0
      
      1. mount -a
      2. cp -r /images/. /nfsmount - Copy all files (hidden also)
      3. vim /etc/exports
      /images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
      /images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)
      
      /nfsmount *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=2)
      /nfsmount/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=3)
      
      • IMPORTANT: fsid at the end of the line must be incremented
      1. shotmount -e 127.0.01 - check NFS mount
      • OUTPUT example
      /nfsmount/dev *
      /nfsmount     *
      /images/dev   *
      /images       *
      

      2. Webinterface settings

      https://10.10.10.10/fog/

      1. Menu (Storage) -> (Add Storage Group) -> ‘NFSgroup’ -> Add
      2. Menu (Storage) -> (Add Storage Node) ->
      Storage Node Name = NFSmount	
      Storage Node Description = my secound storage	
      IP Address = 10.10.10.10
      Web root = /fog	
      Max Clients = 10	
      Is Master Node = [x]	
      Replication Bandwidth (Kbps)	
      Storage Group = NFSgroup	
      Image Path = /nfsmount/	
      FTP Path = /nfsmount/
      Snapin Path = /opt/fog/snapins/	
      SSL Path = /opt/fog/snapins/ssl/
      Bitrate	
      Rexmit Hello Interval	
      Interface = eth0
      Is Enabled = [x]
      Is Graph Enabled = [x]
      Management Username = fogproject	
      Management Password = ****** (copy it from default Storage)	
      

      3. Create new Image

      1. Menu (Images) -> (Create New Image) ->
      Image Name = nfsExternTest
      Image Description	
      Storage Group = nfsgroup	
      Operating System = Windows 10	
      Image Path = /nfsmount/nfsExternTest (it refresh automatic after you created it, just create and check it again)
      ...
      

      4. Capture new Image

      1. Menu (Hosts) -> ‘select your pc’
      2. change Host Image to nfsExternTest
      3. in Submenu (Basic Tasks) -> Capture

      5. Result

      error
      … but when i change to the default Storage… everything is fine.
      Why does NFS daisy chain mount does not work or have i an error in my configuration.

      Thanks for your time.

      PS: For more information: adding-additional-image-storage-space-to-fog-server

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

        Simple.

        You can not NFS share an NFS share.

        What does this mean:

        You have mounted the NFS Share to your FOG server. Then you’re trying to make that share be NFS shared from the FOG Server.

        So you’re NFS sharing an NFS share. This is simply not allowed.

        If you want the NFS share to work with minimal issue, you would need to setup a new Storage node, that just points to the relevant information for the NAS itself.

        So, for example, you would create a new node within the group called:

        NASNode
        ipofnas
        /volume1/images

        etc…

        There’s likely many posts with more direct implication of setting this kind of thing up.

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

          @Tom-Elliott said in FOG new NFS Storage without node:

          Simple.

          You can not NFS share an NFS share.

          I’m afraid I thought so.
          But I do not have the possibility to install a Storage Node there.

          Is there a possible secound way?

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

            https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node

            Essentially that will do what you’re looking for.

            You do not install the fog software directly. You just need to configure the node to have FTP and NFS.

            You will miss a few little details such as disk size and what not.

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

            161

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project