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
make install
On each server, run make install
# /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.
# cp mfsmetalogger.cfg.sample mfsmetalogger.cfg
vi set the MASTER_HOST value
# mfsmetalogger
# 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
# 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