Lustre 安裝2.10.6版本


 

一、安裝Lustre 2.10.6

前提:

<1,系統版本:Centos7.5

<2,內核版本:kernel- 3.10.0-957.el7.x86_64

<3,最低虛機配置:2C4G

<4,修改主機名

#hostnamectl  set-hostname xxx

<5,關閉防火牆

#systemctl stop firewalld

#systemctl disable firewalld

<6,selinux -disabled

# sed -i "s/enforcing/disabled/" /etc/selinux/config

<7, 安裝軟件包

# yum groupinstall "Development Tools" -y

#yum install epel-release quilt libselinux-devel python-docutils xmlto asciidoc elfutils-libelf-devel elfutils-devel zlib-devel rng-tools binutils-devel python-devel sg3_utils newt-devel perl-ExtUtils-Embed audit-libs-devel lsof hmaccalc -y

 

 lustre 安裝包下載地址 https://downloads.whamcloud.com/public/lustre/

https://updates.clustervision.com/zfs/7/x86_64/RPMS/

1,搭建Lustre repo庫

1)搭建repo庫
# cat lustre-repo.conf
[lustre-server]
name=lustre-server
baseurl=https://downloads.hpdd.intel.com/public/lustre/lustre-2.10.6/el7/server
exclude=*debuginfo*
gpgcheck=0
 
[lustre-client]
name=lustre-client
baseurl=https://downloads.hpdd.intel.com/public/lustre/lustre-2.10.6/el7/client
exclude=*debuginfo*
gpgcheck=0
 
[e2fsprogs-wc]
name=e2fsprogs-wc
baseurl=https://downloads.hpdd.intel.com/public/e2fsprogs/latest/el7
exclude=*debuginfo*
gpgcheck=0
#
(2)同步源到本地
#yum install httpd yum-utils createrepo -y
#mkdir -p /var/www/html/repo
#cd /var/www/html/repo
#reposync -c ~/lustre-repo.conf -n \
-r lustre-server \
-r lustre-client \
-r e2fsprogs-wc
#
(3)創建本地元數據
#cd /var/www/html/repo
#for i in e2fsprogs-wc lustre-client lustre-server; do
(cd $i && createrepo .)
done
#
(4)創建repo訪問文件
# cat lustre.repo
 
[lustre-server]
name=lustre-server
baseurl=http://192.168.10.10/repo/lustre-server
enabled=0
gpgcheck=0
proxy=_none_
 
[lustre-client]
name=lustre-client
baseurl=http://192.168.10.10/repo/lustre-client
enabled=0
gpgcheck=0
 
[e2fsprogs-wc]
name=e2fsprogs-wc
baseurl=http://192.168.10.10/repo/e2fsprogs-wc
enabled=0
gpgcheck=05)拷貝文件
拷貝到4台機器/etc/yum.repo/目錄下
#yum clean all && yum makecache && yum repolist
View Code

2,安裝mds/mgs、oss、client 三台VM

mds\oss

# yum --nogpgcheck --disablerepo=* --enablerepo=e2fsprogs-wc install e2fsprogs -y
#yum -y install epel-release
# yum groupinstall "Development Tools" -y
#yum install http://download.zfsonlinux.org/epel/zfs-release.el7_3.noarch.rpm
# yum --nogpgcheck --disablerepo=base,extras,updates --enablerepo=lustre-server install kernel kernel-devel kernel-headers kernel-tools kernel-tools-libs kernel-tools-libs-devel -y
# hid=`[ -f /etc/hostid ] && od -An -tx /etc/hostid|sed 's/ //g'` [ "$hid" = `hostid` ] || genhostid
# reboot
# yum --nogpgcheck --enablerepo=lustre-server install kmod-lustre-osd-ldiskfs lustre-dkms lustre-osd-ldiskfs-mount lustre-osd-zfs-mount lustre lustre-resource-agents zfs -y
# modprobe -v zfs 有輸出
# modprobe -v lustre 有輸出
View Code

 

client

# yum install kernel kernel-devel kernel-headers kernel-abi-whitelists kernel-tools kernel-tools-libs kernel-tools-libs-devel -y
# reboot
# yum install epel-release
# yum --nogpgcheck --enablerepo=lustre-client install lustre-client-dkms lustre-client -y
# modprobe -v lustre
View Code

查看內核版本,安裝缺少的包;

[root@lustre-clinet1 ~]# uname -r
3.10.0-957.el7.x86_64
[root@lustre-clinet1 ~]# yum --nogpgcheck --enablerepo=lustre-client install kmod-lustre-client* -y

 

 

三台安裝完成后,查看模塊

#modprobe -v zfs 有輸出

#modprobe -v lustre 有輸出

 

3,掛載

mds/mgs掛載

#mkdir  /mdt

 

 

oss掛載

#mkdir /mnt/ost3

 

 

 

 

 

client掛載

#mkdir /lustre

[root@lustre-clinet1 ~]# mount -t lustre 172.16.29.178@tcp0:/lustrefs /lustre/

 

 

4,安裝報錯1

報錯
--> Finished Dependency Resolution
Error: kernel conflicts with selinux-policy-targeted-3.13.1-192.el7.noarch
Error: Package: kernel-3.10.0-957.el7_lustre.x86_64 (lustre-server)
           Requires: linux-firmware >= 20180911-68
           Installed: linux-firmware-20180220-62.git6d51311.el7.noarch (@anaconda)
               linux-firmware = 20180220-62.git6d51311.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles –nodigest
#yum install linux-firmware -y
linux-firmware            noarch            20190429-72.gitddde598.el7
#
--> Processing Conflict: kernel-3.10.0-957.el7_lustre.x86_64 conflicts selinux-policy-targeted < 3.13.1-201
--> Finished Dependency Resolution
Error: kernel conflicts with selinux-policy-targeted-3.13.1-192.el7.noarch
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@lustre-mds1 ~]# rpm -qa |grep selinux-policy-targeted
selinux-policy-targeted-3.13.1-192.el7.noarch
# yum install selinux-policy-targeted -y
View Code

 

#

參考鏈接:https://wangmingjun.com/2018/06/13/%E8%99%9A%E6%8B%9F%E6%9C%BA%E6%90%AD%E5%BB%BAlustre%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F/

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM