AFR single process
From GlusterDocumentation
Contents |
[edit]
machine01
volume home1
type storage/posix
option directory /gluster/export
end-volume
volume home2
type protocol/client
option transport-type tcp/client
option remote-host machine02
option remote-subvolume home2
end-volume
volume home
type cluster/afr
option read-subvolume home1
subvolumes home1 home2
end-volume
volume server
type protocol/server
option transport-type tcp/server
option client-volume-filename /etc/glusterfs/glusterfs-client.vol
subvolumes home home1
option auth.ip.home.allow *
option auth.ip.home1.allow *
end-volume
[edit]
machine02
volume home1
type protocol/client
option transport-type tcp/client
option remote-host machine01
option remote-subvolume home1
end-volume
volume home2
type storage/posix
option directory /gluster/export
end-volume
volume home
type cluster/afr
option read-subvolume home2
subvolumes home1 home2
end-volume
volume server
type protocol/server
option transport-type tcp/server
option client-volume-filename /etc/glusterfs/glusterfs-client.vol
subvolumes home home2
option auth.ip.home.allow *
option auth.ip.home2.allow *
end-volume
[edit]
machineNN
volume afr
type protocol/client
option transport-type tcp/client
option remote-host machine01 # or you can use machine02
option remote-subvolume home
end-volume
[edit]
command to run
machine01# glusterfs -f /etc/glusterfs/glusterfs-client.vol /mnt/glusterfs
machine02# glusterfs -f /etc/glusterfs/glusterfs-client.vol /mnt/glusterfs
machineNN# glusterfs -f /etc/glusterfs/glusterfs-client.vol /mnt/glusterfs
- NOTE:
- The above commands assumes you have the /etc/glusterfs/glusterfs-client.vol as described in previous sections.
- Also note that /mnt/glusterfs exists.

