[Gluster-devel] AFR replication

Matt Paine matt at mattsoftware.com
Sat Jul 21 04:50:03 UTC 2007


> > I have the following lines in client AFR translator in a test setup:
> >
> > option replicate /var/appl/*:2
> > option replicate /var/appl/*/logs/*:1
> even if I make it like this:
> option replicate /var/appl/*:2
> option replicate /var/appl/2.7/logs/*:1

Hi Gerry

Try switching the rules around, I believe the first match will be the
one it uses. In this case /var/appl/* matches
your /var/appl/2.7/logs/some.log so it applies the *:2 rule to it.

Switching them around will enable the *:1 rule to match your file before
it hits the *:2 rule

Also, i am not 100% certain, but i believe all the rules need to be on
the one line, comma sepparated...... i.e.....

option replicate /var/appl/2.7/logs/*:1,/var/appl/*:2

Although i may be incorrect on that one.


Hope this helps
Matt.







More information about the Gluster-devel mailing list