Disk Free (df) & Reserved Block Count

May 18, 2019
231
15
38
Varies
an LXC container shows inconsistent information on available disk space.

Proxmox UI:
1626203874008.png

Code:
df -h
1626203918300.png

NGINX:
ncdu
1626203955161.png

While the amount of disk total and disk used is consistent, disk free is 5.3GB while it should be ~25GB (473-448). and in fact, the amount of free disk IS the 5.3GB because the machine halts when this indicator gets to 0, no matter how much disk space the other measures show it should be available.

Although the discrepancy is due to "Reserved block count", it is misleading to have the inflated free space be displayed, as the system will fail before way before the UI shows free space is getting scarce. The point of this post is twofold

a) Feedback: show the actual amount of space available to the container (disregard the reserved blocks)
b) Question: how do I create CTs that have a non default % of reserved blocks?
 
  • Like
Reactions: liddack