First we need to remove the disk from vSAN configuration.
/dev/disks # ls –l – It will list all the disks
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.
dd if=/dev/zero of=/vmfs/devices/disks/naa.6005*** bs=1M count=32 conv=notrunc
Reference : http://www.virtuallyghetto.com/2012/04/removing-previous-local-datastore-label.html