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

    How to delete orphaned VHD virtual disks?

    Scheduled Pinned Locked Moved Xen Orchestra
    4 Posts 2 Posters 1.3k Views 1 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.
    • akurzawaA Offline
      akurzawa
      last edited by akurzawa

      How to delete VHDs that are not realted to any vm? I think it will not be deleted automatically after vm deletion. EG. For example - I've deleted "Atlas" VM, but big atlas VHD remains on BackupHost's local storage:

      7205aaae-9367-4964-ab3c-2b5d43b49350-image.png

      Question 2:
      I have xcp-ng host only for backup purposes, with local storage. I want clean SR, wipe every vm and every VHD file remains on the backup host. What's the proper way to do it?

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

        They should be deleted alongside the VM. If it's not, then it's not normal.

        If you want to clean all remaining VHDs, go into SR view, select all, remove. And wait 🙂

        akurzawaA 1 Reply Last reply Reply Quote 0
        • akurzawaA Offline
          akurzawa @olivierlambert
          last edited by

          @olivierlambert said in How to delete orphaned VHD virtual disks?:

          If it's not, then it's not normal.

          OK, what can I do trace the problem? or if those VHDs were not deleted during VM deletion, is this possible to discover now what was the cause of that?

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

            Check host logs to understand why. Maybe those VHD were attached to the control domain or something like that.

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