εκκαθάριση /var/log και /var/tmp

Απάντηση
serma
Δημοσιεύσεις: 101
Εγγραφή: Σάβ Ιουν 02, 2012 19:22 pm
Been thanked: 1 φορά

εκκαθάριση /var/log και /var/tmp

Δημοσίευση από serma » Κυρ Μαρ 16, 2014 10:24 am

Σαρώνοντας το σκληρό με το filelight είδα ότι οι /var/log και /var/tmp ήταν 5,5 GB
έχοντας εγκατεστημένο το kde-rootactions-servicemenu-2.7.3-3.mga4 τους άνοιξα με τον dolphin και βρήκα άδειους φακέλους και διάφορα παλιά αδιάφορα .log τα οποία διέγραψα ελευθερώνοντας 2,5 GB
βεβαία η εκκαθάριση γίνεται αυτόματα από το tmpwatch στο διάστημα που έχει οριστεί στο /etc/cron.daily/tmpwatch
#!/bin/sh

[ -f /etc/sysconfig/tmpwatch ] && . /etc/sysconfig/tmpwatch

/usr/sbin/tmpwatch $TMPWATCH_OPTIONS $TMPWATCH_EXCLUDES 10d /tmp

/usr/sbin/tmpwatch $TMPWATCH_OPTIONS $TMPWATCH_EXCLUDES 30d /var/tmp

[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n

for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?,$LANG/cat?}; do
if [ -d "$d" ]; then
/usr/sbin/tmpwatch $TMPWATCH_OPTIONS -f 30d "$d"
fi
done
http://utils.kde.org/projects/filelight/
http://linux.about.com/library/cmd/blcmdl8_tmpwatch.htm
Τελευταία επεξεργασία από το μέλος serma την Τετ Μαρ 19, 2014 14:36 pm, έχει επεξεργασθεί 1 φορά συνολικά.

Άβαταρ μέλους
dglent
Δημοσιεύσεις: 1069
Εγγραφή: Τετ Ιουν 01, 2011 05:42 am
Τοποθεσία: Γαλλία
Has thanked: 6 φορές

Re: εκκαθάριση /var/log και /var/tmp

Δημοσίευση από dglent » Κυρ Μαρ 16, 2014 11:35 am

Το καθάρισα και γω, μου πιάνανε γύρω στα 3GB και τα δυο...

serma
Δημοσιεύσεις: 101
Εγγραφή: Σάβ Ιουν 02, 2012 19:22 pm
Been thanked: 1 φορά

Re: εκκαθάριση /var/log και /var/tmp

Δημοσίευση από serma » Κυρ Μαρ 16, 2014 20:41 pm

διαγράφοντας το περιεχόμενο του /var/log/journal/ ελευθέρωσα άλλα 2 GB

για όποιον θέλει να βλέπει τα log υπάρχει το ksystemlog
localhost ~]$ urpmq -i ksystemlog
Name : ksystemlog
Version : 4.11.4
Release : 1.mga4
Group : Graphical desktop/KDE
Size : 653516 Architecture: x86_64
Source RPM : ksystemlog-4.11.4-1.mga4.src.rpm
URL : http://www.kde.org
Summary : System log viewer tool for KDE 4
Description :
This program is developed for being used by beginner users,
which don't know how to find information about their Linux system,
and how the log files are in their computer.
But it is also designed for advanced users,
who want to quickly see problems occuring on their server.

KSystemLog has the following features :

- View all the main log of your system, by selecting them
directly in a menu
- Auto display new lines logged in bold
- Tabbed view to allow displaying several logs at the same time
- Saving in a file and copying to clipboard the selected log
lines are also implemented (and email to your friends)
- It can parse the following log files of your system :

- X.org (or Xfree) logs
- System logs (using the Syslog parser of KSystemLog)
- Kernel logs
- Daemons logs
- Cron logs
- Boot logs
- Authentication logs
- Cups logs
- ACPID logs

Απάντηση