ADD mounted NAS directory into Fog Server



  • Server
    • FOG Version: last download may-2017
    • OS: linux ubuntu last download avaliable
    Client
    • Service Version:
    • OS:
    Description

    Hi,
    I have add to Linux Ubuntu PC with Fog Server, a path for external Buffalo devices ( with add the NAS path to fstab configuration file ) and after mount -a command I have enabled the access for read/write into /images path ( 192.x.x.x /images_fogs is the path of NAS ) from Linux Ubuntu O.S.
    Now how I can enter this settings to fog Server ?

    Regards



  • @zingaro Here are some resources:

    https://wiki.fogproject.org/wiki/index.php?title=NAS_Storage_Node
    https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node/1

    There are others you can find too if you just search for the key words.



  • @wayne-workman said in ADD mounted NAS directory into Fog Server:

    What your trying won’t work - linux cannot export an already imported NFS location.
    You need to add the Nas as its own storage node. There are plenty of threads where people have done this.

    ok, but you could indicate to me the exact discussion how to see the full steps ?
    i need add to storage to fog sever installed ( it now use the pc’s hdd ) but i don’t know how insert the parameter into “add storage page” !
    I have tried to mount a new path on ubuntu (fstab + mount ) and now i would try test e new backup on external NAS.
    Could you help to compile the fog nas page ?
    my parameter has:
    192.168.x.x.x
    /fog_images : directory NAS
    /fog_image : path mount on ubuntu.



  • @Quazz The NAS has to support FTP and NFS, those are the two requirements. You’d make two NFS shares called /images and /images/dev and put the .mntcheck files in there, set permissions to 777, share with everyone. /images is read only for NFS, /images/dev is read/write to all. An FTP account needs made and given full access to both of those shares. The Account’s credentials need plugged into FOG. If there is strangeness with FTP root vs NFS root, that can all be set in FOG.

    Once it’s setup, you can arrange/configure it however you like inside storage management.


  • Moderator

    @Tom-Elliott Yeah, I was thinking of giving it its own location and storage group so it could be a master node, not sure how to set that up properly for that purpose though.


  • Senior Developer

    @Quazz Location Plugin still follows the rules on capture. I’m pretty sure you’re correct with the “unless it’s defined as a master node” you won’t be able to capture to it.


  • Moderator

    Afaik, you can’t capture to a storage node in the default setup.

    It’s somewhat explained here: https://wiki.fogproject.org/wiki/index.php?title=Location_Plugin

    tl;dr only a master node can capture an image.

    Looks like you can more or less get what you want with the location plugin though, but I’m not 100% on it.



  • @zingaro On your NAS, did you create an NFS shares called images_fog and images_fog/dev with 777 permissions? You will also need to create an FTP directory for both of these, and make a Management Username account that has full access to these locations.



  • ok. but I need help for check my configuration !
    To /images directory (Fog server) the process works fine.
    but it’s enable to connect with NAS,
    could you check my configuration 2_1496041725898_Capture3.JPG 1_1496041725898_Capture1_works.JPG 0_1496041725897_Capture2.JPG ?0_1496041804427_Capture4.JPG



  • What your trying won’t work - linux cannot export an already imported NFS location.

    You need to add the Nas as its own storage node. There are plenty of threads where people have done this.


 

409
Online

41.8k
Users

12.3k
Topics

115.9k
Posts