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

MooseFS 集群安装部署

卫皓
2023-12-01

节点信息

主机名ip地址软件备注名
mfsmaster192.168.100.20moosefs-master moosefs-cgi moosefs-cgiserv moosefs-cliMaster Servers
metaloggers192.168.100.20moosefs-metaloggerMetaloggers,本实验安装于一起
mfschunkserver01192.168.100.21moosefs-chunkserverChunkservers
mfschunkserver01192.168.100.22moosefs-chunkserverChunkservers

官方安装地址: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
 类似资料: