Skip to main content
NetApp Knowledge Base

What is maxdir-size?

Views:
49,546
Visibility:
Public
Votes:
32
Category:
ontap-9
Specialty:
CORE
Last Updated:

 

Applies to

  • ONTAP 9
  • Cloud Volumes ONTAP
  • Maximum Directory Size (maxdir-size)

Answer

  • Maxdir-size is a volume option that limits the maximum size of each directory's meta file, which contains the names of all files in each directory.
  • What is directory size?
  • Depending on the length of the file names, maxdir-size determines the number of files a directory can hold.
  • The default maxdir-size is 320MB in ONTAP 9.14.1 and higher. 
    • Assuming an average file length of 78 characters, a directory with this setting will hold up to 4.3 million files.
    • Because each name consumes bytes in the directory name file, the actual number of files depends on the length of the file names.  
  • Most environments do not need to change this setting.
  • The default value of 320MB can be increased.  See: How to modify the maxdir-size in ONTAP 9.

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.