Lustre组件

Lustre Components


An installation of the Lustre software includes a management server (MGS) and one or more Lustre file systems interconnected with Lustre networking (LNet).
A basic configuration of Lustre file system components is shown in “Lustre file system components in a basic cluster”.

Lustre file system components in a basic cluster

Lustre基本组件

Management Server (MGS)

The MGS stores configuration information for all the Lustre file systems in a cluster and provides this information to other Lustre components. Each Lustre target contacts the MGS to provide information, and Lustre clients contact the MGS to retrieve information.
It is preferable that the MGS have its own storage space so that it can be managed independently. However, the MGS can be co-located and share storage space with an MDS as shown in Figure 1.1, “Lustre file system components in a basic cluster”.

Lustre File System Components

Each Lustre file system consists of the following components:

  • Metadata Servers (MDS)
    The MDS makes metadata stored in one or more MDTs available to Lustre clients. Each MDS manages the names and directories in the Lustre file system(s) and provides network request handling for one or more local MDTs.

  • Metadata Targets (MDT)
    Each filesystem has at least one MDT. The MDT stores metadata (such as filenames, directories, permissions and file layout) on storage attached to an MDS. Each file system has one MDT. An MDT on a shared storage target can be available to multiple MDSs, although only one can access it at a time. If an active MDS fails, a standby MDS can serve the MDT and make it available to clients. This is referred to as MDS failover.
    Multiple MDTs are supported in the Distributed Namespace Environment (DNE). In addition to the primary MDT that holds the filesystem root, it is possible to add additional MDS nodes, each with their own MDTs, to hold sub-directory trees of the filesystem.

  • Object Storage Servers (OSS): The OSS provides file I/O service and network request handling for one or more local OSTs. Typically, an OSS serves between two and eight OSTs, up to 16 TiB each. A typical configuration is an MDT on a dedicated node, two or more OSTs on each OSS node, and a client on each of a large number of compute nodes.

  • Object Storage Target (OST): User file data is stored in one or more objects, each object on a separate OST in a Lustre file system. The number of objects per file is configurable by the user and can be tuned to optimize performance for a given workload.

  • Lustre clients: Lustre clients are computational, visualization or desktop nodes that are running Lustre client software, allowing them to mount the Lustre file system.

    The Lustre client software provides an interface between the Linux virtual file system and the Lustre servers. The client software includes a management client (MGC), a metadata client (MDC), and multiple object storage clients (OSCs), one corresponding to each OST in the file system.
    A logical object volume (LOV) aggregates the OSCs to provide transparent access across all the OSTs. Thus, a client with the Lustre file system mounted sees a single, coherent, synchronized namespace. Several clients can write to different parts of the same file simultaneously, while, at the same time, other clients can read from the file.
    A logical metadata volume (LMV) aggregates the MDCs to provide transparent access across all the MDTs in a similar manner as the LOV does for file access. This allows the client to see the directory tree on multiple MDTs as a single coherent namespace, and striped directories are merged on the clients to form a single visible directory to users and applications.

    Table 1.2, “ Storage and hardware requirements for Lustre file system components”provides the requirements for attached storage for each Lustre file system component and describes desirable characteristics of the hardware used.

    Storage and hardware requirements for Lustre file system components

    Required attached storageDesirable hardware characteristics
    MDSs1-2% of file system capacityAdequate CPU power, plenty of memory, fast disk storage.
    OSSs1-128 TiB per OST, 1-8 OSTs per OSSGood bus bandwidth. Recommended that storage be balanced evenly across OSSs and matched to network bandwidth.
    ClientsNo local storage neededLow latency, high bandwidth network

Lustre Networking (LNet)

Lustre Networking (LNet) is a custom networking API that provides the communication infrastructure that handles metadata and file I/O data for the Lustre file system servers and clients. For more information about LNet, see Chapter 2, Understanding Lustre Networking (LNet).

Lustre Cluster

At scale, a Lustre file system cluster can include hundreds of OSSs and thousands of clients (see Figure 1.2, “ Lustre cluster at scale”). More than one type of network can be used in a Lustre cluster. Shared storage between OSSs enables failover capability. For more details about OSS failover, see Chapter 3, Understanding Failover in a Lustre File System.

Lustre cluster at scale

在这里插入图片描述

Lustre client requesting file data

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Lustre 是一种高性能分布式文件系统,常用于大规模高性能计算(HPC)集群。安装 Lustre 需要在每个节点上安装 Lustre 软件包,并配置 Lustre 文件系统。 以下是 Lustre 的安装步骤: 1. 安装 Lustre 软件包 在每个节点上,首先需要安装 Lustre 软件包。可以通过以下命令安装: ``` yum install lustre kmod-lustre-osd-ldiskfs lustre-osd-ldiskfs-mount lustre-resource-agents ``` 2. 配置 Lustre 文件系统 在 Lustre 文件系统中,需要指定 metadata server 和 object storage device,以及客户端将要连接到的 metadata server 和 object storage device。可以通过以下步骤进行配置: 2.1 创建 metadata server 在其中一个节点上创建 metadata server。可以使用以下命令: ``` mkfs.lustre --mgs /dev/<metadata_device> ``` 其中,`<metadata_device>` 是要用作 metadata server 的设备名称。 2.2 创建 object storage device 在每个节点上创建 object storage device。可以使用以下命令: ``` mkfs.lustre --ost --fsname=mylustre --mgsnode=<metadata_server> /dev/<object_storage_device> ``` 其中,`<object_storage_device>` 是要用作 object storage device 的设备名称,`<metadata_server>` 是 metadata server 的 IP 地址或主机名。 2.3 挂载 Lustre 文件系统 在每个节点上挂载 Lustre 文件系统。可以使用以下命令: ``` mount -t lustre <metadata_server>@tcp:/mylustre /mnt/lustre ``` 其中,`<metadata_server>` 是 metadata server 的 IP 地址或主机名。 3. 配置 Lustre 客户端 在每个客户端节点上,需要安装 Lustre 软件包,并配置 Lustre 文件系统的客户端。可以通过以下步骤进行配置: 3.1 安装 Lustre 软件包 在每个客户端节点上,安装 Lustre 软件包。可以使用以下命令: ``` yum install lustre-client kmod-lustre-client lustre-client-modules ``` 3.2 挂载 Lustre 文件系统 在每个客户端节点上挂载 Lustre 文件系统。可以使用以下命令: ``` mount -t lustre <metadata_server>@tcp:/mylustre /mnt/lustre ``` 其中,`<metadata_server>` 是 metadata server 的 IP 地址或主机名。 以上就是 Lustre 的安装步骤。注意,在实际部署 Lustre 文件系统时,还需要进行更多的配置,如设置权限、配置网络等。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值