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 Control Server MFS-MASTER deployment
[[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
After the master is installed, the. Dist configuration sample file is generated under/usr/local/MFs/etc/MFs.
Mfschunkserver. cfg. Dist mfshdd. cfg. Dist mfsmetalogger. cfg. Dist
Mfsexports. cfg. Dist mfsmaster. cfg. Dist mfstopology. cfg. Dist
# Default configuration file path/usr/local/MFs/etc/MFs/
# The master needs several configuration files/usr/local/MFs/etc
Mfsmaster. cfg, mfsexports. cfg, mfstopology. cfg
Start the master MFs service:
[[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 !!!
Follow the prompts: MV/usr/local/MFs/var/MFs/metadata. MFs. Empty/usr/local/MFs/var/MFs/metadata. MFs
[[E-mail 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/# The 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 X: 9419
Master <-> chunkservers module: Listen on *: 9420
Master Server Module: Listen on *: 9421
Mfsmaster daemon initialized properly
Start the following three ports:
Matoml_listen_port = 9419
Matocs_listen_port = 9420
Matocl_listen_port = 9421
Start CGI monitoring and use a browser to view the running status of the entire moosefs.
[[E-mail 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)
Browser access:
Http: // 192.168.1.190: 9425
MFs Distributed File System [2] MFs master deployment