glusterfs 创建条带+副本的架构

  1. 云栖社区>
  2. 博客>
  3. 正文

glusterfs 创建条带+副本的架构

天飞.h 2015-10-29 15:16:40 浏览307
展开阅读全文
2条带,2副本

gluster> volume create gv_kvm stripe 2 replica 2 192.168.174.79:/opt/brick/gv_kvm 192.168.174.80:/opt/brick/gv_kvm 192.168.174.81:/opt/brick/gv_kvm 192.168.174.67:/opt/brick/gv_kvm
volume create: gv_kvm: success: please start the volume to access data
gluster> volume info gv_kvm
 
Volume Name: gv_kvm
Type: Striped-Replicate
Volume ID: 8915790c-d41c-4ce6-b528-36842ee154fe
Status: Created
Number of Bricks: 1 x 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 192.168.174.79:/opt/brick/gv_kvm
Brick2: 192.168.174.80:/opt/brick/gv_kvm
Brick3: 192.168.174.81:/opt/brick/gv_kvm
Brick4: 192.168.174.67:/opt/brick/gv_kvm
Options Reconfigured:
performance.readdir-ahead: on
gluster>



gluster> volume create gv_KVM stripe 4 replica 2 192.168.174.79:/opt/brick/gv_KVM 192.168.174.80:/opt/brick/gv_KVM 192.168.174.81:/opt/brick/gv_KVM 192.168.174.67:/opt/brick/gv_KVM 192.168.174.68:/opt/brick/gv_KVM 192.168.167.52:/opt/brick/gv_KVM 192.168.167.58:/opt/brick/gv_KVM 192.168.167.76:/opt/brick/gv_KVM   
volume create: gv_KVM: success: please start the volume to access data
gluster> volume info gv_KVM
 
Volume Name: gv_KVM
Type: Striped-Replicate
Volume ID: 1023a223-a454-405a-bf74-fc552c4432a5
Status: Created
Number of Bricks: 1 x 4 x 2 = 8
Transport-type: tcp
Bricks:
Brick1: 192.168.174.79:/opt/brick/gv_KVM
Brick2: 192.168.174.80:/opt/brick/gv_KVM
Brick3: 192.168.174.81:/opt/brick/gv_KVM
Brick4: 192.168.174.67:/opt/brick/gv_KVM
Brick5: 192.168.174.68:/opt/brick/gv_KVM
Brick6: 192.168.167.52:/opt/brick/gv_KVM
Brick7: 192.168.167.58:/opt/brick/gv_KVM
Brick8: 192.168.167.76:/opt/brick/gv_KVM
Options Reconfigured:
performance.readdir-ahead: on
gluster>

[root@sn192-168-174-65 gv]# df -h
Filesystem              Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p1        32G   14G   17G  46% /
tmpfs                   3.9G   12K  3.9G   1% /dev/shm
/dev/cciss/c0d0p3        96G  188M   91G   1% /opt
192.168.174.80:/gv_KVM  381G  244G  118G  68% /mnt/gv
[root@sn192-168-174-65 gv]#
副本为2,大小减半.
glusterfs#192.168.174.80:/gv0
                      759G  416G  304G  58% /back/chss/chss-mis

网友评论

登录后评论
0/500
评论
天飞.h
+ 关注