<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 22, 2014 at 10:50 PM, Mārtiņš Jakubovičs <span dir="ltr">&lt;<a href="mailto:martins@vertigs.lv" target="_blank">martins@vertigs.lv</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">For a record, I successfully mounted volume from home computer using Ubuntu 14.04 and glusterfs 3.4.2.<div class=""><div class="h5"><br>
<br>
On 2014.11.22. 19:09, Mārtiņš Jakubovičs wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hmm, I have same output:<br>
<br>
[root@gclient ~]# ./a.out<br>
conversion of 1.0 gave ret: 0, value: 1.000000<br>
<br>
And If I try to mount in servers, I got same problem ...<br>
>From Ubuntu machine I can&#39;t mount too, can&#39;t say is this client problem or server&#39;s ...<br>
<br>
On 2014.11.22. 19:03, Pranith Kumar Karampuri wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
On 11/22/2014 09:36 PM, Mārtiņš Jakubovičs wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
And yes, as you mentioned, warning appears, but as this is test lab, I ignored it ...<br>
<br>
On 2014.11.22. 18:04, Mārtiņš Jakubovičs wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hello,<br>
<br>
Thanks for so fast response! Answers below.<br>
<br>
On 2014.11.22. 17:55, Pranith Kumar Karampuri wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
On 11/22/2014 09:22 PM, Mārtiņš Jakubovičs wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hello all!<br>
<br>
I am new in gluster world, and want to test this &quot;beast&quot; technology.<br>
I created 4 CentOS 7 demo machines with two 50 gb disks in each machine for bricks. I installed gluster by this simple &quot;howto&quot;: <a href="http://www.server-world.info/en/note?os=CentOS_7&amp;p=glusterfs" target="_blank">http://www.server-world.info/<u></u>en/note?os=CentOS_7&amp;p=<u></u>glusterfs</a><br>
<br>
All goes well, I created volume with &quot;replica 2&quot; options, and use all 8 bricks. Volume create successfully and I started it:<br>
<br>
[root@gluster1 ~]# gluster volume start test<br>
volume start: test: success<br>
[root@gluster1 ~]# gluster volume info<br>
<br>
Volume Name: test<br>
Type: Distributed-Replicate<br>
Volume ID: 226592b1-089f-4727-a009-<u></u>19838078b7e7<br>
Status: Started<br>
Number of Bricks: 4 x 2 = 8<br>
Transport-type: tcp<br>
Bricks:<br>
Brick1: gluster1:/brick1/test<br>
Brick2: gluster1:/brick2/test<br>
Brick3: gluster2:/brick1/test<br>
Brick4: gluster2:/brick2/test<br>
Brick5: gluster3:/brick1/test<br>
Brick6: gluster3:/brick2/test<br>
Brick7: gluster4:/brick1/test<br>
Brick8: gluster4:/brick2/test<br>
</blockquote>
Could you let us know which version of gluster are you using? gluster should have thrown a warning when two bricks are chosen from same machine for replica pairs.<br>
</blockquote>
<br>
I am running gluster 3.6.1<br>
[root@gluster1 ~]# glusterfsd --version<br>
glusterfs 3.6.1 built on Nov  7 2014 15:16:38<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
But, when I try to mount volume in CentOS 7 machine I got error:<br>
<br>
[root@gclient ~]# mount -t glusterfs gluster1:/test /mnt<br>
WARNING: getfattr not found, certain checks will be skipped..<br></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote></div></div></blockquote><div><br></div>This might turn out to a simple issue too.<div><br></div><div>Run this command and tell what the output is please</div><div>&quot;which attr&quot;</div><div><br></div><div>Thanks</div><div>Raghavendra Talur </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Error in log file:<br>
[xlator.c:425:xlator_init] 0-fuse: Initialization of volume &#39;fuse&#39; failed, review your volfile again<br>
</blockquote>
Could you please send the complete log.<br>
</blockquote>
<br>
Complete record when I try to mount from /var/log/glusterfs/mnt.log:<br>
<br>
[2014-11-22 16:03:51.728816] I [MSGID: 100030] [glusterfsd.c:2018:main] 0-/usr/sbin/glusterfs: Started running /usr/sbin/glusterfs version 3.6.1 (args: /usr/sbin/glusterfs --volfile-server=gluster1 --volfile-id=/test /mnt)<br>
[2014-11-22 16:03:51.729565] I [options.c:1163:xlator_option_<u></u>init_double] 0-fuse: option attribute-timeout convertion failed value 1.0<br>
</blockquote></blockquote>
attribute-timeout seems to be the problem as per the log above.<br>
<br>
I tried testing this and things seem to be fine. May be I should know the behavior of the program on your system.<br>
<br>
Could you compile the following c program and tell me the output:<br>
<br>
==============================<u></u>============<br>
#include &lt;stdio.h&gt;<br>
#include &lt;stdlib.h&gt;<br>
#include &lt;errno.h&gt;<br>
#include &lt;string.h&gt;<br>
<br>
static int<br>
_gf_string2double (const char *str, double *n)<br>
{<br>
        double value     = 0.0;<br>
        char   *tail     = NULL;<br>
        int    old_errno = 0;<br>
<br>
        if (str == NULL || n == NULL) {<br>
                errno = EINVAL;<br>
                return -1;<br>
        }<br>
<br>
        old_errno = errno;<br>
        errno = 0;<br>
        value = strtod (str, &amp;tail);<br>
        if (str == tail)<br>
                errno = EINVAL;<br>
<br>
        if (errno == ERANGE || errno == EINVAL)<br>
                return -1;<br>
<br>
        if (errno == 0)<br>
                errno = old_errno;<br>
<br>
        if (tail[0] != &#39;\0&#39;)<br>
                return -1;<br>
<br>
        *n = value;<br>
<br>
        return 0;<br>
}<br>
<br>
int<br>
main (int argc, char **argv)<br>
{<br>
        double value = 0.0;<br>
        int ret = 0;<br>
<br>
        ret = _gf_string2double (&quot;1.0&quot;, &amp;value);<br>
        if (ret &lt; 0)<br>
                printf (&quot;conversion of 1.0 failed with %s&quot;, strerror(errno));<br>
        else<br>
                printf (&quot;conversion of 1.0 gave ret: %d, value: %lf&quot;, ret, value);<br>
}<br>
==============================<u></u>============<br>
<br>
Save this into &#39;file.c&#39;<br>
# gcc file.c<br>
# ./a.out<br>
<br>
It should print the following output:<br>
conversion of 1.0 gave ret: 0, value: 1.000000.<br>
<br>
Could you let me know what is the output on your machine?<br>
<br>
Pranith<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
[2014-11-22 16:03:51.729593] E [xlator.c:425:xlator_init] 0-fuse: Initialization of volume &#39;fuse&#39; failed, review your volfile again<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Pranith<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Would be grateful for any help!<br>
<br>
Best regards,<br>
Martins<br>
<br>
______________________________<u></u>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.<u></u>org/mailman/listinfo/gluster-<u></u>users</a><br>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.<u></u>org/mailman/listinfo/gluster-<u></u>users</a><br>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.<u></u>org/mailman/listinfo/gluster-<u></u>users</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font color="#666666"><b>Raghavendra Talur </b></font><div><br></div></div></div>
</div></div>