Bug 112206

Summary: 4.11-stable disk free space problem
Product: Base System Reporter: qzheng <qzheng>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description qzheng 2007-04-28 15:10:09 UTC
this is a production server running for about 1 year without rebooting, our root directory recently reported file system full, so I did following jobs:

echo '' > those large log file
mv  those large directories to another parition and do a ln -s

but df -h still reports like:
Filesystem    Size   Used  Avail Capacity  Mounted on
/dev/ad0s1a    14G    12G   472M    96%    /

and a week later the root file system got to be full again, I checked the simple root filesystem but cant find any large file/dir there can use 12G space, so I tried to do a fastboot, and then df -h reports:

Filesystem    Size   Used  Avail Capacity  Mounted on
/dev/ad0s1a    14G   639M    12G     5%    /

that meant have to do a rebooting to force the UFS calculates the real disk usage, right?
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2007-04-30 23:11:22 UTC
State Changed
From-To: open->closed

See the FAQ; disk space is not recovered while a running process still 
has the file open (in this case it was probably syslogd or similar). 
i.e. this is not a bug.