[mdlug] WTF /var/log

Robert Jim Fulner fulner at gmail.com
Fri Jul 8 06:23:08 EDT 2011


Wow,

Lots of inoformation, almost none of which I understand!

 >
 >--  *MANY* things depend upon the /var directory to do their work.  If 
 >/var
 >fills up - things tend to stop working.    Show us the output of "df >-h"
 >and we can narrow down what action you need to take.

jim at debian:/var/log$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              37G   35G     0 100% /
tmpfs                 236M     0  236M   0% /lib/init/rw
udev                  232M  208K  231M   1% /dev
tmpfs                 236M   88K  236M   1% /dev/shm
overflow              1.0M   16K 1008K   2% /tmp

 >Go to /var/log and do an 'du -ks * | sort -n' to see what is taking up
 >the space.  You probably have some service installed that didn't define
 >a log rotation rule [or your log rotation just isn't working].

Jim F. Output sudo du -ks /var/log/* | sort -n

http://pastebin.com/Be09vR3V

 > In the days now when everyone
 >should be using LVM there is little cost to this.  Make your hard drive
 >a PV then create LVs [don't use actual "partitioning"]  just as big as
 >you need them and leave the rest of the space unused.  You can grow the
 >LVs you need too on-the-fly so nobody needs to wild-???-guess about >what
 >file-system size allocation is appropriate anymore.

 >Use the tools!

A What the who? Sounds great! No idea what you're saying.

So being "Oh Jim, he's the Linux guy" but not actually having any idea 
what's going on, and with the information I've given, what is the best 
way to proceed from here?



==
Jim Fulner
3059 Cumberland Rd
Berkley, MI 48072
248-971-0259

Sent with Iceape Mail



More information about the mdlug mailing list