1 Jun 2005 17:30
Lost my inodes
Richard M Kreuter <kreuter <at> progn.net>
2005-06-01 15:30:40 GMT
2005-06-01 15:30:40 GMT
Howdy,
Yesterday I ran out of inodes while untarring something, and after
clearing out a lot of temporary files, I noticed something fishy: the
number of files found by find and the number of used inodes reported
by df differ by a couple orders of magnitude on /home [1]:
# df -i /home
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/wd0j 12671998 12542780 129218 99% /home
# pwd
/home
# find . -xdev -ls | awk ' { print $1 } ' | sort -n | uniq | wc -l
218938
I'm running NetBSD 2.0.2, and /home is normally mounted softdep,
nodev, noatime.
That's the problem. Here's a possible explanation, but I'm not sure
if this is the cause: last week, after a crash, fsck on my /home file
system printed this message for at least a few thousand integers <N>:
ALLOCATED INODE <N> MARKED FREE
After it finished, by investigation, no files seemed to have been
lost, and I didn't have time to do look into it. Now I can't find the
meaning of this message documented anyplace, and the code in
src/sbin/fsck_ffs/pass5.c where this message seems to originate
doesn't mean much to me.
(Continue reading)
RSS Feed