Sunday, May 15, 2011

Error during the configuration of the host:DestroyVmfsDatastore: can't delete partition 1 on lun naa..60a98005033xxxxxxxxxxxxxx

This issue occurs if you are unable to delete the datastore of the ESX host in VI client or Vcenter.
To workaround this issue, you must delete the partition from the command line.


To delete the partition:  

  1. Connect to the ESX host using an SSH session
  2. Run this command to get the naa ID of the disk:
    esxcfg-scsidevs –l | grep –I naa.<Number>

  3. Run the command:

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

    Note: In this command, <number> is the number returned by the command in Step 2.

  4. Press d.
  5. Select partition 1.
  6. Press w. You see the message:

    The partition table has been altered!

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

    vmkfstools –V

  8. Refresh the VMware Infrastructure Client GUI.

No comments: