vSAN Cluster Category
Cmdlets are usually implemented around resource operations. The four basic operations are CREATE, READ, UPDATE and DELETE. This set of operations is known as CRUD. Most of the cmdlets support CRUD which are respectively cmdlets that start with the New/Get/Set/Remove cmdlet verbs but they also may have additional operations
Step 1: Retrieve a object by running a Get command
You can READ objects by using
Get-VsanClusterConfiguration
cmdlet. See example below:
# Retrieves the vSAN cluster configuration of the clusters named "MyCluster".
Get-VsanClusterConfiguration -Cluster "MyCluster"
Step 2 : Run commands from the CRUD group
You can UPDATE objects by using
Set-VsanClusterConfiguration
cmdlet. See example below:
# Enables the space efficiency on the $cluster cluster and sets the periodic health check interval to 120 minutes.
Set-VsanClusterConfiguration -Configuration (Get-VsanClusterConfiguration $cluster) -SpaceEfficiencyEnabled $true -HealthCheckIntervalMinutes 120
Step 3: Explore More Related Commands:
Get-VsanClusterPowerState | This cmdlets retrieves the power state of a vSAN cluster. |
Start-VsanCluster | This cmdlet executes vSAN cluster power on. |
Start-VsanClusterDiskUpdate | This cmdlet starts the update of all vSAN disks of a cluster to the latest vSAN disk format version supported by the cluster. |
Start-VsanClusterRebalance | This cmdlet starts the proactive rebalance of the vSAN objects on the cluster hosts based on the vSAN disks usage when the disks are in imbalanced state. |
Stop-VsanCluster | This cmdlet powers off a vSAN cluster. |
Stop-VsanClusterRebalance | This cmdlet stops the proactive rebalance of the vSAN objects on the cluster hosts. |
Test-VsanClusterHealth | This cmdlet runs a health test on the specified vSAN clusters and returns the test results. |