参考了老田的译文《moosefs-step-by-step-tutorial-cn》,自己也着手部署测试环境,现将安装过程整理出来。
安装环境
Master Server
192.168.72.32 Centos5.4(64X)
Metalogger Server
192.168.17.33 Centos5.4(64X)
Chunk Servers
192.168.17.34 Centos5.4(64X)
192.168.17.35 Centos5.4(64X)
Client Server
192.168.17.36 Centos5.4(64X)
192.168.17.41 Centos5.4(64X)
192.168.17.42 Centos5.4(64X)
192.168.17.43 Centos5.4(64X)
master 安装
mkdir -p /home/install/moosefs/
cd /home/install/moosefs/
groupadd mfs
useradd -g mfs mfs
wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz
tar -zxvf mfs-1.6.15.tar.gz
cd mfs-1.6.15
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/www/lib --with-default-user=mfs --with-default-group=mfs --disable-mfschunkserver --disable-
mfsmount
make && make install
cd /etc/
cp mfsmaster.cfg.dist mfsmaster.cfg
cp mfsmetalogger.cfg.dist mfsmetalogger.cfg
cp mfsexports.cfg.dist mfsexports.cfg
vi mfsexports.cfg
192.168.0.0/16 / rw,alldirs,maproot=0
cd /www/lib/mfs
cp metadata.mfs.empty metadata.mfs
vi /etc/hosts
192.168.17.32 mfsmaster
运行mfs服务
/usr/sbin/mfsmaster start
master <-> metaloggers module: listen on *:9419
master <-> chunkservers module: listen on *:9420
main master server module: listen on *:9421
运行监控平台
/usr/sbin/mfscgiserv
starting simple cgi server (host: any , port: 9425 , rootpath: /usr/share/mfscgi)
Backup server (metalogger) 安装
mkdir -p /home/install/moosefs/
cd /home/install/moosefs/
groupadd mfs
useradd -g mfs mfs
wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz
tar -zxvf mfs-1.6.15.tar.gz
cd mfs-1.6.15
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/www/lib --with-default-user=mfs --with-default-group=mfs --disable-mfschunkserver --disable-
mfsmount
make && make install
cd /etc/
cp mfsmetalogger.cfg.dist mfsmetalogger.cfg
vi /etc/hosts
192.168.17.32 mfsmaster
/usr/sbin/mfsmetalogger start
Chunk servers安装
mkdir -p /home/install/moosefs/
cd /home/install/moosefs/
groupadd mfs
useradd -g mfs mfs
wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz
tar -zxvf mfs-1.6.15.tar.gz
cd mfs-1.6.15
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/www/lib --with-default-user=mfs --with-default-group=mfs --disable-mfsmaster
make && make install
cd /etc/
cp mfschunkserver.cfg.dist mfschunkserver.cfg
cp mfshdd.cfg.dist mfshdd.cfg
vi /etc/hosts
192.168.17.32 mfsmaster
mkdir /www/mfschunks
chown -R mfs:mfs /www/mfschunks
vi /etc/mfshdd.cfg
/www/mfschunks
/usr/sbin/mfschunkserver start
working directory: /www/lib/mfs
lockfile created and locked
initializing mfschunkserver modules ...
hdd space manager: scanning folder /www/mfschunks/ ...
hdd space manager: /www/mfschunks/: 0 chunks found
hdd space manager: scanning complete
main server module: listen on *:9422
no charts data file - initializing empty charts
mfschunkserver daemon initialized properly
Client Server安装
groupadd mfs
useradd -g mfs mfs
mkdir -p /home/install/moosefs/
cd /home/install/moosefs/
wget http://m.install.server.com/install/moosefs/fuse-2.7.6.tar.gz
tar -zxvf fuse-2.7.6.tar.gz
cd fuse-2.7.6
./configure --prefix=/usr
make
make install
一定要运行以下export命令,不然挂载moosefs系统会失败
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH
cd ../
wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz
tar -zxvf mfs-1.6.15.tar.gz
cd mfs-1.6.15
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/www/lib --with-default-user=mfs --with-default-group=mfs --disable-mfsmaster --disable-
mfschunkserver
make && make install
vi /etc/hosts
192.168.17.32 mfsmaster
开始挂接操作
mkdir -p /mnt/mfs
/usr/bin/mfsmount /mnt/mfs -H mfsmaster
安装完毕。
安装环境
Master Server
192.168.72.32 Centos5.4(64X)
Metalogger Server
192.168.17.33 Centos5.4(64X)
Chunk Servers
192.168.17.34 Centos5.4(64X)
192.168.17.35 Centos5.4(64X)
Client Server
192.168.17.36 Centos5.4(64X)
192.168.17.41 Centos5.4(64X)
192.168.17.42 Centos5.4(64X)
192.168.17.43 Centos5.4(64X)
master 安装
mkdir -p /home/install/moosefs/
cd /home/install/moosefs/
groupadd mfs
useradd -g mfs mfs
wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz
tar -zxvf mfs-1.6.15.tar.gz
cd mfs-1.6.15
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/www/lib --with-default-user=mfs --with-default-group=mfs --disable-mfschunkserver --disable-
mfsmount
make && make install
cd /etc/
cp mfsmaster.cfg.dist mfsmaster.cfg
cp mfsmetalogger.cfg.dist mfsmetalogger.cfg
cp mfsexports.cfg.dist mfsexports.cfg
vi mfsexports.cfg
引用
192.168.0.0/16 / rw,alldirs,maproot=0
cd /www/lib/mfs
cp metadata.mfs.empty metadata.mfs
vi /etc/hosts
引用
192.168.17.32 mfsmaster
运行mfs服务
/usr/sbin/mfsmaster start
引用
master <-> metaloggers module: listen on *:9419
master <-> chunkservers module: listen on *:9420
main master server module: listen on *:9421
运行监控平台
/usr/sbin/mfscgiserv
引用
starting simple cgi server (host: any , port: 9425 , rootpath: /usr/share/mfscgi)
Backup server (metalogger) 安装
mkdir -p /home/install/moosefs/
cd /home/install/moosefs/
groupadd mfs
useradd -g mfs mfs
wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz
tar -zxvf mfs-1.6.15.tar.gz
cd mfs-1.6.15
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/www/lib --with-default-user=mfs --with-default-group=mfs --disable-mfschunkserver --disable-
mfsmount
make && make install
cd /etc/
cp mfsmetalogger.cfg.dist mfsmetalogger.cfg
vi /etc/hosts
引用
192.168.17.32 mfsmaster
/usr/sbin/mfsmetalogger start
Chunk servers安装
mkdir -p /home/install/moosefs/
cd /home/install/moosefs/
groupadd mfs
useradd -g mfs mfs
wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz
tar -zxvf mfs-1.6.15.tar.gz
cd mfs-1.6.15
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/www/lib --with-default-user=mfs --with-default-group=mfs --disable-mfsmaster
make && make install
cd /etc/
cp mfschunkserver.cfg.dist mfschunkserver.cfg
cp mfshdd.cfg.dist mfshdd.cfg
vi /etc/hosts
引用
192.168.17.32 mfsmaster
mkdir /www/mfschunks
chown -R mfs:mfs /www/mfschunks
vi /etc/mfshdd.cfg
引用
/www/mfschunks
/usr/sbin/mfschunkserver start
引用
working directory: /www/lib/mfs
lockfile created and locked
initializing mfschunkserver modules ...
hdd space manager: scanning folder /www/mfschunks/ ...
hdd space manager: /www/mfschunks/: 0 chunks found
hdd space manager: scanning complete
main server module: listen on *:9422
no charts data file - initializing empty charts
mfschunkserver daemon initialized properly
Client Server安装
groupadd mfs
useradd -g mfs mfs
mkdir -p /home/install/moosefs/
cd /home/install/moosefs/
wget http://m.install.server.com/install/moosefs/fuse-2.7.6.tar.gz
tar -zxvf fuse-2.7.6.tar.gz
cd fuse-2.7.6
./configure --prefix=/usr
make
make install
一定要运行以下export命令,不然挂载moosefs系统会失败
引用
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH
cd ../
wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz
tar -zxvf mfs-1.6.15.tar.gz
cd mfs-1.6.15
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/www/lib --with-default-user=mfs --with-default-group=mfs --disable-mfsmaster --disable-
mfschunkserver
make && make install
vi /etc/hosts
引用
192.168.17.32 mfsmaster
开始挂接操作
mkdir -p /mnt/mfs
/usr/bin/mfsmount /mnt/mfs -H mfsmaster
安装完毕。
希望能出一篇和其它文件系统性能比较的文章,譬如:和原生的ext3、xfs等