<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
@font-face
        {font-family:+mn-ea;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:windowtext">Awesome, thanks Joe!!<br>
<br>
To answer your question, it would be for improved availability.<o:p></o:p></span></a></p>
<p class="MsoNormal"><span style="mso-bookmark:_MailEndCompose"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:windowtext"><o:p>&nbsp;</o:p></span></span></p>
<div>
<p class="MsoNormal" style="vertical-align:bottom"><span style="mso-bookmark:_MailEndCompose"><span style="font-family:&quot;Arial&quot;,sans-serif">Dan-Joe Lopez
<br>
PSD | DevOps CoE<o:p></o:p></span></span></p>
<p class="MsoNormal" style="vertical-align:bottom"><span style="mso-bookmark:_MailEndCompose"><span style="font-family:&quot;Arial&quot;,sans-serif;color:gray"><br>
</span></span><span style="mso-bookmark:_MailEndCompose"><b><span style="font-family:&quot;Arial&quot;,sans-serif;color:#548235">Please consider the impact on the environment before printing this e-mail</span></b></span><span style="mso-bookmark:_MailEndCompose"><span style="color:windowtext"><o:p></o:p></span></span></p>
</div>
<p class="MsoNormal"><span style="mso-bookmark:_MailEndCompose"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:windowtext"><o:p>&nbsp;</o:p></span></span></p>
<span style="mso-bookmark:_MailEndCompose"></span>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:windowtext">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:windowtext"> Joe Julian [mailto:joe@julianfamily.org]
<br>
<b>Sent:</b> Wednesday, November 9, 2016 10:26 AM<br>
<b>To:</b> Lopez, Dan-Joe &lt;dan-joe.lopez@sap.com&gt;; Gandalf Corvotempesta &lt;gandalf.corvotempesta@gmail.com&gt;<br>
<b>Cc:</b> gluster-users@gluster.org<br>
<b>Subject:</b> Re: [Gluster-users] Automation of single server addition to replica<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On 11/09/2016 10:21 AM, Lopez, Dan-Joe wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">Thanks Joe and Gandalf!</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">I’ve look at the blog that you wrote Joe, but it seems to reference a more complicated scenario than I am working with.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">We have a` replica n` volume, and I want to make it a` replica n&#43;1` volume. Is that possible?</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="vertical-align:bottom"><span style="font-family:&quot;Arial&quot;,sans-serif">Dan-Joe Lopez
</span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><br>
Sure, that's easy, add-brick $myvol replica $new_n $new_brick<br>
<br>
but... why are you adding replica? Is it to improve redundancy and availability, or is it so you &quot;have the same files on all our servers&quot; (a common mistake)?<br>
<br>
Another page that might be of use to you:<br>
<a href="https://joejulian.name/blog/glusterfs-replication-dos-and-donts/">https://joejulian.name/blog/glusterfs-replication-dos-and-donts/</a><br>
<br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">
<a href="mailto:gluster-users-bounces@gluster.org">gluster-users-bounces@gluster.org</a> [<a href="mailto:gluster-users-bounces@gluster.org">mailto:gluster-users-bounces@gluster.org</a>]
<b>On Behalf Of </b>Gandalf Corvotempesta<br>
<b>Sent:</b> Tuesday, November 8, 2016 10:54 PM<br>
<b>To:</b> Joe Julian <a href="mailto:joe@julianfamily.org">&lt;joe@julianfamily.org&gt;</a><br>
<b>Cc:</b> <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
<b>Subject:</b> Re: [Gluster-users] Automation of single server addition to replica</span><o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p>Il 09 nov 2016 1:23 AM, &quot;Joe Julian&quot; &lt;<a href="mailto:joe@julianfamily.org">joe@julianfamily.org</a>&gt; ha scritto:<br>
&gt;<br>
&gt; Replicas are defined in the order bricks are listed in the volume create command. So gluster volume create myvol replica 2 server1:/data/brick1 server2:/data/brick1 server3:/data/brick1 server4:/data/brick1 will replicate between server1 and server2 and replicate
 between server3 and server4.<br>
&gt;<br>
&gt; See also <a href="https://joejulian.name/blog/how-to-expand-glusterfs-replicated-clusters-by-one-server/">
https://joejulian.name/blog/how-to-expand-glusterfs-replicated-clusters-by-one-server/</a><br>
&gt;<o:p></o:p></p>
<p>i really hope this could be automated in newer gluster versions<br>
There is almost no sense to make a replica on the same server so gluster<br>
should automatically move bricks to preserve data consistency when adding servers.<o:p></o:p></p>
<p>Ceph does this by moving objects around and you don't have to add servers in a multiple of replica<o:p></o:p></p>
<p>the rebalance command could be used to rebalance newly added bricks by preserving replicas in a proper state
<o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>