You can add or remove local disks from existing vSAN disk groups or remove entire vSAN disk groups.
Prerequisites
- Verify that you are connected to a vCenter Server system.
- Verify that at least one vSAN disk group exists in the cluster.
Procedure
- Get the vSAN disk group from a cluster.
$dgs = Get-VsanDiskGroup -Cluster 'VsanCluster'
- Get all vSAN disks from the vSAN disk group.
$dg = $dgs[0]
Get-VsanDisk –VsanDiskGroup $dg
- Add a hard disk to the vSAN disk group.
$disk = New-VsanDisk -CanonicalName 'HDD-CanonicalName' -VsanDiskGroup $dg
- Remove a hard disk from the vSAN disk group.
Remove-VsanDisk -VsanDisk $disk
- Remove the entire vSAN disk group.
Remove-VsanDiskGroup -VsanDiskGroup $dg