The default and maximum number of files allowed for FlexVol volumes in ONTAP
FlexVol volumes have a default and maximum number of files they can contain. If your data requires a large number of files, you can increase the number of user visible files allowed on a volume up to a maximum value. You should understand the limitations and caveats before proceeding.
The number of user visible files a volume can contain is determined by the available inode capacity for the volume. An inode is a data structure that contains information about files.
ONTAP automatically sets the default and maximum number of available inodes for a newly created volume as follows based on the size of the volume.
Default number of inodes | Maximum number of inodes |
---|---|
1 per 32 KB of volume size |
1 per 4 KB of volume size |
When the size of a volume is increased, either manually by an administrator or automatically by ONTAP's autosize feature, ONTAP also increases (if necessary) the number of available inodes so that there is at least 1 inode per 32 KB of volume size, until the volume reaches approximately 680 GB in size.
In ONTAP 9.12.1 and earlier, creating a new volume or resizing an existing volume greater than 680 GB in size does not automatically result in additional inode capacity. If you need more files than the default number for any size volume, you can use the volume modify
command to increase the available number of inodes for the volume up to the maximum.
Beginning with ONTAP 9.13.1, creating a new volume or resizing an existing volume sets the default number of available inodes to 1 inode per 32 KB of volume space even if the volume is larger than 680 GB. This ratio persists until the volume reaches the absolute inode maximum of 2,040,109,451.
You can also decrease the available number of inodes. This does not change the amount of space allocated to inodes, but it does lower the maximum amount of space the public inode file can consume. After space has been allocated for inodes, it is never returned to the volume. Therefore, it is not possible to lower the maximum number of inodes below the number of inodes currently allocated.