Distributed File System MFS MFS MASTER deployment [2]

MFS version

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

Download MFS Address: http://sourceforge.net/projects/moosefs/files/moosefs/

Master deployment server MFS-MASTER

[root@trunk_190 mfs-1.6.27]# mkdir /usr/local/mfs
[root@trunk_190 mfs-1.6.27]# useradd mfs -s /sbin/nologin -u 513

[root@trunk_190 mfs-1.6.27]# ./configure --prefix=/usr/local/mfs --with-default-user=mfs --with-default-group=mfs

[root@trunk_190 mfs-1.6.27]# make &&make install

MASTER After installation is complete, the sample will generate .dist configuration files in / usr / local / mfs / etc / mfs

mfschunkserver.cfg.dist mfshdd.cfg.dist mfsmetalogger.cfg.dist

mfsexports.cfg.dist mfsmaster.cfg.dist mfstopology.cfg.dist

# The default configuration file path / usr / local / mfs / etc / mfs /

## MASTER need to look at several configuration files / usr / local / mfs / etc

mfsmaster.cfg、mfsexports.cfg、mfstopology.cfg

Start master mfs services:

[root@trunk_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 !!!

According Tip: mv /usr/local/mfs/var/mfs/metadata.mfs.empty /usr/local/mfs/var/mfs/metadata.mfs

[root@trunk_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 / # default configuration file path has been changed to / 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

    Start a little three ports:

MATOML_LISTEN_PORT = 9419

MATOCS_LISTEN_PORT = 9420

MATOCL_LISTEN_PORT = 9421

CGI start monitoring, check the running of the entire MooseFS browser

[root@trunk_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)

Browser access:

http://192.168.1.190:9425

8c3ff54f4867457695816793085776e3

Reproduced in: https: //www.cnblogs.com/rockbes/p/3989395.html

Guess you like

Origin blog.csdn.net/weixin_34132768/article/details/93691954