1.2.2.
一些有趣的
volume
1.2.2.1. 复制卷
官方支持复制卷和分布式复制卷,而生产环境中常用的是分布式复制卷,首
先这里引用一些官方的图片,来理解一下什么是分布式复制卷。
图 1.1
这里图片给出的是一个 2 个副本的复制卷,生产环境中通常使用 3 个副本
的复制卷,创建的命令如下所示.
1. [root@gfs01 ~]# gluster volume create test-replica replica 3 192.16
8.0.{110,111,112}:/glusterfs/test-replica
2. volume create: test-replica: failed: The brick 192.168.0.110:/glusterfs
/test-replica is being created in the root partition. It is recommended th
at you don't use the system's root partition for storage backend. Or us
e 'force' at the end of the command if you want to override this behav
ior.
3. [root@gfs01 ~]# gluster volume create test-replica replica 3 192.16
8.0.{110,111,112}:/glusterfs/test-replica force
评论0