bogus `df' output on Solaris 10 6/06

From: Rongsheng Fang (unixlifebox@gmail.com)
Date: Thu Dec 28 2006 - 15:51:22 EST


Hi,

On one of my Solaris 10 6/06 boxes df(1M) gives bogus information on the
/opt filesystem:

1) df shows that /opt filesystem is filled up:

# df -h /opt
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t0d0s5 32G 8192E 0K 27983662414128% /opt

2) but du shows that there is only 1.4G (out of 32G) of space
used on /opt:

# du -sh /opt
1.4G /opt

3) there are still plenty of inodes available for use:

# df -o i /opt
Filesystem iused ifree %iused Mounted on
/dev/dsk/c0t0d0s5 17252 3989660 0% /opt

4) this is a Solaris 10 6/06 on a Sun Fire T2000:

# uname -a
SunOS as106 5.10 Generic_118833-24 sun4v sparc SUNW,Sun-Fire-T200

5) I did check using lsof and see if there were any files that were deleted
but their data blocks hadn't been freed yet. I didn't find any:

# /usr/local/bin/lsof -a +L1 /opt
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NLINK NODE NAME
httpd 12350 root 24w VREG 32,13 0 0 9141 /opt (/dev/dsk/c0t0d0s5)
httpd 12350 root 30w VREG 32,13 0 0 9146 /opt (/dev/dsk/c0t0d0s5)
httpd 12359 mobimg 24w VREG 32,13 0 0 9141 /opt (/dev/dsk/c0t0d0s5)
httpd 17686 mobimg 24w VREG 32,13 0 0 9141 /opt (/dev/dsk/c0t0d0s5)
httpd 17686 mobimg 30w VREG 32,13 0 0 9146 /opt (/dev/dsk/c0t0d0s5)
httpd 20909 mobimg 24w VREG 32,13 0 0 9141 /opt (/dev/dsk/c0t0d0s5)
httpd 20909 mobimg 30w VREG 32,13 0 0 9146 /opt (/dev/dsk/c0t0d0s5)
httpd 22821 mobimg 24w VREG 32,13 0 0 9141 /opt (/dev/dsk/c0t0d0s5)
httpd 22821 mobimg 30w VREG 32,13 0 0 9146 /opt (/dev/dsk/c0t0d0s5)
httpd 23645 mobimg 24w VREG 32,13 0 0 9141 /opt (/dev/dsk/c0t0d0s5)
httpd 23645 mobimg 30w VREG 32,13 0 0 9146 /opt (/dev/dsk/c0t0d0s5)
httpd 24028 mobimg 24w VREG 32,13 0 0 9141 /opt (/dev/dsk/c0t0d0s5)
httpd 24028 mobimg 30wW VREG 32,13 0 0 9146 /opt (/dev/dsk/c0t0d0s5)
httpd 24859 mobimg 24w VREG 32,13 0 0 9141 /opt (/dev/dsk/c0t0d0s5)
httpd 24859 mobimg 30w VREG 32,13 0 0 9146 /opt (/dev/dsk/c0t0d0s5)
httpd 25240 mobimg 24w VREG 32,13 0 0 9141 /opt (/dev/dsk/c0t0d0s5)
httpd 25240 mobimg 30w VREG 32,13 0 0 9146 /opt (/dev/dsk/c0t0d0s5)
httpd 25617 mobimg 24w VREG 32,13 0 0 9141 /opt (/dev/dsk/c0t0d0s5)
httpd 25617 mobimg 30w VREG 32,13 0 0 9146 /opt (/dev/dsk/c0t0d0s5)

Any thoughts would be greatly appreciated. I'll summarize.

Thanks!

Rongsheng
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:24 EDT