跳转到主内容

应使用什么目录结构来避免出现maxdirsize问题?

Views:
99
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
CORE
Last Updated:

 

适用场景

  • ONTAP 9
  • Cloud Volumes ONTAP
  • Data ONTAP 8
  • 最大目录大小

问题解答

要降低包含大量文件的目录对性能的影响、最好的方法是将文件分布在文件系统中的更多目录中。

  • 较新的平台可提供更多的内存和CPU容量、而AFF系统可为文件数量较多的环境提供性能优势。
  • 使用平面目录结构时、maxdirsize值可能是一个问题、因为单个文件夹在单个级别包含数百万个文件。
  • 文件、文件夹和子文件夹交错的文件夹结构对maxdirsize的影响较小。
目录结构方法有多种
  • 为了获得最佳性能、请尽可能避免使用ONTAP中的平面目录结构。
  • 只要文件或文件夹的路径长度不超过NAS协议标准、宽目录结构或深目录结构就能发挥最佳作用。 
目录结构 布局 建议
平面目录结构

包含多个文件的单个目录

maxdirsize问题 maxdirsize问题
宽目录结构

许多顶级目录、其中的文件分布在多个目录中。

maxdirsize问题 maxdirsize问题
深度目录结构

顶层目录更少、但子文件夹很多;文件分布在多个目录中。

maxdirsize问题 maxdirsize问题
  • 如果无法避免平面目录结构、请密切注意卷的maxdirsize值、并根据需要增加这些值。
  • NFS路径长度由客户端操作系统定义。
  • 有关SMB路径长度的信息,请参阅此 Microsoft开发中心链接

 

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.