moosefs

  1. Build moosefs
    Using Ubuntu 18.04.1, need to install many packages, including libz,…
    ./configure # install all the missing libraries, libpcap-dev, zlib1g-dev, fuse, libfuse-dev, etc. And tools such as automake, need to compile automake 1.16
    make
    Errors happen during make – it calls configuration again and this time the result is different.
    Manually change the Makefile to allow the compilation to continue.
    Edit the “configure” file to skip the unfound PKG_CONFIG, and then in the mfsclient directory edit the Makefile to add the -lfuse, -I/usr/include/fuse, and the -D_FILE_OFFSET_BITS=64

  2. make install

On each server, run make install

  1. Start mfsserver
    In /usr/local/etc/mfs, review the sample files and init mfsexports.cfg mfsmaster.cfg mfstopology.cfg
    In /usr/local/var/mfs, move metadata.mfs.empty to metadata.mfs
    Edit /etc/hosts and give itself a name of mfsmaster
# /usr/local/sbin/mfsmaster

root@tempuser-virtual-machine:/usr/local/var/mfs# ps -ef | grep mfs
nobody 5726 1 0 10:57 ? 00:00:00 mfsmaster
nobody 5727 5726 0 10:57 ? 00:00:00 mfsmaster (data writer)

Start CGI web GUI

# mfscgiserv
User chrome http://master-ip:9245
fill in the master IP on the webpage because mfsmaster is not set up in the DNS
If the mfsmaster is already configured in the /etc/hosts, it's fine.
  1. Start mfsmetalogger
    Pick a second server as the metalogger (backup). So that when the master is gone, you can recover the logs.
# cp mfsmetalogger.cfg.sample mfsmetalogger.cfg
vi set the MASTER_HOST value
# mfsmetalogger
  1. Start mfschunkserver
    Edit the file /etc/hosts to have mfsserver IP address added
# cp mfschunkserver.cfg.sample mfschunkserver.cfg
vi set the MASTER_HOST value
# cp mfshdd.cfg.sample mfshdd.cfg
vi set data path /mnt/hd1
# mkdir /mnt/hd1
# chmod 777 /mnt/hd1
# mfschunkserver

  1. Test mfsmount
# mkdir /mnt/testmnt
# mfsmount /mnt/testmnt -H 192.168.1.1 (Mfsmaster's IP)
# df -k
192.168.1.1:9421           14651264 4521728  10129536  31% /mnt/testmnt
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
MooseFS是一个可扩展的分布式文件系统,具有POSIX接口。POSIX(Portable Operating System Interface)是一个UNIX操作系统的标准化接口,它定义了一套系统调用和库函数,用于访问操作系统的基本功能。MooseFS的POSIX接口使用户能够以传统的方式访问和操作MooseFS文件系统。 MooseFS的POSIX接口提供了类似于本地文件系统的操作方式,包括文件的打开、读写、截断、重命名、删除等。用户可以使用标准的File I/O函数(如open、read、write等)对MooseFS的文件进行操作,而无需了解底层存储和数据分布的细节。 通过MooseFS的POSIX接口,用户可以将MooseFS看作一个连接到本地机器的文件系统,从而方便地进行文件的读写和管理。用户可以使用常见的命令行工具(如cp、mv、rm等)或者程序的标准文件操作函数与MooseFS进行交互。 MooseFS的POSIX接口还支持一些额外的特性,如扩展属性(extended attribute)、文件锁定(file locking)等。扩展属性可以让用户在文件上附加一些自定义的元数据信息,而文件锁定可以防止多个进程同时对同一文件进行修改引起的数据冲突问题。 总之,MooseFS的POSIX接口为用户提供了一种方便、易用的方式来访问和操作MooseFS文件系统。用户可以通过标准的UNIX文件操作函数对MooseFS的文件进行读写和管理,而无需关心底层的分布式存储细节。这使得MooseFS成为一个理想的分布式文件系统解决方案,适用于需要可扩展、高性能的文件存储需求。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值