How To Increase The Maximum Number of Files For A Flexible Volume
How To Increase The Maximum Number of Files For A Flexible Volume
https://kb.netapp.com/on-prem/ontap/Ontap_OS/OS-KBs/How_to_increase_the_maximum_number_of…
Updated: Sat, 01 Feb 2025 09:46:30 GMT
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.
• When a volume is out of inodes, ONTAP will emit one or more of the error messages similar to the following:
◦ (OUT OF INODES) ERROR - AutoSupport message
'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 1
techniques herein is a customers responsibility and depends on the customers ability to evaluate and integrate them into the customers operational
environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this
document.'
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
Procedure
Note: The option is not tab enabled nor is it displayed using ? , <volume show ?>. You must type the
entire option, files-maximum-possible.
© 2023 NetApp.No part of this document covered by copyright may be reproduced in any form or by any means—graphic, electronic, or mechanical,
including photocopying, recording, taping, or storage in an electronic retrieval system—without prior written permission of the copyright owner. For more
information, see Legal Notices. 2
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.
◦ Review this chart to confirm. (Enhancement starting in ONTAP 9.13.1)
• If increasing the volume is not an option, use the volume modify command to 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
volume modify –vserver <vserver name> -volume <volume name> -files <number
of files>
Example
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.
© 2023 NetApp.No part of this document covered by copyright may be reproduced in any form or by any means—graphic, electronic, or mechanical,
including photocopying, recording, taping, or storage in an electronic retrieval system—without prior written permission of the copyright owner. For more
information, see Legal Notices. 3
Cannot support more than one inode per 4 KB of disk space.
Additional Information
• How to determine the default and maximum inode count for my volume
• Considerations before increasing the file count in ONTAP
• How to automatically set maxfiles in ONTAP to the largest value a volume can hold?
• FAQ - ONTAP maximum number of inodes (maxfiles)
© 2023 NetApp.No part of this document covered by copyright may be reproduced in any form or by any means—graphic, electronic, or mechanical,
including photocopying, recording, taping, or storage in an electronic retrieval system—without prior written permission of the copyright owner. For more
information, see Legal Notices. 4