[Gluster-users] Self heal doesn't seem to work when file is updated
Mohit Anchlia
mohitanchlia at gmail.com
Wed Mar 9 18:48:04 UTC 2011
Is this the complete list? I don't see stat prefetch translator in there.
Just so this important question doesn't get lost I will ask again :)
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.
On Wed, Mar 9, 2011 at 10:43 AM, Burnash, James <jburnash at knight.com> wrote:
> Just found the updated link for translators - you made me look :-)
>
> http://www.gluster.com/community/documentation/index.php/Gluster_3.1:_Setting_Volume_Options
>
> I would also like to know HOW I would know for sure that self heal worked ...
>
> James Burnash, Unix Engineering
>
> -----Original Message-----
> From: gluster-users-bounces at gluster.org [mailto:gluster-users-bounces at gluster.org] On Behalf Of Mohit Anchlia
> Sent: Wednesday, March 09, 2011 1:33 PM
> To: Pranith Kumar. Karampuri; gluster-users at gluster.org
> Subject: Re: [Gluster-users] Self heal doesn't seem to work when file is updated
>
> 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
>>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
>
>
> DISCLAIMER:
> This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this in error, please immediately notify me and permanently delete the original and any copy of any e-mail and any printout thereof. E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission.
> NOTICE REGARDING PRIVACY AND CONFIDENTIALITY Knight Capital Group may, at its discretion, monitor and review the content of all e-mail communications. http://www.knight.com
>
More information about the Gluster-users
mailing list