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

    Health say: VDIs attached to Control Domain

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    6 Posts 3 Posters 4.4k 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.
    • J Offline
      jeepeegit
      last edited by

      Hello,

      I boot the server and now i get this:

      e480f2c6-0d67-4e7d-a848-89d66b1bea72-image.png

      To get rid of the "attached to Control Domain" can i click the forget button? Or do i lose the disks with all my vm's on it?

      [23:29 xcp-ng ~]# list_domains
      id |                                 uuid |  state
       0 | 9330c246-148d-43b9-8f04-6d93ff12d44d |     R 
       1 | 2f8808f1-25dd-e04d-823a-d3b363b93fb1 |    B H
       2 | e045ad3b-5b88-c419-29d7-9611a4a70b3b |    B H
       3 | 63704ffc-b192-834f-d157-8fe729d7f0a3 |    B H
       4 | 59b0b50c-e608-0537-b20e-f05aa4b0e6d8 |    B H
       5 | d2ab8e67-55be-ed96-4029-5f2f64832da4 |    B H
       6 | 4eda4256-e2f3-11a8-3263-e5c52798dff4 |    B H
       7 | 1f032e64-5841-154f-f84a-c3a4cd471260 |    B H
      [23:29 xcp-ng ~]# xe vbd-list vm-uuid=9330c246-148d-43b9-8f04-6d93ff12d44d
      uuid ( RO)             : 98ea48a4-5470-19ae-0ed2-d01dbabfe534
                vm-uuid ( RO): 9330c246-148d-43b9-8f04-6d93ff12d44d
          vm-name-label ( RO): Control domain on host: xcp-ng
               vdi-uuid ( RO): 8f7452f2-cbaa-434c-8543-661e026d0429
                  empty ( RO): false
                 device ( RO): sm/backend/2d35d1a4-8927-28f8-99f2-09defe3dad7b/8f7452f2-cbaa-434c-8543-661e026d0429
      
      
      uuid ( RO)             : b6d3ccc0-70e8-b90d-a160-febe6a3a15a0
                vm-uuid ( RO): 9330c246-148d-43b9-8f04-6d93ff12d44d
          vm-name-label ( RO): Control domain on host: xcp-ng
               vdi-uuid ( RO): d8f3be2e-ca79-4d11-a530-63cc68469140
                  empty ( RO): false
                 device ( RO): sm/backend/83e4994f-1532-9eda-98ab-20f2b6f857d0/d8f3be2e-ca79-4d11-a530-63cc68469140
      
      
      [23:29 xcp-ng ~]# 
      

      I read the following somewhere to solve this, but look for confirmation that this is correct.

      1. list_domains
      2. xe vbd-list vm-uuid = (uuid or id 0 from command # 1)
      3. xe vbd-unplug uuid = (uuid from command # 2)
      4. xe vbd-destroy uuid = (uuid from command # 2)

      Or can I also solve it via XO by clicking on the forget button?

      regards
      Jan

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

        @jeepeegit said in Health say: VDIs attached to Control Domain:

        Or can I also solve it via XO by clicking on the forget button?

        Yes... that's the usual way of handling it from within that screen in XO.

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

          That was exactly the purpose of this screen in XO. To simplify management of these disk still attached to the control domain. "Forget" means we remove the "link" (or virtual cable) between the host and the disk. The disk itself isn't removed.

          1 Reply Last reply Reply Quote 0
          • J Offline
            jeepeegit
            last edited by

            🙂 Ok that did the job. Thanks!

            When I execute a list with the other numbers I see <not in database>. Do I have to take an action on that?

            [10:10 xcp-ng ~]# xe vbd-list vm-uuid=63704ffc-b192-834f-d157-8fe729d7f0a3
            uuid ( RO)             : d0f0dd4f-66a7-7e0d-c4a0-c5ab1238be3d
                      vm-uuid ( RO): 63704ffc-b192-834f-d157-8fe729d7f0a3
                vm-name-label ( RO): ublemp (20190826T065050Z)
                     vdi-uuid ( RO): fed7636a-d911-49de-854a-6ac454e978cf
                        empty ( RO): false
                       device ( RO): xvdb
            
            
            uuid ( RO)             : ede3eb96-6a91-61e5-30d4-8642c8c6b75c
                      vm-uuid ( RO): 63704ffc-b192-834f-d157-8fe729d7f0a3
                vm-name-label ( RO): ublemp (20190826T065050Z)
                     vdi-uuid ( RO): <not in database>
                        empty ( RO): true
                       device ( RO): xvdd
            

            regards,
            Jan

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

              Those are VBD's pointing to a (now) gone VDI. It should be garbage collected very soon.

              1 Reply Last reply Reply Quote 0
              • J Offline
                jeepeegit
                last edited by jeepeegit

                Does that happen automatically?

                ... edit

                xvdd refers to the cdrom.
                Topic solved now. Thanks all.

                1 Reply Last reply Reply Quote 0
                • DanpD Danp referenced this topic on
                • First post
                  Last post