Server1:master 172.25.77.1
Server2:chunkserver 172.25.77.2
Server3:chunkserver 172.25.77.4
物理机:172.25.77.250 :测试
[root@mfs1 rhel6]# yum install moosefs-master-3.0.100-1.rhsysv.x86_64.rpm
[root@mfs1 rhel6]# yum install moosefs-cgi-3.0.100-1.rhsysv.x86_64.rpm -y
[root@mfs1 rhel6]# yum install moosefs-cgiserv-3.0.100-1.rhsysv.x86_64.rpm -y
[root@mfs1 rhel6]# /etc/init.d/moosefs-master start
Starting mfsmaster: [ OK ]
[root@mfs1 rhel6]# /etc/init.d/moosefs-cgiserv start
Starting mfscgiserv: [ OK ]
[root@mfs1 rhel6]# netstat -antlp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:9419 0.0.0.0:* LISTEN 1146/mfsmaster
tcp 0 0 0.0.0.0:9420 0.0.0.0:* LISTEN 1146/mfsmaster
tcp 0 0 0.0.0.0:9421 0.0.0.0:* LISTEN 1146/mfsmaster
tcp 0 0 0.0.0.0:9425 0.0.0.0:* LISTEN 1153/python
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 908/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 985/master
tcp 0 0 172.25.77.1:22 172.25.77.250:37617 ESTABLISHED 1067/sshd
tcp 0 0 :::22 :::* LISTEN 908/sshd
tcp 0 0 ::1:25 :::* LISTEN 985/master
[root@mfs1 rhel6]#
mfsmaster
[root@server1 mfs]# vim /etc/hosts
server:2
[root@mfs2 ~]# yum install moosefs-chunkserver-3.0.97-1.rhsysv.x86_64.rpm -y
[root@server2 ~]# cd /etc/mfs/
[root@server2 mfs]# ls
mfschunkserver.cfg mfschunkserver.cfg.sample mfshdd.cfg mfshdd.cfg.sample
[root@server2 mfs]# vim mfshdd.cfg 给文件最后添加一个目录,然后创建;
在mnt下创建chunk目录
启动服务
[root@server2 mfs]# /etc/init.d/moosefs-chunkserver start
Starting mfschunkserver: [ OK ]
(需要做解析)
Server3操作如server2,在/mnt下创建chunk2即可;(配置文件也写chunk2)
此时刷新mfs界面:
物理机:
[root@foundation77 3.0.97]# yum install -y moosefs-client-3.0.97-1.rhsystemd.x86_64.rpm