[Gluster-users] about tail command

songxin songxin_1980 at 126.com
Tue Mar 1 13:49:23 UTC 2016


A node:
B node:

brick on A node:/data/brick/gv0
brick on B node:/data/brick/gv0

reproduce steps:
1.gluster peer probe                                                                                                                               (on A node)
2.gluster volume create gv0 replica 2 force                (on A node)
3.gluster volume start gv0                                                                                                                                                  (on A node)
4.mount -t glusterfs gluster                                                                                                               (on A node)
5.create some files(a,b,c)        in dir gluster                                                                                                                        (on A node)       
6.shutdown the B node
7.change the files(a,b,c)    in dir gluster                                                                                                                              (on A node)       
8.reboot B node
9.start glusterd  on B node but glusterfsd is offline                                                                                                               (on B node)    
10.gluster volume remove-brick gv0 replica 1 force                                                        (on A node)   
11.gluster volume add-brick gv0 replica 2 force                                                               (on A node)   

Now the files are not same between two brick 

12."gluster volume heal gv0 info " show entry num is 0                                                                                                        (on A node)  

Now What I should do if I want to sync file(a,b,c) on two brick?

I know the "heal full" can work , but I think the command take too long time.

So I run  "tail -n 1 file" to all file on A node, but some files are sync but some files are not.

My question is below:
1.Why the tail can't sync all files?
2.Can  the command "tail -n 1 filename"  trigger selfheal,  just like "ls -l filename"?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20160301/86b45434/attachment.html>

More information about the Gluster-users mailing list