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

    Moved a VDI to a new SR, but something is left behind?

    Scheduled Pinned Locked Moved Xen Orchestra
    8 Posts 2 Posters 1.5k 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.
    • ForzaF Online
      Forza
      last edited by

      I moved a disk from one SR to another, but there seems to be something left behind. Is this a snapshot, or something that needs to remain? It claims to belong to "Control domain" on the host that runs the VM in question. I removed the one snapshot (delta) from the VM, but the file remains.

      moved_vdi_snapshot_left.png

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

        During a transfer it's normal to have a snapshot attached to the control domain. But it's not when it's done. You can remove it.

        ForzaF 1 Reply Last reply Reply Quote 0
        • ForzaF Online
          Forza @olivierlambert
          last edited by

          OK thanks. But should these files not be removed automatically?

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

            It should. However, sometimes (probably a race condition in the host) left them behind.

            That's even why we added a dedicated section in Dashboard/Health view in XO: "VDIs attached to Control Domain".

            1 Reply Last reply Reply Quote 0
            • ForzaF Online
              Forza
              last edited by Forza

              I see. Is this a upcoming feature? I can't find this in my dashboard (Enterprise level). Its not mentioned in the manual https://xen-orchestra.com/docs/visualizations.html or https://xen-orchestra.com/docs/health.html

              Simply removing them doesnt work. Claims VDI in use. Do I simply disconnect it first?

              Thanks again 🙂

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

                It's not in the manual but it's in XO. "Doesn't work": can you be more specific? If it's VDI in use, it means there is probably still an activity on the host with this disk (did you detach it first by the way?)

                1 Reply Last reply Reply Quote 0
                • ForzaF Online
                  Forza
                  last edited by Forza

                  I had to detach the VDI from Control Domain before being able to click Delete in XO.

                  There is one issue left. The coalece seems to be stuck, and so no backups are working.

                  [root@srv02 log]# zcat SMlog.2.gz |grep -i exception
                  May 12 11:56:58 srv02 SMGC: [20332] gc: EXCEPTION <class 'util.SMException'>, Parent VDI 07fac705-d047-4ae6-ae1c-9858a06699cb of cd1ed780-1ae5-448d-8dc2-45fdb104c303 not found
                  May 12 12:26:44 srv02 SMGC: [7598] gc: EXCEPTION <class 'util.SMException'>, Parent VDI 07fac705-d047-4ae6-ae1c-9858a06699cb of cd1ed780-1ae5-448d-8dc2-45fdb104c303 not found
                  
                  # cd /run/sr-mount/74b9feaa-fd00-1f3e-ad96-8737344ae079
                  [root@srv02 74b9feaa-fd00-1f3e-ad96-8737344ae079]# ls -l
                  -rw-r--r-- 1 root root    169144320 May 14 09:44 11399c8d-7389-4754-b765-2bce7eed6aa7.vhd
                  -rw-r--r-- 1 root root  10726892032 May 11 19:49 21725429-f0f5-471f-aed0-62c387df97b1.vhd
                  -rw-r--r-- 1 root root       321024 May 12 00:50 29f996ca-51be-4e97-a7d6-2c4592c6c5ad.vhd
                  -rw-r--r-- 1 root root   5658767872 May 14 09:35 31c8b413-ca2c-4922-af64-f7f5e2cf4663.vhd
                  -rw-r--r-- 1 root root       426496 May 14 09:35 3a0ba1a6-f93d-4d20-9cae-f5699c7c44bb.vhd
                  -rw-r--r-- 1 root root      8474624 May 14 09:40 3dd86641-f0c0-4e81-8440-d5764ac78862.vhd
                  -rw-r--r-- 1 root root  53653373440 May 11 18:59 47ffdcc6-09d4-44c3-92fb-d21873c112df.vhd
                  -rw-r--r-- 1 root root    166023680 May 14 09:35 48770eeb-48b7-40e3-ab22-e2f28b2ddfbb.vhd
                  -rw-r--r-- 1 root root   7352291840 May 11 20:07 48ade717-3110-4a9b-ba48-a9f14c88c42a.vhd
                  -rw-r--r-- 1 root root 127127921152 May 11 21:56 596dfe19-32ed-40e5-825b-7f8f974de867.vhd
                  -rw-r--r-- 1 root root   1351209472 May 11 20:07 5989aa36-b07c-403c-8072-77f203bebb52.vhd
                  -rw-r--r-- 1 root root     14299648 May 12 00:50 5b4649ea-6486-4052-bf99-68fbf79c97ca.vhd
                  -rw-r--r-- 1 root root    117260800 May 11 21:55 6ffcfdef-699b-4a7e-85db-c3f8cb785c39.vhd
                  -rw-r--r-- 1 root root  53653373440 May 11 19:31 9482f216-6271-4314-8c4f-a98ef3e7a500.vhd
                  -rw-r--r-- 1 root root     10531328 May 11 20:07 a8d68323-be5b-4e7e-9924-96393e76233a.vhd
                  -rw-r--r-- 1 root root       108544 May 11 18:25 af3231ff-2a7f-4ded-addb-fd0218da8e57.vhd
                  -rw-r--r-- 1 root root        24064 May 11 19:43 c7bbad30-97fb-48c7-b5e6-0fcb7da12f28.vhd
                  -rw-r--r-- 1 root root   1853329920 May 14 09:34 cce083e6-6e1d-4f97-ad1c-b9694e2747bb.vhd
                  -rw-r--r-- 1 root root   1636979200 May 11 17:30 cd1ed780-1ae5-448d-8dc2-45fdb104c303.vhd
                  -rw-r--r-- 1 root root            1 May 11 17:30 coalesce_cd1ed780-1ae5-448d-8dc2-45fdb104c303
                  -rw-r--r-- 1 root root      1181696 May 14 09:44 d530a67e-cdb2-40d0-8dfd-d6383dc1039d.vhd
                  -rw-r--r-- 1 root root  30701756928 Apr 30 10:38 de57cbc1-11e9-4f33-9714-968b64345cd1.vhd
                  -rw-r--r-- 1 root root     87842816 May 14 08:45 ebf30786-abde-4990-b3f7-43f961178878.vhd
                  -rw-r--r-- 1 root root       164524 May 14 09:35 filelog.txt
                  
                  [root@srv02 74b9feaa-fd00-1f3e-ad96-8737344ae079]# vhd-util scan -f -m '*.vhd' -p
                  vhd=21725429-f0f5-471f-aed0-62c387df97b1.vhd capacity=10737418240 size=10726892032 hidden=1 parent=none
                     vhd=a8d68323-be5b-4e7e-9924-96393e76233a.vhd capacity=10737418240 size=10531328 hidden=1 parent=21725429-f0f5-471f-aed0-62c387df97b1.vhd
                        vhd=48770eeb-48b7-40e3-ab22-e2f28b2ddfbb.vhd capacity=10737418240 size=166023680 hidden=1 parent=a8d68323-be5b-4e7e-9924-96393e76233a.vhd
                           vhd=d530a67e-cdb2-40d0-8dfd-d6383dc1039d.vhd capacity=10737418240 size=1184768 hidden=0 parent=48770eeb-48b7-40e3-ab22-e2f28b2ddfbb.vhd
                  vhd=47ffdcc6-09d4-44c3-92fb-d21873c112df.vhd capacity=53687091200 size=53653373440 hidden=1 parent=none
                     vhd=5989aa36-b07c-403c-8072-77f203bebb52.vhd capacity=53687091200 size=1351209472 hidden=1 parent=47ffdcc6-09d4-44c3-92fb-d21873c112df.vhd
                        vhd=31c8b413-ca2c-4922-af64-f7f5e2cf4663.vhd capacity=53687091200 size=5658767872 hidden=1 parent=5989aa36-b07c-403c-8072-77f203bebb52.vhd
                           vhd=11399c8d-7389-4754-b765-2bce7eed6aa7.vhd capacity=53687091200 size=169144320 hidden=0 parent=31c8b413-ca2c-4922-af64-f7f5e2cf4663.vhd
                  vhd=48ade717-3110-4a9b-ba48-a9f14c88c42a.vhd capacity=12884901888 size=7352291840 hidden=1 parent=none
                     vhd=cce083e6-6e1d-4f97-ad1c-b9694e2747bb.vhd capacity=12884901888 size=1853329920 hidden=1 parent=48ade717-3110-4a9b-ba48-a9f14c88c42a.vhd
                        vhd=3dd86641-f0c0-4e81-8440-d5764ac78862.vhd capacity=12884901888 size=8474624 hidden=0 parent=cce083e6-6e1d-4f97-ad1c-b9694e2747bb.vhd
                  vhd=596dfe19-32ed-40e5-825b-7f8f974de867.vhd capacity=161061273600 size=127127921152 hidden=1 parent=none
                     vhd=29f996ca-51be-4e97-a7d6-2c4592c6c5ad.vhd capacity=161061273600 size=321024 hidden=0 parent=596dfe19-32ed-40e5-825b-7f8f974de867.vhd
                  vhd=6ffcfdef-699b-4a7e-85db-c3f8cb785c39.vhd capacity=858993459200 size=117260800 hidden=1 parent=none
                     vhd=5b4649ea-6486-4052-bf99-68fbf79c97ca.vhd capacity=858993459200 size=14299648 hidden=1 parent=6ffcfdef-699b-4a7e-85db-c3f8cb785c39.vhd
                        vhd=ebf30786-abde-4990-b3f7-43f961178878.vhd capacity=858993459200 size=87842816 hidden=0 parent=5b4649ea-6486-4052-bf99-68fbf79c97ca.vhd
                  vhd=9482f216-6271-4314-8c4f-a98ef3e7a500.vhd capacity=53687091200 size=53653373440 hidden=1 parent=none
                  vhd=af3231ff-2a7f-4ded-addb-fd0218da8e57.vhd capacity=53687091200 size=108544 hidden=1 parent=none
                  vhd=c7bbad30-97fb-48c7-b5e6-0fcb7da12f28.vhd capacity=10737418240 size=24064 hidden=1 parent=none
                  vhd=cd1ed780-1ae5-448d-8dc2-45fdb104c303.vhd capacity=53687091200 size=1636979200 hidden=1 parent=07fac705-d047-4ae6-ae1c-9858a06699cb.vhd (not found in scan)
                  vhd=de57cbc1-11e9-4f33-9714-968b64345cd1.vhd capacity=214748364800 size=30701756928 hidden=1 parent=none
                     vhd=3a0ba1a6-f93d-4d20-9cae-f5699c7c44bb.vhd capacity=214748364800 size=426496 hidden=0 parent=de57cbc1-11e9-4f33-9714-968b64345cd1.vhd
                  

                  As far as I can tell by looking at the VMs and the SRs through XO the cd1ed780-1ae5-448d-8dc2-45fdb104c303.vhd or 07fac705-d047-4ae6-ae1c-9858a06699cb.vhd doesn't belong to any VM.

                  Not sure what these are?

                  vhd=9482f216-6271-4314-8c4f-a98ef3e7a500.vhd capacity=53687091200 size=53653373440 hidden=1 parent=none
                  vhd=af3231ff-2a7f-4ded-addb-fd0218da8e57.vhd capacity=53687091200 size=108544 hidden=1 parent=none
                  vhd=c7bbad30-97fb-48c7-b5e6-0fcb7da12f28.vhd capacity=10737418240 size=24064 hidden=1 parent=none
                  vhd=de57cbc1-11e9-4f33-9714-968b64345cd1.vhd capacity=214748364800 size=30701756928 hidden=1 parent=none
                  
                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    Likely orphaned VDIs. Removing them should fix coalesce.

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