summerZBH 2012-06-04
主控服务器 Master server: 192.168.0.82 desktop82.example.com
下载tar包,将它制作为rpm包进行安装(desktop82.example.com上面)
yum install gcc make gcc-c++ rpm-build fuse-devel zlib-devel openssh-clients -y rpmbuild -tb mfs-1.6.25.tar.gz cd /root/rpmbuild/RPMS/x86_64 ls mfs-cgi-1.6.25-1.x86_64.rpm mfs-master-1.6.25-1.x86_64.rpm mfs-chunkserver-1.6.25-1.x86_64.rpm mfs-metalogger-1.6.25-1.x86_64.rpm mfs-client-1.6.25-1.x86_64.rpm
scp mfs-chunkserver-1.6.25-1.x86_64.rpm desktop81.example.com:~ scp mfs-chunkserver-1.6.25-1.x86_64.rpm desktop93.example.com:~
生成里这样五个RPM包
主控服务器 Master server 安装
rpm -ivh mfs-master-1.6.25-1.x86_64.rpm rpm -ql mfs-master /etc/mfsexports.cfg.dist /etc/mfsmaster.cfg.dist /etc/mfstopology.cfg.dist #成功安装 master 以后,系统会在/etc 目录自动生成样例配置文件,这些样例文件是以.dist 后缀命名。直接复制重命名 *********** cp /etc/mfsexports.cfg.dist /etc/mfsexports.cfg #访问控制 cp /etc/mfstopology.cfg.dist /etc/mfstopology.cfg cp /etc/mfsmaster.cfg.dist /etc/mfsmaster.cfg #主配置文件 useradd mfs vim /etc/mfsmaster.cfg #将前两行进行修改,加井号表示默认值 WORKING_USER = mfs WORKING_GROUP = mfs cd /var/lib/mfs cp metadata.mfs.empty metadata.mfs chown mfs.mfs /var/lib/mfs/ -R
vim /etc/hosts 192.168.0.82 mfsmaster #每个节点都要做这一部
cd ~ rpm -ivh mfs-cgi-1.6.25-1.x86_64.rpm cd /usr/share/mfscgi/ chmod +x *.cgi mfsmaster start mfscgiserv start
此时打开desktop82.example.com:9425就可以打开可视化的控制界面