[Gluster-users] about tail command
songxin_1980 at 126.com
Tue Mar 1 13:49:23 UTC 2016
brick on A node:/data/brick/gv0
brick on B node:/data/brick/gv0
1.gluster peer probe 22.214.171.124 (on A node)
2.gluster volume create gv0 replica 2 126.96.36.199:/data/brick/gv0 188.8.131.52:/data/brick/gv0 force (on A node)
3.gluster volume start gv0 (on A node)
4.mount -t glusterfs 184.108.40.206:/gv0 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 220.127.116.11:/data/brick/gv0 force (on A node)
11.gluster volume add-brick gv0 replica 2 18.104.22.168:/data/brick/gv0 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...
More information about the Gluster-users