command failed: Unable to set volume attribute "files" for volume in ONTAP
Applies to
- ONTAP 9
- Inode count
Issue
Below error message can be found when trying to change the Inode number to a specific number.
Example:
cluster::> df -i
Filesystem iused ifree %iused Mounted on Vserver
/vol/Share01/ 2027 21249099 0% /Share01 svm_01
cluster::> vol show
Vserver Volume Aggregate State Type Size Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
svm_01 Share01 aggr1 online RW 100GB 94.85GB 0%
cluster::> vol modify -volume Share01 -files 42502252
Error: command failed: Unable to set volume attribute "files" for volume "Share01" on Vserver "svm_01". Reason: The value you entered(42502252) is invalid; maximum inode count cannot exceed 24903679.
Cannot support more than one inode per 4 KB of disk space.