OS: Solaris 8
I deleted a large file (around 13 Gigs) from my system.
But the output of df -k remains the same. The
capacity % is constant. However one strange thing
is happening- My available space is decreasing, my used
space in increasing (The opposite should happen).
This is happening for my /export/home and /var/run slices.
What is happening?? Is my filesystem going to be full ??
Something else is going on.
try this:
#!/bin/ksh
# spacehog
while getopts 2>/dev/null r c
do
case $c in
r) find . -type f | xargs ls -la |cut -c35-45,59-120 \
| sort -r -n ; exit 0 ;;
\?) echo "\nUsage: $0 [-r]
list the byte count and name of files in current dir sorted by size
-r recursively lists all of the subdirectories as well" >&2
exit 2;;
esac
done
cd /export/home
spacehog -r | head -20
This will find really big files for you. Keep track over a few hours to see what is happening to file sizes, and if new, even larger files appear.
And, yes, your filesytem will eventually fill up.
If you delete any file for which the system still has an open file handle then the space taken up by that file is not recovered untill the file handle(s) are closed.
The file you deleted was probably open by a process that is still running. Rebooting is an extreme (if guarneteed) method of fixing. You should be able to us lsof (if installed) to find the process.