How To Increase The Maximum Number of Volume Inodes or Files
How To Increase The Maximum Number of Volume Inodes or Files
https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/How_to_incr…
Updated: Wed, 02 Sep 2020 08:04:02 GMT
Applies to
• Data ONTAP 7 and earlier
• Data ONTAP 8
• ONTAP 9
Description
• This article describes the procedure to increase the maximum number of volume inodes or files.
'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.'
• You might observe the following error messages when the system is out of inodes.
• CIFS share write/copy returns the following volume full error message:
There is not enough space on vol2. 32.6mb is needed to copy this item,
delete or move files you have enough space.
© 2020 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
Procedure
Media, iframe, embed and object tags are not supported inside of a PDF.
• Increasing the size of the volume will increase the number of available inodes.
• Alternatively, use the maxfiles volname [number] command to check and increase the number of
files allowed in a volume.
Note:
• Once the maximum number of files are increased, it was never possible to reduce it, prior to Data
ONTAP 8.0.
• Starting in Data ONTAP 8.0, you can also decrease the maximum number of public inodes.
• This does not change the amount of space currently allocated to inodes, but it does lower the
maximum amount of space the public inode file can consume.
• However, after space has been allocated for inodes, it is never returned to the volume.
• Therefore, lowering the maximum number of inodes below the number of inodes currently allocated
does not return the space used by the allocated but unused inodes to the volume.
1. Enter the maxfiles volname or df -i command to view the current maximum number of files
allowed, and the number of inodes already in use.
2. If it is determined that the maximum number of files cannot be increased, files must be selected for
deletion, or the volume size must be increased.
Note: Refer to the NetApp System Administration Guide for information about adding disk space (vol
© 2020 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
add volname [number_of_disks]).
3. Once the maximum number of files needed on the volume is determined, enter maxfiles volname
[new_number_of_files].
◦ If the storage system believes that the new size might be unreasonably large, it will prompt the user
to verify if the new value is correct.
4. Enter maxfiles or df -i to confirm if the changes were committed.
• If the system is Clustered Data ONTAP or ONTAP 9, run the following command to view the maximum
number of files on the volume:
volume show –vserver <vserver name> -volume <volume name> -fields files
volume modify –vserver <vserver name> -volume <volume name> -files <number
of files>
or
volume modify -max-number-of-files
Note:
• A volume's current inode capacity does not always equal to the current number of files stored on this
volume.
• For example, if a volume used to have 30000 files, then 20000 files get deleted, only 10000 files would
remain.
◦ Then, you can lower maxfiles to 30000, but you will not be allowed to lower maxfiles to 10000.
Additional Information
© 2020 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