http://www.moosefs.org/
http://moosefs.com/download.html
两个手册于2015/03/05阅完
moosefs-installation
moosefs-users-manual CE版
Community Edition
Now you can install MooseFS in standard way using your favorite package manager on one of the following platforms using officially supported repository:
Ubuntu 10/12/14
Debian 5/6/7
RHEL/CentOS versions 5/6
OpenSUSE 12
FreeBSD 9.3/10
MacOS X 10.9
To get more information on how to install Community Edition of the product please read the instructions specific to your platform.
Repository branches
Our repository contains two branches: stable and current.
Version from stable branch has been tested both in the production and in our test environment. Version from current branch - only in our test environment. PRO版
MooseFS Professional
MooseFS PRO is also available from the repositories in binaries, but to run it the appropriate license key is needed.
介绍 INTRO
MooseFS is a fault tolerant, network distributed file system. It spreads data over several physical servers which are visible to the user as one resource. For standard file operations MooseFS acts as other Unix-alike file systems: 架构 ARCHITECTURE
MooseFS consists of four components:
master server
chunk server
metalogger server
mfsmount mfsmount is based on the FUSE mechanism (Filesystem in USErspace), so MooseFS is available on every Operating System with a working FUSE implementation (Linux, FreeBSD, MacOS X, etc.) 系统如何工作 HOW THE SYSTEM WORKS
容错 fault tolerant PLATFORMS
MooseFS is available on every Operating System with a working FUSE implementation:
Linux (Linux 2.6.14 and up have FUSE support included in the official kernel)
FreeBSD
OpenSolaris
MacOS X
The master server, metalogger server and chunkservers can also be run on Solaris or Windows with Cygwin. Unfortunately without FUSE it won't be possible to mount the filesystem within these operating systems.
这样以后就可以yum直接下载了
curl "http://ppa.moosefs.com/RPM-GPG-KEY-MooseFS" > /etc/pki/rpm-gpg/RPM-GPG-KEY-MooseFS
curl "http://ppa.moosefs.com/MooseFS-stable-rhsysv.repo" > /etc/yum.repos.d/MooseFS.repo
依赖于libpcap包
For Master Servers:
# yum install moosefs-ce-master
# yum install moosefs-ce-cli
For Chunkservers:
# yum install moosefs-ce-chunkserver
Installing:
moosefs-ce-chunkserver x86_64 2.0.50-1.rhsysv MooseFS 120 k
Installing for dependencies:
libpcap x86_64 14:1.4.0-1.20130826git2dbcaa1.el6 base 130 k
可以做为master的备份之用
For Metaloggers:
# yum install moosefs-ce-metalogger
For Clients:
# yum install moosefs-ce-client
Installing:
moosefs-ce-client x86_64 2.0.50-1.rhsysv MooseFS 145 k
Installing for dependencies:
fuse-libs x86_64 2.8.3-4.el6 base 74 k
libpcap x86_64 14:1.4.0-1.20130826git2dbcaa1.el6 base 130 k
For cgi:
# yum install moosefs-ce-cgiserv
Installing:
moosefs-ce-cgiserv x86_64 2.0.50-1.rhsysv MooseFS 24 k
Installing for dependencies:
moosefs-ce-cgi x86_64 2.0.50-1.rhsysv MooseFS 61 k
安装完管理服务器后,便可以用mfsmaster命令来启动master server,如果用root用户执行mfsmaster命令,则在启动后转为mfsmaster.cfg中指定的用户来运行,否则将以执行mfsmaster命令的用户来运行master server。
Master的配文
[iyunv@mfs-master mfs]# vi mfsexports.cfg
[iyunv@mfs-master mfs]# vi mfstopology.cfg
[iyunv@mfs-master mfs]# vi mfsmaster.cfg
mfsmaster.cfg是主配置文件,mfsexports.cfg是被挂接目录及权限设置。
Metaloggers的配文
[iyunv@mfs-master mfs]# vi mfsmetalogger.cfg
Chunk的配文
mfschunkserver.cfg是主配置文件,mfshdd.cfg是服务器用来分配给 MFS使用的空间,最好是一个单独的硬盘或者一个raid卷,最低要求是一个分区。
master: /var/lib/mfs下的metadata.mfs文件是当前的metadata,默认每小时都会更新,旧文件将会添加.back后缀备份即可,并同时增加changelog.*.log。当然,推荐使用moosefs metalogger来作备份恢复。