Yves' Blog

ESXi host with previous VSAN disks unable to recreate disks or repartition disks


I came around a problem today where I had several hosts of a previously created VSAN cluster which would be used for a new VSAN cluster. After adding the hosts to the new cluster I couldn't create any diskgroups on them, nor was I able to erase the disk partitions with partedUtil or other command line tools.The solution to the problem is actually much simpler, collect the old VSAN Disk Group UUID from this command:

esxcli vsan storage list

And then run:

esxcli vsan storage remove -u <VSAN Disk Group UUID from previous command>

That's it, after this was done on each host I could readd them to the VSAN cluster and create new disk groups on them.