Skip to main content
Question

Remove a disk of an external repository

  • Jul 19, 2021 11:11 PM UTC
  • 2 replies
  • 212 views

Using Nutanix API, I detached a disk from a VM by just specifying device_bus and device_index.  The disk was attached from a passthru external repository.  After detaching the disk, I tries to delete the external repository, I got the following response message from delete external repository API:

"The external repository hsing-ahv-test-repo hosts some virtual disks that are still in use"

I could not delete the external repository.  So, I deleted the VM, but still I could not delete the external repository. 

Any way to remove the virtual disk and delete the external repository?

Thanks

This topic has been closed for replies.

2 replies

a-a-ron
Forum|alt.badge.img+1
  • Trailblazer
  • Jan 31, 2022 10:20 PM UTC

I seem to have this as well and am also interested if this was resolved or if anyone knows the issue?


  • Author
  • Voyager
  • Feb 1, 2022 7:39 PM UTC

Nutanix holds datasources for some time after they are deleted, and that causes related external repositories to stay active.  Nutanix performs the actual deletion of datasources few times a day.  So, the datasources will be deleted eventually.  But, the deletion of external repositories is not automatic, and those external repositories must be deleted manually.