Need to note the device name which can be naa.* or mpx.* depends on our ESXI host identifies the disk, By using the partedUtil command we can check the partition found on the disk or we can use fdisk –l and if it shows 1 then it means the disk is in vsan.

Fdisk –l

Number Start (sector) End (sector) Size Code Name

1 2048 6143 4096 0700

2 6144 937637518 894M 0700

esxcfg-scsidevs –l

esxcli vsan storage list |less

esxcli vsan cluster get – It will show any cluster is enabled for VSAN

esxcli vsan storage remove -s [SSD-DEVICE-ID]

In some cases it will show the below error while removing the disk from the SSD.

Host reboot will help or else we need to run the below command to remove the disk label as vSAN. It will write Zeros to the first 32MBs of the disk allowing it to be written.