[Gluster-users] Can't mount

RAGHAVENDRA TALUR raghavendra.talur at gmail.com
Sat Nov 22 18:17:38 UTC 2014


Apparently this could be due to a different locale set on your machine.

What is the locale set, you can get the info by command
locale

Also try doing a mount with the command:
env -i LC_NUMERIC="en_US.UTF-8" /usr/sbin/glusterfs --volfile-id=test
--volfile-server=gluster1 /mnt

Here is a similar bug reported
https://bugzilla.redhat.com/show_bug.cgi?id=1157107.

To remove the getfattr warning that you get, please install attr package.

Raghavendra Talur


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




-- 
Raghavendra Talur


More information about the Gluster-users mailing list