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

    Unable to mount NFS Remote for backups while storage and ISO NFS SR's work perfectly

    Scheduled Pinned Locked Moved Backup
    5 Posts 3 Posters 18 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.
    • B Online
      Bub
      last edited by

      Hello Friends,

      I am testing a fresh install of xcpng 8.3 with community XO
      1f3639ba-015c-440a-87cf-0a30053a9a9c-image.png
      while I am able to mount both ISO NFS SR and VDI NFS SR from both Synology and Qnap NAS boxes, on the same subnet, I am unable to mount any NFS remotes for backups from the same two NAS boxes.
      The error log is:
      remote.test
      {
      "id": "d43307ac-afc3-42cb-89af-3892f1fe592c"
      }
      {
      "shortMessage": "Command failed with exit code 32: mount -o -t nfs 192.168.221.20:/LAB-NFS /run/xo-server/mounts/d43307ac-afc3-42cb-89af-3892f1fe592c",
      "command": "mount -o -t nfs 192.168.221.20:/LAB-NFS /run/xo-server/mounts/d43307ac-afc3-42cb-89af-3892f1fe592c",
      "escapedCommand": "mount -o "" -t nfs "192.168.221.20:/LAB-NFS" "/run/xo-server/mounts/d43307ac-afc3-42cb-89af-3892f1fe592c"",
      "exitCode": 32,
      "stdout": "",
      "stderr": "mount.nfs: failed to prepare mount: Operation not permitted
      ",
      "failed": true,
      "timedOut": false,
      "isCanceled": false,
      "killed": false,
      "message": "Command failed with exit code 32: mount -o -t nfs 192.168.221.20:/LAB-NFS /run/xo-server/mounts/d43307ac-afc3-42cb-89af-3892f1fe592c
      mount.nfs: failed to prepare mount: Operation not permitted
      ",
      "name": "Error",
      "stack": "Error: Command failed with exit code 32: mount -o -t nfs 192.168.221.20:/LAB-NFS /run/xo-server/mounts/d43307ac-afc3-42cb-89af-3892f1fe592c
      mount.nfs: failed to prepare mount: Operation not permitted

      at makeError (/etc/xen-orchestra/node_modules/execa/lib/error.js:60:11)
      at handlePromise (/etc/xen-orchestra/node_modules/execa/index.js:118:26)
      at NfsHandler._sync (/etc/xen-orchestra/@xen-orchestra/fs/src/_mount.js:68:7)"
      

      }

      Thinking of permissions issue, I went ahead and tried to mount the same qnap nfs folder with the same permissions settings I am using for the XO remote onto an UnRaid server, which worked on the first try, leading me to believe I'm missing something on xcp or XO end.

      Any ideas to point me to the correct direction would be appreciated.
      FYI I used web gui for everything.

      P 1 Reply Last reply Reply Quote 0
      • P Offline
        Pilow @Bub
        last edited by

        @Bub indeed, permissions issues.

        What IP do you authorize for your NFS export ?

        remember, SR and ISOsr are accessed by the XCP host IP...

        but, NFS Remote is accessed by XO/XOA IP address !

        B 2 Replies Last reply Reply Quote 0
        • DanpD Offline
          Danp Pro Support Team
          last edited by

          Hi,

          Make sure that the XOA VM has been granted the rights to mount the NFS share and create subdirectories.

          Dan

          1 Reply Last reply Reply Quote 1
          • B Online
            Bub @Pilow
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • B Online
              Bub @Pilow
              last edited by

              @Pilow said in Unable to mount NFS Remote for backups while storage and ISO NFS SR's work perfectly:

              It was. Both the host ip and the xoa.
              Thanks for the super fast replies guys!
              I got an idea, I'm going to try and investigate, the XOA is running in a container. I'm going to test if the passthrough of the container manager network may be blocking the NFS.

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