dealing with mke2fs -T option
Ionel GARDAIS
ionel.gardais at tech-advantage.com
Mon May 28 11:57:41 UTC 2007
Hi Theodore,
Thanks for your help.
When trying to use the -i switch for 32Mb files, here is the output :
$ mke2fs -j -b 4096 -E stride=16 -m 1 -i 33554432 /dev/sde
mke2fs: bad inode ratio 33554432 (min 1024/max 8192
Ionel
Theodore Tso wrote:
> On Sun, May 27, 2007 at 10:30:18PM -0400, Bryan Kadzban wrote:
>
>> The -T option exists to tweak the number of entries available in the
>> inode table, based on the size of the filesystem.
>>
>
> The -T option tweaks more than just the number of inodes in the inode
> table, actually. It can control other things as well, including the
> blocksize and what features are enabled. Check out the mke2fs.conf
> man page, on moderately recent versions of e2fsprogs. You can
> customize what different filesystem types mean, so if you want to make
> some new filesysstem type which is especially useful in your
> environment (i.e., "oracle_tablespace") you can do so. If you think
> it might be generally useful, let me know and I might include it in
> the default /etc/mke2fs.conf file.
>
>
>> If there's a variant of -T that takes an explicit size-per-created-inode
>> value, then I'd try that, with 32Mb as the size-per-created-inode. (Or
>> possibly 16Mb, to give yourself some wiggle room.) OTOH, the
>> "largefile4" option is probably fairly close to what you want, too: it
>> leaves some space available if you create some smaller files, and
>> (AFAIK) having 8 times as many inodes available doesn't waste much disk
>> space.
>>
>
> Youc an specify the the inode-ratio explicitly using the -i flag to
> mke2fs, or if you know exactly how many inodes you want, you can
> specify the exact number of inodes in the inode table using the -N
> option. It's all in the mke2fs man page....
>
> - Ted
>
--
Ionel GARDAIS
System-Network Engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/ext3-users/attachments/20070528/b677475f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ionel.gardais.vcf
Type: text/x-vcard
Size: 289 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/ext3-users/attachments/20070528/b677475f/attachment.vcf>
More information about the Ext3-users
mailing list