Gluster 分布式文件系统概述请查看我之前转载的文章 http://blog.youkuaiyun.com/zonelan/article/details/8468383
操作系统:Ubuntuserver 12.04.1 LTS 64bit
分布式文件系统:Gluster
测试服务器:4台ip:192.168.1.1-192.168.1.4
1、安装软件包:
apt-get install glusterfs-server glusterfs-common glusterfs-client glusterfs-dbg glusterfs-examples
2、建立分区或磁盘挂在目录
mkdir-p /export/brick1 (在所有存储节点建立)
3、挂在分区或磁盘到目录
mount/dev/sda1/export/brick1(所有节点执行挂载,分区或磁盘容量要尽量一致(对于replica模式的卷尤为重要,这种模式下会以容量小的分区或磁盘为准))
4、修改/etc/hosts文件,加入各节点机器名与IP对应关系,内容如下:
test01 192.168.1.1
test02 192.168.1.2
test03 192.168.1.3
test04 192.168.1.4
在其他节点做相同操作