Introduction: What’s It For

VMware vSAN cluster is basically an aggregation of several ESXi hosts wherein the local disks containing VM data are configured in disk groups. Removing, transferring, or creating virtual machine disk objects can affect disk space distribution significantly. In general, it leads the cluster disk space to become unbalanced, which means that some objects of the system are overloaded, while other objects are very lightly loaded:

vSAN Disk Balance

If you have your VMware vSAN cluster disks unbalanced, in vSphere Client console Monitor tab, you’ll receive vSAN Disk Balance warning from vSAN Health section (the system performs vSAN health check every 30 minutes by default):

VMware vSAN cluster

In order to avoid any trouble in this regard, VMware vSAN employs a mechanism that initiates automatic cluster rebalancing – Automatic Rebalance, which is related to vSAN cluster disk objects, that are distributed around the vSAN cluster in various disk groups of the different hosts. If this option is enabled, the vSAN cluster can determine whether the ESXi disks distribution is unbalanced and start off rebalancing automatically.

Automatic or Proactive?

The default threshold to initiate rebalance is set to 30% (Average Load Variance – an average percentage difference between the minimum and maximum disk usage). That means that if any of the two disks have this load variance, the automatic rebalancing of components begins. The process will continue until the variance reaches the value of 15% by default or less.

 vSAN Disk Balance

When any disk in your cluster becomes over-utilized (80 percent and more), vSAN automatically rebalances the cluster. You, however, ought to keep in mind that this option can overload your disks, so watch out so that automatic rebalancing won’t consume lots of resources.

In case your Automatic Rebalance option is enabled at all times, the vSAN cluster will try to maintain its health status as “green.” If its disabled and the vSAN disk balance fails, an admin has to initiate the Rebalance Disks task.

This option is a proactive rebalance, and you need to run it manually. You know it’s time to run a proactive rebalance when the difference in space utilization of two or more disks reaches higher than 30%:

Automatic Rebalance option

If you initiate a rebalance operation manually, it might take up to 24 hours to complete before it stops automatically.

Confirmation

Tips & Tricks

Nevertheless, you have to realize that the rebalance operation is an entirely different option than, say, vSAN Resync. Its only purpose is to make sure that the cluster load is balanced on a disk level.

Also, there’s a possibility to keep the rebalance operations in check with the use of the Ruby vSphere Console (RVC) interface. You should switch namespace to computers and use the following RVC command to verify the current disk balance status:

The result may look like this:

 

If you see something like this, the rebalance operation isn’t needed. Still, if you feel like running it anyways, use the following command:

What you’ll see should look like this:

At any given moment, you can check the rebalance operation status in a specific cluster using the command:

And of course, you can define how long manual rebalance operation will be running. Just set the value in seconds using the following command (for example, let’s take 7 days):

VSAN from StarWind eliminates any need for physical shared storage just by mirroring internal flash and storage resources between hypervisor servers. Furthermore, the solution can be run on the off-the-shelf hardware. Such design allows VSAN from StarWind to not only achieve high performance and efficient hardware utilization but also reduce operational and capital expenses.
Find out more about ➡ VSAN from StarWind

To Sum Up

Automatic Rebalance is one of the Advanced Options, designed to help you to keep your vSAN cluster disk devices from unbalancing; otherwise, it may affect overall performance significantly, and not in a good way. However, it is the only thing this option does, so you’ll have to understand that its use is quite narrowed.

Views All Time
4
Views Today
13
Appreciate how useful this article was to you?
No Ratings Yet
Loading...
Back to blog
The following two tabs change content below.
Alex Samoylenko
Alex Samoylenko
Virtualization technology professional. 10 years ago he built #1 website on virtualization in Russia. Alex runs his own virtualization-focused company VMC. He is a CEO of a mobile game publisher Nova Games and a CEO of an international dating site