当前位置: 首页 > 工具软件 > MooseFS > 使用案例 >

moosefs

彭开畅
2023-12-01
  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
 类似资料:

相关阅读

相关文章

相关问答