Thanks to all those who replied. Most replies suggested that the inconsistency between df(1M) and du(1M) might be caused by some running processes which were still hanging on to the lingering disk space after the corresponding file(s) was/were removed. Some solutions were suggested: 1) restart the https processes 2) fsck /opt 3) simply reboot While one reply (from Joshua Clark) pointed right to the heart of the problem: this is a bug of Solaris 10 and the bug id is 102285. The Sun Alert notification is here: http://sunsolve.sun.com/search/document.do?assetkey=1-26-102285-1 Thanks again to all! Rongsheng Rongsheng Fang wrote: > 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/sunmanagersReceived on Fri Dec 29 09:30:57 2006
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:03 EST