跳转到主内容

我应该使用什么目录结构来避免 maxdir-size 问题?

Views:
510
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 路径长度由客户端操作系统定义。
  • 有关 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.