メインコンテンツまでスキップ

ファイル削除後にLinuxコマンド「df」と「du」が異なるのはなぜですか?

Views:
562
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

環境

  • ONTAP 9
  • NFS

回答

  • du ターゲットを詳細に指定し、各オブジェクトのスペース使用量をカウントします
    • ターゲットには、ディレクトリ、サブディレクトリ、ファイル、またはファイルシステム全体を指定できます
  • df ファイルシステムに現在のスペース使用量を照会します

追加情報

  • オブジェクトを削除すると、ファイルシステムからオブジェクトのリンクが解除されます
    • リンクされていないオブジェクトは、ブロックが再利用されるまでスペースを消費しますが、クライアントにはオブジェクトが報告されなくなります
    • du は、ブロックが再利用されたかのようにスペース使用量を報告します
    • df 削除されたオブジェクトのブロックを再利用できるため、のスペース使用量の変化が徐々に反映されます

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.