<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><br><br><div>Hi,</div><div>Thank you for reply.</div><div><br></div><div>The file&nbsp;<span style="font-family: arial; line-height: 23.8px; white-space: pre-wrap;">.nfs0000000001722f4000000002 is a file but not a directory.</span></div><div><span style="font-family: arial; line-height: 23.8px; white-space: pre-wrap;">And I found that it is there when the gluster is running.</span></div><div><span style="font-family: arial; line-height: 23.8px; white-space: pre-wrap;"><br></span></div><div><font face="arial"><span style="white-space: pre-wrap;">root@128:/# ls -al /var/lib/glusterd/snaps/
total 8
drwxr-xr-x  2 root root 4096 Feb 26  2016 .
drwxr-xr-x 14 root root 4096 Feb 26  2016 ..
-rw-------  1 root root    0 Feb 26  2016 .nfs0000000006c02b090000000c
-rw-------  1 root root    0 Feb 26  2016 missed_snaps_list</span></font><span style="font-family: arial; line-height: 23.8px; white-space: pre-wrap;">
</span></div><div><span style="font-family: arial; line-height: 23.8px; white-space: pre-wrap;"><br></span></div><div><span style="font-family: arial; line-height: 23.8px; white-space: pre-wrap;">If I abnormal shutdown the my board, the file will be there when the board reboot.And some error will happened as below.</span></div><div><span style="font-family: arial; line-height: 23.8px; white-space: pre-wrap;">...</span></div><div><font face="arial"><span style="white-space: pre-wrap;">316] E [MSGID: 106043] [glusterd-store.c:3589:glusterd_store_retrieve_snaps] 0-management: Unable to restore snapshot: .nfs0000000001722f2c00000001                 
348] D [MSGID: 0] [glusterd-store.c:3607:glusterd_store_retrieve_snaps] 0-management: Returning with -1                                                         
389] D [MSGID: 0] [glusterd-store.c:4339:glusterd_restore] 0-management: Returning -1                                                                               
469] E [MSGID: 101019] [xlator.c:428:xlator_init] 0-management: Initialization of volume 'management' failed, review your volfile again                        
501] E [graph.c:322:glusterfs_graph_init] 0-management: initializing translator failed</span></font></div><div><span style="font-family: arial; line-height: 23.8px; white-space: pre-wrap;">...</span></div><div><span style="font-family: arial; line-height: 23.8px; white-space: pre-wrap;"><br></span></div><div><span style="font-family: arial; line-height: 23.8px; white-space: pre-wrap;">Do you know why is that?</span></div><div><span style="font-family: arial; line-height: 23.8px; white-space: pre-wrap;"><br></span></div><div><span style="font-family: arial; line-height: 23.8px; white-space: pre-wrap;">Thanks,</span></div><div><span style="font-family: arial; line-height: 23.8px; white-space: pre-wrap;">Xin</span></div><br><br><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><br><pre><br>在 2016-02-25 19:46:40,"Avra Sengupta" &lt;asengupt@redhat.com&gt; 写道:
&gt;Hi,
&gt;
&gt;/var/lib/glusterd/snaps/ contains only 1 file called missed_snaps_list. Apart from it, there are only directories created with
&gt;the snap names. Is .nfs0000000001722f4000000002, that you saw in /var/lib/glusterd a file or a directory. If it's a file, then it
&gt;was not placed there as part of snapshotting any volume. If it's a directory, then did you try creating a snapshot with such a name.
&gt;
&gt;Regards,
&gt;Avra
&gt;
&gt;On 02/25/2016 05:10 PM, songxin wrote:
&gt;&gt; If I run "reboot" on the a node��there are not .snap files on A node after reboot.
&gt;&gt; Does the snap file only appear after unexpect reboot��
&gt;&gt; Why its size is 0 byte��
&gt;&gt; In this situation ��is a right method to solve this problem removing the snap file?
&gt;&gt;
&gt;&gt; thanks
&gt;&gt; xin
&gt;&gt;
&gt;&gt; �����ҵ� iPhone
&gt;&gt;
&gt;&gt;&gt; �� 2016��2��25�գ�19:05��Atin Mukherjee &lt;amukherj@redhat.com&gt; д����
&gt;&gt;&gt;
&gt;&gt;&gt; + Rajesh , Avra
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On 02/25/2016 04:12 PM, songxin wrote:
&gt;&gt;&gt;&gt; Thanks for your reply.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Do I need check all files in /var/lib/glusterd/*?
&gt;&gt;&gt;&gt; Must all files be same in A node and B node?
&gt;&gt;&gt; Yes, they should be identical.
&gt;&gt;&gt;&gt; I found that the size of
&gt;&gt;&gt;&gt; file /var/lib/glusterd/snaps/.nfs0000000001722f4000000002 is 0 bytes
&gt;&gt;&gt;&gt; after A board reboot.
&gt;&gt;&gt;&gt; So glusterd can't restore by this snap file on A node.
&gt;&gt;&gt;&gt; Is it right?
&gt;&gt;&gt; Yes, looks like that.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; At 2016-02-25 18:25:50, "Atin Mukherjee" &lt;amukherj@redhat.com&gt; wrote:
&gt;&gt;&gt;&gt;&gt; I believe you and Abhishek are from the same group and sharing the
&gt;&gt;&gt;&gt;&gt; common set up. Could you check the content of /var/lib/glusterd/* in
&gt;&gt;&gt;&gt;&gt; board B (post reboot and before starting glusterd) matches with
&gt;&gt;&gt;&gt;&gt; /var/lib/glusterd/* from board A?
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; ~Atin
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; On 02/25/2016 03:48 PM, songxin wrote:
&gt;&gt;&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;&gt;&gt; I have a problem as below when I start the gluster after reboot a board.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; precondition:
&gt;&gt;&gt;&gt;&gt;&gt; I use two boards do this test.
&gt;&gt;&gt;&gt;&gt;&gt; The version of glusterfs is 3.7.6.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; A board ip:128.224.162.255
&gt;&gt;&gt;&gt;&gt;&gt; B board ip:128.224.95.140
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; reproduce steps£º
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; 1.systemctl start glusterd (A board)
&gt;&gt;&gt;&gt;&gt;&gt; 2.systemctl start glusterd (B board)
&gt;&gt;&gt;&gt;&gt;&gt; 3.gluster peer probe 128.224.95.140 (A board)
&gt;&gt;&gt;&gt;&gt;&gt; 4.gluster volume create gv0 replica 2 128.224.95.140:/tmp/brick1/gv0
&gt;&gt;&gt;&gt;&gt;&gt; 128.224.162.255:/data/brick/gv0 force (local board)
&gt;&gt;&gt;&gt;&gt;&gt; 5.gluster volume start gv0 (A board)
&gt;&gt;&gt;&gt;&gt;&gt; 6.press the reset button on the A board.It is a develop board so it has
&gt;&gt;&gt;&gt;&gt;&gt; a reset button that is similar to reset button on pc (A board)
&gt;&gt;&gt;&gt;&gt;&gt; 7.run command "systemctl start glusterd" after A board reboot. And
&gt;&gt;&gt;&gt;&gt;&gt; command failed because the file /var/lib/glusterd/snaps/.nfsxxxxxxxxx
&gt;&gt;&gt;&gt;&gt;&gt; (local board) .
&gt;&gt;&gt;&gt;&gt;&gt; Log is as below.
&gt;&gt;&gt;&gt;&gt;&gt; [2015-12-07 07:55:38.260084] E [MSGID: 101032]
&gt;&gt;&gt;&gt;&gt;&gt; [store.c:434:gf_store_handle_retrieve] 0-: Path corresponding to
&gt;&gt;&gt;&gt;&gt;&gt; /var/lib/glusterd/snaps/.nfs0000000001722f4000000002
&gt;&gt;&gt;&gt;&gt;&gt; [2015-12-07 07:55:38.260120] D [MSGID: 0]
&gt;&gt;&gt;&gt;&gt;&gt; [store.c:439:gf_store_handle_retrieve] 0-: Returning -1
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; [2015-12-07 07:55:38.260152] E [MSGID: 106200]
&gt;&gt;&gt;&gt;&gt;&gt; [glusterd-store.c:3332:glusterd_store_update_snap] 0-management: snap
&gt;&gt;&gt;&gt;&gt;&gt; handle is NULL
&gt;&gt;&gt;&gt;&gt;&gt; [2015-12-07 07:55:38.260180] E [MSGID: 106196]
&gt;&gt;&gt;&gt;&gt;&gt; [glusterd-store.c:3427:glusterd_store_retrieve_snap] 0-management:
&gt;&gt;&gt;&gt;&gt;&gt; Failed to update snapshot for .nfs0000000001722f40
&gt;&gt;&gt;&gt;&gt;&gt; [2015-12-07 07:55:38.260208] E [MSGID: 106043]
&gt;&gt;&gt;&gt;&gt;&gt; [glusterd-store.c:3589:glusterd_store_retrieve_snaps] 0-management:
&gt;&gt;&gt;&gt;&gt;&gt; Unable to restore snapshot: .nfs0000000001722f400
&gt;&gt;&gt;&gt;&gt;&gt; [2015-12-07 07:55:38.260241] D [MSGID: 0]
&gt;&gt;&gt;&gt;&gt;&gt; [glusterd-store.c:3607:glusterd_store_retrieve_snaps] 0-management:
&gt;&gt;&gt;&gt;&gt;&gt; Returning with -1
&gt;&gt;&gt;&gt;&gt;&gt; [2015-12-07 07:55:38.260268] D [MSGID: 0]
&gt;&gt;&gt;&gt;&gt;&gt; [glusterd-store.c:4339:glusterd_restore] 0-management: Returning -1
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; [2015-12-07 07:55:38.260325] E [MSGID: 101019]
&gt;&gt;&gt;&gt;&gt;&gt; [xlator.c:428:xlator_init] 0-management: Initialization of volume
&gt;&gt;&gt;&gt;&gt;&gt; 'management' failed, review your volfile again
&gt;&gt;&gt;&gt;&gt;&gt; [2015-12-07 07:55:38.260355] E [graph.c:322:glusterfs_graph_init]
&gt;&gt;&gt;&gt;&gt;&gt; 0-management: initializing translator failed
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; [2015-12-07 07:55:38.260374] E [graph.c:661:glusterfs_graph_activate]
&gt;&gt;&gt;&gt;&gt;&gt; 0-graph: init failed
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; 8.rm /var/lib/glusterd/snaps/.nfsxxxxxxxxx (A board)
&gt;&gt;&gt;&gt;&gt;&gt; 9..run command "systemctl start glusterd" and success.
&gt;&gt;&gt;&gt;&gt;&gt; 10.at this point the peer status is Peer in Cluster (Connected) and all
&gt;&gt;&gt;&gt;&gt;&gt; process is online.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; If a node abnormal reset, must I remove
&gt;&gt;&gt;&gt;&gt;&gt; the  /var/lib/glusterd/snaps/.nfsxxxxxx before starting the glusterd?
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; I want to know if it is nomal.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Thanks,
&gt;&gt;&gt;&gt;&gt;&gt; Xin
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt;&gt;&gt;&gt; Gluster-users mailing list
&gt;&gt;&gt;&gt;&gt;&gt; Gluster-users@gluster.org
&gt;&gt;&gt;&gt;&gt;&gt; http://www.gluster.org/mailman/listinfo/gluster-users
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;
</pre></div><br><br><span title="neteasefooter"><p>&nbsp;</p></span>