** My Original Question and updates are at the end of this message
The Summary:
It seems that when a file is delete while it is open by ANY PROCESS,
the free space is not released until that process closes the file it
only removes reference to the inode in the superblock. "du" can't see a
deleted file, so it will not account for the space. "df" knows the
truth and reports it.
Some useful commands:
1. fuser -c -d -v <mount point>
This command will give the PID of the running process that has a file
open in the filesystem. (I didn’t get anything out of this because the
users log in to oracle after logging to the system ).
If it's a database process then you will need to restart the
database.(I will probably go with that option)
The fastest way to solve this is to boot the box or unmount/mount again
(if you can unmount).
2. Check commands like showfdmn and showfsets regarding AdvFS disk usage
Thanx to all who replied:
Kevin Partin / Paul LaMadeleine / Mandell Degerness / Alan
(alan_at_nabeth.cxo.dec.com) / Ben Smith / Jesper Nemholt and of course
Dr. Tom Blinn
Mohamed
ORIGINAL QUESTION:
Hi managers,
I have what I think is an easy question, but my mind just stopped
thinking.
My question is:
I have Advfs on Unix 4.0g system and I have deleted some large files
from one of the domains. Now I think the free space that I have freed
is not reported correctly
df -K output:
Filesystem 1024-blocks Used Available Capacity
domain_name 35547696 27666494 7881202 78% /data
but output from du -rsk:
22074494 /data
showfdmn -k got the following output
Vol 1K- Blks Free %Used Cmode Rblks Wblks
1L 35547702 9288536 74% on 256 256
output from showfsets -k is as follows:
Files : 3893, SLim= 0, HLim= 0
Blocks (1k) : 26297864, SLim= 0, HLim= 0
Quota Status : user=off group=off
which is somehow consistant with the output from df -k but not with
the du -rsk. So all the reported numbers are the same except du -rsk
which reports less
Why this extra space not reported in the df output.
TIA
Mohamed
Received on Fri Jul 20 2001 - 19:18:52 NZST