Skip to main content
NetApp Knowledge Base

How to increase the maximum number of files for a flexible volume

Views:
155,794
Visibility:
Public
Votes:
123
Category:
ontap-9
Specialty:
core
Last Updated:
5/12/2025, 10:21:38 AM

Applies to

  • ONTAP 9
  • Flexible Volume (FlexVol)
  • Maximum inode count (maxfiles)

Description

This article describes how to increase the maximum number of files (inodes) for a Flexible volume.

Error message: no space left on the device

Error message: file system is out of inodes
wafl.vol.outOfInodes: file system on Volume vol_test1@vserver:vserver_1 is out of inodes because it has reached the maximum number of files

wafl.vol.runningOutOfInodes: The file system on Volume vol1@vserver:20884ed5-68e5-11ea-a757-00a098c4fca2 is using 80 percent or more of the files that can be contained on the volume.

INODE: System/Cluster Notification from filer (OUT OF INODES) ALERT

Procedure

Decide whether to increase the volume or increase the maximum inode capacity
  • Increasing the size of the volume can potentially increase the number of available inodes.
  • If increasing the volume is not an option,  use the volume modify command to increase the inode capacity.
Manually increase the inode capacity
  1. Increase the curent inode capacity by 2% . You can increase it more depending on the workload.
  • (current inode capacity x 2%) + current inode capacity = new inode capacity

Example (35501358 x 2%)+ 35501358 =36211385

  1. Modify the volume to  increase the inode capacity (-files):

volume modify –vserver <vserver name> -volume <volume name> -files <number of files>

Example
::> volume modify -vserver svm1 -volume vol1 -files 36211385
Volume modify successful on volume vol1 of Vserver svm1.

::> volume show -vserver svm1 -volume vol1 -fields files
vserver volume files
------- ------ --------
svm1     vol1  36211385

Notes:

  • If the inode capacity is set to the maximum value per the volume size, files must be selected for deletion, or the volume size must be increased.
  • If the new size specified is larger than what the volume can accommodate, ONTAP will report the maximum value possible.

::*> vol modify -vserver svm1 -volume vol1 -files 125000000                                    
Error: command failed: Unable to set volume attribute "files" for volume "vol1" on Vserver
       "svm1". Reason: The value you entered (125000000) is invalid; maximum inode count cannot
       exceed 124518391.
       Cannot support more than one inode per 4 KB of disk space.

 

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.