Below is an alternate method that I have used to remove disks owned by control domain
Obtain the UUID of the VM in question
<UUID of VM> = 26708987-c6b2-3243-c49c-db20a96b15a8
From the command line interface run the following command:
xe vbd-list vm-uuid=26708987-c6b2-3243-c49c-db20a96b15a8
uuid ( RO) : 81ae5475-02fd-ba46-68f6-4a170102641a
vm-uuid ( RO): 26708987-c6b2-3243-c49c-db20a96b15a8
vm-name-label ( RO): FvWebProxy01
vdi-uuid ( RO): <not in database>
empty ( RO): true
device ( RO): xvdd
uuid ( RO) : 974dc129-48bf-eac2-ab6c-467ef0dfd620
vm-uuid ( RO): 26708987-c6b2-3243-c49c-db20a96b15a8
vm-name-label ( RO): FvWebProxy01
vdi-uuid ( RO): 8d673a64-26a2-4e8e-8c8d-0cd4efcf2520
empty ( RO): false
device ( RO): xvda
and then execute the following command. NOTE: I chose vdi-uuid 8d673a64 because the other VDI is listed as not in the database
xe vbd-list vdi-uuid=8d673a64-26a2-4e8e-8c8d-0cd4efcf2520
uuid ( RO) : 64cd3f2e-66c4-ae3f-7f53-d83d97d2601f
vm-uuid ( RO): 70ad4283-6d3e-47c6-9c3c-070f586f43c2
vm-name-label ( RO): Control domain on host: FsXENSVR152
vdi-uuid ( RO): 8d673a64-26a2-4e8e-8c8d-0cd4efcf2520
empty ( RO): false
device ( RO): sm/backend/2710d6e3-fb6b-0cdf-0230-845f87620eab/8d673a64-26a2-4e8e-8c8d-0cd4efcf2520
uuid ( RO) : 974dc129-48bf-eac2-ab6c-467ef0dfd620
vm-uuid ( RO): 26708987-c6b2-3243-c49c-db20a96b15a8
vm-name-label ( RO): FvWebProxy01
vdi-uuid ( RO): 8d673a64-26a2-4e8e-8c8d-0cd4efcf2520
empty ( RO): false
device ( RO): xvda
and then run the following command. NOTE: I chose UUID 64cd3f2 because as you can see the vm-name-label is Control domain on host
xe vbd-unplug uuid=64cd3f2e-66c4-ae3f-7f53-d83d97d2601f
The device is not currently attached
device: 64cd3f2e-66c4-ae3f-7f53-d83d97d2601f
xe vbd-destroy uuid=64cd3f2e-66c4-ae3f-7f53-d83d97d2601f
The VM disks that were owned by the control domain should now be gone.
No comments:
Post a Comment