[Gluster-users] Problem adding brick to an existing volume

Sakshi Bansal sabansal at redhat.com
Tue Apr 28 11:44:53 UTC 2015


Hi,

> root at srvdst01:~# gluster volume add-brick videos srv3:/srv/vol1
> volume add-brick: failed: Incorrect number of bricks supplied 1 with count 2

It is a distribute-replica type of volume with replica count 2. Hence 
whenever you add bricks you have to add bricks in multiple of 2. 
Hence the error - Incorrect number of bricks supplied 1 with count 2.

> Ok, trying to change the num of replica's or whatever just results in

> root at srvdst01:~# gluster volume add-brick videos replica 3 
> srv3:/srv/vol1 (or vol3 or vol4, this doesnt matter)
> volume add-brick: failed: Operation failed

You can just add bricks in multiple of 2 instead of changing the replica count. Also in the above
command you have given the replica count as 3 yet supplied just one brick, hence the command fails.



Thanks,
Sakshi Bansal


More information about the Gluster-users mailing list