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

    NFS SR VMs data lost

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    5 Posts 2 Posters 830 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.
    • T Offline
      Touille
      last edited by

      Hi everyone,

      I'm testing XO from sources with the latest commit of today (a45fb88)
      I'm using Xcp-ng 8.2.1 and TrueNAS for storage (NFS sharing)

      I've connected an NFS ISO storage and another one for the VM data.
      I've been able to upload ISO file, install and run some VMs... Everything is working fine, great..

      Now, my trouble is when I disconnected the NFS VDI SR and ISO SR and re-add them (because I was trying some settings). I don't find my VM data back ! I see the used space on my storage, I do see the data if I go with SSH on my truenas but, in XenOrchestra, if I go on :

      Home -> Storage -> NFS VM DATA -> Disk : It's empty

      If I go on the VMs that were created at my first test, and try to attach a disk :

      Home -> VM -> one of my VM -> Disk ->Attach Disk : I see my NFS SR but nothing I can select to import the disk (that should be there)

      But, when I go on the NFS ISO SR, I see the img file but it seems that it has lost all the metadata (every ISO file has lost its name)...

      Does anybody already have this issue before ? here are some screenshots :

      af124da9-73c5-4069-8277-f9d46c91f3c3-image.png

      19334c2f-4323-43ea-8b1a-56ce3426dc75-image.png

      Thank you All 🙂

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

        😬

        Forget the SR means you forget all the metadata related to it (eg: the disk names and which disk is connected to which VM).

        When you create a new SR with the same NFS path, it will create another empty folder with the name of the SR UUID.

        Easy trick: mv all the files inside the old UUID folder to the new one, and when it's done, rescan your current NFS SR. You will see all the disk appearing (but without any name).

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

          Are you sure you didn't recreate a brand new SR instead of reconnecting to it?

          T 1 Reply Last reply Reply Quote 0
          • T Offline
            Touille @olivierlambert
            last edited by Touille

            Hi @olivierlambert

            Thank you for answering. So first, I "disconnected" and then I did "forget this SR" :

            68f69bed-7d39-41d1-bc88-83fe5f9622f7-image.png

            When I added the storage the second time, ("New" -> "Storage" -> "VDI SR") put all the information for the NFS sharing, I do see the storage with the used space (it's the same screenshot than above)

            So I did not recreate an SR, I reconnected the same SR.

            Same goes for the NFS ISO SR, but when I reconnected this one, I do see the iso file but without metadata I think (as you can see I'm reinstalling a VM for test, so the "data" is working) :

            040e1dc4-ca64-4e65-993a-227168ecbb81-image.png

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

              😬

              Forget the SR means you forget all the metadata related to it (eg: the disk names and which disk is connected to which VM).

              When you create a new SR with the same NFS path, it will create another empty folder with the name of the SR UUID.

              Easy trick: mv all the files inside the old UUID folder to the new one, and when it's done, rescan your current NFS SR. You will see all the disk appearing (but without any name).

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                Touille @olivierlambert
                last edited by

                @olivierlambert

                ... Thank you Olivier, I feel so stupid...
                I found everything back as you said 🙂

                Thank you very much ! Now I understood my mistake

                Best regards,

                Martin

                1 Reply Last reply Reply Quote 0
                • olivierlambertO olivierlambert marked this topic as a question on
                • olivierlambertO olivierlambert has marked this topic as solved on
                • First post
                  Last post