<div dir="ltr">Shyam,<div><br>Thanks. What would be *extremely* useful is the ability to move data off the brick just through replace brick, where the other identified brick is a member of the current cluster (Isn&#39;t that something that would be natural?)</div>
<div><br></div><div>The *real* issue for me is that my disk hosts multiple bricks, each of whose replicas are on other bricks (higher redundancy). You can&#39;t &quot;remove&quot; a brick without taking out its replica as well. Wouldn&#39;t it be much simpler for Gluster to be able to manage this in the backend through replace-brick?</div>
<div><br></div><div>BTW, I also noticed that Gluster doesn&#39;t like it if I went down from X replicas to 1 replicas, and the X replica bricks are not specified in the order as obtained from `gluster volume info`.</div><div>
<br></div><div>Thanks,</div><div>Hari</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 30, 2014 at 8:24 PM, Shyamsundar Ranganathan <span dir="ltr">&lt;<a href="mailto:srangana@redhat.com" target="_blank">srangana@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">&gt; From: &quot;Hariharan Thantry&quot; &lt;<a href="mailto:thantry@gmail.com">thantry@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
&gt; Sent: Friday, January 31, 2014 4:23:03 AM<br>
&gt; Subject: [Gluster-users] gluster replacing a brick<br>
<div class="im"><br>
&gt; Hi folks,<br>
&gt; Is there an easy way to shrink the size of a gluster volume by replacing some<br>
&gt; of its constituent disks, and moving the data to other constituent disks?<br>
<br>
</div>Wouldn&#39;t remove-brick suffice for what you have in mind?<br>
I would think you need to remove-bricks and rebalance to get the data migrated out of the removed bricks, and then decommission those bricks (commit the remove-brick).<br>
<div class="im"><br>
&gt; I did<br>
&gt; gluster volume replace-brick &lt;volname&gt; &lt;old-brick&gt; &lt;new-brick&gt;<br>
&gt; where both &lt;old-brick&gt; and &lt;new-brick&gt; are part of the gluster setup, but it<br>
&gt; wouldn&#39;t let me do this complaining that:<br>
&gt; Brick: &lt;new-brick&gt; not available. Brick may be containing or be contained by<br>
&gt; an existing brick.<br>
<br>
</div>So &lt;new-brick&gt; is part of the same gluster volume, and hence the error (even if it was part of another gluster volume the same would happen)<br>
<div class="im"><br>
&gt; Can I remove the new-brick, wipe off the gluster artifacts [the trusted.XXX<br>
&gt; parameters], and then do the replace-brick? Will that cause any data loss?<br>
<br>
</div>&lt;new-brick&gt; is part of the gluster volume, so wiping off gluster artefacts would in turn result in data loss, or rather gluster failing to see this brick as a part of the volume etc.<br>
<br>
&gt; Thanks,<br>
&gt; Hari<br>
</blockquote></div><br></div>