0% found this document useful (0 votes)
29 views4 pages

How To Increase The Maximum Number of Files For A Flexible Volume

This document provides instructions on how to increase the maximum number of files (inodes) for a Flexible volume in ONTAP 9. It outlines the procedure to check current inode capacity, decide whether to increase volume size or inode capacity, and how to manually modify the inode count. It also includes considerations and error messages related to inode limits.

Uploaded by

tbareapp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views4 pages

How To Increase The Maximum Number of Files For A Flexible Volume

This document provides instructions on how to increase the maximum number of files (inodes) for a Flexible volume in ONTAP 9. It outlines the procedure to check current inode capacity, decide whether to increase volume size or inode capacity, and how to manually modify the inode count. It also includes considerations and error messages related to inode limits.

Uploaded by

tbareapp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

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

Error message: no space left on the device

'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

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

Review before proceeding

• Considerations before increasing the file count in ONTAP

Procedure

Review current used and total inode capacity

Run volume show command with -fields size, files,files-used,files-maximum-


possible option in advanced privilege mode to review the inode count per volume.

::> set advanced


::*> volume show -vserver svm1 -volume vol1 -fields size, files,files-
used,files-maximum-possible

vserver volume size files files-used files-maximum-possible


------- ------ ----- -------- ---------- ----------------------
svm1 vol1 500GB 15564791 96 124518391

◦ files - inode capacity (maximum files allowed)


◦ files-used - number of files used in the volume
◦ files-maximum-possible - maximum allowed inode capacity per the volume size

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.

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

2. 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.

© 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

You might also like