How to Find the number of bytes per inode on Solaris

2 July 2008
by Gavin Colborne
Find the number of bytes per inode on Solaris
First do a df -k to get the device path:
df -k /local/iw-store
Mounted on /dev/vx/dsk/datadg/local
Then use mkfs -m to find frag size.
/usr/sbin/mkfs -m /dev/vx/dsk/datadg/local
mkfs -F ufs -o nsect=64,ntrack=32,bsize=8192,fragsize=1024,
cgsize=49,free=1,rps=120,nbpi=8186,opt=t,apc=0,gap=0,
nrpos=8,maxcontig=64,mtb=n /dev/vx/dsk/datadg/local 184320000

You can also use df -g | grep ‘block size’
bash-2.03$ df -g | grep ‘block size’
/ (/dev/md/dsk/d10 ): 8192 block size 1024 frag size
/proc (/proc ): 512 block size 512 frag size
/etc/mnttab (mnttab ): 512 block size 512 frag size
/dev/fd (fd ): 1024 block size 1024 frag size
/var (/dev/md/dsk/d30 ): 8192 block size 1024 frag size

Our Latest News