Unable to detach SMB ISO library

Unable to detach SMB ISO library

book

Article ID: CTX495317

calendar_today

Updated On:

Description

 We are unable to detach one ISO SR. The detach option is not presented in Xencenter

Resolution

From CLI, we have tried detaching the ISO SR using below steps.
1. xe sr-forget uuid=<SR UUID>. It failed with error VDI is in use by other operation.
2. xe pbd-list sr-uuid=<UUID of SR>
3. xe pbd-unplug uuid=<PBD UUID from above command>. Execute this on all listed PBDs.
4. On one PBD, the pbd-unplug was not successful. It has given the details of the host UUID and VDI UUID that was in use.
5. xe vdi-param-list uuid=<uuid obtained from step 4> or xe vbd-list vdi-uuid=<UUID of the VDI>
6. You will get the VM details. Browse the VM in Xencenter and eject the CD.
7. The detach option will be available. 

Problem Cause

When you right click the SR, detach option in xencenter will not be presented if  one of the VDI is attached to a VM