QuroumSoft Knowledge Base

Orphaned VDI Prevents Coalesce

Date Added December 8, 2010 | Print

If you encounter the following error during your leaf coalesce operations, please refer to the following steps to correct the situation. 

Please ensure you have valid backups of the VM in question as manual manipulation of your XenServer environment can be dangerous.  This workaround is provided as a courtesy, but if you are uncomfortable with the proceeding, please contact Citrix support for further assistance.

Error Message
Failed to execute leaf coalesce: orphaned VDI: [uuid]

Symptom:
One or more VMs are unable to leaf coalesce, giving the above error.

Cause:
This is due to an orphaned VDI in your SR that is still associated with one or more VMs.  XenServer fails the leaf coalesce process when it encounters a VDI that it cannot access.

Workaround:
Please be careful when performing these steps, modifying your SR manually can be dangerous.  Ensure you have valid backups of your VMs prior to proceeding.

1. Find the offending VDI by running "lvdisplay" from the console of your XenServer pool master.  Look through your results for a line containing the VDI UUID from your error message, like this:

 LV Name                /dev/VG_XenStorage-b0a1ad60-dbdc-92a4-eba1-e2da7803097c/VHD-71cc1048-4481-410a-9aeb-f79eb42894c3

2. Ensure no other VM is using the VDI in question.

3. Remove all orphaned entries of the VDI by running the lvremove command, like this:

lvremove /dev/VG_XenStorage-b0a1ad60-dbdc-92a4-eba1-e2da7803097c/VHD-71cc1048-4481-410a-9aeb-f79eb42894c3

4. You should now be able to run a leaf coalesce normally.

Was this article helpful?

Yes No

Category: Alike Troubleshooting

Last updated on February 27, 2011 with 627 views

 



Create An Account »
Forgot Password? »

Visit our twitter page for XenServer Backup, VM Replication and other news!


Request Free 30 day Trial! »

Resources

Alike Adming guide for XenServer Backup and DR

Virtual Backup for XenServer Knowledge Base and troubleshooting

XenServer Backup and DR Partners and MSPs

alike™ Tech Sheet »
alike™ DR Tech Sheet »
Submit a Support Ticket »

Become a QuorumSoft Partner »
News »