23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

21.3.3 Overriding Default Formatting Options<br />

To override the default formatting options for any of the <strong>Lustre</strong> backing filesystems,<br />

use the --mkfsoptions='backing fs options' argument to mkfs.lustre, to<br />

pass formatting options to the backing mkfs. For all options to format backing ext3<br />

and ldiskfs filesystems, see the mke2fs(8) man page; this section only discusses<br />

several <strong>Lustre</strong>-specific options.<br />

21.3.3.1 Number of Inodes for MDT<br />

To override the inode ratio, use the option -i <br />

(for example) --mkfsoptions=-i 4096 to create 1 inode per 4096 bytes of<br />

filesystem space).<br />

Note – Use this ratio to make sure that Extended Attributes (EAs) can fit on the<br />

inode as well. Otherwise, you have to make an indirect allocation to hold the EAs,<br />

which impacts performance owing to the additional seeks.<br />

Alternately, if you are specifying some absolute number of inodes, use the -<br />

N option. To avoid unintentional mistakes, do not specify the<br />

-i option with an inode ratio below one inode per 1024 bytes. Use the -N option<br />

instead.<br />

By default, a 2 TB MDT has 512M inodes. Currently, the largest supported filesystem<br />

size is 8 TB, which holds 2B inodes. With an MDT inode ratio of 1024 bytes per<br />

inode, a 2 TB MDT holds 2B inodes and a 4 TB MDT holds 4B inodes (the maximum<br />

number of inodes currently supported by ext3).<br />

21.3.3.2 Inode Size for MDT<br />

<strong>Lustre</strong> uses "large" inodes on backing filesystems to efficiently store <strong>Lustre</strong> metadata<br />

with each file. On the MDT, each inode is at least 512 bytes in size (by default), while<br />

on the OST each inode is 256 bytes in size. <strong>Lustre</strong> (or more specifically the backing<br />

ext3 filesystem), also needs sufficient space for other metadata, like the journal (up<br />

to 400 MB), bitmaps and directories. There are also a few regular files that <strong>Lustre</strong><br />

uses to maintain cluster consistency.<br />

To specify a larger inode size, use the -I option. We do NOT<br />

recommend specifying a smaller-than-default inode size, as this can lead to serious<br />

performance problems; you cannot change this parameter after formatting the<br />

filesystem. The inode ratio must always be larger than the inode size.<br />

Chapter 21 <strong>Lustre</strong> Tuning 21-5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!