Increasing the maximum number of files

About increasing the maximum number of files

Initially, the maximum number of files on the filer is set at one for every 32 KB of disk space. The number is increased automatically when you add a new disk. The increase is determined by the filer, and is not a user-specified value.

Unlike UNIX, which requires that you specify the maximum number of files in a file system when you create the file system, the filer enables you to use the maxfiles command to increase the number of files for each volume at any time.


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.


Viewing the number of files in a volume

To see how many files are in a volume, use the df -i pathname command, which shows how many inodes have been used, or use the maxfiles volume command.

For example, both of the following commands show that the home volume has used 2,872 inodes:

df -i /vol/home
Filesystem     iused     ifree    %iused   Mounted on
/vol/home/      2872      118090      2%    /vol/home
maxfiles home
Volume home: maximum number of files is currently 120962 (2872 
used)

Information generated by the maxfiles command is available through SNMP using the Network Appliance custom MIB. For more information about the MIB, see "About the Network Appliance custom MIB."


Copyright © 1999, Network Appliance, Inc. All rights reserved.

Part No. 210-02334
File: quota2.htm
Last updated: 04/26/99 08:11:47