Here is how you find out how many inodes are in the filesystem:
1. Add the numbers of used and free inodes. The df -i option is a ufs-specific option.
# df -oi Filesystem iused ifree %iused Mounted on /dev/dsk/c0t0d0s5 2506 145590 2% /opt
2506 + 145590 = 148096
2. This closely corresponds to information found by other system commands. Find the number of kbytes in the filesystem:
# df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t0d0s5 288855 73739 186231 29% /opt
Find the number of bytes per inode (nbpi):
# mkfs -m /dev/rdsk/c0t0d0s5 mkfs -F ufs -o nsect=80,ntrack=19,bsize=8192,fragsize=1024,cgsize=16,free=10,rps=90, nbpi=2066,opt=t,apc=0,gap=0,nrpos=8,maxcontig=16 /dev/rdsk/c0t0d0s5 615600
3. To find the number of inodes in the filesystem, divide the kbytes by nbpi:
288855 * 1024 / 2066 = 143169