标签:高可用性 实验 性能 iss set 文件测试 ffffff star ip地址
分布式原理主机 | 操作系统 | IP地址 |
---|---|---|
Master Server | CentOS-7-x86_64 | 192.168.144.110 |
MetalLogger Server | CentOS-7-x86_64 | 192.168.144.112 |
Chunk Server1 | CentOS-7-x86_64 | 192.168.144.111 |
Chunk Server2 | CentOS-7-x86_64 | 192.168.144.113 |
Client | CentOS-7-x86_64 | 192.168.144.114 |
mfsmaster start
mfsmaster -s
vim /etc/mfs/mfsmetalogger.cfg
MASTER_HOST = 192.168.144.110 //添加指向master的IP地址
mfsmetalogger start
mfsmetalogger -s
vim /etc/mfs/mfschunkserver.cfg
MASTER_HOST = 192.168.144.110 //提供存储给master
vim /etc/mfs/mfshdd.cfg
/data //添加一行,在这里/data是一个给MFSmaster的分区,实际生产环境中最好使用独立的分区或磁盘挂载到此目录
mkdir /data/
chown -R mfs.mfs /data/ #更改属主属组
mfschunkserver start
mfschunkserver -s
安装方式如官方方式。
mkdir /abc
mfsmount -H 192.168.144.110 /abc
mfsgetgoal -r /abc/
/abc/:
files with goal 2 : 1
directories with goal 2 : 1
mfssetgoal -r 2 /abc/
/abc/:
inodes with goal changed: 0
inodes with goal not changed: 2
inodes with permission denied: 0
mfsgetgoal -r /abc/
/abc/:
files with goal 2 : 1
directories with goal 2 : 1
cd /abc
touch test
mfsgetgoal /abc/
/abc/: 2
mfscgiserv
标签:高可用性 实验 性能 iss set 文件测试 ffffff star ip地址
原文地址:http://blog.51cto.com/13659253/2150762