Debian6 搭建GlusterFS集群-Striped Volumes

 

    这一篇讲解构建 Striped Volumes:条带式卷。Striped Volumes类似于raid0, stripe数等于volume中组成bricks的存储服务器数。文件分成数据块,以Round Robin方式写到bricks中,性能比较高。

    创建Striped Volumes

    创建横跨三台服务器的条带卷

gluster volume create Striped-volume stripe 3 GlusterFS-Server1:/opt/Striped GlusterFS-Server2:/opt/Striped GlusterFS-Server3:/opt/Striped

    如图:

   查看Striped-volume的信息

gluster volume info Striped-volume

  如图:

Debian6 搭建GlusterFS集群-Striped Volumes_第1张图片

   启动Striped-volume 并查看状态

Debian6 搭建GlusterFS集群-Striped Volumes_第2张图片

    在客户端挂载Striped-volume

mount -t glusterfs GlusterFS-Server3:/Striped-volume /mnt

    如图

Debian6 搭建GlusterFS集群-Striped Volumes_第3张图片

    测试在/mnt写入100M数据

dd if=/dev/zero of=/mnt/gluster-dat bs=1M count=100

   如图

Debian6 搭建GlusterFS集群-Striped Volumes_第4张图片

    因为stripe是3,所以在三台存储服务器上也会看到相应的文件,如图

Debian6 搭建GlusterFS集群-Striped Volumes_第5张图片

Debian6 搭建GlusterFS集群-Striped Volumes_第6张图片

Debian6 搭建GlusterFS集群-Striped Volumes_第7张图片

你可能感兴趣的:(Debian6,Volumes)