No Space Left On Device Error



This post contains affiliate links. If you click through and make a purchase, I may receive a commission (at no additional cost to you). This helps support the blog and allows me to continue to make free content. Linux Error: 28: No space left on device: renguzi: Linux - Newbie: 4: 10:32 PM: Stuck at 5.5. Linux-2.6.22.5 API Headers ERROR no space left on device: bucovaina78: Linux From Scratch: 2: 05:26 PM.

When you try to install a VMware ESXi Update using esxcli, the upgrade fails with the following error message:

'[Errno 28] No space left on device'

The problem is caused by ESXi not having enough free space available to extract the installation packages. This article explains how to solve the issue by enabling swapping to a Datastore.

GUI Method

You do not need a vCenter to enable host swapping. It can be done from the ESXi Host Client.

  1. Open ESXi UI (https://[ESXi-IP-Address]/ui/)
  2. Navigate to Host > Manage > System > Swap
  3. Click Edit settings
  4. Enable Swapping and select a datastore (ds1 in that example)
  5. Click Save
  6. Changes are active immediately, there is no need to reboot the host.

CLI Method

You can also activate Datastore Swapping with the esxcli sched swap system command:

Related posts:

We faced the problem mentioned in the title, and we found out the solution. We are more than glad to share it here with you. Enjoy the reading, check the rest of our blog posts, and may the power of our solutions be with you.

Error?

Do you know the feeling when your server starts to behave in a strange way, don’t you? So, you spend hours debugging, as we did some time ago, just to find out the “No Space Left On Device” error? It doesn’t matter what you do; the error keeps to pop out. If your disk is really full, then it is an easy problem to solve. Just clean it up. But, if your disk is not full the issue becomes a little bit more complicated… but still easy solvable. It’s possible that you have run out of inodes.

What are inodes?

Error

Docker No Space Left On Device Mac

Wikipedia says:

No Space Left On Device @ Error/cache.c/openpixelcache

The inode (index node) is a data structure in a Unix-style file system that describes a file-system object such as a file or a directory. Each inode stores the attributes and disk block location(s) of the object’s data. File-system object attributes may include metadata (times of last change, access, modification), as well as owner and permission data.

What does it mean in real life?
Files are not only using up your disk space, but they are also using disk inodes which hold information about them. In practice, if you keep a lot of big files most likely, you will run out of space. But, if you have a lot of very small files most likely, you will run out of inodes. Even though, there will be still potential free space on your drive.

How to check the number of inodes used?

Long story short, to check drive space we always use:

df -h

Thus, to check the number of inodes just put:

df --inodes

Do you know what happened?
The output is a little bit different. We use only 38% of the disk space but already 62% of the disk inodes available.

How to identify files and folder consuming your inodes?

The last key question to be answered is how you can identify where those files that consume your inodes are hiding. We use a very simple command for it:

find / -xdev -printf '%hn' | sort | uniq -c | sort -k 1 -n

As an output, you will receive a list of folders and the number of inodes that are being used by them.

Now you just have to navigate to the right place and clean it up 🙂

How about trying hosting services with unlimited disk space?

No Space Left On Device Error In Java

In case of any questions or problems, contact us.