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

    Fog NFS issue

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    9
    538
    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
      luism
      last edited by

      Hello,

      I have a new fog install that is having issues with mounting the NFS folder. I get this error when I schedule an upload task: could not mount images folder (/bin/fog.upload)

      Reason: mount: mounting x.x.x.x:/images/dev on /images failed: connection timed out.

      I scheduled an upload task with debug set and I am unable to manually mount the NFS filesystem from within the debug environment on the laptop I am testing with. I get the same timeout. There are no firewalls turned on on the fogserver.

      I am running the latest stable version of fog and have set NFS to use version 3 by setting --no-nfs-version 4 in /etc/default/nfs-kernel-server. I have tested that NFS works from one of my CentOS 7 systems. I am able to mount the /images folder on the CentOS system and I am also able to mount a test export from my CentOS system on my Debian 9.5 fog server. It seems that NFS works everywhere except for from the PXE booted fog environment. I have verified the permissions on /images and /images/dev.

      What am I missing? Any help would be appreciated.

      1 Reply Last reply Reply Quote 0
      • L
        luism @Tom Elliott
        last edited by

        @tom-elliott
        It turns out that the crappy HP procurve 1900 switch that my xenserver was connected to has a feature called “auto DOS” that was blocking the NFS packets. I installed a couple of physical Linux systems to test with and found that I could mount the NFS shares when I was plugged into a different switch.

        All works as it should after turning off “auto Dos” under security settings on the switch. The crazy thing is that I had a working fog server for years on this same switch/xenserver. Time to upgrade that switch. Anyway, thanks for all your help. Much appreciated!

        1 Reply Last reply Reply Quote 1
        • Tom ElliottT
          Tom Elliott
          last edited by

          Whats the output of sudo sestatus?

          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
            luism
            last edited by

            Disabled. Thanks, forgot to mention that.

            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @luism
              last edited by

              @luism Whats the output of iptables -L -n?

              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
                luism
                last edited by

                no rules in iptables. I flushed them with iptables -F.

                root@fogserver:/# iptables -L -n
                Chain INPUT (policy ACCEPT)
                target prot opt source destination

                Chain FORWARD (policy ACCEPT)
                target prot opt source destination

                Chain OUTPUT (policy ACCEPT)
                target prot opt source destination
                root@fogserver:/#

                Tom ElliottT 1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott @luism
                  last edited by

                  @luism Can you look at the chat bubble, I’ll try to help in more realtime.

                  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
                  • Tom ElliottT
                    Tom Elliott
                    last edited by

                    So remoted in and sure enough for couldn’t mount the share. That said, I believe the issue is specific to the vm environment. OP is using XenServer, and machines that are on the same server appear to be working perfectly fine. Once an external machine tries, however, we get a connection timeout. I’m thinking the network adapters need to be in bridged mode, but I’m also not too familiar with XenServer as a hypervisor.

                    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

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

                      Well if network works in general (web interface an so on) you wouldn’t think, that it’s timing out because of a network VM issue. Maybe NFS somehow configured to listen on loopback only?

                      netstat -antup | grep LISTEN

                      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
                        luism @Tom Elliott
                        last edited by

                        @tom-elliott
                        It turns out that the crappy HP procurve 1900 switch that my xenserver was connected to has a feature called “auto DOS” that was blocking the NFS packets. I installed a couple of physical Linux systems to test with and found that I could mount the NFS shares when I was plugged into a different switch.

                        All works as it should after turning off “auto Dos” under security settings on the switch. The crazy thing is that I had a working fog server for years on this same switch/xenserver. Time to upgrade that switch. Anyway, thanks for all your help. Much appreciated!

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

                        187

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.3k

                        Posts
                        Copyright © 2012-2024 FOG Project