Seperate /var partition is still getting full [duplicate]
This question already has an answer here:
Very large log files, what should I do?
4 answers
The /var partition on my intel ssd is getting full. Even though I have increased it size to 100GB, which is quite ridiculous.
The kern.log and syslog. files are each 31.7 GB big.
First of all how can I remove the files? Because just deleting them is denied.
And second what is the cause and how can I prevent this from happening?
ssd log
marked as duplicate by pomsky, Kulfy, karel, Eric Carvalho, Thomas Jan 7 at 7:57
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
Very large log files, what should I do?
4 answers
The /var partition on my intel ssd is getting full. Even though I have increased it size to 100GB, which is quite ridiculous.
The kern.log and syslog. files are each 31.7 GB big.
First of all how can I remove the files? Because just deleting them is denied.
And second what is the cause and how can I prevent this from happening?
ssd log
marked as duplicate by pomsky, Kulfy, karel, Eric Carvalho, Thomas Jan 7 at 7:57
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
It'd be helpful to know what exactly is getting full. Provide us the output ofsudo du -h --max-depth=1 /var/ | sort -h
as an edit for us to get some guidance on what exactly is taking up space. This'll help us to start narrowing down the files using up all the space.
– Thomas Ward♦
Jan 5 at 21:23
What brand/model system? Have you updated UEFI & SSD's firmware? Some brands have run away log files like this and need boot parameters: Asus x555u w/o pci=nomsi - space issue on drive and runaway log files filling drive ubuntuforums.org/showthread.php?t=2327103&page=3
– oldfred
Jan 5 at 21:37
1
the kern.log and syslog. files are each 31.7 GB big
– cor905828
Jan 5 at 21:38
As requested the list of files:< pre>4,0K /var/local 4,0K /var/mail 4,0K /var/metrics 4,0K /var/opt 16K /var/lost+found 52K /var/spool 52K /var/tmp 252K /var/snap 916K /var/crash 1,5M /var/webmin 2,6M /var/backups 48M /var/cache 1,9G /var/lib 64G /var/log 66G /var/ </pre>
– cor905828
Jan 5 at 21:39
add a comment |
This question already has an answer here:
Very large log files, what should I do?
4 answers
The /var partition on my intel ssd is getting full. Even though I have increased it size to 100GB, which is quite ridiculous.
The kern.log and syslog. files are each 31.7 GB big.
First of all how can I remove the files? Because just deleting them is denied.
And second what is the cause and how can I prevent this from happening?
ssd log
This question already has an answer here:
Very large log files, what should I do?
4 answers
The /var partition on my intel ssd is getting full. Even though I have increased it size to 100GB, which is quite ridiculous.
The kern.log and syslog. files are each 31.7 GB big.
First of all how can I remove the files? Because just deleting them is denied.
And second what is the cause and how can I prevent this from happening?
This question already has an answer here:
Very large log files, what should I do?
4 answers
ssd log
ssd log
edited Jan 6 at 13:15
pomsky
30.5k1193127
30.5k1193127
asked Jan 5 at 21:17
cor905828cor905828
61
61
marked as duplicate by pomsky, Kulfy, karel, Eric Carvalho, Thomas Jan 7 at 7:57
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by pomsky, Kulfy, karel, Eric Carvalho, Thomas Jan 7 at 7:57
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
It'd be helpful to know what exactly is getting full. Provide us the output ofsudo du -h --max-depth=1 /var/ | sort -h
as an edit for us to get some guidance on what exactly is taking up space. This'll help us to start narrowing down the files using up all the space.
– Thomas Ward♦
Jan 5 at 21:23
What brand/model system? Have you updated UEFI & SSD's firmware? Some brands have run away log files like this and need boot parameters: Asus x555u w/o pci=nomsi - space issue on drive and runaway log files filling drive ubuntuforums.org/showthread.php?t=2327103&page=3
– oldfred
Jan 5 at 21:37
1
the kern.log and syslog. files are each 31.7 GB big
– cor905828
Jan 5 at 21:38
As requested the list of files:< pre>4,0K /var/local 4,0K /var/mail 4,0K /var/metrics 4,0K /var/opt 16K /var/lost+found 52K /var/spool 52K /var/tmp 252K /var/snap 916K /var/crash 1,5M /var/webmin 2,6M /var/backups 48M /var/cache 1,9G /var/lib 64G /var/log 66G /var/ </pre>
– cor905828
Jan 5 at 21:39
add a comment |
1
It'd be helpful to know what exactly is getting full. Provide us the output ofsudo du -h --max-depth=1 /var/ | sort -h
as an edit for us to get some guidance on what exactly is taking up space. This'll help us to start narrowing down the files using up all the space.
– Thomas Ward♦
Jan 5 at 21:23
What brand/model system? Have you updated UEFI & SSD's firmware? Some brands have run away log files like this and need boot parameters: Asus x555u w/o pci=nomsi - space issue on drive and runaway log files filling drive ubuntuforums.org/showthread.php?t=2327103&page=3
– oldfred
Jan 5 at 21:37
1
the kern.log and syslog. files are each 31.7 GB big
– cor905828
Jan 5 at 21:38
As requested the list of files:< pre>4,0K /var/local 4,0K /var/mail 4,0K /var/metrics 4,0K /var/opt 16K /var/lost+found 52K /var/spool 52K /var/tmp 252K /var/snap 916K /var/crash 1,5M /var/webmin 2,6M /var/backups 48M /var/cache 1,9G /var/lib 64G /var/log 66G /var/ </pre>
– cor905828
Jan 5 at 21:39
1
1
It'd be helpful to know what exactly is getting full. Provide us the output of
sudo du -h --max-depth=1 /var/ | sort -h
as an edit for us to get some guidance on what exactly is taking up space. This'll help us to start narrowing down the files using up all the space.– Thomas Ward♦
Jan 5 at 21:23
It'd be helpful to know what exactly is getting full. Provide us the output of
sudo du -h --max-depth=1 /var/ | sort -h
as an edit for us to get some guidance on what exactly is taking up space. This'll help us to start narrowing down the files using up all the space.– Thomas Ward♦
Jan 5 at 21:23
What brand/model system? Have you updated UEFI & SSD's firmware? Some brands have run away log files like this and need boot parameters: Asus x555u w/o pci=nomsi - space issue on drive and runaway log files filling drive ubuntuforums.org/showthread.php?t=2327103&page=3
– oldfred
Jan 5 at 21:37
What brand/model system? Have you updated UEFI & SSD's firmware? Some brands have run away log files like this and need boot parameters: Asus x555u w/o pci=nomsi - space issue on drive and runaway log files filling drive ubuntuforums.org/showthread.php?t=2327103&page=3
– oldfred
Jan 5 at 21:37
1
1
the kern.log and syslog. files are each 31.7 GB big
– cor905828
Jan 5 at 21:38
the kern.log and syslog. files are each 31.7 GB big
– cor905828
Jan 5 at 21:38
As requested the list of files:< pre>4,0K /var/local 4,0K /var/mail 4,0K /var/metrics 4,0K /var/opt 16K /var/lost+found 52K /var/spool 52K /var/tmp 252K /var/snap 916K /var/crash 1,5M /var/webmin 2,6M /var/backups 48M /var/cache 1,9G /var/lib 64G /var/log 66G /var/ </pre>
– cor905828
Jan 5 at 21:39
As requested the list of files:< pre>4,0K /var/local 4,0K /var/mail 4,0K /var/metrics 4,0K /var/opt 16K /var/lost+found 52K /var/spool 52K /var/tmp 252K /var/snap 916K /var/crash 1,5M /var/webmin 2,6M /var/backups 48M /var/cache 1,9G /var/lib 64G /var/log 66G /var/ </pre>
– cor905828
Jan 5 at 21:39
add a comment |
1 Answer
1
active
oldest
votes
First of all how can I remove the files? Because just deleting them is denied.
Please don't. Deleting a log file might crash a program that depends on it still being there. You can however empty it with
sudo > /var/log/syslog
if you want to clear out syslog. But please do that AFTER you fixed the problem it is logging.
And second what is the cause and how can I prevent this from happening?
Errors for instance. Or over-aggressive logging.
sudo tail -n 1000 /var/log/syslog
will show the last 1000 lines of syslog. Examine what is shown, google (error) messages and fix them.
Same applies to other log files. Like /var/log/kern.log or if there /var/log/messages.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
First of all how can I remove the files? Because just deleting them is denied.
Please don't. Deleting a log file might crash a program that depends on it still being there. You can however empty it with
sudo > /var/log/syslog
if you want to clear out syslog. But please do that AFTER you fixed the problem it is logging.
And second what is the cause and how can I prevent this from happening?
Errors for instance. Or over-aggressive logging.
sudo tail -n 1000 /var/log/syslog
will show the last 1000 lines of syslog. Examine what is shown, google (error) messages and fix them.
Same applies to other log files. Like /var/log/kern.log or if there /var/log/messages.
add a comment |
First of all how can I remove the files? Because just deleting them is denied.
Please don't. Deleting a log file might crash a program that depends on it still being there. You can however empty it with
sudo > /var/log/syslog
if you want to clear out syslog. But please do that AFTER you fixed the problem it is logging.
And second what is the cause and how can I prevent this from happening?
Errors for instance. Or over-aggressive logging.
sudo tail -n 1000 /var/log/syslog
will show the last 1000 lines of syslog. Examine what is shown, google (error) messages and fix them.
Same applies to other log files. Like /var/log/kern.log or if there /var/log/messages.
add a comment |
First of all how can I remove the files? Because just deleting them is denied.
Please don't. Deleting a log file might crash a program that depends on it still being there. You can however empty it with
sudo > /var/log/syslog
if you want to clear out syslog. But please do that AFTER you fixed the problem it is logging.
And second what is the cause and how can I prevent this from happening?
Errors for instance. Or over-aggressive logging.
sudo tail -n 1000 /var/log/syslog
will show the last 1000 lines of syslog. Examine what is shown, google (error) messages and fix them.
Same applies to other log files. Like /var/log/kern.log or if there /var/log/messages.
First of all how can I remove the files? Because just deleting them is denied.
Please don't. Deleting a log file might crash a program that depends on it still being there. You can however empty it with
sudo > /var/log/syslog
if you want to clear out syslog. But please do that AFTER you fixed the problem it is logging.
And second what is the cause and how can I prevent this from happening?
Errors for instance. Or over-aggressive logging.
sudo tail -n 1000 /var/log/syslog
will show the last 1000 lines of syslog. Examine what is shown, google (error) messages and fix them.
Same applies to other log files. Like /var/log/kern.log or if there /var/log/messages.
answered Jan 5 at 21:45
RinzwindRinzwind
206k28394526
206k28394526
add a comment |
add a comment |
1
It'd be helpful to know what exactly is getting full. Provide us the output of
sudo du -h --max-depth=1 /var/ | sort -h
as an edit for us to get some guidance on what exactly is taking up space. This'll help us to start narrowing down the files using up all the space.– Thomas Ward♦
Jan 5 at 21:23
What brand/model system? Have you updated UEFI & SSD's firmware? Some brands have run away log files like this and need boot parameters: Asus x555u w/o pci=nomsi - space issue on drive and runaway log files filling drive ubuntuforums.org/showthread.php?t=2327103&page=3
– oldfred
Jan 5 at 21:37
1
the kern.log and syslog. files are each 31.7 GB big
– cor905828
Jan 5 at 21:38
As requested the list of files:< pre>4,0K /var/local 4,0K /var/mail 4,0K /var/metrics 4,0K /var/opt 16K /var/lost+found 52K /var/spool 52K /var/tmp 252K /var/snap 916K /var/crash 1,5M /var/webmin 2,6M /var/backups 48M /var/cache 1,9G /var/lib 64G /var/log 66G /var/ </pre>
– cor905828
Jan 5 at 21:39