Search
StarWind is a hyperconverged (HCI) vendor with focus on Enterprise ROBO, SMB & Edge

What should you do if “No space left on device” error occurs while updating VMware ESXi?

  • April 19, 2018
  • 6 min read
Virtualization Architect. Alex is a certified VMware vExpert and the Founder of VMC, a company focused on virtualization, and the CEO of Nova Games, a mobile game publisher.
Virtualization Architect. Alex is a certified VMware vExpert and the Founder of VMC, a company focused on virtualization, and the CEO of Nova Games, a mobile game publisher.


While updating VMware ESXi servers, VMware vSphere users may encounter the “No space left on device” error that pops up while executing the “esxcli software vib update” command. Interestingly, the problem occurs even though disks are doing well and have enough free space and df -h command proves that.

Find below how the output with the described error looks like:

1 - What should you do if “No space left on device” error occurs while updating VMware ESXi?

df -h output, in its turn, declines this claim, saying that there is enough space in these volumes:

2 - What should you do if “No space left on device” error occurs while updating VMware ESXi?

So, what’s going on with your ESXi host? Rarely, the error is caused by a lack of inodes file objects. This issue is discussed in detail in KB 1007638. inodes are the file system structures, a maximum number of which for a single VMFS volume can reach up to 640 000. The number of utilized inodes depends on how many files are kept in the file system at a particular moment.

You can check the number of available inodes with stat -f / command:

3 - What should you do if “No space left on device” error occurs while updating VMware ESXi?

The output provided in the screenshot above says that these objects are still redundant.

You also can check the number of available inodes by executing the df -I command:

As far as you can see, it is hardly possible to reach this number, yet if you do manage to reach that limit, just delete some files on ESXi host. In this way, there should be something else to cause the error.

For instance, there can be log files that occupy more than 50 MB and other files on ESXi that are kept out of VMFS volumes. You can find these files with the following command (it avoids VM logs on VMFS volumes):

After running the command, there will be generated a list of local files like ISO images, big log files, etc. All that stuff can be deleted if you do not need them or sent to some storage for archival purposes. Have a look through KB 1008643. This article discusses deleting files to free some inodes objects.

Another (and most probable) thing that may cause the described error can be a lack of RAM on the ESXi host. The host, basically, cannot allocate enough RAM for updating. This issue can be resolved by enabling the ESXi system swap located on another datastore where RAM will be flashed during updates if the problem occurs.

In order to enable the ESXi system swap, navigate to Manage > Settings > System Swap. Next, press Edit…:

4 - What should you do if “No space left on device” error occurs while updating VMware ESXi?

Specify the datastore and click Ok. You can also set datastore for memory paging in Edit Host Profiles:

5 - What should you do if “No space left on device” error occurs while updating VMware ESXi?

Once you select the datastore for system swap, update the ESXi host and reboot it. Actually, it is the most common solution to the discussed issue.

Hey! Found Alex’s insights useful? Looking for a cost-effective, high-performance, and easy-to-use hyperconverged platform?
Taras Shved
Taras Shved StarWind HCI Appliance Product Manager
Look no further! StarWind HCI Appliance (HCA) is a plug-and-play solution that combines compute, storage, networking, and virtualization software into a single easy-to-use hyperconverged platform. It's designed to significantly trim your IT costs and save valuable time. Interested in learning more? Book your StarWind HCA demo now to see it in action!