client:
volume client
type protocol/client
option transport-type tcp/client # for TCP/IP transport
# option ib-verbs-work-request-send-size 1048576
# option ib-verbs-work-request-send-count 16
# option ib-verbs-work-request-recv-size 1048576
# option ib-verbs-work-request-recv-count 16
# option transport-type ib-sdp/client # for Infiniband transport
# option transport-type ib-verbs/client # for ib-verbs transport
option remote-host 127.0.0.1 # IP address of the remote brick
# option remote-port 6996 # default server port is 6996
# option transport-timeout 30 # seconds to wait for a reply
# from server for each request
option remote-subvolume brick # name of the remote volume
end-volume
server:
volume brick
type storage/posix # POSIX FS translator
option directory /home/test # Export this directory
end-volume
volume posix-locks
type features/posix-locks
option mandatory on
subvolumes brick
end-volume
volume server
type protocol/server
option transport-type tcp/server # For TCP/IP transport
# option ib-verbs-work-request-send-size 131072
# option ib-verbs-work-request-send-count 64
# option ib-verbs-work-request-recv-size 131072
# option ib-verbs-work-request-recv-count 64
# option transport-type ib-sdp/server # For Infiniband transport
# option transport-type ib-verbs/server # For ib-verbs transport
# option bind-address 192.168.1.10 # Default is to listen on all interfaces
# option listen-port 6996 # Default is 6996
option client-volume-filename /usr/local/etc/glusterfs/glusterfs-client.vol
subvolumes brick
# NOTE: Access to any volume through protocol/server is denied by
# default. You need to explicitly grant access through # "auth"
# option.
option auth.ip.brick.allow * # Allow access to "brick" volume
end-volume