Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Setting up instances to mount and connect to the Lustre filesystem


This page documents manual installation and configuration of the Lustre Client on Centos7 base OS. We recommend using Automated Client Setup tool for new installs. 

Installing the Client

In order to mount a Lustre filesystem as a client, the intended client instances must have the Lustre client software installed.

 


If the client instances do not have a specific kernel version requirements, the easiest way to proceed is to install an older kernel along with the Lustre packages from this repository: https://build.

hpddintel.586/el6 


If you desire, you can create a yum repository for this by creating a file as follows on your client instances:

Code Block
# cat <<EOF >/etc/yum.repos.d/lustre-client.repo
[lustre-client]
name=Lustre Client
gpgcheck=0
baseurl=https://build.
hpdd
whamcloud.
intel.
com/job/lustre-b2_
5
10/
86/
arch=x86_64%2Cbuild_type=
client%2Cdistro=el6%2Cib
client,distro=el7,ib_stack=inkernel/lastSuccessfulBuild/artifact/artifacts/

EOF

 


In order to use these prebuilt packages, however, you'll need to download and install the older kernel:

Code Block
wgethttp
wget http://
vault
mirror.centos.org/
6.5
centos/7/updates/x86_64/Packages/kernel-
2
3.
6
10.
32
0-
431
862.
23
9.
3
1.
el6
el7.x86_64.rpm

 

Code Block
rpm -ivh --oldpackage kernel-
2
3.
6
10.
32
0-
431
862.
23
9.
3
1.
el6
el7.x86_64.rpm

 

Code Block
/sbin/grubby --set-default=/boot/vmlinuz-
2
3.
6
10.
32
0-
431
862.
23
9.
3
1.
el6
el7.x86_
6
64

 



Reboot

 


After rebooting and verifying that you have the correct kernel, you may run the following command to install the Lustre client packages:

Code Block
yum install lustre-client

 


You will then need to log into the "MGT" instance and run the the following command as root to learn the MGS NID needed for your client mount command:

Code Block
lctl list_nids
 


This will give you a NID something like 10.0.2.13@tcp, which you then add to a client mount command (adjusting NID and filesystem name for actual values):

Code Block
mount -
tlustre
t lustre 10.0.2.13@tcp:/scratch /mnt/scratch

 


If this command completes successfully, you will have an active Lustre mount, and you may then verify that the filesystem behaves and performs as expected.

 

 

 





It is also possible to build the Lustre client packages against a more recent kernel, which is a more involved process as described here: https://wiki.

hpddintel.