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

  1. Get the vSAN disk group from a cluster.
    $dgs = Get-VsanDiskGroup -Cluster 'VsanCluster'
  2. Get all vSAN disks from the vSAN disk group.
    $dg = $dgs[0]
    Get-VsanDiskVsanDiskGroup $dg
  3. Add a hard disk to the vSAN disk group.
    $disk = New-VsanDisk -CanonicalName 'HDD-CanonicalName' -VsanDiskGroup $dg
  4. Remove a hard disk from the vSAN disk group.
    Remove-VsanDisk -VsanDisk $disk
  5. Remove the entire vSAN disk group.
    Remove-VsanDiskGroup -VsanDiskGroup $dg