VMware Cloud Community
nhjonesy
Contributor
Contributor

Unable to Delete Partition on ESXi 5

I encountered an error when I attempted to delete a datastore via the client so I switched over to the command line to try there.  I followed the steps prescribed here:

Using the partedUtil command line utility on ESX and ESXi

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=103660...

But this is the result:

partedUtil delete "/vmfs/devices/disks/naa.6d4ae520a5eb1b001799927b11e12671" 1
Error: Read-only file system during write on /dev/disks/naa.6d4ae520a5eb1b001799927b11e12671
Unable to delete partition 1 from device /vmfs/devices/disks/naa.6d4ae520a5eb1b001799927b11e12671

The red highlight is my emphasis... 

The datastore is empty and unused, I created it and then attemted to delete it minutes later.

These are the specs from partedUtil getptbl:

msdos

243068 255 63 3904897024

1 2048 3904887419 251 0

0 Kudos
1 Reply
Gkeerthy
Expert
Expert

Use the esxcfg-scsidevs command to obtain the disk identifier (mpx or naa) for the datastore you want to delete

esxcfg-scsidevs –m

ls /vmfs/devices/disks/

it is syntax error i think so, use the below

partedUtil delete "/vmfs/devices/disks/naa.6d4ae520a5eb1b001799927b11e12671:1"

Please don't forget to award point for 'Correct' or 'Helpful', if you found the comment useful. (vExpert, VCP-Cloud. VCAP5-DCD, VCP4, VCP5, MCSE, MCITP)
0 Kudos