XenServer 6.2 NFS SR無法移除解法

問題:

供裝/刪除VM時NFS Storage本身或是Storage網路有問題,導致供裝/刪除VM程序不完整,此時會造成VM上Disk相關資訊殘留在XenServer上

參考資料:
http://playingwithtechnology.com/unable-to-delete-xenserver-vdi/
http://discussions.citrix.com/topic/307439-vdi-in-use-but-its-not-really/

解法:

#找到要修復的SR UUID
xe sr-list|grep omnios-zfs01 -B 3

#列出此SR內之vdi
xe vdi-list sr-uuid=d034edd0-aa37-be67-ef99-abb1e89e88ba

#找到要刪除之vdi uuid後先嘗試刪除
xe vdi-destroy uuid=777f68db-0260-448c-a93c-cd610a734aff

#若無法直接刪除則需找到vbd uuid將其unplug及destroy
xe vbd-list vdi-uuid=777f68db-0260-448c-a93c-cd610a734aff
xe vbd-unplug uuid=ba59a452-ee88-d51c-998e-125511e4c80c
xe vbd-destroy uuid=ba59a452-ee88-d51c-998e-125511e4c80c

圖檔補充說明:

xenserver-datastore-storage issue

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

xenserver-datastore-storage issue-fix