[Gluster-users] Replication for missing file
Krishna Srinivas
krishna at zresearch.com
Fri Jan 16 11:22:35 UTC 2009
In the latest AFR code, the healing code is in lookup and not in open
call flow. Basically 'lookup' is done just before any kind of access
to that file (stat, open, chmod, chown, rm, rename). So AFR heals the
file when you try to access. so "ls -lR" command will trigger the heal
of the entire directory structure.
Krishna
On Thu, Jan 15, 2009 at 9:35 AM, Keith Freedman <freedman at freeformit.com> wrote:
> At 11:52 AM 1/14/2009, Gluster Novice wrote:
>>Sorry to bug you with another newbie question :
>>With regard to file replication, does Gluster FS repair a damaged
>>file *only* when someone tries to read it ?
>
> yes (or, I believe when the directory containing the missing file is read).
>
>>For example, let's say the filesystem is supposed to maintain 3
>>copies of the file and one of the copies is lost / removed from the
>>system for whatever reason, then will the missing copy be created
>>the first time only when someone reads the file ?
>
> if you need to insure syncronicity after a failure, there is a find
> command in the wiki that will force auto-healing of the whole filesystem
> find . -exec head -1 () \; > /dev/null
> (I think that's it, it may not be syntactically valid)
>
>
>>Thanks again for your help!
>>
>>_______________________________________________
>>Gluster-users mailing list
>>Gluster-users at gluster.org
>>http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users
>
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users
>
More information about the Gluster-users
mailing list