<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><div>Hi,<br></div><div><br></div><div>Adding bricks to a disperse volume is very easy and same as replica volume.<br></div><div>You just need to add bricks in the multiple of the number of bricks which you already have.<br></div><div><br></div><div>So if you have disperse volume with n+k configuration, you need to add n+k more bricks.</div><div>Example :<br></div><div>If your disperse volume is 4+2, where 2 is the redundancy count, you need to provide 6 (or multiple of 6) bricks (4+2 = 6) when you want to expand or add bricks on your volume.<br></div><div><br></div><div>I have following volume - <br></div><div>[root@apandey apandey]# gluster v info<br> <br>Volume Name: vol<br>Type: Disperse<br>Volume ID: 4826eb6e-187d-4ccc-aa89-445338ec3620<br>Status: Started<br>Snapshot Count: 0<br>Number of Bricks: 1 x (4 + 2) = 6<br>Transport-type: tcp<br>Bricks:<br>Brick1: apandey:/home/apandey/bricks/gluster/vol-1<br>Brick2: apandey:/home/apandey/bricks/gluster/vol-2<br>Brick3: apandey:/home/apandey/bricks/gluster/vol-3<br>Brick4: apandey:/home/apandey/bricks/gluster/vol-4<br>Brick5: apandey:/home/apandey/bricks/gluster/vol-5<br>Brick6: apandey:/home/apandey/bricks/gluster/vol-6<br>Options Reconfigured:<br>transport.address-family: inet<br>performance.readdir-ahead: on<br>nfs.disable: on<br>[root@apandey apandey]# <br><br></div><div>Now, If I want to add bricks in this volume I have to provide bricks in the multiple of 6. It could be 6, 12,18.....<br></div><div><br></div><div>[root@apandey apandey]# gluster v add-brick vol apandey:/home/apandey/bricks/gluster/newbrick-1 apandey:/home/apandey/bricks/gluster/newbrick-2 apandey:/home/apandey/bricks/gluster/newbrick-3 apandey:/home/apandey/bricks/gluster/newbrick-4 apandey:/home/apandey/bricks/gluster/newbrick-5 apandey:/home/apandey/bricks/gluster/newbrick-6 force<br>volume add-brick: success<br>[root@apandey apandey]# gluster v info<br> <br>Volume Name: vol<br>Type: Distributed-Disperse<br>Volume ID: 4826eb6e-187d-4ccc-aa89-445338ec3620<br>Status: Started<br>Snapshot Count: 0<br>Number of Bricks: 2 x (4 + 2) = 12<br>Transport-type: tcp<br>Bricks:<br>Brick1: apandey:/home/apandey/bricks/gluster/vol-1<br>Brick2: apandey:/home/apandey/bricks/gluster/vol-2<br>Brick3: apandey:/home/apandey/bricks/gluster/vol-3<br>Brick4: apandey:/home/apandey/bricks/gluster/vol-4<br>Brick5: apandey:/home/apandey/bricks/gluster/vol-5<br>Brick6: apandey:/home/apandey/bricks/gluster/vol-6<br>Brick7: apandey:/home/apandey/bricks/gluster/newbrick-1<br>Brick8: apandey:/home/apandey/bricks/gluster/newbrick-2<br>Brick9: apandey:/home/apandey/bricks/gluster/newbrick-3<br>Brick10: apandey:/home/apandey/bricks/gluster/newbrick-4<br>Brick11: apandey:/home/apandey/bricks/gluster/newbrick-5<br>Brick12: apandey:/home/apandey/bricks/gluster/newbrick-6<br>Options Reconfigured:<br>transport.address-family: inet<br>performance.readdir-ahead: on<br>nfs.disable: on<br>[root@apandey apandey]# <br><br></div><div>--<br></div><div>Ashish<br></div><div><br></div><div><br></div><div><br></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Michel Lombart" <michellombart@outlook.be><br><b>To: </b>gluster-users@gluster.org<br><b>Sent: </b>Saturday, August 19, 2017 11:50:31 PM<br><b>Subject: </b>[Gluster-users] Add brick to a disperse volume<br><div><br></div><style><!--
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><div class="WordSection1"><p class="MsoNormal">Hello,</p><p class="MsoNormal"> </p><p class="MsoNormal">I’m using Gluster since 2 years but only with distributed volumes.</p><p class="MsoNormal"> </p><p class="MsoNormal">I’m trying now to set dispersed volumes to have some redundancy.</p><p class="MsoNormal"> </p><p class="MsoNormal">I had any problem to create a functional test volume with 4 bricks and 1 redundancy ( Number of Bricks: 1 x (3 + 1) = 4 ).</p><p class="MsoNormal"> </p><p class="MsoNormal">I had also any problem to replace a supposed faulty brick with another one.</p><p class="MsoNormal"> </p><p class="MsoNormal">My problem is that I can not add a brick to increase the size of the volume as I do with distributed ones. I would have a volume of 5 bricks ( Number of Bricks: 1 x (4 + 1) = 5 ).</p><p class="MsoNormal"> </p><p class="MsoNormal">The command « gluster volume add-brick test-volume 10.0.13.192:/data » return « volume add-brick: failed: Incorrect number of bricks supplied 1 with count 4 ».</p><p class="MsoNormal"> </p><p class="MsoNormal">The documentation and Google was helpless.</p><p class="MsoNormal"> </p><p class="MsoNormal">How can I do ?</p><p class="MsoNormal"> </p><p class="MsoNormal">Thank for your help.</p><p class="MsoNormal"> </p><p class="MsoNormal">Michel.</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal"> </p></div><br>_______________________________________________<br>Gluster-users mailing list<br>Gluster-users@gluster.org<br>http://lists.gluster.org/mailman/listinfo/gluster-users</div><div><br></div></div></body></html>