MFS版本
mfs-1.6.27
MFS-MASTER
192.168.1.190
MFS-CHUNKSERVER1
192.168.1.252
MFS-CHUNKSERVER2
192.168.1.188
MFS-client
192.168.1.52
下载MFS地址:http://sourceforge.net/projects/moosefs/files/moosefs/
主控服务器MFS-MASTER部署
[[email protected]_190 mfs-1.6.27]# mkdir /usr/local/mfs
[[email protected]_190 mfs-1.6.27]# useradd mfs -s /sbin/nologin -u 513
[[email protected]_190 mfs-1.6.27]# ./configure --prefix=/usr/local/mfs --with-default-user=mfs --with-default-group=mfs
[[email protected]_190 mfs-1.6.27]# make &&make install
MASTER安装完成后,会在/usr/local/mfs/etc/mfs 下生成.dist的配置样例文件
mfschunkserver.cfg.dist mfshdd.cfg.dist mfsmetalogger.cfg.dist
mfsexports.cfg.dist mfsmaster.cfg.dist mfstopology.cfg.dist
#默认配置文件路径/usr/local/mfs/etc/mfs/
##MASTER 需要一下几个配置文件/usr/local/mfs/etc
mfsmaster.cfg、mfsexports.cfg、mfstopology.cfg
启动master mfs服务:
[[email protected]_190 etc]# /usr/local/mfs/sbin/mfsmaster start
ERROR:
oading metadata ...
can‘t open metadata file
if this is new instalation then rename /usr/local/mfs/var/mfs/metadata.mfs.empty as /usr/local/mfs/var/mfs/metadata.mfs
init: file system manager failed !!!
根据提示: mv /usr/local/mfs/var/mfs/metadata.mfs.empty /usr/local/mfs/var/mfs/metadata.mfs
[[email protected]_190 mfs]# /usr/local/mfs/sbin/mfsmaster start
default sysconf path has changed - please move mfsmaster.cfg from /usr/local/mfs/etc/ to /usr/local/mfs/etc/mfs/#默认配置文件路径已经更改到/usr/local/mfs/etc/mfs/
working directory: /usr/local/mfs/var/mfs
lockfile created and locked
initializing mfsmaster modules ...
loading sessions ... ok
sessions file has been loaded
default sysconf path has changed - please move mfsexports.cfg from /usr/local/mfs/etc/ to /usr/local/mfs/etc/mfs/
exports file has been loaded
default sysconf path has changed - please move mfstopology.cfg from /usr/local/mfs/etc/ to /usr/local/mfs/etc/mfs/
mfstopology: incomplete definition in line: 7
mfstopology: incomplete definition in line: 7
mfstopology: incomplete definition in line: 22
mfstopology: incomplete definition in line: 22
mfstopology: incomplete definition in line: 28
mfstopology: incomplete definition in line: 28
topology file has been loaded
loading metadata ...
create new empty filesystemmetadata file has been loaded
no charts data file - initializing empty charts
master <-> metaloggers module: listen on *:9419
master <-> chunkservers module: listen on *:9420
main master server module: listen on *:9421
mfsmaster daemon initialized properly
启动了一下3个端口:
MATOML_LISTEN_PORT = 9419
MATOCS_LISTEN_PORT = 9420
MATOCL_LISTEN_PORT = 9421
启动CGI监控,用浏览器查看整个MooseFS的运行情况
[[email protected]_190 mfs]# /usr/local/mfs/sbin/mfscgiserv
lockfile created and locked
starting simple cgi server (host: any , port: 9425 , rootpath: /usr/local/mfs/share/mfscgi)浏览器访问:
http://192.168.1.190:9425