Full root-filesystem and difference between du and df

steff123

Member
Aug 1, 2020
55
2
13
42
Hey, one server runs occasionally to a 100% full root-filesystem and after a restart all is fine again. Currently it is the state but I have no chance to analyze it, because there is a big difference of 5G between du and df

Bash:
#df -h | grep pve-root
/dev/mapper/pve-root               22G     22G     0  100% /

Bash:
#du -shx /
17G    /

Any ideas?
 
possibly something got mounted over a directory that contains the missing 5G? you could bind-mount / somewhere else and check the usage there..
 
Forgotten to mention that I have tried this trick before

du -shx /mnt/data/root 17G /mnt/data/root