Updating the maximum number of files on a volume
FSx for ONTAP volumes can run out of file capacity when the number of available inodes, or file pointers, is exhausted.
To increase the maximum number of files on a volume (ONTAP CLI)
You use the volume modify ONTAP CLI command to increase the maximum number of files on a volume.
For more information, see volume modify
To access the ONTAP CLI, establish an SSH session on the management port of the Amazon FSx for NetApp ONTAP file system or SVM by running the following command. Replace
with the IP address of the file system's management port.management_endpoint_ip[~]$ssh fsxadmin@management_endpoint_ipFor more information, see Managing file systems with the ONTAP CLI.
Do one of the following, depending on your use case. Replace
andsvm_namewith your values.vol_nameTo configure a volume to always have the maximum number of files (inodes) available, perform the following:
Enter advanced mode in the ONTAP CLI by using the following command.
::>set advAfter running this command, you'll see this output. Enter
yto continue.Warning: These advanced commands are potentially dangerous; use them only when directed to do so by NetApp personnel. Do you want to continue? {y|n}:yEnter the following command to always use the maximum number of files on the volume:
::>volume modify -vserversvm_name-volumevol_name-files-set-maximum true
To manually specify the total number of files permitted on the volume, with
, up to a maximum possible value of 2 billion, use the following command:max_number_files= (current_size_of_volume) × (1 file ÷ 4 KiB)::>volume modify -vserversvm_name-volumevol_name-filesmax_number_files