AFR single process

From GlusterDocumentation

machine0{1,2}

bash# cat /etc/glusterfs/afr.vol
volume posix
      type storage/posix
      option directory /gluster/export
end-volume

volume brick
      type features/locks
      subvolumes posix
end-volume

volume machine01
      type protocol/client
      option transport-type tcp
      option remote-host machine01
      option remote-subvolume brick
end-volume

volume machine02
      type protocol/client
      option transport-type tcp
      option remote-host machine02
      option remote-subvolume brick
end-volume

volume home
      type cluster/afr
      option read-subvolume `hostname`
      subvolumes machine01 machine02
end-volume

volume server
      type protocol/server
      option transport-type tcp
      subvolumes brick home
      option auth.addr.home.allow *
      option auth.brick.home.allow *
end-volume

machineNN

bash# cat /etc/glusterfs/ha-client.vol
volume machine01
      type protocol/client
      option transport-type tcp
      option remote-host machine01
      option remote-subvolume home
end-volume

volume machine02
      type protocol/client
      option transport-type tcp
      option remote-host machine02
      option remote-subvolume home
end-volume

volume home-ha
      type cluster/ha
      subvolumes machine01 machine02
end-volume


command to run

machine01#  glusterfs -f /etc/glusterfs/afr.vol /mnt/glusterfs
machine02#  glusterfs -f /etc/glusterfs/afr.vol /mnt/glusterfs
machineNN#  glusterfs -f /etc/glusterfs/ha-client.vol /mnt/glusterfs

 

Copyright © Gluster, Inc. All Rights Reserved.