[Gluster-users] Replica self-heal issue (gluster 3.4.2)

Ravishankar N ravishankar at redhat.com
Thu Apr 17 03:37:00 UTC 2014


On 04/16/2014 07:47 PM, Jia-Hao Chen wrote:
> Dear all,
>
> I create a replicated volume with 2 nodes.
> And I make a directory and create a few files in it.
>
> [/mnt/gluster] # mkdir dir1
> [/mnt/gluster] # echo 123 >> dir1/a
> [/mnt/gluster] # echo 123 >> dir1/b
> [/mnt/gluster] # echo 123 >> dir1/c
>
> Then I bring down node 2 and rename dir1 to dir2
>
> [/mnt/gluster] # mv dir1 dir2
>
> After bring back node 2, dir1 reappear
>
> [/mnt/gluster] # ls -l
> drwxr-x---    2 harry    harry      4096 Apr 16 11:30 dir1/
> drwxr-x---    2 harry    harry      4096 Apr 16 11:30 dir2/
>
> It surprised me. But it makes sense since dir1 is still on node 2.
> When node 2 come back, dir1 is healed on another node.
> However when I list both dir1 and dir2, the file list is empty.
>
> [/mnt/gluster] # ls -l dir1
> [/mnt/gluster] # ls -l dir2
> [/mnt/gluster] #
>
> It seems a bug to me.
> What is the expected result of this case?
>
This is strange. The expected result is that node 2 must also contain 
only dir2. i.e. the self-heal must happen from node 1 to node 2 once the 
latter comes back online.
Are the files present in the backend bricks?

-Ravi
> Best regards,
> Chen, Chia-Hao
>
>
>
>
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140417/7135dd34/attachment.html>


More information about the Gluster-users mailing list