MooseFS is a Fault tolerant, Highly available, Highly performing, Scaling-out, Network distributed file system. It spreads data over several physical commodity servers, which are visible to the user as one resource. For standard file operations MooseFS acts like any other Unix-like file system:
1.A hierarchical structure (directory tree)
2.Stores POSIX file attributes (permissions, last access and modification times)
3.Supports special files (block and character devices, pipes and sockets)
4.Symbolic links (file names pointing to target files, not necessarily on MooseFS) and hard links (different names of files which refer to the same data on MooseFS)
5.Access to the file system can be limited based on IP address and/or password
基本信息
实验环境:两个Ubuntu14.04计算机。
MooseFS版本:2.0.76。
安装master(在选定的master节点上操作)
添加key:
更新软件源,安装master:
拷贝/etc/mfs
下的如下文件,可以按需修改其中的参数,也可以使用默认值:
启动:
安装chunkserver(在选定的chunk节点上操作)
首先像安装master一样添加软件源,然后安装:
其中,mfschunkserver.cfg
文件的参数MASTER_HOST = mfsmaster
可以指定master的hostname,这里需要在/etc/hosts
中写明,并且如果master也作为chunkserver时,hosts中mfsmaster的ip不能使用127.0.0.1。
建立文件,文件名字可以写自己喜欢的,这里取名mfschunk:
在mfshdd.cfg
文件中添加一行/mnt/mfschunk
。启动mfschunkserver:
安装客户端
安装客户端,添加挂载点,进行挂载。mfsmaster在这里为master的hostname。
查看: