Distributed File System: moosefs-Master

Source: Internet
Author: User

 

* Download and install

Http://moosefs.org

Groupadd MFs
Useradd MFs-G MFs
Tar-zxvf mfs-1.6.20-2.tar.gz
CD mfs-1.6.20-2
./Configure -- prefix =/usr/MFs -- disable-mfschunkserver -- disable-mfsmount -- With-default-group = MFs -- With-default-user = MFs
Make
Make install

[Root @ localhost MFs] # CD etc
[Root @ localhost etc] # ls-l
Total 40
-RW-r -- 1 Root 515 Aug 17 22:53 mfschunkserver. cfg. Dist
-RW-r -- 1 Root 1121 Aug 17 22: 53 mfsexports. cfg. Dist
-RW-r -- 1 Root 57 Aug 17 22: 53 mfshdd. cfg. Dist
-RW-r -- 1 Root 661 Aug 17 22:53 mfsmaster. cfg. Dist
-RW-r -- 1 Root 381 Aug 17 22:53 mfsmetalogger. cfg. Dist
[Root @ localhost etc] # mv mfsexports. cfg. Dist mfsexports. cfg
[Root @ localhost etc] # mv mfsmaster. cfg. Dist mfsmaster. cfg
[Root @ localhost etc] # mv mfsmetalogger. cfg. Dist mfsmetalogger. cfg

* Add/etc/hosts: (mfsmaster IP)
192.168.2.241 mfsmaster

Startup error: [root @ localhost etc] #/usr/MFs/sbin/mfsmaster start
Working directory:/usr/MFs/var/MFs
Lockfile created and locked
Initializing mfsmaster modules...
Loading sessions... file not found
If it is not fresh installation then you have to restart all active mounts !!!
Exports file has been loaded
Loading metadata...
Can't open Metadata File
If this is new instalation then rename/usr/MFs/var/MFs/metadata. MFs. Empty as/usr/MFs/var/MFs/metadata. MFs
Init: File System Manager failed !!!
Error occured during initialization-exiting
Modify: [root @ localhost etc] # cd/usr/MFs/var/MFs
[Root @ localhost MFs] # mv metadata. MFs. Empty metadata. MFs

Started successfully: [root @ localhost MFs] #/usr/MFs/sbin/mfsmaster start
Working directory:/usr/MFs/var/MFs
Lockfile created and locked
Initializing mfsmaster modules...
Loading sessions... OK
Sessions file has been loaded
Exports 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 metalogger:

/Usr/MFs/sbin/mfsmetalogger start

* Disable metalogger:
/Usr/local/MFs/sbin/mfsmetalogger stop

Note: metalogger connects to port 9419 of the master node. Note that Firewall opens the port and I disabled iptables during the test. when the master server fails and needs to be restored, you can copy metadata from the metalogger server. MFs. back and the last log are indispensable.

Start MFs web GUI:
[Root @ mfsmaster ~] #/Usr/MFs/sbin/mfscgiserv
Starting simple CGI server (HOST: Any, Port: 9425, rootpath:/usr/local/share/mfscgi)

Disable MFs web GUI:
Kill/usr/MFs/sbin/mfscgiserv

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.