Hey all,
I'm cleaning up the existing environment which has multiple of datastores either dedicated to a single VM or a large one for multiple VMs. I am unable to remove one datastore in particular from one host within my esx cluster. The other hosts I was able to remove it with no problems whatsoever. The error I get is "Error during the configuration of the host: DestroyVmfsDatastore: can't delete partition 1 on lun vmhba40:26:0". I've performed the "rescan" at the Storage Adapters and the "refresh" at the Storage. It still shows upon this single host. The rest are no longer connected to this datastore. Assistance is much appreciated.
Perhaps is there a file that is locked open out there -
I guess I will have to put the host into maintenance mode to clear it and reboot the box. Hmm.
If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!
Try a rescan of the hba's from the console
In looking at the Datastore in question, I do see a single flat.vmdk file. I've tried removing the file but get the error "device or resource busy". No VMs are using this vmdk file. I'm wondering if an old VM hanged up the system and that VM was removed.
try running vm-support -x to see if there is still a world id.
ps auxfww | grep <vmname>
either of these may return a pid that you can kill.
Hi All
How I fixed this issue by login into individual servers using VI client and removing it mannualy. I get this error that "resource is in use" even though datastore is empty.
Hope this help..
Cheers
Ajay
Ajay Nabh solution worked for me too! Thanks Ajay.
Here is what worked for me:
At that point you should be cleared to delete the datastore without error.
Note: It took me a minute to realize that there were templates with drives connected to non-existant files that used to be on the datastore I was trying to delete.
We have a 1TG iSCSI Datastore mapped into ESX 4.0. After expanding this to 2TG and realizing that ESX 4.0 can only support up to 2TG-512kb, we are no longer able to remove this Datastore. Error message:
Remove datastore
192.168.190.199
Error during the configuration of the host:
DestroyVmfsDatastore: can't delete partition 1 on lun
naa.6090a068c0a6e5bc8fcd14481201102c
What can we do about this? I have tried to login directly into this ESX server instead of vCenter to remove this Datastore but the same error message appear.