VMware Cloud Community
cemalettin
Contributor
Contributor
Jump to solution

vSAN Disk Reuse for Rebuild vSAN

Hi, 

I started to create vsan cluster. after a while, vsan disk group has been created but it seems 0.0Mb usable capacity. 

now i need to create vsan cluster again but i already used disks for vsan and i cant use again. Disks are used for vsan. 

What can i do for clean disks and see available again? Is there any command or sth to do it? 

Regards. 

Reply
0 Kudos
1 Solution

Accepted Solutions
TheBobkin
Champion
Champion
Jump to solution

@cemalettin, the vsanDatastore showing 0B usable might indicate the cluster was never fully formed e.g. the nodes were not able to communicate with one another over the vSAN network (e.g. perhaps it was not configured or not configured properly).

 

If the disks still have vSAN partitions on them, you don't need to remove these if the Disk-Groups are intact and are usable - this is easily checked either via Cluster > Configure > vSAN > Disk Management or by running this on the node via SSH:

# vdq -Hi

 If you the Disk-Group is not intact (e.g. Cache-tier has partitions wiped but Capacity-tier devices still have partitions) and you are sure you don't need any data from that Disk-Group then these can be erased via multiple means such as using 'dd' or esxcli:

# esxcli vsan storage remove -u <UUIDofDisk>
or for a Capacity-tier disk
# esxcli vsan storage remove -d <NaaofDisk>
or for a Cache-tier disk:
# esxcli vsan storage remove -s <NaaofDisk>

or from the UI: Host > Configure > Storage Devices > select the device > Erase partitions

View solution in original post

1 Reply
TheBobkin
Champion
Champion
Jump to solution

@cemalettin, the vsanDatastore showing 0B usable might indicate the cluster was never fully formed e.g. the nodes were not able to communicate with one another over the vSAN network (e.g. perhaps it was not configured or not configured properly).

 

If the disks still have vSAN partitions on them, you don't need to remove these if the Disk-Groups are intact and are usable - this is easily checked either via Cluster > Configure > vSAN > Disk Management or by running this on the node via SSH:

# vdq -Hi

 If you the Disk-Group is not intact (e.g. Cache-tier has partitions wiped but Capacity-tier devices still have partitions) and you are sure you don't need any data from that Disk-Group then these can be erased via multiple means such as using 'dd' or esxcli:

# esxcli vsan storage remove -u <UUIDofDisk>
or for a Capacity-tier disk
# esxcli vsan storage remove -d <NaaofDisk>
or for a Cache-tier disk:
# esxcli vsan storage remove -s <NaaofDisk>

or from the UI: Host > Configure > Storage Devices > select the device > Erase partitions