Suppose you want to export the ext3 volume /dev/sdb1.
We create /etc/glusterfs/glusterfsd.vol as the following.
Suppose /dev/sdb1 already mounted on /mnt/sdb1.
volume posix1 type storage/posix option directory /mnt/sdb1 end-volume
volume locks1
type features/locks
subvolumes posix1
end-volume
Use subvolumes to specify the layer to place this on top of.
volume quota1 type features/quota option disk-usage-limit 2000000000 # 2GB subvolumes locks1 end-volume
volume brick1
type performance/io-threads
option thread-count 8
subvolumes quota1
end-volume
volume server-tcp
type protocol/server
option transport-type tcp
option auth.addr.brick1.allow *
option transport.socket.listen-port 6996
option transport.socket.nodelay on
subvolumes brick1
end-volume
volume posix1
type storage/posix
option directory /mnt/sdb1
end-volume
volume locks1
type features/locks
subvolumes posix1
end-volume
volume quota1
type features/quota
option disk-usage-limit 2000000000 # 2GB
subvolumes locks1
end-volume
volume brick1
type performance/io-threads
option thread-count 8
subvolumes quota1
end-volume
volume server-tcp
type protocol/server
option transport-type tcp
option auth.addr.brick1.allow *
option transport.socket.listen-port 6996
option transport.socket.nodelay on
subvolumes brick1
end-volume
List of translators: http://www.gluster.com/community/documentation/index.php/Translators
FAQ: http://www.gluster.com/community/documentation/index.php/GlusterFS_Technical_FAQ