Hari,<div><br></div><div>I think you misunderstood my statement, probably I shouldn&#39;t have mentioned existing semantics. One eg here should clarify it, so this is what I propose:<span></span></div><div><br></div><div>gluster v tier &lt;volname&gt; remove-brick tier-type hot &lt;bricks&gt; start</div><div><br></div><div>Note that my request was to add an argument i.e tier-type here. </div><div><br><br>On Monday 3 October 2016, Hari Gowtham &lt;<a href="mailto:hgowtham@redhat.com">hgowtham@redhat.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Atin,<br>
Yes, we can do it. the existing semantics need some changes because of the<br>
attach tier command (gluster volume tier &lt;VOLNAME&gt; attach &lt;BRICK&gt;...) the<br>
parsing has to be changed to accommodate the attach tier command. if used as I<br>
mentioned then we can use the functions of attach tier generic for adding brick<br>
also. Other thing with using args is. it needs changes to support the keywords<br>
like replica &lt;count&gt; also. so when we try to make a generic function for add<br>
brick on tiered volume and attach tier these keywords like replica &lt;count&gt; and<br>
tier-type &lt;hot/cold&gt; will need more changes.<br>
<br>
So i feel its better to have a separate command instead of the args.<br>
If i have been missing any pros from having the args let me know.<br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Atin Mukherjee&quot; &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;amukherj@redhat.com&#39;)">amukherj@redhat.com</a>&gt;<br>
&gt; To: &quot;Hari Gowtham&quot; &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;hgowtham@redhat.com&#39;)">hgowtham@redhat.com</a>&gt;<br>
&gt; Cc: &quot;gluster-devel&quot; &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;gluster-devel@gluster.org&#39;)">gluster-devel@gluster.org</a>&gt;, &quot;gluster-users&quot; &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;gluster-users@gluster.org&#39;)">gluster-users@gluster.org</a>&gt;<br>
&gt; Sent: Monday, October 3, 2016 2:31:40 PM<br>
&gt; Subject: Re: [Gluster-devel] New commands for supporting add/remove brick and rebalance on tiered volume<br>
&gt;<br>
&gt; On Mon, Oct 3, 2016 at 12:21 PM, Hari Gowtham &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;hgowtham@redhat.com&#39;)">hgowtham@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; The current add and remove brick commands aren&#39;t sufficient to support<br>
&gt; &gt; add/remove brick on tiered volumes.So the commands need minor changes<br>
&gt; &gt; like mentioning which tier we are doing the operation on. So in order<br>
&gt; &gt; to specify the tier on which we are performing the changes, I thought<br>
&gt; &gt; of using the following commands for add and remove brick<br>
&gt; &gt;<br>
&gt; &gt; adding brick on tiered volume:<br>
&gt; &gt; gluster volume tier &lt;volname&gt; add-hot-brick/add-cold-brick &lt;brick&gt; ...<br>
&gt; &gt; &lt;force&gt;<br>
&gt; &gt;<br>
&gt; &gt; removing brick on tierd volume:<br>
&gt; &gt; gluster volume tier &lt;volname&gt; remove-hot-brick/remove-cold-<wbr>brick &lt;brick&gt;<br>
&gt; &gt; ... &lt;start|stop|status|commit|<wbr>force&gt;<br>
&gt; &gt;<br>
&gt; &gt; I have framed it this way because once we mention details about tiering<br>
&gt; &gt; these commands become specific to tier and the syntax that we follow for<br>
&gt; &gt; commands are gluster volume component &lt;VOLNAME&gt; ...<br>
&gt; &gt; So i have made sure that the keyword tier comes after volume.<br>
&gt; &gt; Need suggestions to make these commands better.<br>
&gt; &gt;<br>
&gt; &gt; Similarly once we support add/remove brick we will be having rebalance<br>
&gt; &gt; commands and the idea is to support rebalance separately for each tier.<br>
&gt; &gt; So once we will have to rebalance status to display for which we need<br>
&gt; &gt; rebalance commands specific to tier. so these are the commands we have<br>
&gt; &gt; thought of:<br>
&gt; &gt; gluster v tier &lt;VOLNAME&gt; hot-rebalance/cold-rebalance &lt;start|stop|status&gt;<br>
&gt; &gt;<br>
&gt; &gt; Need your comments regarding this.<br>
&gt; &gt;<br>
&gt;<br>
&gt; Overall it makes sense. Just a comment here. Instead of mentioning<br>
&gt; remove/add/rebalance-hot/cold-<wbr>brick can we have an additional arg called<br>
&gt; tier-type &lt;hot/cold&gt; and continue with the existing semantics like<br>
&gt; remove-brick, add-brick and rebalance?<br>
&gt;<br>
&gt;<br>
&gt; &gt; --<br>
&gt; &gt; Regards,<br>
&gt; &gt; Hari.<br>
&gt; &gt;<br>
&gt; &gt; ______________________________<wbr>_________________<br>
&gt; &gt; Gluster-devel mailing list<br>
&gt; &gt; <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;Gluster-devel@gluster.org&#39;)">Gluster-devel@gluster.org</a><br>
&gt; &gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel" target="_blank">http://www.gluster.org/<wbr>mailman/listinfo/gluster-devel</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; --Atin<br>
&gt;<br>
<br>
--<br>
Regards,<br>
Hari.<br>
<br>
</blockquote></div><br><br>-- <br>--Atin<br>