[Gluster-users] Self heal doesn't seem to work when file is updated

Mohit Anchlia mohitanchlia at gmail.com
Wed Mar 9 18:33:25 UTC 2011


Thanks!

How will I know if self heal worked or not. What's the best way to
tell? I see there are 2 find commands and it looks in some cases
running one may not be sufficient. So how can we make sure that self
heal worked. Currently I am testing with one file so it's easy to
verify but with millions of files it may not be possible.

Also, is there any place where I can read about these translators. I
didn;t even know there is something called as stat translator and this
could be a problem too.

Thanks a lot for responding to my questions.
On Tue, Mar 8, 2011 at 7:39 PM, Pranith Kumar. Karampuri
<pranithk at gluster.com> wrote:
> hi Mohit,
>       ls -laR does not trigger the self-heal when the stat-prefetch translator
> is loaded. The command to use for triggering self-heal is "find". Please see
> our documentation of the same.
> http://europe.gluster.org/community/documentation/index.php/Gluster_3.1:_Triggering_Self-Heal_on_Replicate
>
>
> I executed the same example on my machine and it works fine.
>
> root at pranith-laptop:/mnt/client# cat /tmp/2/a.txt
> sds
> root at pranith-laptop:/mnt/client# find .
> .
> ./a.txt
> root at pranith-laptop:/mnt/client# cat /tmp/2/a.txt
> sds
> DD
>
> Pranith
>
> ----- Original Message -----
> From: "Pranith Kumar. Karampuri" <pranithk at gluster.com>
> To: landman at scalableinformatics.com
> Cc: gluster-users at gluster.org
> Sent: Wednesday, March 9, 2011 8:42:37 AM
> Subject: Re: [Gluster-users] Self heal doesn't seem to work when file   is      updated
>
> hi,
>     Glusterfs identifies files using a gfid. Same file on both the replicas contain same gfid. What happens when you edit a text file is a new backup file(different gfid) is created and the data is written to it and then it is renamed to the original file thus changing the gfid on the bricks that are up. When the old brick comes back up it finds that the gfid of the same file has changed. This case is not handled in the code at the moment, I am working on it.
>
> Pranith.
> ----- Original Message -----
> From: "Joe Landman" <landman at scalableinformatics.com>
> To: "Mohit Anchlia" <mohitanchlia at gmail.com>
> Cc: gluster-users at gluster.org
> Sent: Tuesday, March 8, 2011 11:43:37 PM
> Subject: Re: [Gluster-users] Self heal doesn't seem to work when file is        updated
>
> On 03/08/2011 01:10 PM, Mohit Anchlia wrote:
>
> ok ...
>
>>> Turn up debugging on the server.  Then try your test.  See if it still
>>> fails.
>
> It fails with the gluster client but not the NFS client?
>
> Have you opened a bug report on the bugzilla?
>
> --
> Joseph Landman, Ph.D
> Founder and CEO
> Scalable Informatics Inc.
> email: landman at scalableinformatics.com
> web  : http://scalableinformatics.com
>        http://scalableinformatics.com/sicluster
> phone: +1 734 786 8423 x121
> fax  : +1 866 888 3112
> cell : +1 734 612 4615
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
>



More information about the Gluster-users mailing list