On Tue, Feb 19, 2013 at 12:35:31AM +0000, Keith wrote: > Q. How do I make the default web folder /var/www/ capable of holding > millions of files (say 50GB worth of small 2kb-12kb files) so that I > won't get inode issues ? > > The problem is that my server has the default disk layout as I > didn't expect to have millions of files (I though they would be > stored in the DB). When I started the app it generated all the files > and I got out of space warnings. I tried moving the folder > containing the files and making a symlink back but that didn't work > because nginx is in a chroot. > > The two option I think I have are. > > 1. Reinstall the OS and make a dedicated /var/www partition but how > I increase the inode limit I have no idea. > 2. Make a new partition, format it, copy the files from the original > partition and swap them around and restart nginx. ( Do i run newfs > with some option to make more inodes ?) > > Thanks > Keith. >
man newfs (btw, you're looking for the -i option) --