Re: Can't mount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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@gluster1 ~]# gluster volume start test
volume start: test: success
[root@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@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@gclient ~]# mount -t glusterfs gluster1:/test /mnt
WARNING: getfattr not found, certain checks will be skipped..

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@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-users



_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-users



_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-users





[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux