<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[运维进行时]]></title> 
<link>https://blog.liuts.com/index.php</link> 
<description><![CDATA[互联网运维与架构]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[运维进行时]]></copyright>
<item>
<link>https://blog.liuts.com/post/201/</link>
<title><![CDATA[MooseFS安装笔记]]></title> 
<author>刘天斯 &lt;liutiansi@gmail.com&gt;</author>
<category><![CDATA[MooseFS]]></category>
<pubDate>Mon, 07 Jun 2010 14:39:07 +0000</pubDate> 
<guid>https://blog.liuts.com/post/201/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp; 参考了老田的译文《moosefs-step-by-step-tutorial-cn》，自己也着手部署测试环境，现将安装过程整理出来。<br/><strong>安装环境</strong><br/>Master Server<br/>192.168.72.32&nbsp;&nbsp;&nbsp;&nbsp;Centos5.4(64X)<br/><br/>Metalogger Server<br/>192.168.17.33&nbsp;&nbsp;&nbsp;&nbsp;Centos5.4(64X)<br/><br/>Chunk Servers<br/>192.168.17.34&nbsp;&nbsp;&nbsp;&nbsp;Centos5.4(64X)<br/>192.168.17.35&nbsp;&nbsp;&nbsp;&nbsp;Centos5.4(64X)<br/><br/>Client Server<br/>192.168.17.36&nbsp;&nbsp;&nbsp;&nbsp;Centos5.4(64X)<br/>192.168.17.41&nbsp;&nbsp;&nbsp;&nbsp;Centos5.4(64X)<br/>192.168.17.42&nbsp;&nbsp;&nbsp;&nbsp;Centos5.4(64X)<br/>192.168.17.43&nbsp;&nbsp;&nbsp;&nbsp;Centos5.4(64X)<br/><br/><strong>master 安装</strong><br/>mkdir -p /home/install/moosefs/<br/>cd /home/install/moosefs/<br/>groupadd mfs<br/>useradd -g mfs mfs<br/><br/>wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz<br/>tar -zxvf mfs-1.6.15.tar.gz<br/>cd mfs-1.6.15<br/>./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/www/lib --with-default-user=mfs --with-default-group=mfs --disable-mfschunkserver --disable- <br/>mfsmount<br/>make && make install<br/><br/>cd /etc/<br/>cp mfsmaster.cfg.dist mfsmaster.cfg<br/>cp mfsmetalogger.cfg.dist mfsmetalogger.cfg<br/>cp mfsexports.cfg.dist mfsexports.cfg<br/><br/>vi mfsexports.cfg<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>192.168.0.0/16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rw,alldirs,maproot=0<br/></div></div><br/>cd /www/lib/mfs<br/>cp metadata.mfs.empty metadata.mfs<br/><br/>vi /etc/hosts<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>192.168.17.32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mfsmaster<br/></div></div><br/>运行mfs服务<br/>/usr/sbin/mfsmaster start<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>master <-> metaloggers module: listen on *:9419<br/>master <-> chunkservers module: listen on *:9420<br/>main master server module: listen on *:9421<br/></div></div><br/>运行监控平台<br/>/usr/sbin/mfscgiserv<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>starting simple cgi server (host: any , port: 9425 , rootpath: /usr/share/mfscgi)<br/></div></div><br/><br/><strong>Backup server (metalogger) 安装</strong><br/>mkdir -p /home/install/moosefs/<br/>cd /home/install/moosefs/<br/>groupadd mfs<br/>useradd -g mfs mfs<br/><br/>wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz<br/>tar -zxvf mfs-1.6.15.tar.gz<br/>cd mfs-1.6.15<br/>./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/www/lib --with-default-user=mfs --with-default-group=mfs --disable-mfschunkserver --disable- <br/>mfsmount<br/>make && make install<br/><br/>cd /etc/<br/>cp mfsmetalogger.cfg.dist mfsmetalogger.cfg<br/><br/>vi /etc/hosts<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>192.168.17.32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mfsmaster<br/></div></div><br/>/usr/sbin/mfsmetalogger start<br/><br/><strong>Chunk servers安装</strong><br/>mkdir -p /home/install/moosefs/<br/>cd /home/install/moosefs/<br/>groupadd mfs<br/>useradd -g mfs mfs<br/><br/>wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz<br/>tar -zxvf mfs-1.6.15.tar.gz<br/>cd mfs-1.6.15<br/> ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/www/lib --with-default-user=mfs --with-default-group=mfs --disable-mfsmaster<br/>make && make install<br/><br/>cd /etc/<br/>cp mfschunkserver.cfg.dist mfschunkserver.cfg<br/>cp mfshdd.cfg.dist mfshdd.cfg<br/><br/>vi /etc/hosts<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>192.168.17.32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mfsmaster<br/></div></div><br/>mkdir /www/mfschunks<br/>chown -R mfs:mfs /www/mfschunks<br/><br/>vi /etc/mfshdd.cfg<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>/www/mfschunks<br/></div></div><br/>/usr/sbin/mfschunkserver start<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>working directory: /www/lib/mfs<br/>lockfile created and locked<br/>initializing mfschunkserver modules ...<br/>hdd space manager: scanning folder /www/mfschunks/ ...<br/>hdd space manager: /www/mfschunks/: 0 chunks found<br/>hdd space manager: scanning complete<br/>main server module: listen on *:9422<br/>no charts data file - initializing empty charts<br/>mfschunkserver daemon initialized properly<br/></div></div><br/><strong>Client Server安装</strong><br/>groupadd mfs<br/>useradd -g mfs mfs<br/><br/>mkdir -p /home/install/moosefs/<br/>cd /home/install/moosefs/<br/>wget http://m.install.server.com/install/moosefs/fuse-2.7.6.tar.gz<br/>tar -zxvf fuse-2.7.6.tar.gz<br/>cd fuse-2.7.6<br/>./configure --prefix=/usr<br/>make<br/>make install<br/><span style="color: #DC143C;">一定要运行以下export命令，不然挂载moosefs系统会失败</span><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>export&nbsp;&nbsp;PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH<br/></div></div><br/>cd ../<br/>wget http://m.install.server.com/install/moosefs/mfs-1.6.15.tar.gz<br/>tar -zxvf mfs-1.6.15.tar.gz<br/>cd mfs-1.6.15<br/> ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/www/lib --with-default-user=mfs --with-default-group=mfs --disable-mfsmaster --disable- <br/>mfschunkserver<br/>make && make install<br/><br/>vi /etc/hosts<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>192.168.17.32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mfsmaster<br/></div></div><br/>开始挂接操作<br/>mkdir -p /mnt/mfs<br/>/usr/bin/mfsmount /mnt/mfs -H mfsmaster<br/><br/>安装完毕。<br/>Tags - <a href="https://blog.liuts.com/tags/moosefs/" rel="tag">moosefs</a> , <a href="https://blog.liuts.com/tags/%25E5%25AE%2589%25E8%25A3%2585%25E7%25AC%2594%25E8%25AE%25B0/" rel="tag">安装笔记</a>
]]>
</description>
</item><item>
<link>https://blog.liuts.com/post/201/#blogcomment110</link>
<title><![CDATA[[评论] MooseFS安装笔记]]></title> 
<author>higkoo &lt;higkoo@tom.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sat, 24 Jul 2010 07:31:40 +0000</pubDate> 
<guid>https://blog.liuts.com/post/201/#blogcomment110</guid> 
<description>
<![CDATA[ 
	为什么用moosefs呢？ 相信一定有你的理由<br/><br/>希望能出一篇和其它文件系统性能比较的文章，譬如：和原生的ext3、xfs等
]]>
</description>
</item><item>
<link>https://blog.liuts.com/post/201/#blogcomment2465</link>
<title><![CDATA[[评论] MooseFS安装笔记]]></title> 
<author>铝单板 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sun, 10 Aug 2014 06:05:33 +0000</pubDate> 
<guid>https://blog.liuts.com/post/201/#blogcomment2465</guid> 
<description>
<![CDATA[ 
	呵呵，过来支持一下博主
]]>
</description>
</item>
</channel>
</rss>