<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">On 10/17/2014 11:55 AM, Joe Julian
      wrote:<br>
    </div>
    <blockquote cite="mid:5440B645.7000202@julianfamily.org" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Ah, I see where that comes from. The inconsistency threw me off. I
      always forget that the servers don't know their own peer names.<br>
    </blockquote>
    No no, pathinfo is computed on the same machine where the brick
    resides, so this is not that issue. Brick will return the string
    returned by hostname() on the machine where it resides which could
    be different than what you are expecting is my feeling. Please give
    the output of that program please.<br>
    <br>
    Pranith<br>
    <blockquote cite="mid:5440B645.7000202@julianfamily.org" type="cite">
      <br>
      <div class="moz-cite-prefix">On 10/16/2014 10:55 PM, Pranith Kumar
        Karampuri wrote:<br>
      </div>
      <blockquote cite="mid:5440AF51.4050507@redhat.com" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        Joe,<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Could you send the output of following program on one of
        the machines?<br>
        <br>
        11:24:31 :( &#9889; cat tmp.c <br>
        #include &lt;stdio.h&gt;<br>
        <br>
        main()<br>
        {<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char hostname[256] = {0};<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int&nbsp; ret = 0;<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ret = gethostname (hostname, 256);<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (ret == 0)<br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf ("hostname: %s", hostname);<br>
        }<br>
        <br>
        Pranith<br>
        <div class="moz-cite-prefix">On 10/17/2014 06:23 AM, Joe Julian
          wrote:<br>
        </div>
        <blockquote cite="mid:54406872.8040102@julianfamily.org"
          type="cite">
          <meta http-equiv="content-type" content="text/html;
            charset=ISO-8859-1">
          I can't see any place the hostname is getting mangled for
          trusted.glusterfs.pathinfo output, but I'm getting this and
          wanted to know if that's expected behavior:<br>
          <br>
          <blockquote># getfattr -n trusted.glusterfs.pathinfo
            ./_base/1c1133f82c49bf66bde3625f3518bef159e3b6e2<br>
            # file: _base/1c1133f82c49bf66bde3625f3518bef159e3b6e2<br>
            trusted.glusterfs.pathinfo="(&lt;DISTRIBUTE:gv-nova-dht&gt;
            (&lt;REPLICATE:gv-nova-replicate-0&gt;
&lt;POSIX(/gluster/brick02/nova):storage06:/gluster/brick02/nova/instances/_base/1c1133f82c49bf66bde3625f3518bef159e3b6e2&gt;&lt;POSIX(/gluster/brick02/nova):storage02:/gluster/brick02/nova/instances/_base/1c1133f82c49bf66bde3625f3518bef159e3b6e2&gt;))"<br>
          </blockquote>
          <br>
          It's confusing because we have hostnames like "storage06" and
          "storage02" in that output but the hostnames in the volume
          definition don't match as they're "storage06-stor" and
          "storage02-stor":<br>
          <blockquote>$ sudo gluster volume info gv-nova<br>
            &nbsp;<br>
            Volume Name: gv-nova<br>
            Type: Distributed-Replicate<br>
            Volume ID: 978c6843-1d6b-48dc-a498-862c57637916<br>
            Status: Started<br>
            Number of Bricks: 7 x 2 = 14<br>
            Transport-type: tcp<br>
            Bricks:<br>
            Brick1: storage02-stor:/gluster/brick02/nova<br>
            Brick2: storage06-stor:/gluster/brick02/nova<br>
            Brick3: storage03-stor:/gluster/brick03/nova<br>
            Brick4: storage07-stor:/gluster/brick03/nova<br>
            Brick5: storage03-stor:/gluster/brick04/nova<br>
            Brick6: storage08-stor:/gluster/brick03/nova<br>
            Brick7: storage04-stor:/gluster/brick03/nova<br>
            Brick8: storage07-stor:/gluster/brick04/nova<br>
            Brick9: storage04-stor:/gluster/brick04/nova<br>
            Brick10: storage08-stor:/gluster/brick04/nova<br>
            Brick11: storage02-stor:/gluster/brick03/nova<br>
            Brick12: storage07-stor:/gluster/brick02/nova<br>
            Brick13: storage02-stor:/gluster/brick04/nova<br>
            Brick14: storage08-stor:/gluster/brick02/nova<br>
          </blockquote>
          <br>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <br>
          <pre wrap="">_______________________________________________
Gluster-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://supercolony.gluster.org/mailman/listinfo/gluster-users">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
        </blockquote>
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>