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
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值