Following on from an issue where my (linode/forge) server was reporting a full disk. I provisioned a new, fresh server and just added my single site to it. This site is ~6Gb in size. (Has locally stored assets).
All back up and running fine. However, I've been keeping an eye on disk usage and it's slowly creeping up again.
I'd start looking at log files, and temp files. Those usually continue to grow, and if you are having errors in the background, they can grow quite rapidly. There are a lot of services on the server that are writing to log files, not just your app. If you don't find/fix the problem, you will continually run into it whether you build a new server or not (I think I saw a different post of yours where your solution was to destroy/rebuild it?) /dev/sda is your main disk, so you'll have to dig deeper on that drive to see where it is.
@CRONIX - Hi, thanks for replying. Yes that's right, I did destroy the existing one and rebuild. Thought it would be easier to start a fresh and debug if needed from there.
I'm trying to check file sizes across the server. None of the logs of temp folders are particularly large.
When I try to get file/folder sizes from the disk it gives me a lot of 'cannot read directory - permission denied errors.'
What it does come back with is
6.1G home
1.7G usr
1.1G swapfile
1.1G lib
927M var
Which again, looks about right. Not sure how else i can see what's happening?
keep going, now check the home dir...keep going until you find the single dir that is taking up the most space. If it's /user/user21, then run it on that...keep going until there aren't more dirs to check, always following the largest dir (6.1G, for example).
That's what i don't understand. It reports back that the biggest directory is my forge one, within that its my site folder and that's roughly 6Gb. Which is correct. I can't understand where the 15Gb usage is.
I can't seem to check folders/files elsewhere as keep getting permissions errors.