LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia
User Name
Password
Mageia This forum is for the discussion of Mageia Linux.

Notices


Reply
  Search this Thread
Old 09-19-2019, 03:03 AM   #1
Milo4t
Member
 
Registered: Sep 2003
Location: Canberra, Australia
Distribution: Mageia #4.1
Posts: 45

Rep: Reputation: 11
Angry 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.
 
Old 09-19-2019, 05:13 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by Milo4t View Post
Why are /log and /spool so huge?????
Only you can answer that - go have a look.
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.
 
Old 09-20-2019, 08:23 PM   #3
Milo4t
Member
 
Registered: Sep 2003
Location: Canberra, Australia
Distribution: Mageia #4.1
Posts: 45

Original Poster
Rep: Reputation: 11
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.
 
Old 09-20-2019, 09:34 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
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.)
 
Old 09-20-2019, 10:55 PM   #5
Milo4t
Member
 
Registered: Sep 2003
Location: Canberra, Australia
Distribution: Mageia #4.1
Posts: 45

Original Poster
Rep: Reputation: 11
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.
 
Old 09-21-2019, 12:27 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Run this from a terminal - if you don't have sudo, will need root.
Code:
sudo du -h /var | sort -hr | head -n 15
 
Old 09-22-2019, 05:16 AM   #7
Milo4t
Member
 
Registered: Sep 2003
Location: Canberra, Australia
Distribution: Mageia #4.1
Posts: 45

Original Poster
Rep: Reputation: 11
Result of the command. Sorry for the delay.

Code:
[myles@Bilbo ~]$ sudo du -h /var | sort -hr | head -n 15
[sudo] password for myles: 
13G     /var
4.4G    /var/log
3.9G    /var/spool/mail
3.9G    /var/spool
3.8G    /var/lib
3.3G    /var/lib/plexmediaserver
3.2G    /var/lib/plexmediaserver/Library/Application Support/Plex Media Server
3.2G    /var/lib/plexmediaserver/Library/Application Support
3.2G    /var/lib/plexmediaserver/Library
1.7G    /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata
934M    /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows
803M    /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media/localhost
803M    /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Media
801M    /var/log/journal/badb2719d00f4b4697ade2f7fd49c6ba
801M    /var/log/journal
[myles@Bilbo ~]$
 
Old 09-22-2019, 05:52 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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
 
Old 09-22-2019, 07:49 PM   #9
Milo4t
Member
 
Registered: Sep 2003
Location: Canberra, Australia
Distribution: Mageia #4.1
Posts: 45

Original Poster
Rep: Reputation: 11
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.
 
Old 09-23-2019, 02:24 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Milo4t View Post
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.
You need to get in there and see what it is.

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.
 
Old 09-25-2019, 09:10 PM   #11
Milo4t
Member
 
Registered: Sep 2003
Location: Canberra, Australia
Distribution: Mageia #4.1
Posts: 45

Original Poster
Rep: Reputation: 11
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.
 
Old 09-26-2019, 01:28 AM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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.
 
1 members found this post helpful.
  


Reply

Tags
full, space, var



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] virtualbox installs pcbsd again and again and again straffetoebak Linux - Virtualization and Cloud 4 11-21-2014 07:14 PM
[SOLVED] get var value when var name is part of another var bilyboy65 Linux - Newbie 9 10-21-2012 09:32 AM
[SOLVED] Bash, find : How to avoid [...] pattern matching in file names expanded from "$var"? Telengard Programming 19 04-23-2011 02:36 AM
Dualbooting again, again, again... Procrastinator Linux - General 4 10-28-2004 11:04 AM
Need help installing Mandrake (again, again, again...) DicedMalt Mandriva 6 08-26-2003 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia

All times are GMT -5. The time now is 01:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration