メインコンテンツへスキップ

maxdir-sizeの問題を回避するには、どのようなディレクトリ構造を使用すればよいでしょうか。

Views:
601
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

 

環境

  • ONTAP 9
  • Cloud Volumes ONTAP
  • Data ONTAP 8
  • 最大ディレクトリサイズ

回答

ファイル数の多いディレクトリにおけるパフォーマンスへの影響を軽減する最善の方法は、ファイルシステム内のより多くのディレクトリにファイルを分散させることです。

  • 新しいプラットフォームはより多くのメモリとCPU容量を提供し、AFFシステムは、ファイル数の多い環境においてパフォーマンス上の利点を提供します。
  • maxdir-sizeの値は、単一のフォルダに数百万ものファイルが単一階層に存在するようなフラットなディレクトリ構造を使用している場合に問題となる可能性があります。
  • ファイル、フォルダ、サブフォルダが混在するフォルダ構造は、maxdir-sizeへの影響が少ない。
ディレクトリ構造の方法論はいくつかあります
  • 最高のパフォーマンスを得るには、可能な限りONTAPでフラットなディレクトリ構造を避けてください。
  • ファイルまたはフォルダのパスの長さがNASプロトコル標準を超えない限り、幅広または深いディレクトリ構造が最適です。 
ディレクトリ構造 レイアウト 推奨
フラットなディレクトリ構造

多数のファイルを含む単一のディレクトリ

maxdirsize issues maxdirsize issues
広範なディレクトリ構造

多数のトップレベルディレクトリがあり、それらのディレクトリにファイルが分散している。

maxdirsize issues maxdirsize issues
深いディレクトリ構造

トップレベルのディレクトリは少ないが、サブフォルダは多数あり、ファイルは複数のディレクトリに分散している。

maxdirsize issues maxdirsize issues
  • フラットなディレクトリ構造が避けられない場合は、ボリュームのmaxdir-sizeの値に十分注意し、必要に応じて増やしてください。
  • NFSパスの長さは、クライアントOSによって定義されます。
  • SMBパスの長さに関する情報については、このMicrosoft Dev Centerリンクを参照してください。
    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.