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

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

Scheduled Pinned Locked Moved
General
3
11
3.5k
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.
  • L
    Loops
    last edited by Jan 16, 2015, 9:28 AM

    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 :
    [CODE]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
    [/CODE]

    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 😕

    1 Reply Last reply Reply Quote 0
    • C
      ch3i Moderator
      last edited by Jan 16, 2015, 9:52 AM

      Hi,

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

      If you can, use iSCSI directly on the server.

      Regards,
      Ch3i.

      1 Reply Last reply Reply Quote 0
      • L
        Loops
        last edited by Jan 16, 2015, 10:33 AM

        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 !

        1 Reply Last reply Reply Quote 0
        • C
          ch3i Moderator
          last edited by Jan 16, 2015, 10:38 AM

          [quote=“Loops, post: 40865, member: 28164”]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 ![/quote]

          Virtual is not a problem, NAS in different building is a problem 😛

          1 Reply Last reply Reply Quote 0
          • L
            Loops
            last edited by Jan 16, 2015, 10:41 AM

            ;D
            I will add a virtual disk on my SAN to store images 😞

            1 Reply Last reply Reply Quote 0
            • C
              ch3i Moderator
              last edited by Jan 16, 2015, 10:41 AM

              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.

              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Jan 16, 2015, 11:58 AM

                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).

                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 0
                • C
                  ch3i Moderator
                  last edited by Jan 16, 2015, 12:32 PM

                  [quote=“Tom Elliott, post: 40871, member: 7271”]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).[/quote]

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

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tom Elliott
                    last edited by Jan 16, 2015, 12:42 PM

                    No you wouldn’t

                    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 0
                    • L
                      Loops
                      last edited by Jan 16, 2015, 1:26 PM

                      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 ! 😕

                      1 Reply Last reply Reply Quote 0
                      • C
                        ch3i Moderator
                        last edited by Jan 16, 2015, 2:36 PM

                        [quote=“Loops, post: 40878, member: 28164”]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 ! :/[/quote]

                        NP

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        1 / 1
                        • First post
                          4/11
                          Last post

                        162

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.3k

                        Posts
                        Copyright © 2012-2024 FOG Project