[Gluster-devel] GlusterFS 1.3.0-pre2.2: AFR setup

Gerry Reno greno at verizon.net
Sun Mar 4 04:22:03 UTC 2007


If I want to have four webservers each with local storage brick that is 
mirrored between them how do I setup the .vol files?
Would I put a client and server .vol on each webserver?  How do I get 
the bricks to mirror?  Would I need a cluster unify translator?

This is what I have so far:

Server.vol:
############################
volume brick
  type storage/posix
  option directory /var/www
end-volume
volume server
  type protocol/server
  option transport-type tcp/server
  option bind-address  127.0.0.1
  option listen-port 6996
  subvolumes brick
  option auth.ip.brick.allow  127.0.0.1
end-volume
############################

Client.vol
############################
volume client
  type protocol/client
  option transport-type tcp/client
  option  remote-host  127.0.0.1
  option  remote-port  6996
  option  remote-subvolume  brick
end-volume
volume afr
  type cluster/automatic-file-replication
  option replicate:* *
end-volume
############################

Gerry






More information about the Gluster-devel mailing list