My expanded /var - full again!
Hi all.
I had this exact same problem about a year ago (see: "I need to increase the size of /var - adjacent to an NTFS partition"). In that problem my /var was only 6.8Gb in size. After I re-sized partitions (NTFS and /var) my /var was (and is) 14Gb in size. It too has completely filled up. I discovered this problem this morning when I tried to install an update, it failed as /var was full. The main culprits are 3 folders I have found so far: /var/log - 3.9Gb /var/lib/plexmediaserver - 3Gb (I expected this but I need to keep that) /var/spool - 3.7Gb So what is going on, /var is twice the size now. Why are /log and /spool so huge????? I don't want to have to go through the rigmarole of re-sizing all the time, that seems ridiculous. As always, any help greatly appreciated. |
Quote:
On one of our netbooks a wifi adapter generated millions of logs - gave GB size kernel and syslog. I just empty them - the compressed rotations are much more acceptable, but no point keeping them either. Short answer - fix the problem. |
Thanks for that but of no help. I don't know how to do either of those things you specify - empty the logs or turn on compressed rotational logs. I had a look in the System Logs section of the MCC and couldn't find any way to achieve what you say.
I should say I am using Dolphin to do this, I'm not a CLI-type of guy. Also in /var/spool/mail/ there is something called "root" that is 3.7Gb big. I can't see anything specific in /var/log taking up 3.9Gb, but there are some folders I can't access in Dolphin. |
Do you have logrotate installed? (I would expect it to be by default.) Years ago, I ran into a similar problem on Debian and installing logrotate made it go away. And, no, I don't know why it wasn't already present.
If you do, and /var/log is filling up with log files that logrotate has rotated (they generally end in a number, like [somelog].1, [somelog].2, etc.), perhaps you could write a script to run as a [unit-time] cron job to delete those files. ([unit-time] would be long enough to be reasonably certain that you won't need to consult those archived logs.) |
Yes I do have logrotate installed (I just checked) and it seems to have been installed by default. And, yes, it seems to keep 5 logs, 1 current log and 4 previous. So there is something else in one of the other folders in /var/log (some I can't see into with my logon) under Dolphin.
So there's that and there's the /var/spool/mail/root problem. |
Run this from a terminal - if you don't have sudo, will need root.
Code:
sudo du -h /var | sort -hr | head -n 15 |
Result of the command. Sorry for the delay.
Code:
[myles@Bilbo ~]$ sudo du -h /var | sort -hr | head -n 15 |
You should move your media server out of /var; it will only grow and grow, I assume it contains the actual media files?
If you repeat the du command plus the '-x' option, is the output the same as above? Code:
sudo du -xh /var | sort -hr | head -n 15 |
Yes the results are the same.
I don'think I can move PMS out of /var as that is where it gets installed. I have just asked though. And yes it holds all of the relevant PMS data as well as my media file data descriptions etc. My media files are actually located on an external NTFS drive. But I am more interested in the contents of some folders within /var/log that I can't access and hold most of the space for that folder as the usual system logs only use about 800Mb. Also more interested in this: /var/spool/mail/root which is what is consuming the entire 3.9Gb of space. |
Quote:
And about the logs: there's probably a reason why there's too much of it. You need to get in there and see what it is. Come to think of it, the root mail probably contains the same log messages. And activate log rotation if it isn't already. |
I've now freed up some space and can function again. Now I just need to keep an eye on the size of /var and mange it better.
thaks for the help. |
This isn't really SOLVED because you aren't telling us what you deleted, and you didn't get to the source of the problem either.
Somebody else having the same problem won't get much help from this thread. |
All times are GMT -5. The time now is 12:43 PM. |