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

    Linguiring VDI Export task after backup fails

    Scheduled Pinned Locked Moved Xen Orchestra
    7 Posts 2 Posters 376 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 Offline
      Byte0
      last edited by Byte0

      I have failing backups that leave behind an Export task of a VDI.

      aad04e05-6bb2-43d2-9ec9-f8b591a1f5ff-image.png

      I noticed that there are multiple VHD snapshots remaining that are assigned to the Control Domain.
      b847be34-f64f-40da-8536-ab2ec6630109-image.png

      Can I just delete these? The backup error is "HTTP connection has timed out". I have since added more vCPUs and memory to the Xen Orchestra and will see if this resolves the problem, but I want to know if I can delete these remaining VDI snapshots first.

      EDIT: I forgot to add that the VM is Windows and has multiple VHDs attached. None of the other VHDs have this issue. Just the one VHD.

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

        Restart xo-server will kill those backup jobs. The task will disappear after 24h or immediately if you restart the XAPI toolstack

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

          @olivierlambert It only just occurred to me that the "HTTP connection has timed out" could be Xen Orchestra timed out communicating with XCP-ng. If that is the case then more vCPUs and memory on the Xen Orchestra VM wouldn't solve this problem would it...? I suppose I will see.

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

            It's hard to tell, it can be a network issue, XCP-ng timing out, not enough Dom0 memory and so on…

            B 2 Replies Last reply Reply Quote 0
            • B Offline
              Byte0 @olivierlambert
              last edited by Byte0

              @olivierlambert oh, yes! That makes more sense. Xen Orchestra is running as a VM on the same host, so it seems unlikely to be a networking issue.

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

                @olivierlambert The issue turned out to be a problem with the VHD files. The VM is a Windows VM converted from a physical server with disk2vhd. There were 3 disks in total that I had converted.

                To resolve the issue, I created a bootable WinPE.vhd (with storage and DISM tools added) as well as another VHD as a temporary holder for .WIM files. I captured the contents of each VHD from the disk2vhd conversion into .WIM files on the temporary VHD. Then I created new .VHD files and applied the .WIM files to the new VHDs.
                After this process, the backups are working.

                EDIT (Important): I had to re-create the EFI boot partition and use bcdboot.exe to setup the Windows boot. I also made sure that the new .VHDs had the same drive letters assigned as the originals while in WinPE and have the new .VHDs assigned to the VM in the same order that the originals were.

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

                  A badly formated VHD can indeed trigger this, nice catch!

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