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

    Problem with external NFS on OpenMediaVault

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    24
    30.4k
    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.
    • G
      giolnl @Sebastian Roth
      last edited by giolnl

      @Uncle-Frank
      I’ve just tested it with no success

      EDIT: I noticed a new thing, all the other tests I’ve done I’ve always set the task from the web GUI and then start the client with PXE, this time I just started the client without any task pending and then tried to do a quick image and now I can see this error in the Image list in the GUI under “image size: ON SERVER”, don’t know if it can be usefull or not:

      FOGFTP: Failed to connect. Host: 10.21.100.29, Error: Undefined property: FOGFTP::$link
      

      END EDIT

      /etc/exports on OMV:

      # /etc/exports: the access control list for filesystems which may be exported
      #               to NFS clients.  See exports(5).
      /export/backup 10.21.0.0/16(rw,subtree_check,secure)
      /export/images (rw,subtree_check,secure)
      /export/dev (rw,subtree_check,secure)
      
      # NFSv4 - pseudo filesystem root
      /export 10.21.0.0/16(ro,fsid=0,root_squash,no_subtree_check,hide)
      /export (ro,fsid=0,root_squash,no_subtree_check,hide)
      

      Same errors:

      Sep 30 05:48:43 omv rpc.mountd[18040]: refused mount request from 10.21.1.20 for /images/ (/): not exported
      

      and permission denied on the client

      root@omv:~# ll -aR /export/images/
      /export/images/:
      total 12
      drwxrwxrwx+ 3 root   users   32 Jul 30 17:10 .
      drwxr-xr-x  5 root   root  4096 Sep 30 08:35 ..
      -rwxrwxrwx+ 1 nobody users    0 Jul 30 17:10 .mntcheck
      drwxrwsrwx+ 2 nobody users   22 Jul 30 17:10 dev
      
      /export/images/dev:
      total 8
      drwxrwsrwx+ 2 nobody users 22 Jul 30 17:10 .
      drwxrwxrwx+ 3 root   users 32 Jul 30 17:10 ..
      -rwxrwxrwx+ 1 nobody users  0 Jul 30 17:10 .mntcheck
      
      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        /export/images/dev not /export/dev I reckon

        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

        G 1 Reply Last reply Reply Quote 1
        • Wayne WorkmanW
          Wayne Workman @giolnl
          last edited by

          # /export/backup 10.21.0.0/16(rw,subtree_check,secure)
          #Commented out the above line just for troubleshooting purposes.
          /export/images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
          /export/images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)
          

          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!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          1 Reply Last reply Reply Quote 0
          • G
            giolnl @Sebastian Roth
            last edited by giolnl

            @Uncle-Frank
            The fact is that OMV doesn’t le me export “directly” a subdirectory, it let me create a shared folder which point to /export/images/dev/ but then it exports it as /export/dev/ which is linked somehow to /export/images/dev/ (I don’t know how to be honest),
            Anyway I made some tests with a “forced” configuration (meaning I actually bypassed the GUI of OMV) and everything worked, so the problem is in the OMV configuration, I’m still doing some tests but i think the problem is related to some ACL you can set on those shared folders and theirs subdirectories.

            I’ll be back when I’ll be sure to have a working “minimal” configuraton for both FOG and OMV.

            Thanks anyone for pointing me to the right direction!

            Wayne WorkmanW 1 Reply Last reply Reply Quote 0
            • G
              giolnl
              last edited by giolnl

              Guess I was wrong about the ACL, in the end what made the difference was the fact that during the “forced” tests I used “/export/images” as image path in the storage configuration instead of “/images” (because of the missing “/export” lines in /etc/exports)

              Here some screenshots with the working configuration I’m actually using:

              OMV Shared folder configuration
              OMV_shared_folder.png
              OMV Shared folder ACL configuration
              OMV_shared_folder_ACL.png
              OMV NFS shares
              OMV_NFS_share.png
              FOG Storage configuration
              FOG_storage_configuration.png

              The actual /etc/exports file on OMV:

              # /etc/exports: the access control list for filesystems which may be exported
              #               to NFS clients.  See exports(5).
              /export/images (rw,subtree_check,secure)
              /export/backup (rw,subtree_check,secure)
              
              # NFSv4 - pseudo filesystem root
              /export (ro,fsid=0,root_squash,no_subtree_check,hide)
              

              Could be that NSFv4 pseudo fs to cause the problem? Maybe by giving FOG the full path I somehow bypass it, just a random guess tho, I don’t know how NFS works apart from the basics.

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by

                With /export/images/dev missing in /etc/exports is it working now??

                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

                G 1 Reply Last reply Reply Quote 0
                • G
                  giolnl @Sebastian Roth
                  last edited by

                  @Uncle-Frank
                  yes, I already noticed that during the previous tests I’ve made, I was always able to mount /export/images/dev like if it was an export even if it wasn’t configured as one in the OMV server. I guessed it somehow inherited the possibility to be exported by its parents directories, but as I said I’m far from being an expert about NFS.

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    Should we mark this solved or is it still an issue for you?

                    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
                    • G
                      giolnl
                      last edited by

                      I got it working so for me it could be marked as solved, thanks!

                      1 Reply Last reply Reply Quote 0
                      • Wayne WorkmanW
                        Wayne Workman @giolnl
                        last edited by

                        @giolnl said:

                        I made some tests with a “forced” configuration (meaning I actually bypassed the GUI of OMV) and everything worked

                        Not forced, simply a manual configuration. 🙂

                        The OS doesn’t care what the GUI says. The OS is going to read the /etc/exports file for exports, that’s how it works. 🙂

                        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!
                        Daily Clean Installation Results:
                        https://fogtesting.fogproject.us/
                        FOG Reporting:
                        https://fog-external-reporting-results.fogproject.us/

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 2 / 2
                        • First post
                          Last post

                        164

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project