[Gluster-devel] GlusterFS AFR mirror exclusions

Steffen Grunewald steffen.grunewald at aei.mpg.de
Mon Jul 9 06:29:33 UTC 2007


On Fri, Jul 06, 2007 at 11:37:15PM -0400, Gerry Reno wrote:
> Krishna Srinivas wrote:
> >Hi Gerry,
> >
> >In the next release this can be done. i.e you can say
> >
> >option replicate /usr/src/linux/*:1,/usr/src/*:2,*:3
> >i.e we can specify full path.
> >So all the files under the directory /usr/src/linux will be replicated
> >only once.
> >All the files under /usr/src except for the ones in "linux" will be
> >replicated twice.
> >Rest of the files will be replicated thrice.
> Krishna,
>  Would it be possible to have exclude option like this:
> 
>  option replicate /var/*:3
>  option exclude /var/log/*:3
> 
> so that everything under /var would be replicated except for /var/log 
> which would contain local copy only to each client?

option replicate /var/log/*:1,/var/*:3

assuming that there's a typo in your request
o basically you'd specify all the "exclusions" first, followed by the rest,
and the first match is what counts

S






More information about the Gluster-devel mailing list