Free space mystery

I’ve run out of free space in an App qube, but I don’t understand how.

A cp -r operation fails with “cannot create directory: No space left on device”. However, if I run df -h in the App qube, it still shows that /rw is using less than 30%, with 30 GB still available. One factor that may be relevant is that the directory being recursively copied is composed of several million tiny files.

App qube settings:

  • Private storage max: 41 G

The app qube’s template’s settings:

  • Private storage max size: 2 G
  • System storage max size: 20 G

And the relevant output of df -h:
Filesystem Size Used Avail Use% Mounted on
/dev/xvdb 41G 11G 30G 27% /rw

What is the output for this:

df --inodes