FOG new NFS Storage without node



  • 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


  • Senior Developer

    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.



  • @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?


  • Senior Developer

    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.


Log in to reply
 

296
Online

7.4k
Users

14.5k
Topics

136.6k
Posts