How can I increase the number of inodes when creating a new file system?
There is a limit on the number of inodes per cylinder group (2048). Large disks (2-4GB) are setup so that each cylinder group is quite large (>5MB) so that when ‘newfs’ creates the file system, it hits the limit quickly and you end up with a disk with a “small” amount of inodes. The trick is to use the ‘-c’ option to ‘newfs’ to make each cylinder smaller by reducing the number of cylinders per group. In many cases, ‘newfs -c 8’ works well. Of course, you should use this in combination with the ‘-i’ option as well.
Related Questions
- Why do I get error message "Error creating assembly manifest: Error reading key file key.snk -- The system cannot find the file specified"?
- Where can I find information to increase the performance of an NFS server that is exporting a ZFS file system?
- How can I increase the number of inodes when creating a new file system?