I would like to start this blog post by wishing my readers a Happy New Year 2019!
While configuring a vSAN cluster, you might run into an issue where you do not see any disks that are available to be part of the vSAN cluster. This happens if the disks already have a partition on them. In my case, the previous configuration had failed but the partition was written into the disks.
How do you check if there is an existing partition on the disks that are attached to your ESXi hosts? You can do this using the vSphere web client UI or using the command line tools. On the vSphere UI, you can navigate to the
Host>Configure>Storage Devices>Select a disk from the list>All Actions>Erase Partitions.
This shows the current partitions and also gives you an option to format them but does not work most of the times.
When it comes to command line tools, you can either use the fdisk tool or the partedUtil. I would suggest using the partedUtil tool as fdisk is deprecated. The command to be used :
partedUtil get /dev/disks/naa.5xxxxxxxx
You’ll see an output like this:
When you try to delete this partition with the command :
Abhilash Basavarajaiah is a Global Technical Alliance Manager and an Ambassador for the Office of the CTO @ VMware.
He is a dynamic IT professional and an ambitious, highly-motivated individual with experience in pre-sales, business development, and
strategic alliances. He experienced in designing and architecting
hybrid cloud infrastructure with a focus on Software-Defined Datacenter.
He is passionate about technology and all things virtual and VMware has recognized him as a VMware vExpert and a vExpert Pro under the Evangelist path for his contribution to the virtualization and cloud computing communities through knowledge sharing and content creation.
Abhilash holds numerous technical certifications from VMware, EMC, Cisco, CNCF, Microsoft, and Rackspace