[oracle at rac01 dg]$ df -h 8.5G /u01 34G /u03 170G /u04 35G /u05 16K /u06 [oracle at rac01 dg]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p5 22G 2.6G 18G 13% / /dev/cciss/c0d0p1 99M 18M 76M 19% /boot none 16G 0 16G 0% /dev/shm /dev/cciss/c0d0p3 22G 153M 20G 1% /var /dev/sda1 547G 174G 374G 32% /u04 /dev/sdj1 136G 35G 101G 26% /u03 /dev/sdc1 18G 16G 3.0G 84% /u01 /dev/sdd1 119G 36G 84G 31% /u05 /dev/sde1 137G 1.1G 136G 1% /u06 Please note that du -sh /u01 reports 8.5G used while df -h reports 16G used Why the discrepancy & which is correct? BTW, all the volumes "u0*" volumes are OCFS2 volumes. In case it matters RHAS4 is the OS. Linux rac01.abc.com 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:46:26 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20080914/c967726e/attachment.html
Sunil Mushran
2008-Sep-15 18:19 UTC
[Ocfs2-users] disk used discrepency between df -h & du -h
Do: $ debugfs.ocfs2 -R "stats" /dev/sdc1 sol beach wrote:> > [oracle at rac01 dg]$ df -h > 8.5G /u01 > 34G /u03 > 170G /u04 > 35G /u05 > 16K /u06 > [oracle at rac01 dg]$ df -h > Filesystem Size Used Avail Use% Mounted on > /dev/cciss/c0d0p5 22G 2.6G 18G 13% / > /dev/cciss/c0d0p1 99M 18M 76M 19% /boot > none 16G 0 16G 0% /dev/shm > /dev/cciss/c0d0p3 22G 153M 20G 1% /var > /dev/sda1 547G 174G 374G 32% /u04 > /dev/sdj1 136G 35G 101G 26% /u03 > /dev/sdc1 18G 16G 3.0G 84% /u01 > /dev/sdd1 119G 36G 84G 31% /u05 > /dev/sde1 137G 1.1G 136G 1% /u06 > Please note that du -sh /u01 reports 8.5G used while df -h reports > 16G used > Why the discrepancy & which is correct? > BTW, all the volumes "u0*" volumes are OCFS2 volumes. > In case it matters RHAS4 is the OS. > Linux rac01.abc.com <http://rac01.abc.com> 2.6.9-78.ELsmp #1 SMP > Wed Jul 9 15:46:26 EDT 2008 x86_64 > x86_64 x86_64 GNU/Linux > > ------------------------------------------------------------------------ > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users at oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users