March 11

VMWARE: Cannot delete a datastore from virtual center

Configuring an ESX host fails with the error: DestroyVmfsDatastore: can’t delete partition 1 on lun naa.5000cca216d1588 (1017104)
Symptoms

Unable to configure the ESX host
You see the error:

Error during the configuration of the host:DestroyVmfsDatastore: can’t delete partition 1 on lun naa.5000cca216d1588

A direct session to the ESX host does not resolve this issue

Resolution
This issue occurs if you are unable to delete the datastore of the ESX host.

To work around this issue, you must delete the partition from the command line.

To delete the partition:

Connect to the ESX host using an SSH session or ILO/DRAC.

Note: To access the command line on an ESXi host, you must enable Tech Support Mode. For more information, see Tech Support Mode for Emergency Support (1003677).

Warning: Tech Support Mode should only be used at the request of VMware technical support.

Run the command:

fdisk /vmfs/devices/disks/naa.<number>

Note: In this command, <number> is the NAA number displayed in the error message.
Press d.
Select partition 1.
Press w. You see the message:

The partition table has been altered!

Refresh the vmfs by running the following command in the SSH or ILO session:

vmkfstools –V

Refresh the VMware Infrastructure Client GUI.

VMWARE KB: 1017104


Copyright 2021. All rights reserved.

Posted March 11, 2013 by Timothy Conrad in category "Virtualization

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. Securely email me using - PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B