Lustre 文件系統安裝


制作一個本地鏡像

reposync configfile:

[root@localhost html]# cat lustre-repo.conf 
[lustre-server]
name=lustre-server
baseurl=https://downloads.whamcloud.com/public/lustre/latest-release/el7.6.1810/server
# exclude=*debuginfo*
gpgcheck=0

[lustre-client]
name=lustre-client
baseurl=https://downloads.whamcloud.com/public/lustre/latest-release/el7.6.1810/client
# exclude=*debuginfo*
gpgcheck=0

[patchless-ldiskfs]
name=patchless-ldiskfs
baseurl=https://downloads.whamcloud.com/public/lustre/latest-release/el7.6.1810/patchless-ldiskfs-server
# exclude=*debuginfo*
gpgcheck=0

[e2fsprogs-wc]
name=e2fsprogs-wc
baseurl=https://downloads.whamcloud.com/public/e2fsprogs/latest/el7
# exclude=*debuginfo*
gpgcheck=0

同步鏡像:

[root@localhost html]# reposync -c lustre-repo.conf -n -r lustre-server -r lustre-client -r patchless-ldiskfs -r e2fsprogs-wc

如果因為網絡問題,可以使用proxychains4 來進行代理訪問:(proxychains4 安裝教程)

[root@localhost repo]# proxychains4 reposync -c ../lustre-repo.conf -n -r lustre-server -r lustre-client -r patchless-ldiskfs -r e2fsprogs-wc

創建repo metadata:

cd /usr/share/nginx/html/repo
for i in e2fsprogs-wc lustre-client lustre-server patchless-ldiskfs; do
(cd $i && createrepo .)
done

 制作lustre.repo文件:

[root@localhost html]# cat lustre.repo 
[lustre-server]
name=lustre-server
baseurl=http://127.0.0.1/repo/lustre-server
# enabled=0
gpgcheck=0
proxy=_none_

[lustre-client]
name=lustre-client
baseurl=http://127.0.0.1/repo/lustre-client
# enabled=0
gpgcheck=0

[e2fsprogs-wc]
name=e2fsprogs-wc
baseurl=http://127.0.0.1/repo/e2fsprogs-wc
# enabled=0
gpgcheck=0

# patchless-ldiskfs

[patchless-ldiskfs]
name=patchless-ldiskfs
baseurl=http://127.0.0.1/repo/patchless-ldiskfs
# enabled=0
gpgcheck=0

 yum 安裝教程,詳細請參考lustre文檔

http://wiki.lustre.org/Installing_the_Lustre_Software#Using_YUM_to_Manage_Local_Software_Provisioning

保持更新,如果對你有幫助,請點擊推薦。

lustre 具體安裝步驟步驟,針對本地文件資源:

0. 關閉防火牆,關閉 selinux 
1. 安裝 repo 
    a. 安裝 epel-release repo , yum install, yum makecache
    b. 安裝 nginx repo , yum install , yum makecache
    c. 啟動 nginx ; cd /usr/share/nginx/html 
    d. 覆蓋 nginx 配置文件並reload; nginx -s reload 
    e. 創建 lustre repo;  運行 makerepo.sh 更新索引;
    f. 復制repo 配置文件;yum makecache;
2. 安裝 lustre 
    a. 參考 lustre wiki; http://wiki.lustre.org/Installing_the_Lustre_Software
    b. 安裝dkms 
    c. 安裝 Lustre Servers with LDISKFS OSD Support 
    d. 重新啟動;進入新內核;
    e. 繼續完成安裝;通過 modprobe -v lustre 檢測lustre 模塊是否能夠加載;
3. 安裝 lustre client 
    a. 參考 https://docs.aws.amazon.com/fsx/latest/LustreGuide/install-lustre-client.html 
    b. 進行在 ubuntu 18.04 安裝 deb 
    c. dpkg -i install lustre-client-modules & lustre-utils 
    d. curl -O -L http://10.134.150.13/client/lustre-client-modules-4.15.0-45-generic_2.12.2-1_amd64.deb 
    e. curl -O -L http://10.134.150.13/client/lustre-client-utils_2.12.2-1_amd64.deb 
    f. 安裝 apt install perl-modules-5.22; apt install libperl5.22; apt install libsnmp30;
    g. 記得配置好ubuntu的源;
4. 啟動lustre
    a. 服務端格式化硬盤,並啟動 lustre 服務;綁定到指定的網卡;並創建掛載點 /mnt/mdt /mnt/ost0
    b. mkfs.lustre --fsname=lustrefs --mgs --mdt --index=0 /dev/sdb  配置 MGS
    c. mount.lustre /dev/sdb /mnt/mdt 掛載 mgs
    d. mkfs.lustre --fsname=lustrefs --mgsnode=10.134.150.13@tcp --ost --index=0 /dev/sdc 配置 OSS
    e. mount.lustre /dev/sdc /mnt/ost0 
    f. 啟動lustre 服務器 systemctl restart lustre; 
    g. 客戶端掛在 lustre: mount.lustre 192.168.83.128@tcp:/lustrefs /mnt/lustre 
    h. mkfs.lustre --fsname=lustrefs --mgsnode=192.168.83.128@tcp --ost --index=0 /dev/sdc 配置 OSS 防止網卡不夠智能的時候出現找不到mgs的問題;

linux 創建虛擬塊設備,制作文件系統並掛載,用於測試lustre:

參考鏈接:https://www.cnblogs.com/xuyaowen/p/lustre-loop-device.html 

保持更新,更多內容請關注 cnblogs.com/xuyaowen;

Lustre 文件系統介紹:https://en.wikipedia.org/wiki/Lustre_(file_system) 

阿里雲Lustre 安裝步驟:(2020年4月20日)

創建位於同一VPC的兩台虛擬機;一台Ubuntu,一台Centos 1806;
在創建CentOS 實例的時候,注意多創建兩塊雲盤; 設置好安全組,保證位於同一VPC兩台機器可以互相訪問; 上傳Lustre安裝包至其中一台VPC; 安裝nginx: systemctl status nginx 在需要安裝的Centos 上; 按照Lustre安裝步驟進行安裝;

Lustre Client 掛載步驟:

安裝客戶端(開啟客戶端擴展屬性):
dpkg -i install lustre-client-modules & lustre-utils
apt --fix-broken install 
mount.lustre -o user_xattr 192.168.83.128@tcp:/lustrefs /mnt/lustre 

參考鏈接:http://wiki.lustre.org/Mounting_a_Lustre_File_System_on_Client_Nodes 

Lustre 中國社區:http://lustrefs.cn/


免責聲明!

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



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