标签:style blog http io os ar for 文件 2014
挂载基于MooseFS 分布式文件,客户端主机必须安装FUSE软件包(FUSE版本号至少2.6,推荐版本号大于2.7的fuse)
[root@master ~]# rpm -qa|grep fuse
fuse-2.8.3-4.el6.x86_64
fuse-libs-2.8.3-4.el6.x86_64
客户端需要安装mfsmount才能挂载mfs设备,mfsmount包含在mfs安装包里:
groupaddmfs
groupadd mfs
useradd -s /sbin/nologin mfs -g mfs
mkdir /usr/local/mfs
chowm -R mfs.mfs /usr/local/mfs/
chown -R mfs.mfs /usr/local/mfs/
./configure --with-default-user=mfs --with-default-group=mfs --prefix=/usr/local/mfs
提示
checking for FUSE... no
mfsmount disabled ********************************
* fuse library is too old or not installed - mfsmount needs version 2.6 or higher *
***********************************************************************************
安装fuse-devel即可
make && make install
挂载MFS设备:
[root@master bin]# /usr/local/mfs/bin/mfsmount /mnt/mfs/ -H 192.168.1.190
mfsmaster accepted connection with parameters: read-write,restricted_ip ; root mapped to root:root
[root@master bin]# df -ah|grep mfs
192.168.1.190:9421 164G 0 164G 0% /mnt/mfs
可以看到MFS设备是所有CHUNKSERVER存储空间的和。
标签:style blog http io os ar for 文件 2014
原文地址:http://www.cnblogs.com/rockbes/p/3989419.html