---
title: 配置Lustre文件系统
description: "创建MGS/MDT组合和两个OST以构成名为temp的文件系统。使用了三个块设备，一个用于MGS/MDT的组合节点，另两个用于OST节点。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengsdss/ecosystemEnable/Lustre/openmind_kunpenglustre_04_0009.html
sourcePath: /source/zh/kunpengsdss/ecosystemEnable/Lustre/openmind_kunpenglustre_04_0009.html
indexId: 6675b3620b9b6fb6294a66bc3aa7dd028f32b143135e55c10ae87f14a7feb42281
---
# 配置Lustre文件系统

创建MGS/MDT组合和两个OST以构成名为temp的文件系统。使用了三个块设备，一个用于MGS/MDT的组合节点，另两个用于OST节点。

1. 配置LNet网络。
  具体请参考《LNet路由器配置指南(https://wiki.lustre.org/LNet_Router_Config_Guide)》。

2. 块设备上创建一个MGS/MDT组合文件系统，并进行挂载。
  1 2 mkfs.lustre --fsname=lustre --mgs --mdt --index=0 /dev/sdb2 mount -t lustre /dev/sdb2 /mnt/mdt

3. 创建并挂载ost0。
  1 2 mkfs.lustre --reformat --fsname=lustre --mgsnode=192.168.1.1@tcp1 --ost --index=0 /dev/sdb3 mount -t lustre /dev/sdb3 /mnt/ost0

4. 创建并挂载ost1。
  1 2 mkfs.lustre --reformat --fsname=lustre --mgsnode=192.168.1.1@tcp1 --ost --index=1 /dev/sdb4 mount -t lustre /dev/sdb4 /mnt/ost1
