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

    XCP-ng host not seeing storage after unmount / mount

    Scheduled Pinned Locked Moved Compute
    13 Posts 2 Posters 2.6k 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.
    • olivierlambertO Offline
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      Can you please provide the complete error log?

      Or start the VM directly on the host with xe vm-start uuid=<VM UUID>

      B 1 Reply Last reply Reply Quote 0
      • B Offline
        Bambos @olivierlambert
        last edited by olivierlambert

        @olivierlambert Hello Olivier,

        the error on the red notification is : unknown error from the peer:

        887454aa-57ca-4fcd-a0ae-c03da457d93b-image.png

        and the complete error log:

        vm.start
        {
          "id": "95991d36-a94c-4efe-62e0-3d15b2245bce",
          "bypassMacAddressesCheck": false,
          "force": false
        }
        {
          "errors": [
            "Host 1: VM_REQUIRES_SR(OpaqueRef:7371d453-759a-4870-934c-9a1b13fa40a7, OpaqueRef:8a929bf4-9b17-4bce-ab59-e2d5665baa0b)",
            "Host 2: HOST_NOT_LIVE()"
          ],
          "message": "",
          "name": "Error",
          "stack": "Error: 
            at Xapi._startVm (file:///opt/xo/xo-builds/xen-orchestra-202205201634/packages/xo-server/src/xapi/index.mjs:990:15)
            at Xapi.startVm (file:///opt/xo/xo-builds/xen-orchestra-202205201634/packages/xo-server/src/xapi/index.mjs:1026:7)
            at Api.callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202205201634/packages/xo-server/src/xo-mixins/api.mjs:314:20)"
        }
        

        the storage is exactly as it was, same name , same type, same paths on NFS.

        1d0b894d-49f8-4ea3-98ff-7ca64808e261-image.png

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

          This means a SR used in this VM can't be reach on host 2. You should boot it.

          B 1 Reply Last reply Reply Quote 0
          • B Offline
            Bambos @olivierlambert
            last edited by olivierlambert

            @olivierlambert this is by mistake, i used to have a host 2 also in the pool that i don't use. now i removed it by the pool.

            error log: still same without the line of host 2 missing.

            vm.start
            {
              "id": "95991d36-a94c-4efe-62e0-3d15b2245bce",
              "bypassMacAddressesCheck": false,
              "force": false
            }
            {
              "errors": [
                "Host 1: VM_REQUIRES_SR(OpaqueRef:7371d453-759a-4870-934c-9a1b13fa40a7, OpaqueRef:8a929bf4-9b17-4bce-ab59-e2d5665baa0b)"
              ],
              "message": "",
              "name": "Error",
              "stack": "Error: 
                at Xapi._startVm (file:///opt/xo/xo-builds/xen-orchestra-202205201634/packages/xo-server/src/xapi/index.mjs:990:15)
                at Xapi.startVm (file:///opt/xo/xo-builds/xen-orchestra-202205201634/packages/xo-server/src/xapi/index.mjs:1026:7)
                at Api.callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202205201634/packages/xo-server/src/xo-mixins/api.mjs:314:20)"
            }
            
            1 Reply Last reply Reply Quote 0
            • olivierlambertO Offline
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              Do you have an ISO plugged in this VM by any chance?

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                Bambos @olivierlambert
                last edited by

                @olivierlambert no, just 2 vdi. i tried to disable the dvd-drive from boot order without any change.

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  Bambos @Bambos
                  last edited by

                  @Bambos

                  a8ff616a-57be-4e3a-912b-edaf43764671-image.png

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

                    I would check if you don't have a stalled NFS connection somewhere. Do you have a working df -h output on your host? Anything special on dmesg?

                    One way or another, XAPI still think there's no access to those shares. You can also do a xe-toolstack-restart and try again.

                    B 1 Reply Last reply Reply Quote 0
                    • B Offline
                      Bambos @olivierlambert
                      last edited by

                      @olivierlambert df -h
                      looks like it mounts correctly the specific NFS

                      e2fdebae-0fca-498b-9e97-b8f5a8c44b2f-image.png

                      dmesg nothing special, toolstack restart i did also from Xen Orchestra , i guess is executing the same command.

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

                        Do a xe vm-disk-list uuid=<VM UUID>, and then for each SR, double check the PBD is connected.

                        B 1 Reply Last reply Reply Quote 0
                        • B Offline
                          Bambos @olivierlambert
                          last edited by

                          @olivierlambert said in XCP-ng host not seeing storage after unmount / mount:

                          xe vm-disk-list uuid=<VM UUID>

                          Hello Sir, i have SSH on the host and run the command , using the uuid of the VM we are trying to start.

                          21ab5744-21d4-40e2-82e2-9c5c683d1575-image.png

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

                            Okay sqo both disks are on VM_space_H1. Do a xe sr-param-list uuid=<SR UUID>, get the PBDs and for each do a xe pbd-param-list uuid=<PBD UUID> and paste the result 🙂

                            1 Reply Last reply Reply Quote 0

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            • First post
                              Last post