操作系统 OpenSuse 10.2
1.下载
1) 下载GlusterFS
http://ftp.zresearch.com/pub/gluster/glusterfs/1.3/
http://europe.gluster.org/glusterfs/1.3/
2) 下载Fuse补丁
http://ftp.zresearch.com/pub/gluster/glusterfs/fuse/
http://europe.gluster.org/glusterfs/fuse/
2.安装
1) 安装Fuse
先安装kernel-source
再安装Fuse
2) 安装GlusterFS
加上 --prefix= 后,配置文件会装在/etc下,否则配置文件装到/usr/local/etc/下
安装完成.
3) 配置 - 以2个server(172.16.0.191和172.16.0.192),1个client(172.16.0.193)为例
Server1 [172.16.0.191]
Server2 [172.16.0.192] 配置及操作同上.
Client1 [172.16.0.193] 配置
查看网络状态
4. 测试
#in Client 1
#in Client 1
#in Server 1
#in Server 2
安装,配置,测试成功。
继续高可靠性测试
#in Server 1
#in Client 1
说明当有Stoage Server DOWN时,整个cluster file system将不能使用。GlusterFS高可靠性配置可参考另一篇文章:
参考资料:
Install and run GlusterFS v1.3 in 10mins
性能优化:
Guide to Optimizing GlusterFS
附:
Self-Heal
Currently AFR doesn't do active self heal. That is, it won't fix all the inconsistencies automatically. But instead it fixes the inconsistencies when a file gets opened. Hence, if one needs to make sure all of his afr'd copies are in sync, following command may help.
A faster healing solution could be
转贴地址: http://anotherbug.blog.chinajavaworld.com/entry/4356/0/