<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi,<br></div><div><br></div><div>Yes, you are right, the better question is "how do I add storage capacity to an<br>existing disperse volume?"</div><div><br></div><div>In this case, the steps which I provided in last mail are valid and you can follow those <br></div><div>steps to add more capacity to existing disperse volume.<br></div><div><br></div><div>---<br></div><div>Ashish<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>"William Ferrell" <willfe@gmail.com><br><b>To: </b>"Ashish Pandey" <aspandey@redhat.com><br><b>Cc: </b>gluster-users@gluster.org<br><b>Sent: </b>Wednesday, September 25, 2019 7:12:47 PM<br><b>Subject: </b>Re: [Gluster-users] Add single brick to dispersed volume?<br><div><br></div>Thanks for the quick reply!<br><div><br></div>So it sounds like I did misunderstand how disperse volumes work, and I<br>can't add bricks one at a time (I have to add bricks in groups of N,<br>where N is the original disperse count). Sorry for mixing up the<br>terminology in explaining my question.<br><div><br></div>I guess the better question is "how do I add storage capacity to an<br>existing disperse volume?"<br><div><br></div>Here's the output from the two commands you asked for, btw.<br><div><br></div>root@gluster1:~# gluster volume info test1<br><div><br></div>Volume Name: test1<br>Type: Disperse<br>Volume ID: 73ed8639-4ace-46c8-9807-874aba8a33c8<br>Status: Started<br>Snapshot Count: 0<br>Number of Bricks: 1 x (2 + 1) = 3<br>Transport-type: tcp<br>Bricks:<br>Brick1: gluster1:/export/gfs/brick<br>Brick2: gluster2:/export/gfs/brick<br>Brick3: gluster3:/export/gfs/brick<br>Options Reconfigured:<br>nfs.disable: on<br>transport.address-family: inet<br><div><br></div>root@gluster1:~# gluster volume status test1<br>Status of volume: test1<br>Gluster process TCP Port RDMA Port Online Pid<br>------------------------------------------------------------------------------<br>Brick gluster1:/export/gfs/brick 49152 0 Y 601<br>Brick gluster2:/export/gfs/brick 49152 0 Y 664<br>Brick gluster3:/export/gfs/brick 49152 0 Y 662<br>Self-heal Daemon on localhost N/A N/A Y 6992<br>Self-heal Daemon on gluster4 N/A N/A Y 10981<br>Self-heal Daemon on gluster3 N/A N/A Y 6986<br>Self-heal Daemon on gluster2 N/A N/A Y 7010<br><div><br></div>Task Status of Volume test1<br>------------------------------------------------------------------------------<br>There are no active volume tasks<br><div><br></div>On Wed, Sep 25, 2019 at 9:31 AM Ashish Pandey <aspandey@redhat.com> wrote:<br>><br>> Hi William,<br>><br>> If you want to increase capacity of a disperse volume, you have to add bricks to your existing disperse volume.<br>> The number of bricks you add should be in multiple of the existing configuration.<br>><br>> For example:<br>><br>> If you have created a disperse volume like this -<br>><br>> gluster volume create myvol disperse 3 redundancy 1 host1:brick1 host2:brick2 host3:brick3<br>><br>> This is a 1 x (2+1) disperse volume.<br>> Now if you want to add some bricks to this volume, you have to do following -<br>><br>> gluster volume add-brick myvol host1:brick11 host2:brick22 host3:brick33<br>> which will add 3 bricks in the form of one new sub volume - 2 x (2+1)<br>><br>> or you can do this<br>><br>> gluster volume add-brick myvol host1:brick11 host2:brick22 host3:brick33 host1:brick111 host2:brick222 host3:brick333<br>> which will add 6 bricks in the form of two new sub volume - 3 x (2+1)<br>><br>> You mixed replication and disperse words so I am not sure which type of volume you have created. However, for replica volume also you have to add bricks in multiple.<br>><br>> In these type of queries, it would be better to provide information about volumes which would help us to understand your questions.<br>><br>> gluster v <volume name> info<br>> gluster v <volume name> status<br>><br>> ---<br>> Ashish<br>><br>> ________________________________<br>> From: "William Ferrell" <willfe@gmail.com><br>> To: gluster-users@gluster.org<br>> Sent: Wednesday, September 25, 2019 6:02:37 PM<br>> Subject: [Gluster-users] Add single brick to dispersed volume?<br>><br>> Hello,<br>><br>> I'm just getting started with GlusterFS, so please forgive what's<br>> probably a newbie question. I searched the mailing list archives and<br>> didn't see anything about this, so I figured I'd just ask.<br>><br>> I'm running four VMs on a single machine to learn the ropes a little<br>> bit. Each VM is set up the same way, with an OS disk and a separate<br>> disk (formatted as xfs) for use as a brick.<br>><br>> Initially I created a dispersed volume using three bricks with<br>> replication 1. That seems to work pretty well. Now I'm trying to add a<br>> fourth brick to the volume, but am receiving an error when I try:<br>><br>> root@gluster1:~# gluster volume add-brick test1 gluster4:/export/gfs/brick<br>> volume add-brick: failed: Incorrect number of bricks supplied 1 with count 3<br>><br>> Have I misunderstood how dispersed volumes work? I was under the<br>> impression (from the documentation at<br>> https://docs.gluster.org/en/latest/Administrator%20Guide/Managing%20Volumes/#expanding-volumes)<br>> that bricks could be added to dispersed volumes so long as they were<br>> added N at a time, where N is the replication value. This error<br>> message makes it sound like I need to add three bricks at once<br>> instead.<br>><br>> Is it possible to expand dispersed volumes like this? Or would I be<br>> better off doing this with a "regular" replicated volume? I'm<br>> interested in using dispersed volumes because of the space savings,<br>> but I'm a bit confused about how expansion works for them.<br>><br>> Thanks for you help!<br>> ________<br>><br>> Community Meeting Calendar:<br>><br>> APAC Schedule -<br>> Every 2nd and 4th Tuesday at 11:30 AM IST<br>> Bridge: https://bluejeans.com/118564314<br>><br>> NA/EMEA Schedule -<br>> Every 1st and 3rd Tuesday at 01:00 PM EDT<br>> Bridge: https://bluejeans.com/118564314<br>><br>> Gluster-users mailing list<br>> Gluster-users@gluster.org<br>> https://lists.gluster.org/mailman/listinfo/gluster-users<br>><br><div><br></div><br>-- <br>William W. Ferrell<br>Software Engineer<br>http://willfe.com/ -- willfe@gmail.com<br>________<br><div><br></div>Community Meeting Calendar:<br><div><br></div>APAC Schedule -<br>Every 2nd and 4th Tuesday at 11:30 AM IST<br>Bridge: https://bluejeans.com/118564314<br><div><br></div>NA/EMEA Schedule -<br>Every 1st and 3rd Tuesday at 01:00 PM EDT<br>Bridge: https://bluejeans.com/118564314<br><div><br></div>Gluster-users mailing list<br>Gluster-users@gluster.org<br>https://lists.gluster.org/mailman/listinfo/gluster-users<br></div><div><br></div></div></body></html>