<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 11, 2017 at 3:27 PM, Gandalf Corvotempesta <span dir="ltr"><<a href="mailto:gandalf.corvotempesta@gmail.com" target="_blank">gandalf.corvotempesta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hi to all</p>
<p>let's assume this volume info output:</p>
<p><tt>Volume Name: r2</tt><tt><br>
</tt><tt>Type: Distributed-Replicate</tt><tt><br>
</tt><tt>Volume ID: 24a0437a-daa0-4044-8acf-<wbr>7aa82efd76fd</tt><tt><br>
</tt><tt>Status: Started</tt><tt><br>
</tt><tt>Number of Bricks: 2 x 2 = 4</tt><tt><br>
</tt><tt>Transport-type: tcp</tt><tt><br>
</tt><tt>Bricks:</tt><tt><br>
</tt><tt>Brick1: Server1:/home/gfs/r2_0</tt><tt><br>
</tt><tt>Brick2: Server2:/home/gfs/r2_1</tt><tt><br>
</tt><tt>Brick3: Server1:/home/gfs/r2_2</tt><tt><br>
</tt><tt>Brick4: Server2:/home/gfs/r2_3</tt><br>
</p>
<p>Can someone explain me how to read "Number of bricks" ?</p>
<p>Is the first number the number of "replicated bricks" and the
second number the number of replica?</p>
<p>In this case, 2 bricks are replicated 2 times ?<br>
</p>
<p>So, a "Number of Bricks: 2 x 3 = 6" means that 2 bricks are
replicated 3 times, right ?</p></div></blockquote><div><br></div><div>That's correct. A X B indicates A is the distribute leg & B is the replica count.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
<p>Would be possible to add some indentation to this output?
Something like this would be much easier to read and understand:</p>
<p><tt>Volume Name: r2</tt><tt><br>
</tt><tt>Type: Distributed-Replicate</tt><tt><br>
</tt><tt>Volume ID: 24a0437a-daa0-4044-8acf-<wbr>7aa82efd76fd</tt><tt><br>
</tt><tt>Status: Started</tt><tt><br>
</tt><tt>Number of Bricks: 2 x 2 = 4</tt><tt><br>
</tt><tt>Transport-type: tcp</tt><tt><br>
</tt><tt>Bricks:</tt><tt><br>
</tt><tt> Brick1: Server1:/home/gfs/r2_0</tt><tt><br>
</tt><tt> Brick2: Server2:/home/gfs/r2_1</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> </tt><tt>Brick3: Server1:/home/gfs/r2_2</tt><tt><br>
</tt><tt> Brick4: Server2:/home/gfs/r2_3</tt></p></div></blockquote><div><br></div><div>We could do it but we've to be 100% sure that this doesn't break existing tools/scripts while parsing this output. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
<p>Or, if you don't want blank lines:</p>
<p><tt>Volume Name: r2</tt><tt><br>
</tt><tt>Type: Distributed-Replicate</tt><tt><br>
</tt><tt>Volume ID: 24a0437a-daa0-4044-8acf-<wbr>7aa82efd76fd</tt><tt><br>
</tt><tt>Status: Started</tt><tt><br>
</tt><tt>Number of Bricks: 2 x 3 = 6</tt><tt><br>
</tt><tt>Transport-type: tcp</tt><tt><br>
</tt><tt>Bricks:</tt><tt><br>
</tt><tt> Brick1: Server1:/home/gfs/r2_0</tt><tt><br>
</tt><tt> -> Brick2: Server2:/home/gfs/r2_1</tt><tt><br>
</tt><tt> -> Brick3: Server3:/home/gfs/r2_2</tt><tt><br>
</tt><tt> Brick4: Server1:/home/gfs/r2_3</tt><tt><br>
</tt><tt> -> Brick5: Server2:/home/gfs/r2_4</tt><tt><br>
</tt><tt> -> Brick6: Server3:/home/gfs/r2_5</tt></p></div></blockquote><div><br></div><div>This might give an impression that brick1 is the master and is always responsible for replicating the data to 2 & 3 which is not true as per the current replication model.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><p>Now some questions:<tt><br>
</tt>is SNMP integration planed ? A SMUX Peer integrated in
Gluster would be awesome<br>
for monitoring and monitoring a storage cluster is mandatory :)<tt>
<br>
</tt>Just a single line to add in snmpd.conf and we are ready to
go.<tt><br>
</tt></p></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
<p>Currently, which are the monitoring options that we could use ?
We have some Zabbix servers here<br>
that use SNMP for monitoring. Any workaround with gluster ?<tt><br>
</tt></p>
<p>Probably, an easier workaround to implement in gluster would be
triggering an SNMP trap. <br>
When some events occur, gluster could automatically trigger a
trap. <br>
I think would be easier to develop than creating a whole SNMP SMUX
and in this case,<br>
a single configuration set on a single node, would be
gluster-wide. <br>
If you have 50 nodes, you just need to perform a single
configuration on a single node <br>
to enable traps for 50 nodes automatically.<tt><br>
<br>
</tt>You could ask (from CLI) for snmp target host to set
cluster-wide and then all nodes will be able to trigger some
traps.<tt><br>
</tt></p>
<p>In example:</p>
<p><tt>gluster volume </tt><tt>set</tt><tt> test-volume
snmp-trap-community 'public'</tt><tt><br>
</tt><tt>gluster volume </tt><tt>set</tt><tt> test-volume
snmp-trap-server '1.2.3.4'</tt></p>
<p>
</p>
<p><span class="m_-3893092805891894501hljs-operator" style="box-sizing:border-box;color:rgb(51,51,51);font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:10.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px">
</span></p>
<p>
</p>
</div>
<br>______________________________<wbr>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-devel</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br></div><div>~ Atin (atinm)<br></div></div></div></div>
</div></div>