Pagina 1 di 1

Ubuntu cartella /var/log in continua crescita

Inviato: sab lug 28, 2018 9:16 am
da pippo_79
Salve,
dopo che ho installato ubuntu 18.04 (stampante e software) mi esce un messaggio del sistema che non ho + spazio.

HD 50 GB
Swat: 4Gb kern

mi ritrovo con HD: 0.00 GB

Dentro la cartella /va/log ci sono dei file di log che crescono sempre (syslog e kern.log).
Ho visto che anche altri hanno avuto questo problema ma non sono riuscito a risolvere.

Risposta al comando: [dmesg]
[ 1163.545259] ACPI Error: Method parse/execution failed \_GPE._L6F, AE_NOT_FOUND (20170831/psparse-550)
[ 1163.545265] ACPI Exception: AE_NOT_FOUND, while evaluating GPE method [_L6F] (20170831/evgpe-646)
[ 1163.547161] ACPI Error: [PGRT] Namespace lookup failure, AE_NOT_FOUND (20170831/psargs-364)
[ 1163.547169] No Local Variables are initialized for Method [_L6F]
[ 1163.547170] No Arguments are initialized for method [_L6F]
[ 1163.547172] ACPI Error: Method parse/execution failed \_GPE._L6F, AE_NOT_FOUND (20170831/psparse-550)
[ 1163.547177] ACPI Exception: AE_NOT_FOUND, while evaluating GPE method [_L6F] (20170831/evgpe-646)
[ 1163.548879] ACPI Error: [PGRT] Namespace lookup failure, AE_NOT_FOUND (20170831/psargs-364)
[ 1163.548887] No Local Variables are initialized for Method [_L6F]
[ 1163.548889] No Arguments are initialized for method [_L6F]
... si ripete sempre


che posso fare x non far crescere + il file e per risolvere il problema ..?
grazie

Re: Ubuntu cartella /var/log in continua crescita

Inviato: lun lug 30, 2018 2:36 am
da Ganondolf
Prova a scrivere nel terminale

Codice: Seleziona tutto

sudo echo "disable" > /sys/firmware/acpi/interrupts/gpe6F

Re: Ubuntu cartella /var/log in continua crescita

Inviato: lun lug 30, 2018 6:40 am
da pippo_79
Ho eseguito:

Codice: Seleziona tutto

sudo echo "disable" > /sys/firmware/acpi/interrupts/gpe6F
blocca il crescere dei file syslog e kern.log
poi ho eseguito:

Codice: Seleziona tutto

cd /var/log
echo | tee messages.1 kern.log messages syslog syslog.1 user.log user.log.1
e mi riporta i 2 file (di parecchi GB se passa molto tempo) a pochi kb.

Ma dopo che riavvio Linux ricominciano a crescere e devo rifare ogni volta la stessa procedura...

Re: Ubuntu cartella /var/log in continua crescita

Inviato: lun lug 30, 2018 10:51 am
da Ganondolf
Potresti aggiungere un cron job che esegue quel comando al reboot:

Codice: Seleziona tutto

sudo crontab -e
aggiungi su una nuova riga:

Codice: Seleziona tutto

@reboot echo "disable" > /sys/firmware/acpi/interrupts/gpe6F
ps: per inserire del codice puoi usare il pulsante "Codice" dell'editor oppure usare i tag [ code ] e [/ code ] (senza gli spazi)

Re: Ubuntu cartella /var/log in continua crescita

Inviato: mar lug 31, 2018 8:38 pm
da pippo_79
Ho provato, sperando di aver fatto giusto, ma continuano a crescere ...

Re: Ubuntu cartella /var/log in continua crescita

Inviato: sab ago 04, 2018 5:43 pm
da pippo_79
up...

Re: Ubuntu cartella /var/log in continua crescita

Inviato: dom ago 05, 2018 12:28 am
da Ganondolf
qual'è l'output di

Codice: Seleziona tutto

sudo crontab -l
?

Re: Ubuntu cartella /var/log in continua crescita

Inviato: gio ago 09, 2018 5:13 pm
da pippo_79
Ganondolf ha scritto: dom ago 05, 2018 12:28 am qual'è l'output di

Codice: Seleziona tutto

sudo crontab -l
?

Codice: Seleziona tutto

# Edit this file to introduce tasks to be run by cron.
# 
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# 
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# 
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# 
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# 
# For more information see the manual pages of crontab(5) and cron(8)
# 
# m h  dom mon dow   command
# @reboot echo "disable" > /sys/firmware/acpi/interrupts/gpe6F
L'ultimo rigo l'ho inserito io ma non è servito a nulla ...

Re: Ubuntu cartella /var/log in continua crescita

Inviato: gio ago 09, 2018 10:50 pm
da Ganondolf
hai inserito la riga commentata. Devi rimuovere il #, il @ dev'essere il primo carattere