The backend storage volume corresponding to the datastore has been removed and the datastore appears as Inactive, when I want to remove (via vSphere Client connected to vCenter server) the NFS datastore I receive this error message:
Unmounting the datastore in vCenter Server fails with the error:
‘Call “HostDatastoreSystem.RemoveDatastore” form object “datastoreSystem-28” on vCenter Server “xxxx” failed. CannotRemove datastore ‘datastore_name’ because Storage I/O control is enabled on it. Correct it and re-try the operation

Solution:
To resolve this issue, log in directly to each ESXi host that has access to the inactive datastore and manually remove it.
– Connect to the vSphere ESXi host using SSH
– Run this command to list the mounted datastores:
esxcli storage nfs list

– Run this command to unmount the NFS datastore:
esxcli storage nfs remove –v datastorename

The inactive NFS datastore has been removed
Note: if your datastore display name have some spaces, please use quotes
More information: VMware
Sander Daems is founder and author of this blog and working as a Lead (Sr.) Consultant by UNICA ICT Solutions. Sander has over 15 years experience in IT, primary focus: virtualization and modern worksplace.
More Posts - Website
Follow Me:


Last week I upgraded a vCenter Server from version 5.1 to 5.5, I also added a 4th hosts to the cluster, so I need to upgrade the host license keys. But after upgrade I couldn’t remove the license files in vCenter Licensing section:
Solution:
To connect to the ADAM database:
- Log in to the vCenter Server.
- To open ADSI Edit, click Start > Run, type adsiedit.msc, and press Enter.
- Right-click ADSI Edit and click Connect to.
- In the Connection point section, click Select or type a Distinguished Name or Naming Context.
- Enter dc=virtualcenter, dc=vmware, dc=int
- In the Computer section, click Select or type a domain or server: (Server | Domain [:port]).
- Enter localhost
- Click OK.
- Drill down to DC=virtualcenter,DC=vmware,DC=int, OU=Licensing, OU=LicenseEntities.You see the CN="license key" containers.
- Right-click the container that shows the the serial number of the key that is negative within the vCenter Server Licensing page.
- Click Delete.
Result:
When you restart he vSphere client and navigate to the Licensing page the old license keys are removed and you can re-assign license keys to the hosts
More information: VMware
Sander Daems is founder and author of this blog and working as a Lead (Sr.) Consultant by UNICA ICT Solutions. Sander has over 15 years experience in IT, primary focus: virtualization and modern worksplace.
More Posts - Website
Follow Me:


Today I tried to delete a virtual machine with more then 100 (damn Backup Exec) snapshots, in the vSphere Client I selected in the inventory: “Delete from disk” , few seconds later I received this error message:
Cannot complete the operation due to an incorrect request to the server

Events directly at the vSphere 5.0 host:
Warning message from ESXHOST: This virtual machine has more than 100 redo logs in a single branch of its snapshot tree. Deleting some of the snapshots or consolidating the redo logs will improve performance. The maximum number of redo logs supported is 255.
Virtual machine disks consolidation failed.
Solution:
With this simple PowerCLI command I was able to remove the virtual machine include all active snapshots
Remove-VM "VM" -DeletePermanently -Confirm:$false

Sander Daems is founder and author of this blog and working as a Lead (Sr.) Consultant by UNICA ICT Solutions. Sander has over 15 years experience in IT, primary focus: virtualization and modern worksplace.
More Posts - Website
Follow Me:


Recent Comments