After creating datastores, you can perform several administrative operations on the datastores, such as renaming, unmounting, or removing the datastore. Certain operations, for example, renaming, are available for all types of datastores. Others, such as deleting the datastore, apply only to VMFS datastores.
Change Datastore Name
Use the vSphere Client to change the name of an existing datastore. You can rename the datastore that has virtual machines running on it without any negative impact.
Procedure
Results
Unmount Datastores
When you unmount a datastore, it remains intact, but can no longer be seen from the hosts that you specify. The datastore continues to appear on other hosts, where it remains mounted.
Prerequisites
When appropriate, before unmounting datastores, make sure that the following prerequisites are met:
- No virtual machines reside on the datastore.
- Storage DRS does not manage the datastore.
- Storage I/O Control is deactivated for this datastore.
Procedure
- In the vSphere Client, navigate to the datastore.
- Right-click the datastore and select Unmount Datastore.
- If the datastore is shared, select the hosts from which to unmount the datastore.
- Confirm that you want to unmount the datastore.
Results
After you unmount a VMFS datastore from all hosts, the datastore is marked as inactive. If you unmount an NFS or a Virtual Volumes datastore from all hosts, the datastore disappears from the inventory. You can mount the unmounted VMFS datastore. To mount the NFS or Virtual Volumes datastore that has been removed from the inventory, use the New Datastore wizard.
What to do next
If you unmounted the VMFS datastore as a part of a storage removal procedure, you can now detach the storage device that is backing the datastore. See Detach Storage Devices.
Mount Datastores
You can mount a datastore you previously unmounted. You can also mount a datastore on additional hosts, so that it becomes a shared datastore.
A VMFS datastore that has been unmounted from all hosts remains in inventory, but is marked as inaccessible. See Unmount Datastores.
You can use this task to mount the VMFS datastore to a specified host or multiple hosts.
If you have unmounted an NFS or a Virtual Volumes datastore from all hosts, the datastore disappears from the inventory. To mount the NFS or Virtual Volumes datastore that has been removed from the inventory, use the New Datastore wizard.
A datastore of any type that is unmounted from some hosts while being mounted on others, is shown as active in the inventory.
Procedure
Remove VMFS Datastores
You can delete any type of VMFS datastore, including copies that you have mounted without resignaturing. When you delete a datastore, it is destroyed and disappears from all hosts that have access to the datastore.
Prerequisites
- Remove or migrate all virtual machines from the datastore.
- Unmount the datastore from all hosts.
- Disable Storage DRS for the datastore. For more information, see Activate and Deactivate Storage DRS.
- Disable Storage I/O Control for the datastore. For more information, see Enable Storage I/O Control.
- Make sure that the datastore is not used for vSphere HA heartbeating. For more information, see Configure Heartbeat Datastores.
Procedure
- In the vSphere Client, navigate to the datastore.
- Right-click the datastore to remove, and select Delete Datastore.
- Confirm that you want to remove the datastore.