系统集成AIX

aix du和df不一致问题

du 和df看到的文件大小不一致。做过重挂。做过fsck,做过重启都没有效果。有兄弟碰到过类型的情况没?显示全部

QQ图片20150820094741.png


du 和df看到的文件大小不一致。做过重挂。做过fsck,做过重启都没有效果。
有兄弟碰到过类型的情况没?收起
参与19

查看其它 12 个回答jiaxu2000的回答

jiaxu2000jiaxu2000系统工程师沈阳医学院附属中心医院
du -g

du traverses the file tree, adding up the number of blocks allocated to each
directory, symlink, and file as reported by the stat() system call. This is how
du arrives at its total value.

df -g

df looks at the file system disk block allocation maps to arrive at its total
and free values.

Disk blocks get assigned when a process is started and it will hold the disk block. It might use additional disk blocks for meta data. This additional disk blocks will get tracked by df-g but not du -g. Thus, df command will usually report high storage usage as compared to du. However, if the disk blocks got locked by a process and you use another application to delete the disk blocks, du will reflect the change but df will not.

http://www-01.ibm.com/support/docview.wss?uid=isg3T1000401

仔细阅读全文,与进程占用和服务器重启没关系
事业单位 · 2015-08-20
浏览4513

回答者

jiaxu2000
系统工程师沈阳医学院附属中心医院
擅长领域: 服务器存储虚拟化

jiaxu2000 最近回答过的问题

回答状态

  • 发布时间:2015-08-20
  • 关注会员:2 人
  • 回答浏览:4513
  • X社区推广