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]
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章