/images on a nfs share into a Nas ...



  • Hi !

    I want to move my Fog images on a nas (IBM V7000U).
    My fog is runnin on a Ubuntu 13.10.

    I can mount /images on a nfs share of th Nas …

    My problem is when i want to install an image on a computer … When the computer is connecting to the fog server (NFS) i’ve this error message :
    “mount: mounting <serverIpAddress>:/images on /images failed: permission denied”

    When i look on the Fog Server the nfs share, i think, does not work …
    On the Fog server :

    sudo exportfs -ra
     
    exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/images".
      Assuming default behaviour ('no_subtree_check').
      NOTE: this default has changed since nfs-utils version 1.0.x
     
    exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/images/dev".
      Assuming default behaviour ('no_subtree_check').
      NOTE: this default has changed since nfs-utils version 1.0.x
     
    exportfs: /images/dev does not support NFS export
    exportfs: /images does not support NFS export
    
    

    When i umount /images, i can execute correctly a exportfs -ra …

    Can i share a folder with nfs, mounted on a nfs share ?

    It is possible to put the images on a NAS ? What is the correct way to do that ?

    Thanks a lot for your help !
    Sorry for my english :/


  • Moderator

    @Loops, post: 40878, member: 28164 said:

    Thank’s a lot for your help ! but this is a little bit hard for me !
    My Fog server is now running with a local image storage ! :/

    NP



  • Thank’s a lot for your help ! but this is a little bit hard for me !
    My Fog server is now running with a local image storage ! :/


  • Senior Developer

    No you wouldn’t


  • Moderator

    @Tom Elliott, post: 40871, member: 7271 said:

    An NFS mounted share, cannot be re-shared through NFS. It will not work.

    Your best option is to make the NAS it’s own “node” to link to the images, but the problem in lies that the FTP service must be enabled, but also if you can configure it so the user’s home path is not specified for FTP connections.

    NFS doesn’t use any accounts to handle sharing. What this means, is you can mount the share through whatever path you need.

    For example, a NFS share on a nas might be located at /master/images. You can NFS mount the share using IP.Goes.Here:/master/images and things will generally work.

    When it comes to FTP (how fog checks if the image actually exists during a deploy task and moves the image from images/dev to images) though a defined home folder will make the root (/) location in the root of the place. Many NAS’s make the /master the home location for the FTP user meaning trying to mount, or move data from /master/images won’t work because it’s actually looking for /master/images in the home folder (/master/master/images).

    And you must have the same UUID on the user fog : on NAS and fog Server.


  • Senior Developer

    An NFS mounted share, cannot be re-shared through NFS. It will not work.

    Your best option is to make the NAS it’s own “node” to link to the images, but the problem in lies that the FTP service must be enabled, but also if you can configure it so the user’s home path is not specified for FTP connections.

    NFS doesn’t use any accounts to handle sharing. What this means, is you can mount the share through whatever path you need.

    For example, a NFS share on a nas might be located at /master/images. You can NFS mount the share using IP.Goes.Here:/master/images and things will generally work.

    When it comes to FTP (how fog checks if the image actually exists during a deploy task and moves the image from images/dev to images) though a defined home folder will make the root (/) location in the root of the place. Many NAS’s make the /master the home location for the FTP user meaning trying to mount, or move data from /master/images won’t work because it’s actually looking for /master/images in the home folder (/master/master/images).


  • Moderator

    Try to create a user fog on your NAS with the same password of the fog server, and set the right on your share with the user fog.



  • ;D
    I will add a virtual disk on my SAN to store images :(


  • Moderator

    @Loops, post: 40865, member: 28164 said:

    Thank’s for your help but, i can’t use iscsi !
    My Fog server is virtual and the Nas is not near the server they are in 2 different building !

    Virtual is not a problem, NAS in different building is a problem :p



  • Thank’s for your help but, i can’t use iscsi !
    My Fog server is virtual and the Nas is not near the server they are in 2 different building !


  • Moderator

    Hi,

    Each time I’ll try this configuration I have this error.

    If you can, use iSCSI directly on the server.

    Regards,
    Ch3i.


Log in to reply
 

419
Online

38746
Users

10569
Topics

100055
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.