Notes | By default, WAFL allocates one file for every 32KB of disk space. The exact number depends on disk geometry. Find out the maximum number by doing the following calculation: (default is one inode per 32KB of space).
32KB x [raw volume size in GB X 1024] Also, type "maxfiles [vol_name] [very large number]" and it will give you the maximum number of inodes that you can have in that volume |
example | filer> maxfiles Volume vol0: maximum number of files is currently 3097061 (3766 used). filer> maxfiles vol0 900000000000000000000000000000000 Max inode count cannot exceed 24776487 How go to check inodes in netapp storage: Filers> df -i Filesystem iused ifree %iused Mounted on /vol/vol0/ 7940 17936 31% /vol/vol0/ /vol/snapvault/ 96 5969 2% /vol/snapvault/ /vol/rac/ 103 274948 0% /vol/rac/
Filer*> df -r inode_vol Filesystem kbytes used avail reserved Mounted on
/vol/inode_vol/ 8388608 108 388500 0 /vol/inode_vol/ /vol/inode_vol/.snapshot 2097152 0 2097152 0 /vol/inode_vol/.snapshot Filer*> maxfiles inode_vol Volume inode_vol: maximum number of files is currently 311280 (100 used). From df/maxfiles and the total vol size without a snapshot, the min/max inode# is expected to be as follows: • 10485760 KB / 32KB = 327680(min) • 10485760 KB / 4KB = 2621440(max) However, the actual values are not as expected and reveal a 5% difference due to maintaining an inode reserve. Filer*> maxfiles inode_vol 9999999999 maxfiles: The value you entered is invalid; maximum inode count should be between 311280 and 2490359 327680 - 311280 = 16400(*32KB = 512MB), 2621440 - 2490359 = 131081(*4KB = 512MB), Why is that different? 512MB/10485760KB = 5%, which is inode reserve. |