[Lustre-discuss] -i and -I options to mkfs.ext2

Andreas Dilger adilger at sun.com
Thu Sep 11 01:12:59 PDT 2008


On Sep 10, 2008  16:36 -0400, Roger Spellman wrote:
> Then, it appears that the following mkfs.ext2 command gets called:
>  
> mkfs.ext2 -j -b 4096 -L test-MDTffff -J device=/dev/md29 -m 0 -i 4096 -I
> 512 -q -O dir_index -F /dev/sdb 200000
>  
> Why is the lower-case -i option 4096 but the upper-case -I option 512?
> Shouldn't these two be the same on and MDT?  Otherwise, we wasting
> memory on the MDT.

These are described in the mke2fs man page.  -I is the size of the inode
itself.  -i is the ratio of inodes to the space in the filesystem, as in

	inode_count = device_size / inode_ratio

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.




More information about the lustre-discuss mailing list