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

    can't delete snapshop - This operation cannot be performed because the system does not manage this VDI

    Scheduled Pinned Locked Moved Xen Orchestra
    7 Posts 3 Posters 2.4k 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.
    • A Offline
      Andi79
      last edited by olivierlambert

      I have problems on deleting an VM snapshot. it seems that it it's linked to a active VDI of a VM, but when i try to delete it in XOA nothing happens. I tried to delete it on CLI with that result:

      #xe vdi-destroy uuid=80304704-a164-4fe3-bc15-c776b2d4cc2b
      This operation cannot be performed because the system does not manage this VDI
      vdi: 80304704-a164-4fe3-bc15-c776b2d4cc2b (vm-test-disk)
      
      #xe vdi-list
      uuid ( RO)                : 80304704-a164-4fe3-bc15-c776b2d4cc2b
      name-label ( RW): vm-test-disk
      name-description ( RW): 
      sr-uuid ( RO): c29b2189-edf2-8349-d964-381431c48be1
      virtual-size ( RO): 214748364800
      sharable ( RO): false
      read-only ( RO): true
      

      Any idea how I can delete this snapshot?

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

        It's probably a base copy or something in the chain. It will be automatically removed by the garbage collector. If it's not, then check your storage log for why it's not.

        A 2 Replies Last reply Reply Quote 0
        • A Offline
          Andi79 @olivierlambert
          last edited by

          @olivierlambert

          i had success with a vdi-forget. thanks

          1 Reply Last reply Reply Quote 0
          • A Offline
            Andi79 @olivierlambert
            last edited by

            @olivierlambert
            ok, not 100% success.

            after running the vdi-forget it does not work to free up the space after clicking reclaim freed space. And when I rescan the vdi it appears again.

            is there any risk when i delete this lv directly by lvremove

            --- Logical volume ---
            LV Path                /dev/VG_XenStorage-c29b2189-edf2-8349-d964-381431c48be1/VHD-80304704-a164-4fe3-bc15-c776b2d4cc2b
            LV Name                VHD-80304704-a164-4fe3-bc15-c776b2d4cc2b
            VG Name                VG_XenStorage-c29b2189-edf2-8349-d964-381431c48be1
            LV UUID                glbGl8-UhKX-AxHV-0YJm-hy8e-sIe6-kNU2tZ
            LV Write Access        read only
            LV Creation host, time host2-neu, 2022-06-16 18:29:45 +0200
            LV Status              available
            # open                 1
            LV Size                <190,35 GiB
            Current LE             48729
            Segments               1
            Allocation             inherit
            Read ahead sectors     auto
            - currently set to     256
            Block device           252:2
            
            1 Reply Last reply Reply Quote 0
            • olivierlambertO Offline
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              NEVER do that. If the VDI is there, it's for a reason. It's part of a chain for example.

              Again, same than before: let the garbage collector remove it, and if it doesn't, investigate why.

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                Andi79 @olivierlambert
                last edited by

                @olivierlambert

                how can i start it manually? As far as I understand GC starts in a case of an SR Scan, but when I do this it restores the forgotten vdi.

                1aa.png

                in some way it seems to be linked as basecopy snapshot to an active vm vdi.
                If i try to rename it it says no sch VDI, VDI-Snapshot with it's uuid

                DanpD 1 Reply Last reply Reply Quote 0
                • DanpD Offline
                  Danp Pro Support Team @Andi79
                  last edited by

                  @Andi79 Have you tried using xapi-explore-sr to examine how this VDI may be related to other disks?

                  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