跳转到主内容

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

Views:
55
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.
Scan to view the article on your device