Description of problem: Summary says all. How reproducible: always Steps to Reproduce: 1. gluster volume create test replica 2 transport tcp server:/test1 server:/test2 2. gluster volume add-brick test server:/test3 server:/test4 3. gluster volume info test Actual results: Volume Name: test Type: Distributed-Replicate Status: Created Number of Bricks: 2 x 2 = 4 Transport-type: tcp Bricks: Brick1: server:/test1 Brick2: server:/test2 Brick3: server:/test3 Brick4: server:/test4 Expected results: Volume Name: test Type: Replicate Status: Created Number of Bricks: 4 Transport-type: tcp Bricks: Brick1: server:/test1 Brick2: server:/test2 Brick3: server:/test3 Brick4: server:/test4 Additional info: In documentation at http://download.gluster.com/pub/gluster/glusterfs/3.2/Documentation/AG/html/sect-Administration_Guide-Managing_Volumes-Expanding.html is nothing about changing volume type when adding brick. Also adding one brick to replicate volume as is described in documentation is not possible: gluster volume add-brick test server:/test3 Incorrect number of bricks supplied 1 for type REPLICATE with count 2
This is the correct & expected behavior. The add-brick command adds distribute subvolumes. If anything is wrong here, imho, it's the documentation.
I expected this :) So there is no option for expand replicate volume without change it to distributed-replicate. I think this need to be written clearly in documentation.
This feature is already present in master branch of glusterfs, ie, it will be present in next major release (3.3.0). Feel free to do a git clone and test the feature (or even test one of our 'qa' releases).
Thanks. I confirm version 3.3.0qa19 works well. # gluster volume create test replica 2 transport tcp server:/test1 server:/test2 # gluster volume info test Volume Name: test5 Type: Replicate Status: Created Number of Bricks: 1 x 2 = 2 Transport-type: tcp Bricks: Brick1: server:/test1 Brick2: server:/test2 # gluster volume add-brick test replica 3 server:/test3 # gluster volume info test Volume Name: test Type: Replicate Status: Created Number of Bricks: 1 x 3 = 3 Transport-type: tcp Bricks: Brick1: server:/test1 Brick2: server:/test2 Brick3: server:/test3