Author Topic: Disk full or not? [SOLVED]  (Read 2252 times)

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: Disk full or not? [SOLVED?...not really]
« Reply #15 on: April 18, 2011, 05:46:48 PM »
Quote
3.2G    var/

this is the 'problem': enter /var and type the commands:

cd /var
du -sch *


Offline muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Disk full or not? [SOLVED?...not really]
« Reply #16 on: April 18, 2011, 05:49:22 PM »

/var  folder is taking 3.2GB !!!!!

what do you have in there? go there with a torch, a hammer and disinfectants, somebody is laying eggs in there  :D
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6470
  • I'm going South
Re: Disk full or not? [SOLVED?...not really]
« Reply #17 on: April 18, 2011, 06:00:33 PM »
omskates,

You've probably set up Synaptic to leave downloaded packages in the cache. This makes sense if you have lots of disk space. If you don't, it doesn't.

You can remove the packages from within Synaptic or by running "apt-get clean" in a terminal as root. (If there are any rpms that you feel you may need, back them up first. Normally you don't need old rpms.)
« Last Edit: April 18, 2011, 06:06:52 PM by Bald Brick »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline OMSkates

  • Hero Member
  • *****
  • Posts: 2390
Re: Disk full or not? [SOLVED?...not really]
« Reply #18 on: April 18, 2011, 06:37:23 PM »

/var  folder is taking 3.2GB !!!!!

what do you have in there? go there with a torch, a hammer and disinfectants, somebody is laying eggs in there  :D

You're funny, LOL ;D

Quote
3.2G    var/

this is the 'problem': enter /var and type the commands:

cd /var
du -sch *


Code: [Select]
51M     cache
644K    db
4.0K    empty
153M    lib
4.0K    local
12K     lock
6.1M    log
4.0K    ltris.hscr
0       mail
4.0K    nis
4.0K    opt
4.0K    preserve
284K    run
3.0G    spool
0       tmp
8.0K    www
4.0K    yp
3.2G    total

omskates,

You've probably set up Synaptic to leave downloaded packages in the cache. This makes sense if you have lots of disk space. If you don't, it doesn't.

You can remove the packages from within Synaptic or by running "apt-get clean" in a terminal as root. (If there are any rpms that you feel you may need, back them up first. Normally you don't need old rpms.)

Thanks for your response.  I've run apt-get clean and autoclean quite a bit.   I havn't intentionally set up synaptic to save in the cache, I'll look at settings.
« Last Edit: April 18, 2011, 06:40:32 PM by omskates »

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Disk full or not? [SOLVED?...not really]
« Reply #19 on: April 18, 2011, 06:48:01 PM »
http://tldp.org/LDP/sag/html/var-fs.html

The above link explains what each folder in /var is for.

I think you can safely delete everything in the folder and reclaim the space. look around and check where the eggs are laid and what process is laying them and try to see if you can have an adult conversation with it.

The space is probably due to a mis configured service and the folder will start gaining weight again if you dont fix whatever process is causing the problem

what does this command give you, as root again

cd /var/spool
du -sch *

You can run the command on all subsequent folders on your way to the folder where most of the space is taken and the name of the folder will give you a clue of what process is responsible.
« Last Edit: April 18, 2011, 07:02:41 PM by muungwana »
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: Disk full or not? [SOLVED?...not really]
« Reply #20 on: April 18, 2011, 07:03:01 PM »
omskates:

You have 3 GB of something in /var/spool... I have 48 KB
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline OMSkates

  • Hero Member
  • *****
  • Posts: 2390
Re: Disk full or not? [SOLVED?...not really]
« Reply #21 on: April 19, 2011, 08:34:37 AM »
The space is probably due to a mis configured service and the folder will start gaining weight again if you dont fix whatever process is causing the problem

what does this command give you, as root again

cd /var/spool
du -sch *
Thanks for the link; what a great reference!
Code: [Select]
16K     anacron
8.0K    at
4.0K    cron
3.0G    cups
4.0K    lpd
4.0K    mail
4.0K    repackage
4.0K    samba
3.0G    total

I looked with konquerer superuser mode; Why would cups have 3.0G ? There's like 70 files in /var/spool/cups of 700 to 800kb and bigger, just a whole crap-load of old printer jobs.

« Last Edit: April 19, 2011, 08:44:46 AM by omskates »

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: Disk full or not? [SOLVED?...not really]
« Reply #22 on: April 19, 2011, 08:43:20 AM »
may be... interrupted print jobs ?        you can verify with:
lpstat -t

or if not, post the content of (or part of) the folder:
ls /var/spool/cups

Offline OMSkates

  • Hero Member
  • *****
  • Posts: 2390
Re: Disk full or not? [SOLVED?...not really]
« Reply #23 on: April 19, 2011, 08:48:18 AM »
may be... interrupted print jobs ?        you can verify with:
lpstat -t

or if not, post the content of (or part of) the folder:
ls /var/spool/cups

That looks to be the case.
Code: [Select]
c00001  c00009  c00017  c00025  c00033  c00041  c00049  c00057      d00031-001
c00002  c00010  c00018  c00026  c00034  c00042  c00050  c00058      d00032-001
c00003  c00011  c00019  c00027  c00035  c00043  c00051  c00059      d00033-001
c00004  c00012  c00020  c00028  c00036  c00044  c00052  c00060      d00044-001
c00005  c00013  c00021  c00029  c00037  c00045  c00053  c00061      d00045-001
c00006  c00014  c00022  c00030  c00038  c00046  c00054  c00062      d00046-001
c00007  c00015  c00023  c00031  c00039  c00047  c00055  c00063      tmp/
c00008  c00016  c00024  c00032  c00040  c00048  c00056  d00026-001

Should not be an issue to clear the directory /var/spool as far as I can tell.
So just do a
Code: [Select]
rm /var/spool/cups/*??  then restart the cups server?
« Last Edit: April 19, 2011, 08:55:17 AM by omskates »

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6266
Re: Disk full or not? [SOLVED?...not really]
« Reply #24 on: April 19, 2011, 08:59:09 AM »

it should be:

rm -rf /var/spool/cups/*

it shouldnt be necessary to restart cups server.

You can monitor the folder from now on to see if it will start to grow again and maybe see why cups put things in there, it could be because it was configured by default or by you to do that or your using it causes it to do that.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline OMSkates

  • Hero Member
  • *****
  • Posts: 2390
Re: Disk full or not? [SOLVED?...not really]
« Reply #25 on: April 19, 2011, 09:30:48 AM »

it should be:

rm -rf /var/spool/cups/*

it shouldnt be necessary to restart cups server.

You can monitor the folder from now on to see if it will start to grow again and maybe see why cups put things in there, it could be because it was configured by default or by you to do that or your using it causes it to do that.

Thanks so much for your help...all of you ;D