跳转到主内容

什么是 maxdir-size?

Views:
1,204
Visibility:
Public
Votes:
1
Category:
ontap-9
Specialty:
core
Last Updated:

 

适用于

  • ONTAP 9
  • Cloud Volumes ONTAP
  • 最大目录大小(maxdir-size)

回答

  • Maxdir-size 是一个卷选项,用于限制每个目录的元文件的最大大小。
  • 此元文件包含该目录中文件的名称。
  • 根据文件名的长度,maxdir-size 确定目录可以容纳的文件数。
  • 在 ONTAP 9.14.1 及更高版本中,默认 maxdir-size 为 320MB。 
    • 假设平均文件长度为 78 个字符,则具有此设置的目录最多可容纳 430 万个文件。
    • 由于每个名称都会消耗目录名称文件中的字节,因此文件的实际数量取决于文件名的长度。  
  • 大多数环境不需要更改此设置。
  • 可以增加默认值 320MB。  请参阅:如何在 ONTAP 9 中修改 maxdir-size

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.