Q: What does the Capacity utilization health – disk space check do?This particular health check looks at cluster level disk usage and ensures it doesn't exceed the threshold.
Q: What does it mean when it is in an error state?For vSAN, If this check has a warning or error, it may means there is no enough free storage capacity and the deployment of new virtual machines may fail, or any component rebuild operations may not be allowed. If the cluster is running out of space, like exceeding 99% full, the running virtual machines may crash with pending question and any R/W IO may fail.
For vSAN Direct, if this check has a warning or error, it may mean there is no enough free storage capacity, and the creation of CNS volumes may fail.
Thresholds definition
On this page, vSAN ops threshold and host rebuild threshold are defined as below:
- vSAN ops threshold = Total space - Operations reserve
- Host rebuild threshold = Total space - Operations reserve - Host rebuild reserve
* Note that in some cases the Host rebuild threshold can be equal to the vSAN ops threshold, such as in VMC deployments, because the feature of host rebuild reserve is not needed for VMC deployments.
The thresholds definition is:
When host rebuild reserve is disabled:
- Red: MIN(90% of total capacity, vSAN ops threshold)
- Yellow: = MIN(70% of total capacity, Host rebuild threshold)
When host rebuild reserve is enabled:
- Red: MIN(90% of total capacity, Host rebuild threshold)
- Yellow: = MIN(70% of total capacity, 80% of Host rebuild threshold)
Q: How does one troubleshoot and fix the error state?The first step is to ensure that all the storage is valid, that there are no missing capacity devices, and ensure that the vSAN datastore capacity is what you expect it to be. There a 3 options to recover a full vSAN datastore situation as detailed below:
- Download VM(s) to local workstation to free up space on vSAN datastore:
- Identify the full disk/diskgroup.
- Identify VM(s) residing on the full diskgroup.
- VM must be healthy. If they are orphaned or inaccessible, then select a different VM to free up space.
- VM must have namespace reservation usage of less than 10MB.
- Power off [for VMs with a pending question, answer 'cancel'].
- There may be multiple questions - all must be answered.
- If hostd is non-responsive/hung, this method may not work.
- Download the VM to your local workstation.
- verify download is complete and contains all VM data.
- Delete the VM on vSAN.
- Power-off VMs to free up resources on vSAN:
- Gracefully power off VM(s). This will delete the swap files associated with those guests and free up some space.
- Once enough VMs have been powered off, svMotion VMs to alternate storage.
- If alternate storage is not available, delete unnecessary guests to free up additional space.
- Expand vSAN Direct datastore capacity.
If vSAN servers have available slots for additional drives and disks are available, add disks to the vSAN Direct storage to expand capacity. This is typically the easiest option if the appropriate resources are available.
Caveats
- vSAN has limited functionality when full.
- When diskgroups in the cluster are full, VMs that reside on those diskgroups will experience failures for any operations that require space, such as storage vMotion. Other operations may take significantly more time to complete than they would in a healthy cluster.
- Recovered space may not be reflected in the UI.
- When pursuing methods of recovery that delete swap files above, manually confirm via CLI.