[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: mke2fs options for very large filesystems



On Feb 07, 2005  09:58 -0800, Jeffrey W. Baker wrote:
> Wow, it takes a really long time to make a 2TB ext2fs.  Are there
> better-than-default options that could be used for a large filesystem?
> 
> mke2fs 1.34 (25-Jul-2003)
> Filesystem label=
> OS type: Linux
> Block size=4096 (log=2)
> Fragment size=4096 (log=2)
> 244203520 inodes, 488382016 blocks
> 24419100 blocks (5.00%) reserved for the super user
> First data block=0
> 14905 block groups
> 32768 blocks per group, 32768 fragments per group
> 16384 inodes per group
> Superblock backups stored on blocks: 
>         32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
>         4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
>         102400000, 214990848

Yes, if you are creating larger files.  By default e2fsck assumes the average
file size is 8kB and allocates a corresponding number of inodes there.  If,
for example, you are storing lots of larger files there (digital photos, MP3s,
etc) that are in the MB range you can use "-t largefile" or "-t largefile4"
to specify an average file size of 1MB or 4MB respectively.  You can also
use -i or -N (see man page) to override the default bytes-per-inode value.
This will also speed up e2fsck noticably.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://members.shaw.ca/adilger/             http://members.shaw.ca/golinux/

Attachment: pgp00007.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]