MooseFS分布式存储配置实现
下载源码包:http://sourceforge.net/projects/moosefs/ http://sourceforge.net/projects/fuse/ yum -y install kernel-devel util-linux zlib-devel [master server安装] groupadd mfs useradd -g mfs mfs cd ~ tar zxvf mfs-1.6.25-1.tar.gz cd mfs* ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var/lib --with-default-user=mfs \ --with-default-group=mfs --disable-mfschunkserver --disable-mfsmount cp mfsmaster.cfg.dist mfsmaster.cfg #主控制服务器设置 cp mfsmetalogger.cfg.dist mfsmetalogger.cfg cp mfsexports.cfg.dist mfsexports.cfg #哪些客户端可以远程挂在MooseFS文件系统 cd /var/lib/mfs #二进制Metadata目录 cp metadata.mfs.empty metadata.mfs vim /etc/hosts 192.168.1.201 mfsmaster /usr/sbin/mfsmaster start /usr/sbin/mfscgiserv #MooseFS运行状态 http://192.168.1.201:9425/mfs.cgi [Backup server Metalogger安装] groupadd mfs useradd -g mfs mfs cd ~ tar zxvf mfs-1.6.25-1.tar.gz cd mfs* ./configure --prefix=/usr --sysconfdir=/etc \ > --localstatedir=/var/lib --with-default-user=mfs \ > --with-default-group=mfs --disable-mfschunkserver --disable-mfsmount make && make install cd /etc cp mfsmetalogger.cfg.dist mfsmetalogger.cfg vim /etc/hosts 192.168.1.201 mfsmaster /usr/sbin/mfsmetalogger start [chunk server安装] groupadd mfs useradd -g mfs mfs cd ~ tar zxvf mfs-1.6.25-1.tar.gz cd mfs* ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var/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 mkdir /data/mfs1 mkdir /data/mfs2 chown -R mfs:mfs /data/mfs1 chown -R mfs:mfs /data/mfs2 vim /etc/hosts 192.168.1.201 mfsmaster /usr/sbin/mfschunkserver start 【客户端配置】 tar zxvf fuse-2.9.2.tar.gz cd fuse* ./configure make && make install export PKG_CONFIG_PATH=/usr/local/fuse/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH source /etc/profile modprobe fuse lsmod | grep fuse groupadd mfs useradd -g mfs mfs cd ~ tar zxvf mfs-1.6.25-1.tar.gz cd mfs* ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var/lib --with-default-user=mfs \ --with-default-group=mfs --disable-mfsmaster \ --disable-mfschunkserver --enable-mfsmount make && make install vim /etc/hosts 192.168.1.201 mfsmaster mkdir -p /data/mfs chown -R mfs:mfs /data/mfs /usr/bin/mfsmount /data/mfs -H mfsmaster
相关推荐
xinlugang 2019-12-14
echozj 2016-07-11
echozj 2015-08-20
harryptter 2015-08-20
Hhaile 2012-05-19
刘振锋 2011-03-16
miaoheping 2014-06-24
刘振锋 2013-11-07
echozj 2013-06-10
刘振锋 2013-06-10