XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Problems mounting NFS share

    Scheduled Pinned Locked Moved Xen Orchestra
    13 Posts 3 Posters 640 Views 2 Watching
    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.
    • R Offline
      rongage
      last edited by olivierlambert

      Greetings:
      I am trying to deploy a new Xen-Orchestra and XCP for local testing. During that deploy, I am trying to mount a couple of different NFS exports and it is not going well.

      Most recently, I received the following error message when trying to define the SR:

      sr.probeNfs
      {
        "host": "945779f0-1291-460e-8505-d2a0b9d571a1",
        "nfsVersion": "4",
        "server": "c01.rg.local"
      }
      {
        "message": "Cannot read properties of undefined (reading 'Export')",
        "name": "TypeError",
        "stack": "TypeError: Cannot read properties of undefined (reading 'Export')
          at Xo.probeNfs (file:///root/xen-orchestra/packages/xo-server/src/api/sr.mjs:542:42)
          at Task.runInside (/root/xen-orchestra/@vates/task/index.js:169:22)
          at Task.run (/root/xen-orchestra/@vates/task/index.js:153:20)
          at Api.#callApiMethod (file:///root/xen-orchestra/packages/xo-server/src/xo-mixins/api.mjs:389:20)"
      }
      

      This is a deploy from source install, source code pulled at 2:00pm eastern.
      Please advise for next steps.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi,

        How did you install XO in the first place?

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          rongage @olivierlambert
          last edited by

          @olivierlambert
          git clone, then yarn / yarn build.

          Instructions from https://xen-orchestra.com/docs/installation.html#xoa

          Ron

          DanpD 1 Reply Last reply Reply Quote 0
          • DanpD Offline
            Danp Pro Support Team @rongage
            last edited by

            @rongage What OS?

            1 Reply Last reply Reply Quote 0
            • R Offline
              rongage
              last edited by

              CentOS Stream 9

              Ron

              DanpD 1 Reply Last reply Reply Quote 0
              • DanpD Offline
                Danp Pro Support Team @rongage
                last edited by

                @rongage Post the output from dpkg -l nfs*

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  rongage @Danp
                  last edited by

                  @Danp
                  [root@xen xo-server]# rpm -qa | grep nfs
                  libnfsidmap-2.5.4-27.el9.x86_64
                  nfs-utils-2.5.4-27.el9.x86_64
                  sssd-nfs-idmap-2.9.5-4.el9.x86_64
                  [root@xen xo-server]#

                  DanpD 1 Reply Last reply Reply Quote 0
                  • DanpD Offline
                    Danp Pro Support Team @rongage
                    last edited by

                    @rongage I would try installing nfs-common and then retesting.

                    R 2 Replies Last reply Reply Quote 0
                    • R Offline
                      rongage @Danp
                      last edited by

                      @Danp
                      [root@xen xo-server]# dnf install -y nfs-common
                      Last metadata expiration check: 1:16:53 ago on Thu 05 Sep 2024 02:40:34 PM EDT.
                      No match for argument: nfs-common
                      Error: Unable to find a match: nfs-common
                      [root@xen xo-server]# dnf install -y nfs-utils
                      Last metadata expiration check: 1:17:03 ago on Thu 05 Sep 2024 02:40:34 PM EDT.
                      Package nfs-utils-1:2.5.4-27.el9.x86_64 is already installed.
                      Dependencies resolved.
                      Nothing to do.
                      Complete!
                      [root@xen xo-server]#

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        rongage @Danp
                        last edited by olivierlambert

                        @Danp

                        [root@xen xo-server]# dnf search nfs
                        Last metadata expiration check: 1:18:06 ago on Thu 05 Sep 2024 02:40:34 PM EDT.
                        ================================================================================================ Name & Summary Matched: nfs =================================================================================================
                        centos-release-nfs-ganesha4.noarch : NFS-Ganesha 4 packages from the CentOS Storage SIG repository
                        centos-release-nfs-ganesha5.noarch : NFS-Ganesha 5 packages from the CentOS Storage SIG repository
                        libnfsidmap.x86_64 : NFSv4 User and Group ID Mapping Library
                        libnfsidmap.i686 : NFSv4 User and Group ID Mapping Library
                        libstoragemgmt-nfs-plugin.x86_64 : Files for NFS local filesystem support for libstoragemgmt
                        nfs-utils.x86_64 : NFS utilities and supporting clients and daemons for the kernel NFS server
                        nfs-utils-coreos.x86_64 : Minimal NFS utilities for supporting clients
                        nfs4-acl-tools.x86_64 : The nfs4 ACL tools
                        nfsv4-client-utils.x86_64 : NFSv4 utilities for supporting client
                        pcp-pmda-nfsclient.x86_64 : Performance Co-Pilot (PCP) metrics for NFS Clients
                        sssd-nfs-idmap.x86_64 : SSSD plug-in for NFSv4 rpc.idmapd
                        ===================================================================================================== Name Matched: nfs ======================================================================================================
                        texlive-mfnfss.noarch : Packages to typeset oldgerman and pandora fonts in LaTeX
                        texlive-psnfss.noarch : Font support for common PostScript fonts
                        [root@xen xo-server]# dnf install -y nfsv4-client-utils
                        Last metadata expiration check: 1:18:38 ago on Thu 05 Sep 2024 02:40:34 PM EDT.
                        Dependencies resolved.
                        ==============================================================================================================================================================================================================================
                         Package                                                     Architecture                                    Version                                                 Repository                                          Size
                        ==============================================================================================================================================================================================================================
                        Installing:
                         nfsv4-client-utils                                          x86_64                                          1:2.5.4-27.el9                                          appstream                                          157 k
                        
                        Transaction Summary
                        ==============================================================================================================================================================================================================================
                        Install  1 Package
                        
                        Total download size: 157 k
                        Installed size: 351 k
                        Downloading Packages:
                        nfsv4-client-utils-2.5.4-27.el9.x86_64.rpm                                                                                                                                                    1.3 MB/s | 157 kB     00:00
                        R 1 Reply Last reply Reply Quote 0
                        • R Offline
                          rongage @rongage
                          last edited by

                          @Danp
                          Some progress...

                          21289812-5cba-49e4-96b0-da53d117e257-image.png

                          R 1 Reply Last reply Reply Quote 0
                          • R Offline
                            rongage @rongage
                            last edited by

                            @Danp
                            Some progress as in now that little wheel spins around for a while, then after that stops, I get the following message on the console of the machine:

                            2024-09-05T20:06:52.739Z xo:api WARN admin@admin.net | sr.probeNfsExists(...) [5m] =!> HeadersTimeoutError: Headers Timeout Error

                            DanpD 1 Reply Last reply Reply Quote 0
                            • DanpD Offline
                              Danp Pro Support Team @rongage
                              last edited by

                              @rongage I don't know if anyone else has it working correctly on CentOS Stream 9. I know that it works on recent versions of Debian and Ubuntu, so why not try one of those?

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