In many VPS containers we can see that the disk space will be 90% free but still you will get a error message disk quota exceeded. This issue happens mostly in VPS servers.

root@server [~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 263G 212G 38G 86% /
/dev/sda1 433M 31M 380M 8% /boot
/dev/hda1 1.4T 645G 662G 50% /backup

The reason is simple your Inode value may have increased and it could have reached 100%.

root@s456 [~]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda3 1008256 1008256 1008256 100% /
/dev/sda1 114688 52 114636 10% /boot
/dev/hda1 183156736 18873262 164283474 11% /backup

In this case you have to increase the Inode value from your main hardware node. Kindly follow steps below.

To check the quota available in the main hardware node.
#/var/vzquota/quota.vpsid
diskinodes

Here 101 is the VPS container number.
#/etc/sysconfig/vz
#etc/sysconfig/vz-scripts/101.conf
#vzctl exec 101 df

This is the command to increase the Inode value. You can the binary value to any particular value.
#vzctl set 101 –diskspace 1000000:1100000 –save
(or)
#vzctl set 101 –diskinodes 90000:91000 –save

To verify the stat of VPS container 101
#vzquota stat 101 –t

Leave a Reply