MFS安裝

[size=large]1、安裝環境介紹(Xen中使用虛擬機來搭建)
.192.168.6.110 master
.192.168.6.111 chunkserver1
.192.168.6.112 chunkserver2
.192.168.6.113 client

2、參照網絡文章進行安裝(待提煉)
[url=http://blog.csdn.net/tang_fu/archive/2011/01/27/6166367.aspx]MooseFS 分佈式文件系統的部署與應用[/url].

3、安裝途中錯誤記錄
3.1、:
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/src/mfs-1.6.20-2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
問題分析:應該是沒有安裝gcc,Rhel5默認是沒安裝gcc的
問題解決:安裝gcc

3.2、安裝客戶端時出現問題(安裝fuse):
#make install
fuse library is too old or not installed - mfsmount needs version 2.6 or higher.
解決:升級fuse到2.7.4—---#yum install fuse*

3.2、調用/usr/bin/mfsmount /mnt/mfs -H mfsmaster時出現如下異常
#mfsmaster accepted connection with parameters: read-
write,restricted_ip ; root mapped to root:root fuse: device not found, try 'modprobe fuse' first error in fuse_mount.
——手動安裝的fuse版本爲2.8.5
然而使用rpm -qa|fuse命令查看到的卻是2.7.4版本的
(使用yum install fuse*之後變成的2.7.4的版本,也即我之前裝的2.8.5的沒成功)
[color=red]在網上找到了如下的說明:[/color]
linux 2.6.18-164.e15 版本的linux內核中已經內置了fuse模塊。但在該版本之前的linux內核中是不包含這個模塊的。另fuse 從2.8.0-pre1 版本的源碼包中去掉了fuse系統模塊的源碼部分,原因就是上一點提到的。這樣我們在編譯安裝當前最新版本的fuse(2.8以上版本) 且正在使用的linux內核版本低於2.6.18-164.e15版本,則系統中是不包含fuse模塊的。
[color=red]注:[/color] 我最起初的組合爲fuse-2.8.5,而Linux內核爲2.6.18-162

3.3、使用命令modprobe fuse(用於查看fuse是否已經成功編譯)或者使用modprobe -l|grep fuse查看是否有fuse.ko;查看到的結果爲:
FATAL: Module fuse not found.
——網上有兩個帖子說是fuse版本的問題,說新版本的不行得換成老版本的;於是嘗試先刪除掉2.7.4版本的再重裝。
其實根本原因是fuse module沒有被加載,但是使用rpm -qa|grep fuse 又能查看
到fuse的信息呀
注意:安裝包與模塊是不同的兩個概念。
解決方案:
一、 升級內核
二、 使用Fuse2.7.x版本編譯安裝
三、利用Yum安裝當前內核版本的fuse模塊
逐個嘗試仍然失敗,最終發現因爲[color=red]我使用的是Xen中的虛擬機[/color],而Xen是採用的半虛擬化技術,因此我升級內核到kernel-2.6.18-164.el5是不行的,升級的內核應該爲kernel-xen-2.6.18-128.el5才行。

附參考資料:
[url=http://hi.baidu.com/leolance/blog/item/ec56863570aefeb95fdf0e33.html]分佈式文件系統moosefs 部署(第2版 mfs-1.6.11)[/url]

[url=http://bbs.chinaunix.net/thread-1644309-1-1.html]mfs權威指南(moosefs)分佈式文件系統一站式解決方案(部署,性能測試)不斷更新[/url]
[url=http://www.aslibra.com/blog/post/mfs_problem.php]阿權推薦的參考內容[/url] [/size]
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章