The following section from the log implies to me that one of your peer
files in /var/lib/glusterd/peers/ might be incorrect or even possibly
empty.
> [2014-12-02 07:49:12.884305] D [store.c:608:gf_store_iter_get_next] 0-:
Returning with -1
> [2014-12-02 07:49:12.884360] I
[glusterd-handler.c:3146:glusterd_friend_add_from_peerinfo] 0-management:
connect returned 0
> [2014-12-02 07:49:12.895556] D [store.c:418:gf_store_handle_new] 0-:
Returning 0
> [2014-12-02 07:49:12.895600] D [store.c:437:gf_store_handle_retrieve] 0-:
Returning 0
> [2014-12-02 07:49:12.895633] D [store.c:499:gf_store_iter_new] 0-:
Returning with 0
> [2014-12-02 07:49:12.895664] D [store.c:608:gf_store_iter_get_next] 0-:
Returning with -1
> [2014-12-02 07:49:12.895683] D
[glusterd-store.c:4110:glusterd_store_retrieve_peers] 0-: Returning with -1
> [2014-12-02 07:49:12.895698] D [glusterd-store.c:4325:glusterd_restore] 0-:
Returning -1
> [2014-12-02 07:49:12.895720] E [xlator.c:425:xlator_init] 0-management:
Initialization of volume 'management' failed, review your volfile again
GlusterD added the retrieved the first peer (line 2 in the snippet).
It then is attempting to retrieve the second peer. It first opens the
file and obtains an iterator on the file (lines 3-5). The iterator
fails on the first line itself (line 6).
This implies either that the file was empty or it was corrupted.
Could you check the files in /var/lib/gluster/peers? It should contain
files which should have the following lines,
""
uuidstatushostname1""
~kaushal
On Tue, Dec 2, 2014 at 1:50 PM, Pierre Leonard
<pierre.leonard at jouy.inra.fr> wrote:> Hi Kaushal,
>
> Hi Pierre,
> Can you provide start glusterd in debug mode and provide the logs?
> Please use a paste site like http://fpaste.org to share the logs.
>
> You can start glusterd in debug mode by using the '-LDEBUG' flag,
> ie.,
> # glusterd -LDEBUG
>
> The logs you've provided say that glusterd failed to initialize but
> don't provide any further information as to why. Debug logs will help
> in this case.
>
> ~kaushal
>
> I have done and the debug kiste is on http://fpaste.org/ number
> /155740/17507711/
> and pasword il pierreleonard
>
>
> Many thank's for your help.
>