From cc5cb1edace165e84fb4a65ec82c6314462670ca Mon Sep 17 00:00:00 2001 From: Richard Henwood Date: Tue, 17 May 2011 13:42:02 -0500 Subject: [PATCH] FIX: xrefs --- I_LustreIntro.xml | 38 ++++---- SettingUpLustreSystem.xml | 240 ++++++++++++++++++---------------------------- index.xml | 3 +- 3 files changed, 113 insertions(+), 168 deletions(-) diff --git a/I_LustreIntro.xml b/I_LustreIntro.xml index 16e65b1..bdb94cd 100644 --- a/I_LustreIntro.xml +++ b/I_LustreIntro.xml @@ -2,27 +2,27 @@ Introducing Lustre - Part I provides background information to help you understand the Lustre architecture and how the major components fit together. You will find information in this section about: - - - - - - - - - - - - - - - - - - + Part I provides background information to help you understand the Lustre architecture and how the major components fit together. You will find information in this section about: + + + + + + + + + + + + + + + + + + diff --git a/SettingUpLustreSystem.xml b/SettingUpLustreSystem.xml index 5a1ffd6..b2a45f0 100644 --- a/SettingUpLustreSystem.xml +++ b/SettingUpLustreSystem.xml @@ -1,44 +1,43 @@ - + - Setting Up a Lustre File System + Setting Up a Lustre File System This chapter describes hardware configuration requirements for a Lustre file system including: - - Hardware Considerations - - - - - - Determining Space Requirements - - - - - - Setting File System Formatting Options - - - - - - Determining Memory Requirements - - - - - - Implementing Networks To Be Used by Lustre - - - - - -
- <anchor xml:id="dbdoclet.50438256_pgfId-1290296" xreflabel=""/> -
- 5.1 <anchor xml:id="dbdoclet.50438256_49017" xreflabel=""/>Hardware Considerations + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 5.1 Hardware Considerations Lustre can work with any kind of block storage device such as single disks, software RAID, hardware RAID, or a logical volume manager. In contrast to some networked file systems, the block devices are only attached to the MDS and OSS nodes in Lustre and are not accessed by the clients directly. Since the block devices are accessed by only one or two server nodes, a storage area network (SAN) that is accessible from all the servers is not required. Expensive switches are not needed because point-to-point connections between the servers and the storage arrays normally provide the simplest and best attachments. (If failover capability is desired, the storage must be attached to multiple servers.) For a production environment, it is preferable that the MGS have separate storage to allow future expansion to multiple file systems. However, it is possible to run the MDS and MGS on the same machine and have them share the same storage device. @@ -61,22 +60,16 @@ The storage attached to the servers typically uses RAID to provide fault tolerance and can optionally be organized with logical volume management (LVM). It is then formatted by Lustre as a file system. Lustre OSS and MDS servers read, write and modify data in the format imposed by the file system. Lustre uses journaling file system technology on both the MDTs and OSTs. For a MDT, as much as a 20 percent performance gain can be obtained by placing the journal on a separate device. The MDS can effectively utilize a lot of CPU cycles. A minimium of four processor cores are recommended. More are advisable for files systems with many clients. - - - - - - Note -Lustre clients running on architectures with different endianness are supported. One limitation is that the PAGE_SIZE kernel macro on the client must be as large as the PAGE_SIZE of the server. In particular, ia64 or PPC clients with large pages (up to 64kB pages) can run with x86 servers (4kB pages). If you are running x86 clients with ia64 or PPC servers, you must compile the ia64 kernel with a 4kB PAGE_SIZE (so the server page size is not larger than the client page size). - - - - + + Lustre clients running on architectures with different endianness are supported. One limitation is that the PAGE_SIZE kernel macro on the client must be as large as the PAGE_SIZE of the server. In particular, ia64 or PPC clients with large pages (up to 64kB pages) can run with x86 servers (4kB pages). If you are running x86 clients with ia64 or PPC servers, you must compile the ia64 kernel with a 4kB PAGE_SIZE (so the server page size is not larger than the client page size). + +
<anchor xml:id="dbdoclet.50438256_pgfId-1293428" xreflabel=""/>5.1.1 MDT Storage Hardware Considerations The data access pattern for MDS storage is a database-like access pattern with many seeks and read-and-writes of small amounts of data. High throughput to MDS storage is not important. Storage types that provide much lower seek times, such as high-RPM SAS or SSD drives can be used for the MDT. For maximum performance, the MDT should be configured as RAID1 with an internal journal and two disks from different controllers. If you need a larger MDT, create multiple RAID1 devices from pairs of disks, and then make a RAID0 array of the RAID1 devices. This ensures maximum reliability because multiple disk failures only have a small chance of hitting both disks in the same RAID1 device. - Doing the opposite (RAID1 of a pair of RAID0 devices) has a 50% chance that even two disk failures can cause the loss of the whole MDT device. The first failure disables an entire half of the mirror and the second failure has a 50% chance of disabling the remaining mirror. + Doing the opposite (RAID1 of a pair of RAID0 devices) has a 50% chance that even two disk failures can cause the loss of the whole MDT device. The first failure disables an entire half of the mirror and the second failure has a 50% chance of disabling the remaining mirror.
<anchor xml:id="dbdoclet.50438256_pgfId-1295312" xreflabel=""/>5.1.2 OST Storage Hardware Considerations @@ -84,22 +77,16 @@ Lustre file system capacity is the sum of the capacities provided by the targets. For example, 64 OSSs, each with two 8 TB targets, provide a file system with a capacity of nearly 1 PB. If each OST uses ten 1 TB SATA disks (8 data disks plus 2 parity disks in a RAID 6 configuration), it may be possible to get 50 MB/sec from each drive, providing up to 400 MB/sec of disk bandwidth per OST. If this system is used as storage backend with a system network like InfiniBand that provides a similar bandwidth, then each OSS could provide 800 MB/sec of end-to-end I/O throughput. (Although the architectural constraints described here are simple, in practice it takes careful hardware selection, benchmarking and integration to obtain such results.)
-
- 5.2 <anchor xml:id="dbdoclet.50438256_31079" xreflabel=""/>Determining Space Requirements +
+ 5.2 Determining Space Requirements The desired performance characteristics of the backing file systems on the MDT and OSTs are independent of one another. The size of the MDT backing file system depends on the number of inodes needed in the total Lustre file system, while the aggregate OST space depends on the total amount of data stored on the file system. - Each time a file is created on a Lustre file system, it consumes one inode on the MDT and one inode for each OST object over which the file is striped. Normally, each file’s stripe count is based on the system-wide default stripe count. However, this can be changed for individual files using the lfssetstripe option. For more details,see Setting the File Layout/Striping Configuration (lfs setstripe). + Each time a file is created on a Lustre file system, it consumes one inode on the MDT and one inode for each OST object over which the file is striped. Normally, each file’s stripe count is based on the system-wide default stripe count. However, this can be changed for individual files using the lfssetstripe option. For more details, see . In a Lustre ldiskfs file system, all the inodes are allocated on the MDT and OSTs when the file system is first formatted. The total number of inodes on a formatted MDT or OST cannot be easily changed, although it is possible to add OSTs with additional space and corresponding inodes. Thus, the number of inodes created at format time should be generous enough to anticipate future expansion. When the file system is in use and a file is created, the metadata associated with that file is stored in one of the pre-allocated inodes and does not consume any of the free space used to store file data. - - - - - - Note -By default, the ldiskfs file system used by Lustre servers to store user-data objects and system data reserves 5% of space that cannot be used by Lustre. Additionally, Lustre reserves up to 400 MB on each OST for journal use and a small amount of space outside the journal to store accounting data for Lustre. This reserved space is unusable for general storage. Thus, at least 400 MB of space is used on each OST before any file object data is saved. - - - - + +By default, the ldiskfs file system used by Lustre servers to store user-data objects and system data reserves 5% of space that cannot be used by Lustre. Additionally, Lustre reserves up to 400 MB on each OST for journal use and a small amount of space outside the journal to store accounting data for Lustre. This reserved space is unusable for general storage. Thus, at least 400 MB of space is used on each OST before any file object data is saved. + +
<anchor xml:id="dbdoclet.50438256_pgfId-1292700" xreflabel=""/>5.2.1 <anchor xml:id="dbdoclet.50438256_87676" xreflabel=""/>Determining MDS/MDT Space Requirements When calculating the MDT size, the important factor to consider is the number of files to be stored in the file system. This determines the number of inodes needed, which drives the MDT sizing. To be on the safe side, plan for 4 KB per inode on the MDT, which is the default value. Attached storage required for Lustre metadata is typically 1-2 percent of the file system capacity depending upon file size. @@ -108,24 +95,18 @@ We recommend that you use at least twice the minimum number of inodes to allow for future expansion and allow for an average file size smaller than expected. Thus, the required space is: 4 KB/inode * 40 million inodes = 160 GB If the average file size is small, 4 KB for example, Lustre is not very efficient as the MDT uses as much space as the OSTs. However, this is not a common configuration for Lustre. - - - - - - Note -If the MDT is too small, this can cause all the space on the OSTs to be unusable. Be sure to determine the appropriate size of the MDT needed to support the file system before formatting the file system. It is difficult to increase the number of inodes after the file system is formatted. - - - - + +Note -If the MDT is too small, this can cause all the space on the OSTs to be unusable. Be sure to determine the appropriate size of the MDT needed to support the file system before formatting the file system. It is difficult to increase the number of inodes after the file system is formatted. +
+
<anchor xml:id="dbdoclet.50438256_pgfId-1293490" xreflabel=""/>5.2.2 Determining OSS/OST Space Requirements - For the OST, the amount of space taken by each object depends on the usage pattern of the users/applications running on the system. Lustre defaults to a conservative estimate for the object size (16 KB per object). If you are confident that the average file size for your applications will be larger than this, you can specify a larger average file size (fewer total inodes) to reduce file system overhead and minimize file system check time. See Setting the Number of Inodes for an OST for more details. + For the OST, the amount of space taken by each object depends on the usage pattern of the users/applications running on the system. Lustre defaults to a conservative estimate for the object size (16 KB per object). If you are confident that the average file size for your applications will be larger than this, you can specify a larger average file size (fewer total inodes) to reduce file system overhead and minimize file system check time. See for more details.
-
- 5.3 <anchor xml:id="dbdoclet.50438256_84701" xreflabel=""/>Setting File System Formatting Options +
+ 5.3 Setting File System Formatting Options To override the default formatting options for any of the Lustre backing file systems, use this argument to mkfs.lustre to pass formatting options to the backing mkfs: --mkfsoptions='backing fs options' For other options to format backing ldiskfs filesystems, see the Linux man page for mke2fs(8). @@ -157,27 +138,22 @@ Alternately, if you know the average file size, then you can specify the OST inode count for the OST file systems using: -i <average_file_size / (number_of_stripes * 4)> For example, if the average file size is 16 MB and there are, by default 4 stripes per file, then --mkfsoptions='-i 1048576' would be appropriate. - - - - - - Note -In addition to the number of inodes, file system check time on OSTs is affected by a number of other variables: size of the file system, number of allocated blocks, distribution of allocated blocks on the disk, disk speed, CPU speed, and amount of RAM on the server. Reasonable file system check times (without serious file system problems), are expected to take five and thirty minutes per TB. - - - - - For more details on formatting MDT and OST file systems, see Formatting Options for RAID Devices. + +In addition to the number of inodes, file system check time on OSTs is affected by a number of other variables: size of the file system, number of allocated blocks, distribution of allocated blocks on the disk, disk speed, CPU speed, and amount of RAM on the server. Reasonable file system check times (without serious file system problems), are expected to take five and thirty minutes per TB. + + + For more details on formatting MDT and OST file systems, see .
<anchor xml:id="dbdoclet.50438256_pgfId-1290698" xreflabel=""/>5.3.4 File and File System Limits - TABLE 5-1 describes file and file system size limits. These limits are imposed by either the Lustre architecture or the Linux virtual file system (VFS) and virtual memory subsystems. In a few cases, a limit is defined within the code and can be changed by re-compiling Lustre (see Chapter 29: Installing Lustre from Source Code). In these cases, the indicated limit was used for Lustre testing. + describes file and file system size limits. These limits are imposed by either the Lustre architecture or the Linux virtual file system (VFS) and virtual memory subsystems. In a few cases, a limit is defined within the code and can be changed by re-compiling Lustre (see Chapter 29 : Installing Lustre from Source Code). In these cases, the indicated limit was used for Lustre testing. + - <anchor xml:id="dbdoclet.50438256_pgfId-1290702" xreflabel=""/> TABLE 5-1 <anchor xml:id="dbdoclet.50438256_27068" xreflabel=""/> File and file system limits + File and file system limits - - - + + + Limit @@ -239,7 +215,7 @@ Maximum number of files in the file system 4 billion - The ldiskfs file system imposes an upper limit of 4 billion inodes. By default, the MDS file system is formatted with 4 KB of space per inode, meaning 512 million inodes per file system of 2 TB.This can be increased initially, at the time of MDS file system creation. For more information, see Setting File System Formatting Options. + The ldiskfs file system imposes an upper limit of 4 billion inodes. By default, the MDS file system is formatted with 4 KB of space per inode, meaning 512 million inodes per file system of 2 TB.This can be increased initially, at the time of MDS file system creation. For more information, see Setting File System Formatting Options. Maximum length of a filename @@ -262,8 +238,8 @@   -
- 5.4 <anchor xml:id="dbdoclet.50438256_26456" xreflabel=""/>Determining Memory<anchor xml:id="dbdoclet.50438256_marker-1292212" xreflabel=""/> Requirements +
+ 5.4 Determining Memory<anchor xml:id="dbdoclet.50438256_marker-1292212" xreflabel=""/> Requirements This section describes the memory requirements for each Lustre file system component.
<anchor xml:id="dbdoclet.50438256_pgfId-1292221" xreflabel=""/>5.4.1 Client Memory Requirements @@ -276,20 +252,11 @@ Number of clients - - - Size of the directories - - - Load placed on server - - - The amount of memory used by the MDS is a function of how many clients are on the system, and how many files they are using in their working set. This is driven, primarily, by the number of locks a client can hold at one time. The number of locks held by clients varies by load and memory availability on the server. Interactive clients can hold in excess of 10,000 locks at times. On the MDS, memory usage is approximately 2 KB per file, including the Lustre distributed lock manager (DLM) lock and kernel data structures for the files currently in use. Having file data in cache can improve metadata performance by a factor of 10x or more compared to reading it from disk. MDS memory requirements include: @@ -297,26 +264,14 @@ File system metadata : A reasonable amount of RAM needs to be available for file system metadata. While no hard limit can be placed on the amount of file system metadata, if more RAM is available, then the disk I/O is needed less often to retrieve the metadata. - - - Network transport : If you are using TCP or other network transport that uses system memory for send/receive buffers, this memory requirement must also be taken into consideration. - - - Journal size : By default, the journal size is 400 MB for each Lustre ldiskfs file system. This can pin up to an equal amount of RAM on the MDS node per file system. - - - Failover configuration : If the MDS node will be used for failover from another node, then the RAM for each journal should be doubled, so the backup server can handle the additional load if the primary server fails. - - -
<anchor xml:id="dbdoclet.50438256_pgfId-1292235" xreflabel=""/>5.4.2.1 Calculating MDS Memory Requirements @@ -332,21 +287,15 @@
- <anchor xml:id="dbdoclet.50438256_pgfId-1292246" xreflabel=""/>5.4.3 <anchor xml:id="dbdoclet.50438256_84553" xreflabel=""/>OSS Memory <anchor xml:id="dbdoclet.50438256_marker-1292245" xreflabel=""/>Requirements + <anchor xml:id="dbdoclet.50438256_pgfId-1292246" xreflabel=""/>5.4.3 <anchor xml:id="dbdoclet.50438256_84553" xreflabel=""/>OSS Memory Requirements When planning the hardware for an OSS node, consider the memory usage of several components in the Lustre system (i.e., journal, service threads, file system metadata, etc.). Also, consider the effect of the OSS read cache feature, which consumes memory as it caches data on the OSS node. - In addition to the MDS memory requirements mentioned in Determining MDS/MDT Space Requirements, the OSS requirements include: + In addition to the MDS memory requirements mentioned in , the OSS requirements include: Service threads : The service threads on the OSS node pre-allocate a 1 MB I/O buffer for each ost_io service thread, so these buffers do not need to be allocated and freed for each I/O request. - - - OSS read cache : OSS read cache provides read-only caching of data on an OSS, using the regular Linux page cache to store the data. Just like caching from a regular file system in Linux, OSS read cache uses as much physical memory as is available. - - - The same calculation applies to files accessed from the OSS as for the MDS, but the load is distributed over many more OSSs nodes, so the amount of memory required for locks, inode cache, etc. listed under MDS is spread out over the OSS nodes. as shown in 5.2.3.1. Because of these memory requirements, the following calculations should be taken as determining the absolute minimum RAM required in an OSS node. @@ -369,50 +318,45 @@
-
- 5.5 <anchor xml:id="dbdoclet.50438256_78272" xreflabel=""/>Implementing Networks To Be Used by Lustre +
+ 5.5 Implementing Networks To Be Used by Lustre As a high performance file system, Lustre places heavy loads on networks. Thus, a network interface in each Lustre server and client is commonly dedicated to Lustre traffic. This is often a dedicated TCP/IP subnet, although other network hardware can also be used. A typical Lustre implementation may include the following: A high-performance backend network for the Lustre servers, typically an InfiniBand (IB) network. - - - A larger client network. - - - Lustre routers to connect the two networks. - - - Lustre networks and routing are configured and managed by specifying parameters to the Lustre Networking (lnet) module in /etc/modprobe.conf or /etc/modprobe.conf.local (depending on your Linux distribution). To prepare to configure Lustre Networking, complete the following steps: + + 1. Identify all machines that will be running Lustre and the network interfaces they will use to run Lustre traffic. These machines will form the Lustre network. - A network is a group of nodes that communicate directly with one another. Lustre includes Lustre network drivers (LNDs) to support a variety of network types and hardware (see Chapter 2: Understanding Lustre Networking (LNET) for a complete list). The standard rules for specifying networks applies to Lustre networks. For example, two TCP networks on two different subnets (tcp0 and tcp1) are considered to be two different Lustre networks. + A network is a group of nodes that communicate directly with one another. Lustre includes Lustre network drivers (LNDs) to support a variety of network types and hardware (see for a complete list). The standard rules for specifying networks applies to Lustre networks. For example, two TCP networks on two different subnets (tcp0 and tcp1) are considered to be two different Lustre networks. + + 2. If routing is needed, identify the nodes to be used to route traffic between networks. - If you are using multiple network types, then you’ll need a router. Any node with appropriate interfaces can route Lustre Networking (LNET) traffic between different network hardware types or topologies --the node may be a server, a client, or a standalone router. LNET can route messages between different network types (such as TCP-to-InfiniBand) or across different topologies (such as bridging two InfiniBand or TCP/IP networks). Routing will be configured in Chapter 9: Configuring Lustre Networking (LNET). + If you are using multiple network types, then you’ll need a router. Any node with appropriate interfaces can route Lustre Networking (LNET) traffic between different network hardware types or topologies --the node may be a server, a client, or a standalone router. LNET can route messages between different network types (such as TCP-to-InfiniBand) or across different topologies (such as bridging two InfiniBand or TCP/IP networks). Routing will be configured in . + + 3. Identify the network interfaces to include in or exclude from LNET. If not explicitly specified, LNET uses either the first available interface or a pre-defined default for a given network type. Interfaces that LNET should not use (such as an administrative network or IP-over-IB), can be excluded. - Network interfaces to be used or excluded will be specified using the lnet kernel module parameters networks and ip2netsas described in Chapter 9: Configuring Lustre Networking (LNET). + Network interfaces to be used or excluded will be specified using the lnet kernel module parameters networks and ip2netsas described in . + + 4. To ease the setup of networks with complex network configurations, determine a cluster-wide module configuration. - For large clusters, you can configure the networking setup for all nodes by using a single, unified set of parameters in the modprobe.conf file on each node. Cluster-wide configuration is described in Chapter 9: Configuring Lustre Networking (LNET). - - - -
- - Note -We recommend that you use “dotted-quad†notation for IP addresses rather than host names to make it easier to read debug logs and debug configurations with multiple interfaces. - - - - + For large clusters, you can configure the networking setup for all nodes by using a single, unified set of parameters in the modprobe.conf file on each node. Cluster-wide configuration is described in . + + + + + We recommend that you use “dotted-quad†notation for IP addresses rather than host names to make it easier to read debug logs and debug configurations with multiple interfaces. + + - diff --git a/index.xml b/index.xml index 4b1935c..54b0f13 100644 --- a/index.xml +++ b/index.xml @@ -1,9 +1,10 @@ + - <anchor xml:id="dbdoclet.50438145_pgfId-108319" xreflabel=""/>Lustre 2.x Filesystem Operations Manual + -- 1.8.3.1