andy@syma.sussex.ac.uk (Andy Clews) (06/06/89)
Thanks to many helpful suggestions we have now been able to double the number of inodes in one of our filesystems. The trick is to decrease the default block and fragment sizes. In the session shown below we have decreased the blocksize of partition zd1h from 8192 bytes to 4096 bytes and the fragment size from 1024 bytes to 512 bytes. This doubled the number of inodes - however it reduced the disk capacity by 4.75 Mbytes. ---- transcript of session ---- # df -i /local Filesystem kbytes used avail capacity iused ifree %iused Mounted on /dev/zd1h 245458 98170 122742 44% 30369 6495 82% /local # umount /local # /etc/newfs -v -b 4096 -f 512 -c 8 zd1h m2344k /etc/mkfs /dev/rzd1h 500742 66 27 4096 512 8 10 60 2048 /dev/rzd1h: 500742 sectors in 281 cylinders of 27 tracks, 66 sectors 256.4Mb in 36 cyl groups (8 c/g, 7.30Mb/g, 2048 i/g) [...other commentary deleted...] ---- end of transcript ---- After restoring.... Filesystem kbytes used avail capacity iused ifree %iused Mounted on /dev/zd1h 240706 93649 122985 43% 30510 43218 41% /local Many thanks again to all those who mailed and posted suggestions. -- Andy Clews, Computing Service, Univ. of Sussex, Brighton BN1 9QN, ENGLAND JANET: andy@syma.sussex.ac.uk BITNET: andy%syma.sussex.ac.uk@uk.ac Voice: +44 273 606755 ext.2129