gluster-devel
[Top][All Lists]
Advanced

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

Re: [Gluster-devel] error message=> glusterfs: could not open specfile


From: Jacques Mattheij
Subject: Re: [Gluster-devel] error message=> glusterfs: could not open specfile
Date: Fri, 07 Sep 2007 15:28:40 +0200
User-agent: Debian Thunderbird 1.0.6 (X11/20050802)

hello once more,

Another way to look at this problem is that the error message
glusterfs outputs is mildly misleading, it complains it can not
open the specfile even when none is specified.

If the '-f' and the '-s' options are mutually exclusive then
the program should probably not complain about a missing spec
file when '-s' is used, but just about other option(s) that
would allow it to complete  the operation.

It does handle the case where both are specified correctly
(it says the options are mutually exclusive).

 Jacques

Paul Jochum wrote:
whitelistentry: zresearch
Hi Jacques:

Thank you, but I don't think that using the -f and -s on the same line are correct. I receive the error message when I try this: /usr/local/sbin/glusterfs -f /etc/glusterfs/glusterfs-client.vol -s 192.168.1.225 /mnt/point glusterfs: -f | --spec-file option cannot be combined with -s | --server option

But, it did help me to find the problem. I thought that the spec file that the client was trying to find, would be the server's spec file (which seems like an obvious error now). So, to help future readers: 1) use the -s option on the client's glusterfs command if you client volume's spec file is located on the server 2) use the -f option on the client's glusterfs command if you client volume's spec file is located on the client itself.

Thanks again to Anand  and Jacques for looking at this.

Paul Jochum


Jacques Mattheij wrote:

hey Paul,

It looks to me like you should use the

  -f pathtoyourvolumespec/yourspecfile.vol

option on the command line.  I tried it here without that
and it tells me the same thing as you report (could not
open specfile).

something like:

/usr/local/sbin/glusterfs -f /etc/glusterfs/client.vol -s 192.168.1.225 /mnt/point

replace the '/etc/glusterfs/client.vol' with your location of
the client spec file.

  best regards,

    Jacques

Paul Jochum wrote:

whitelistentry: zresearch
Hi Anand:

Thank you for looking at this.

*Spec file for Server:*
volume brick
 type storage/posix                   # POSIX FS translator
 option directory /home/export        # Export this directory
end-volume
volume server
 type protocol/server
 option transport-type tcp/server     # For TCP/IP transport
 subvolumes brick
 option auth.ip.brick.allow * # Allow access to "brick" volume
end-volume

*Spec file for Client:
*volume client
 type protocol/client
 option transport-type tcp/client     # for TCP/IP transport
 option remote-host 192.168.1.225     # IP address of the remote brick*
* option remote-subvolume brick        # name of the remote volume
end-volume
*
Commands used to start glusterfs on the Server:
*/usr/local/sbin/glusterfsd*
*
*Command used to start glusterfs on the Client:*
/usr/local/sbin/glusterfs -s 192.168.1.225 /mnt/point

(I tried to follow the "Getting Started with GlusterFS" document from the wiki as close as possible)

thanks,

Paul Jochum



Anand Avati wrote:

Paul,
can you please post your volume spec files and the command line with which you are trying to start glusterfs?

avati

2007/9/7, Paul Jochum < address@hidden <mailto:address@hidden>>:

    Hi all:

I am trying out glusterfs 1.3.1 (from the download page), for the
    first time.  It compiled and installed fine.  I am running a simple
configuration of one client and one brick, using the supplied example
    /etc/glusterfs vol files (just changed the address in the client's
    vol
    file), and seems to run on the server.  When I try to run it on the
    client, it immediately fails with the message:
    glusterfs: could not open specfile

        On the client's log file, I am seeing:
2007-09-06 23:15:04 E [ protocol.c:253:gf_block_unserialize_transport] trans: EOF from peer (192.168.1.225:6996 <http://192.168.1.225:6996>)

        On the server's log file, I am seeing:
    2007-09-06 23:14:39 C [tcp.c:81:tcp_disconnect] server: connection
    disconnected
    2007-09-06 23:14:39 E [server-protocol.c:197:generic_reply] server:
    transport_writev failed

        I can ping, and ssh between the two hosts.  I have disabled
    iptables
    and ip6tables on the server and client.
        So, I assume that I am missing something basic here, but don't
    know
    where to start looking.  Any suggestions?

    thanks,

    Paul Jochum






    _______________________________________________
    Gluster-devel mailing list
    address@hidden <mailto:address@hidden>
    http://lists.nongnu.org/mailman/listinfo/gluster-devel
    <http://lists.nongnu.org/mailman/listinfo/gluster-devel>




--
It always takes longer than you expect, even when you take into account Hofstadter's Law.

-- Hofstadter's Law


_______________________________________________
Gluster-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/gluster-devel



--
/-------------------------------------------------------------------------\
| Jacques Mattheij, address@hidden, ww.com, livelog.com and greenbits.com       
|
|                                                                         |
| IMPORTANT:                                                              |
| When you send me mail from an address that is unknown to me make sure   |
| the current password ('stjoes') is present anywhere in the email,       |
| otherwise it will not get through!                                      |
\-------------------------------------------------------------------------/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]