I have one server at packet.net and I have attached external volume which is mounted to folder /BACKUP where I process backup. Yesterday I have received an email that there is a problem with main partition - it is almost full? Somehow, attached volume de-attaches and mount /BACKUP was (I guess) unmounted and several backups was done in this folder which "switches" to local drive. When I attach external volume again, /BACKUP folder was automatically mounted to it. I delete all files on it, but main partition still shows it is full 90%.
When I check with df, I see this result:
[root@packet /]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 74824932 64793724 6207284 92% / devtmpfs 4069428 0 4069428 0% /dev tmpfs 4081476 4 4081472 1% /dev/shm tmpfs 4081476 123644 3957832 4% /run tmpfs 4081476 0 4081476 0% /sys/fs/cgroup tmpfs 816296 0 816296 0% /run/user/10003 tmpfs 816296 0 816296 0% /run/user/0 /dev/mapper/volume-1cb9df94p1 61795116 53704 58579352 1% /BACKUP
the I wanted to find where those 3 backups gone, and searched for large folders.
[root@packet /]# du -a / | sort -n -r | head -n 5 26593808 / 17031172 /var 13973568 /var/www 13968748 /var/www/vhosts 8188140 /var/www/vhosts/xxxxxxx.com
So it looks like / folder is large 26 Gb (which should be correct), but in df it shows 64 Gb occupation, like those three backups (~12Gb each) vanishes... How to fix this problem?