Yes,
I found there is a virtual machine in vCenter that was copied from removed host ,so its DVD ISO mount still remains on the removed storage, and when I uncheck attached ISO images ,the storage disappears in vcenter . Thanks for the tips.
Make sure if any snapshot still exists there on this datastore referencing to a VM. Check if any ISO mounted to VM from this datastore. You need to disconnect all these resources from datastore in order to remove it.
HI:
Actually, This datastorage and its host are no longer in vcenter, is a isolation host from vcenter And operation well. So I dont know why it still there while i have been moved it out of vcenter.
A vCenter reboot may help on this if somehow ESXI host not removed properly.
Hi:
I reboot the vCenter,The status turns from red to yellow(warning) but still can not be deleted.
I found smoe way to delete the inactive datastorage,it needs to go to the database to delete it,
Please refer to the link below,but my environment vCSA Database is Postgre.
https://icebow.ru/portal/display/VMWKB/Delete+inactive+datastore+in+vCenter
Check all existing VMs in vcenter server inventory for attached ISO images\floppy images from unavailable datastore and existing snapshots.
Yes,
I found there is a virtual machine in vCenter that was copied from removed host ,so its DVD ISO mount still remains on the removed storage, and when I uncheck attached ISO images ,the storage disappears in vcenter . Thanks for the tips.
Than you very much! It's work!
Log on the ESXi host and access this path
/etc/vmware/hostd/vmInventory.xml
Rename the VMInventory.xml file and restart /etc/init.d/hostd restart