Forum Moderators: phranque
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 99G 92G 2.1G 98% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/xvda1 248M 79M 157M 34% /boot
/usr/tmpDSK 3.2G 206M 2.8G 7% /tmp find /var/log/apache2/archive/* -mtime +7 -type f -delete When I go to /var/log/apache2/domlogs I have files like "domain-ssl_log". But then I go to /var/log/apache2/domlogs/ACCOUNT and have the same, identical file!
Log file names like yum.log-20180101 suggest there's log rotation, but no compression. Most applications should do that by default, but check the rotation files in /etc/logrotate.d/ to be sure. And for the biggest log offenders, set the rotate parameter to a number of days you feel comfortable with.
For applications that don't have specific settings in /logrotate.d/, check the /etc/logrotate.conf file for default settings. The "compress" setting may be commented out by default.
As for Munin's logs, they're just that, logs. Helpful for troubleshooting but not very interesting otherwise. At 4GB, that would be an easy win.
/var/log/munin/munin-graph.log
/var/log/munin/munin-html.log
/var/log/munin/munin-limits.log
/var/log/munin/munin-node.log
/var/log/munin/munin-update.log {
daily
missingok
rotate 7
compress
notifempty
create 640 munin munin
} What does du -hs /* look like for you?
# du -hs /*
0 /aquota.group
0 /aquota.user
24K /backup
8.2M /bin
69M /boot
128K /dev
4.0K /error_log
39M /etc
91G /home
405M /lib
27M /lib64
8.7M /lost+found
4.0K /media
4.0K /mnt
258M /opt
0 /proc
0 /quota.group
16K /quota.user
4.0K /razor-agent.log
673M /root
16M /sbin
0 /scripts
4.0K /selinux
4.0K /srv
0 /sys
27M /tmp
8.9G /usr
22G /var it may be a symbolic link to a file rather than a duplicate of the file.
Maybe worth looking at /home a bit more and seeing if anything non-important can be compressed or moved off the server.
You decided to self manage you server, so you are supposed to know everything about it, and which process does what, and where.
Also, it's possible that, if you allow visitors to upload images, there might be a folder holding all these images, or, "temporary" files, no longer used.
You need to know what your cron is doing too. May be a script or more are producing files, which are filling your SSD.
Use ncdu to drill down and find the worst offenders.
Alternatively, ease your mind by upgrading to a bigger disk.
[edited by: phranque at 4:29 am (utc) on Oct 27, 2020]
[edit reason] forum Charter [webmasterworld.com] [/edit]
my biggest culprit here are a few accounts that INSIST on keeping their emails on the server! One hosting account takes up 23G by herself >:-( I tried to get her to download them, or at least download the old ones, but she literally laughed in my face and said that if I insisted then she would just take her business elsewhere.
Under /usr/local/apache.ea3/ I have /domlogs and /logs. I use Easy Apache 4, so I think these are copies of the log files when I updated over a year ago? Any guess on whether I can just delete both of these files? Or maybe even the whole /apache.ea3/ directory? That'd save me over 1G.
One hosting account takes up 23G by herself >:-(
[edited by: phranque at 4:30 am (utc) on Oct 27, 2020]
[edit reason] forum Charter [webmasterworld.com] [/edit]
my biggest culprit here are a few accounts that INSIST on keeping their emails on the server
I've always thought "semi-managed" services were a bit of a joke, it's usually not a lot more than installing updates every now and then.
Perhaps consider migrating her to another hosting package, or charge her more... The threat of moving elsewhere will cost her more in the long run as she'll need to migrate all that data as well as find someone to take care of things for her, which takes time.
You can get a good VPS with 300+ GB of SSD space for < $100/mo, probably quite a bit cheaper than what you're paying [your hosting provider] now.
I have a separate mail server running on a $5/month server
[edited by: phranque at 4:31 am (utc) on Oct 27, 2020]
[edit reason] forum Charter [webmasterworld.com] [/edit]
Whoa, do you mind recommending such a place, @robzilla?
Whoa, do you mind recommending such a place, @robzilla?
Double whoa, @graeme_p ! Do you mind recommending where one could get such a monster?
but if I can triple the storage for the same price...
I hope it just means that there are no more updates, but everything continues like normal?
Might I suggest a policy adjustment to allow established users to discuss hosting companies? I understand the spam concern, but it's also a relevant topic of discussion in cases like this.
I have 4G now and end up swapping for 14 hours /day.