四:mfsClient部署
FUSE包安装,为后续安装mfsmount工具做准备。
# tar -zxvffuse-2.8.3.tar.gz
# cd fuse-2.8.3
# ./configure
# make&&make install
# echo 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH' >>/etc/profile
# source /etc/profile
mfsmount工具安装:
# tar -zxvf moosefs-ce-2.0.43-1.tar.gz
# cd moosefs-ce-2.0.43
# ./configure --prefix=/usr/local/mfs --sysconfdir=/usr/local/mfs/etc --localstatedir=/usr/local/mfs/lib --disable-mfsmaster --disable-mfschunkserver --enable-mfsmount
# make&&make install
修改hosts解析:
# vi /etc/hosts
192.168.1.225 mfsmaster
启动服务:
Mfsmaster:
#/usr/local/mfs/sbin/mfsmaster start
查看端口信息:
Mfsmetalogger:
#/usr/local/mfs/sbin/mfsmetalogger start
查看与master的连接:
Mfschunkserver:
#/usr/local/mfs/sbin/mfschunkserver start
查看与master的连接:
客户端挂载:
#/usr/local/mfs/bin/mfsmount /mnt/mfs/ -H mfsmaster
查看挂载信息:
若挂载时报以下错误:
/bin/mount:unrecognized option `--no-canonicalize'
........
........
errorin fuse_mount
这是mount工具版本太低导致,升级mount工具即可:
下载util-linux-ng-2.17.tar.bz2,然后安装,替换原来的mount.
# tar jxvf util-linux-ng-2.17.tar.bz2
# cd util-linux-ng-2.17
# ./configure --prefix=/usr/local/util-linux-ng
# make&& make install
# mv /bin/mount /bin/mount.old
# ln -s /usr/local/util-linux-ng/bin/mount /bin
mfs自带cgi监控工具:
#/usr/local/mfs/sbin/mfscgiserv
lockfilecreated and locked
startingsimple cgi server (host: any , port: 9425 , rootpath:/usr/local/mfs/share/mfscgi)
这时会开启9425端口,直接使用:9425访问即可访问moose的相关监控信息:
相关阅读:
在CentOS上安装部署MooseFS分布式文件系统