[Gluster-users] Exlcude subdirectories from AFR
Keith Freedman
freedman at FreeFormIT.com
Sat Nov 15 09:20:36 UTC 2008
well, I'm not sure (maybe one of the devs knows a better answer), but
what I've done is (using your naming convention):
mkdir /var/wwwlogs
cd /var/www
for i in *; do mv $i/logs /var/wwwlogs/$i;ln -s /var/wwwlogs/$i $i/logs; done;
then mount gluster on /var/www
so people can view their logs (for a particular server) using the
same path, and you can use the same path for your http config. but
the web roots are AFRed
it's probably more efficient than using an exclude if one exists, but
it may require some changes if you have scripts which create thes
"domain#"s automatically.
Keith
At 01:02 AM 11/15/2008, claudiu ciurdariu wrote:
>Hi guys,
>
>I'm trying to implement AFR across 2 servers and I was wondering if
>there is any option that would allow me to exclude some
>subdirectories from replicating each other. Say I have a directory
>structure like this:
>
>/var/www/domain1/htdocs
>/var/www/domain1/logs
>/var/www/domain2/htdocs
>/var/www/domain2/logs
>....
>
>I want to AFR /var/www across the 2 servers, but exclude the logs
>directories from replication. Is there any translator that would
>help me achieve that?
>
>Any help is appreciated.
>
>Claudiu
>
>_______________________________________________
>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