[lustre-discuss] Lustre Installation...

Jeff Slapp Jeff.Slapp at DataCore.com
Fri Jan 27 04:17:18 PST 2017


Good day Devendra,

Below are the steps I used to install the MGS, OSS and client using ZFS. If you are using CentOS 7.2 you will need to adjust some of the parameters below to match:

[INITIAL OS INSTALL]
Using CentOS 7.3.1611 with the following roles enabled:
               File and Storage Server
               Guest Agents (if in a VM)
               Large System Performance
               Network File System Client
               Performance Tools
               Compatibility Libraries
               Development Tools

[POST OS INSTALL STEPS TO BE PERFORMED ON ALL LUSTRE NODES (MGS/MGT AND OSS)]
hostname [YOUR SERVER NAME] - or use nmtui to configure network interfaces
vi /etc/yum.repos.d/lustre_server.repo
               [lustre-server]
               name=CentOS-$releasever - Lustre server
               baseurl=https://downloads.hpdd.intel.com/public/lustre/lustre-2.9.0/el7.3.1611/server/
               gpgcheck=0
yum -y install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
yum clean all
kernel_version=`yum list --showduplicates kernel | grep lustre-server | awk '{print $2}'`
kernel_firmware_version=`yum list --showduplicates kernel-firmware | grep lustre-server | awk '{print $2}'`
yum -y install --nogpgcheck --setopt=protected_multilib=false kernel-${kernel_version} kernel-firmware-${kernel_firmware_version} kernel-devel-${kernel_version} kernel-headers-${kernel_version}
yum clean all
yum -y install yum-plugin-versionlock
yum versionlock add kernel
yum versionlock add kernel-firmware
yum versionlock add kernel-devel
yum versionlock add kernel-headers
yum clean all
yum-config-manager --disable lustre-server
yum -y install http://download.zfsonlinux.org/epel/zfs-release.el7_3.noarch.rpm
yum clean all
yum-config-manager --disable zfs
yum-config-manager --enable zfs-kmod
** reboot **
yum -y install wget
yum -y install rpm-build
yum -y install kmod-zfs-devel libzfs2-devel
yum -y install libselinux-devel libtool
rm -f lustre-2.9.0-1.src.rpm&& wget -q https://downloads.hpdd.intel.com/public/lustre/lustre-2.9.0/el7/server/SRPMS/lustre-2.9.0-1.src.rpm
rm -rf ~rpmbuild&& rpmbuild --rebuild --with zfs lustre-2.9.0-1.src.rpm
cd ~/rpmbuild/RPMS/`uname -m`/&& yum -y install kmod-lustre-osd-zfs-2.9.0* kmod-lustre-2.9.0* lustre-osd-zfs-mount-2.9.0* lustre-2.9.0* lustre-iokit*
modprobe zfs
systemctl stop firewalld
systemctl disable firewalld
systemctl preset zfs-import-cache zfs-import-scan zfs-mount zfs-share zfs-zed zfs.target
systemctl enable zfs-import-scan
chkconfig lustre on
echo "options lnet networks=tcp0(eth0)" > /etc/modprobe.d/lustre.conf

[MGS/MDT SPECIFIC]
zpool create -f mgs01-pool mirror /dev/sd[b-c]
mkfs.lustre --mdt --mgs --backfstype=zfs --fsname=ZFS01 --index=0 --mgsnode=[MGS IP ADDRESS]@tcp0 mgs01-pool/ZFS01
mkdir /mnt/ZFS01
lctl dl
mount -t lustre mgs01-pool/ZFS01 /mnt/ZFS01
lctl dl

[OSS SPECIFIC]
zpool create -f oss01-pool raidz /dev/sd[b-e]
mkfs.lustre --ost --backfstype=zfs --fsname=ZFS01 --index=0 --mgsnode=[MGS IP ADDRESS]@tcp0 oss01-pool/ZFS01
mkdir /mnt/ZFS01
lctl dl
mount -t lustre oss01-pool/ZFS01 /mnt/ZFS01
lctl dl

[LUSTRE CLIENT INSTALL]
vi /etc/yum.repos.d/lustre_client.repo
               [lustre-client]
               name=CentOS-$releasever - Lustre client
               baseurl=https://downloads.hpdd.intel.com/public/lustre/lustre-2.9.0/el7.3.1611/client/
               gpgcheck=0
yum -y install lustre-client-2.9.0* kmod-lustre-client-2.9.0*
mkdir /mnt/lustre
echo "options lnet networks=tcp0(eth0)" > /etc/modprobe.d/lustre.conf
mount -t lustre [IP ADDRESS OF MGS SERVER]@tcp0:/ZFS01 /mnt/lustre


Hope this helps.


From: lustre-discuss [mailto:lustre-discuss-bounces at lists.lustre.org] On Behalf Of Devendra Patil
Sent: Friday, January 27, 2017 5:06 AM
To: lustre-discuss at lists.lustre.org
Subject: [lustre-discuss] Lustre Installation...

Hello,

I'm newbie to lustre. Currently I'm facing issue while installing lustre on CentOs 7.2. Can anyone guide me which OS to use and compatible lustre version for it.

Thank you,
Devendra Patil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20170127/b4ccc842/attachment-0001.htm>


More information about the lustre-discuss mailing list