Re: /var out of disk space, but not...



On 31 May, in article
<1149088579.917473.55490@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
ckbcouture@xxxxxxxxx wrote:

HI.

So I have a problem with my /var partition. I am unable to write to it
and get "/var: write failed, file system is full" and "close failed:
[Errno 28] No space left on device" when I do.

If I look at disk usage using df, I get:

Filesystem 1M-blocks Used Avail Capacity Mounted on
/dev/ld0a 4585 2784 1571 63% /
/dev/ld0f 4851 4617 -8 100% /var
/dev/ld0e 9695 6129 3081 66% /usr
/dev/ld0g 9695 2872 6337 31% /home
/dev/ld0h 38788 9461 27386 25% /www
kernfs 0 0 0 100% /kern
procfs 0 0 0 100%
/usr/pkg/emul/linux/proc
elk:/www/staging 38788 10463 26384 28%
/www/staging
rhino:/www/production 268340 12743 241966 5%
/www/production

If I look at /var using du, I get:

srvrs01# du -sPm /var
1125 /var

Clearly there is a discrepancy here and I can't find anything to delete
to free up the disk space. Any ideas on what is wrong and what I can
do to fix it?

Usually this might be where you have files in an existing /var
and have then mounted another partition on top so hiding the
original files.

(1) What does mount show?

(2) and if any device is mounted on var do 'umount' /var
then check with ls and du again before remounting.

David

--
The Reply-To: is valid for at least 30 days after posting date
David Lord - david@xxxxxxxxxxxxxxxxxxxx
.



Relevant Pages

  • /var out of disk space, but not...
    ... So I have a problem with my /var partition. ... [Errno 28] ... If I look at disk usage using df, ... do to fix it? ...
    (comp.unix.bsd.netbsd.misc)
  • /var out of disk space, but not really
    ... So I have a problem with my /var partition. ... [Errno 28] ... If I look at disk usage using df, ... do to fix it? ...
    (comp.unix.admin)
  • Re: /rescue [may or may not have actually been] huge!!
    ... The partition size is 512Mb. ... and df was reporting 120% disk usage. ... I thought that all the space was being used by /rescue, because kdirstat ...
    (freebsd-questions)
  • Re: Memory puzzle
    ... with 32 MB flash. ... No Sparse File. ... ls shows file size, df shows disk usage. ... but there's only 1 file on the entire partition. ...
    (comp.os.linux.development.apps)
  • Re: Memory puzzle
    ... ls shows file size, df shows disk usage. ... but there's only 1 file on the entire partition. ... pretty much, but, if the file is sparse the size can be bigger than the ... doesn't normally generate sparse files, there may be some other mechanism ...
    (comp.os.linux.development.apps)