How to remove vSAN labeled SSD Disk to use it as local datastore.

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.

4

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.

5

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

Advertisement
This entry was posted in VMware and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s