Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Feb 2000 09:12:39 +0000
From:      VPM Support <support@vpm.com>
To:        freebsd-questions@freebsd.org
Subject:   df/du reporting different results on FBSD3.4
Message-ID:  <4.2.0.58.20000216085019.01e9b3e0@mail.vpm.com>
In-Reply-To: <000401bf7849$2fef7070$0300000a@katana>
References:  <200002160507.AAA20741@smtp-out1.bellatlantic.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Strange things are happening that I'm hoping I can get some answer to.

I recently upgraded from 3.1 to 3.4.  This morning my /var partition 
(996MB) was at 109% capacity when I did a df.  When I did a du -s /var it 
reported only 68MB.  In addition to this I could NOT delete the files and 
free up any space on the partition.  It remain constant or 
grew.  "Something" was writing to the disk and do not know what.  A check 
of running processes (ps -auxww) did not reveal any culprits.  As a result 
of all this mail was not being delivered and for all I know even being 
received.

My resolution was to copy all files over to another partition called /logs 
which was empty and had 817MB free.  I made a new directory called 
/var1.  I then edited the /etc/fstab file to reflect that the /logs 
partition was now /var  and the current /var partition was now /var1 and 
then rebooted.  This solved the immediate problem of no disk space on /var 
and mail started to flow.  Crisis solved for now.

But then I issue a du command and a df command and check the space on 
/var.  The results are different.  Anyone know why?  The results are shown 
below.

bash# du -s /var
67832   /var

bash# df
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/da0s1a    540783    55688   441833    11%    /
/dev/da1s1f    817743    76710   675614    10%    /var
/dev/wd0s1f   1504911   655263   729256    47%    /u2
/dev/wd1s1e   3789838  2552875   933776    73%    /u1
/dev/da1s1e   1215695   884354   234086    79%    /usr
/dev/da0s1e    996319        1   916613     0%    /var1
procfs              4        4        0   100%    /proc


Thanks,
Mark



VPM Support
support@vpm.com
VPM Internet Services
(800) 321-0221




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.2.0.58.20000216085019.01e9b3e0>