Skip to main content

NetApp_Insight_2020.png 

NetApp Knowledgebase

How to decrease the number of inodes for a volume

Views:
462
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

Applies to

Clustered Data ONTAP 8.x

ONTAP 9

Answer

The inode count of a volume in Data ONTAP cannot be decreased.

  • Each file takes up one inode and the default number of inodes allows 1 for every 32KB.
  • Increasing the number of inodes might be required in specific scenarios. For more information, see the following articles:
  • The maxfiles command can be used to increase the number of inodes that cannot be reversed in Data ONTAP versions prior to 8.0.
  • In Data ONTAP 8.0, this number can be decreased to the number of files stored on the volume or greater.
  • Certain file virtualization software/appliances might not work in the desired way, if the number of inodes in a volume is very large.
  • If decreasing the number of inodes does not work, then the suggested workarounds are as below:
    • Run the ndmpcopy command to copy the data to a secondary volume, which will reduce the number of inodes on the new volume.
    • Use Qtree Snap Mirror.
    • A complete backup and restore.

Additional Information

N/A