Library Table of Contents Index Previous Next Comments

Increasing the maximum number of files in a volume

About increasing the maximum number of files  Top

The filer automatically sets the maximum number of files for a newly created volume based on the amount of disk space in the volume. The filer increases the maximum number of files when you add a disk to a volume. The number set by the filer never exceeds 33,554,432. This prevents a filer with terabytes of storage from creating a very large inode file (for example, a 64-GB inode file) that might be unnecessary.

If you need a larger number of files on your filer, use the maxfiles command to increase the number beyond 33,554,432.

Note
Use caution when increasing the maximum number of files because after you increase this number, you can never reduce it. As new files are created, the file system consumes the additional disk space required to hold the inodes for the additional files; there is no way for the filer to release that disk space. An inode is a data structure containing information about files.

Increasing the maximum number of files allowed on a volume  Top

To increase the maximum number of files allowed on a volume, complete the following step.

Step

Action

1

Enter the following command:

maxfiles vol_name max

vol_name is the volume whose maximum number of files you are increasing.

max is the maximum number of files.

Displaying the number of files in a volume  Top

To see how many files are in a volume, complete the following step.

Step

Action

1

Enter the following command:

maxfiles vol_name 

vol_name is the volume whose maximum number of files you are increasing.

Result

A display like the following appears:

Volume home: maximum number of files is currently 
120962 (2872 used)

Library Table of Contents Index Previous Next Comments