|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: May 2003
Città: Rimini
Messaggi: 2279
|
Problemone: no space left on device!
Ho questo strano problema: nonostante abbia una partizione di root di 5 giga con una debian leggera leggera, ho esaurito lo spazio su disco!
Dopo aver cercato con du qual è la cartella che occupa così tanto, ho scoperto che è var/log: Codice:
debian:/var/log# ls -li totale 4899435 13604 -rw-r----- 1 root adm 17761 2005-06-08 23:17 auth.log 16793 -rw-r--r-- 1 root root 230349 2005-04-20 20:15 base-config.log 16770 -rw-r--r-- 1 root root 5681 2005-04-20 20:15 base-config.timings 9739 -rw-rw-r-- 1 root utmp 768 2005-04-21 21:22 btmp 16748 -rw-r--r-- 1 root root 4317 2005-06-09 22:20 daemon.log 16759 drwxr-xr-x 3 root root 200 2005-04-20 20:01 debian-installer 200 -rw-r--r-- 1 root root 1668890644 2005-06-08 23:10 debug 9716 -rw-r--r-- 1 root root 15454 2005-06-09 21:54 dmesg 13605 drwxr-s--- 2 Debian-exim adm 96 2005-04-21 08:12 exim4 28009 -rw-r--r-- 1 root root 972 2005-04-21 22:07 fontconfig.log 1807 -rw-r--r-- 1 root root 91100 2005-06-09 22:20 kdm.log 170 -rw-r--r-- 1 root root 1669969566 2005-06-08 23:10 kern.log 3724 drwxr-xr-x 2 root root 48 2005-04-20 19:59 ksymoops 9740 -rw-rw-r-- 1 root utmp 292292 2005-06-09 22:20 lastlog 16773 -rw-r--r-- 1 root root 0 2005-04-20 20:02 lpr.log 16779 -rw-r--r-- 1 root root 0 2005-04-24 17:04 mail.err 16777 -rw-r--r-- 1 root root 0 2005-04-24 17:04 mail.info 16774 -rw-r--r-- 1 root root 0 2005-04-24 17:04 mail.log 16778 -rw-r--r-- 1 root root 0 2005-04-24 17:04 mail.warn 16784 -rw-r--r-- 1 root root 2358365 2005-06-08 23:10 messages 13595 drwxr-sr-x 2 news news 136 2005-04-20 20:02 news 75 -rw-r--r-- 1 root root 1669978760 2005-06-08 23:10 syslog 16775 -rw-r--r-- 1 root root 3361 2005-04-25 12:37 user.log 16776 -rw-r--r-- 1 root root 0 2005-04-20 20:02 uucp.log 9738 -rw-rw-r-- 1 root utmp 428544 2005-06-09 22:20 wtmp 1311 -rw-r--r-- 1 root root 48253 2005-06-08 22:31 XFree86.0.log 515 -rw-r--r-- 1 root root 36107 2005-04-25 12:37 XFree86.0.log.old
__________________
Gigabyte 965P-DS3 ¤ E6600@400*8 ¤ Scythe Ninja Plus Rev.B ¤ Ram 4GB ¤ HD SSD Crucial M4 128GB
Gainward 4850 Golden Sample ¤ Antec NEO 550HE ¤ CM Centurion 534 ¤ Dell Ultrasharp U2312HM Notebook Asus N551JW ¤ i7-4750HQ ¤ nVidia 960M 4GB ¤ 16GB DDR3 ¤ SSD Intel 850EVO 500GB |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Mar 2003
Città: Roma
Messaggi: 301
|
Guarda prima che c'è scritto dentro, probabimente c'è qualche servizio che ha dei problemi e scrive mega e mega di log....
Cmq li puoi cancellare.
__________________
Debian... apt-get into! |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Sep 2003
Città: San Mauro Torinese
Messaggi: 5402
|
logrotate
è installato?
__________________
Suonare come superamento, anche se per pochi attimi, della realtà costrittiva, come espressione, comunicazione, con modalità proprie, agli altri; http://www.magazzinifranti.it/ |
![]() |
![]() |
![]() |
#4 | |
Senior Member
Iscritto dal: May 2003
Città: Rimini
Messaggi: 2279
|
Non sono riuscito a vedere che c'era scritto, usando cat ci metteva 2 giorni
![]() Li ho cancellati e ho fatto 2 reboot, mi sembra che si riempiano normalmente. Quote:
![]() Se ho capito bene controlla la "crescita" dei file di log?
__________________
Gigabyte 965P-DS3 ¤ E6600@400*8 ¤ Scythe Ninja Plus Rev.B ¤ Ram 4GB ¤ HD SSD Crucial M4 128GB
Gainward 4850 Golden Sample ¤ Antec NEO 550HE ¤ CM Centurion 534 ¤ Dell Ultrasharp U2312HM Notebook Asus N551JW ¤ i7-4750HQ ¤ nVidia 960M 4GB ¤ 16GB DDR3 ¤ SSD Intel 850EVO 500GB |
|
![]() |
![]() |
![]() |
#5 | ||
Senior Member
Iscritto dal: Sep 2003
Città: San Mauro Torinese
Messaggi: 5402
|
Quote:
sono tuoi amici... ![]() Quote:
Codice:
Description: Log rotation utility The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files. Logrotate allows for the automatic rotation compression, removal and mailing of log files. Logrotate can be set to handle a log file daily, weekly, monthly or when the log file gets to a certain size. Normally, logrotate runs as a daily cron job.
__________________
Suonare come superamento, anche se per pochi attimi, della realtà costrittiva, come espressione, comunicazione, con modalità proprie, agli altri; http://www.magazzinifranti.it/ |
||
![]() |
![]() |
![]() |
#6 |
Senior Member
Iscritto dal: May 2003
Città: Rimini
Messaggi: 2279
|
Ok ma non ho capito esattamente cosa fa coi file di log, se riscrive da 0 o ricomincia a scrivere dall'inizio
![]()
__________________
Gigabyte 965P-DS3 ¤ E6600@400*8 ¤ Scythe Ninja Plus Rev.B ¤ Ram 4GB ¤ HD SSD Crucial M4 128GB
Gainward 4850 Golden Sample ¤ Antec NEO 550HE ¤ CM Centurion 534 ¤ Dell Ultrasharp U2312HM Notebook Asus N551JW ¤ i7-4750HQ ¤ nVidia 960M 4GB ¤ 16GB DDR3 ¤ SSD Intel 850EVO 500GB |
![]() |
![]() |
![]() |
#7 |
Senior Member
Iscritto dal: Feb 2001
Città: San Marino
Messaggi: 9988
|
Ho lo stesso problema, ma non saprei come fare per visualizzare i file pesanti, avete qualche consiglio?
Grazie. |
![]() |
![]() |
![]() |
#8 |
Senior Member
Iscritto dal: Apr 2004
Messaggi: 9516
|
per vedere file:
head (testa) tail (coda) less more p.s. http://guide.debianizzati.org/index....matica_dei_log |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 10:56.