How to empty
vda1 on VPS
Sometimes your OS (Ubuntu, Linux, etc…) disk space might become full, by
/dev/vda3/ or etc… (To check that, just navigate to root directory by using command:
cd .. and then use
df -h to see the disk usage) .
Jenkins or Docker (or other) might be the issue
Many times, that problem might be coming from Jenkins / Docker. If you use Jenkins, then I suggest that you making the logs smaller. For that, in
/etc/logrotate.d/jenkins you might use:
Still full disk?
Even after you made the above suggestion and disk space is still full, then maybe you have deleted a large file already, while that file was being stillused by some process? To find out what might be using that space, one solution is to use the command
lsof / | grep deleted and there will show up the processes that might be taking the space. You have to restart those services. Just use:
sudo systemctl restart processName
and then check again with
df -h and you will see the space is now free!