节点信息
主机名 | ip地址 | 软件 | 备注名 |
---|---|---|---|
mfsmaster | 192.168.100.20 | moosefs-master moosefs-cgi moosefs-cgiserv moosefs-cli | Master Servers |
metaloggers | 192.168.100.20 | moosefs-metalogger | Metaloggers,本实验安装于一起 |
mfschunkserver01 | 192.168.100.21 | moosefs-chunkserver | Chunkservers |
mfschunkserver01 | 192.168.100.22 | moosefs-chunkserver | Chunkservers |
官方安装地址:https://moosefs.com/download/
硬盘空间准备参见:https://blog.csdn.net/qq_35661325/article/details/117357343
1、所有服务器都安装
# wget -O - https://ppa.moosefs.com/moosefs.key | apt-key add -
# echo "deb [arch=amd64] http://ppa.moosefs.com/moosefs-3/apt/ubuntu/focal focal main" > /etc/apt/sources.list.d/moosefs.list
# apt update
1.2、 在 mfsmaster 上运行,sudo权限:
# apt install moosefs-master moosefs-cgi moosefs-cgiserv moosefs-cli
# 启动
# systemctl start moosefs-master
# /usr/sbin/mfscgiserv start
#
1.3、在mfschunkserver01,mfschunkserver02上运行,sudo权限:
# apt install moosefs-chunkserver
1.3.1、修改文件 mfshdd.cfg 添加存储磁盘
vim /etc/mfs/mfshdd.cfg
# use hard drive '/mnt/hd7', but ignore significant change of hard drive total size (e.g. compressed file systems)
#~/mnt/hd7
/moosefs 9.8GiB
1.3.2、修改 mfschunkserver.cfg 添加连接主服务器
vim /etc/mfs/mfschunkserver.cfg
MASTER_HOST = 192.168.100.20 # 主服务器地址
# 启动
systemctl start moosefs-chunkserver
1.4、在 metaloggers 上运行,sudo权限:
# apt install moosefs-metalogger
2、启动完成后,访问主服务器 :
192.168.100.20:9425